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
Sponsored by: The FreeBSD Foundation

(cherry picked from commit efb8f0b8db8747243f7999b874403d5c86e93b74)

Details

Provenance
markjAuthored on Apr 25 2022, 1:13 PM
Parents
rG3c01fdcfc161: cross-build: fix some redeclaration warnings during bootstrap
Branches
Unknown
Tags
Unknown