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
F105992578: D10263.diff
Mon, Dec 23, 2:36 PM
Unknown Object (File)
Sat, Dec 14, 3:02 PM
Unknown Object (File)
Wed, Dec 4, 1:53 AM
Unknown Object (File)
Thu, Nov 28, 11:30 AM
Unknown Object (File)
Nov 14 2024, 3:41 AM
Unknown Object (File)
Oct 26 2024, 3:30 PM
Unknown Object (File)
Oct 20 2024, 3:25 PM
Unknown Object (File)
Sep 18 2024, 12:35 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.