Page MenuHomeFreeBSD

psm(4), evdev support part 1: atkbdc access locking
AbandonedPublic

Authored by wulf_cicgroup.ru on Apr 3 2017, 10:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 26, 3:30 PM
Unknown Object (File)
Sun, Oct 20, 3:25 PM
Unknown Object (File)
Sep 18 2024, 12:35 AM
Unknown Object (File)
Sep 8 2024, 1:26 AM
Unknown Object (File)
Aug 6 2024, 9:02 AM
Unknown Object (File)
Jul 14 2024, 7:39 PM
Unknown Object (File)
Apr 8 2024, 2:58 PM
Unknown Object (File)
Dec 20 2023, 12:57 AM
Subscribers

Details

Reviewers
gonzo
Summary

atkbdc(4): Serialize hardware access with mutex

In 4.x days it was serialized with spl() calls and kbdc lock flag
After 5.x it became protected with giant lock.
Restore 4.x logic with replacing kbdc lock flag acquiring with
atkbdc lock aquiring. atkbdc access is still protected with giant
too as both children are giant-locked.
spl() calls are left inplace to help psm and atkbd drivers locking.
atkbdc arbitration comments are deleted as obsoleted.

Part of https://reviews.freebsd.org/D10207

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Change is obsolete.
After some discussion with bde@ (on arch@ and private) it is turned out that nothing but Giant can be used to serialize access to I8042 ports currently.