Page MenuHomeFreeBSD

jme: Convert driver to CTLFLAG_MPSAFE
ClosedPublic

Authored by guest-seuros on Fri, Jan 9, 3:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 23, 2:15 AM
Unknown Object (File)
Fri, Jan 23, 2:00 AM
Unknown Object (File)
Tue, Jan 20, 11:32 AM
Unknown Object (File)
Tue, Jan 20, 12:30 AM
Unknown Object (File)
Mon, Jan 19, 9:28 PM
Unknown Object (File)
Mon, Jan 19, 8:20 PM
Unknown Object (File)
Sat, Jan 17, 6:42 PM
Unknown Object (File)
Sat, Jan 17, 10:53 AM
Subscribers
None

Details

Summary

Replace CTLFLAG_NEEDGIANT with CTLFLAG_MPSAFE for all interrupt
coalescing sysctls. The driver uses jme_mtx mutex for proper
synchronization and does not require Giant lock.

Sysctls converted:

  • dev.jme.X.tx_coal_to (TX coalescing timeout)
  • dev.jme.X.tx_coal_pkt (TX coalescing packet count)
  • dev.jme.X.rx_coal_to (RX coalescing timeout)
  • dev.jme.X.rx_coal_pkt (RX coalescing packet count)
  • dev.jme.X.process_limit (max RX events to process)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 69754
Build 66637: arc lint + arc unit

Event Timeline

guest-seuros created this revision.

speaker, clock: Replace Giant lock with fine-grained locking

Add sx lock to the speaker driver to protect spkr_active and spkr_inbuf,
removing the D_NEEDGIANT flag. Add mtx_lock_spin protection for timer2_state
in clock.c timer_spkr_acquire/release functions.

Sorry, still using arc incorrectly. Need i need to learn git-arc.

This revision is now accepted and ready to land.Mon, Jan 12, 12:35 AM
This revision was automatically updated to reflect the committed changes.