HomeFreeBSD

linuxkpi: Mitigate a seqlock livelock

Description

linuxkpi: Mitigate a seqlock livelock

Disable preemption in seqlock write sections when using the _irqsave
variant. This ensures that a writer can't be preempted and subsequently
starved by a reader running in a callout handler on the same CPU.

This fixes occasional display hangs seen when using the i915 driver.

Tested by: emaste, wulf
Reviewed by: wulf, hselasky
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35021

Details

Provenance
markjAuthored on Apr 25 2022, 1:13 PM
Reviewer
wulf
Differential Revision
D35021: linuxkpi: Mitigate a seqlock livelock
Parents
rG15a28c00203d: man3: Add links for some bitstring(3) routines
Branches
Unknown
Tags
Unknown