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)
Apr 8 2024, 2:58 PM
Unknown Object (File)
Dec 20 2023, 12:57 AM
Unknown Object (File)
Dec 12 2023, 6:24 PM
Unknown Object (File)
Nov 22 2023, 3:18 PM
Unknown Object (File)
Nov 12 2023, 11:38 AM
Unknown Object (File)
Jun 30 2023, 5:06 AM
Unknown Object (File)
Jun 29 2023, 3:49 AM
Unknown Object (File)
May 20 2023, 3:21 PM
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.