__intel_wait..._register_fw(9)
π NAME π
okay so bestie, this is the __intel_wait..._register_fw(9) page from the Kernel API Manual β and the function is literally __intel_wait_for_register_fw, which waits until register matches expected state β¨. no cap, thatβs the whole vibe.
β¨ SYNOPSIS β¨
int __intel_wait_for_register_fw (struct intel_uncore *uncore , i915_reg_t reg , u32 mask , u32 value , unsigned int fast_timeout_us , unsigned int slow_timeout_ms , u32 *out_value );
π ARGUMENTS π
uncoreβ thestruct intel_uncoreπ«Άregβ the register to read πmaskβ mask to apply to register value πvalueβ expected value βfast_timeout_usβ fast timeout in microsecond for atomic/tight wait π₯slow_timeout_msβ slow timeout in millisecond πΈout_valueβ optional placeholder to hold registry value π
π¦ DESCRIPTION π¦
This routine waits until the target register reg contains the expected value after applying the mask, i.e. it waits until:
(intel_uncore_read_fw(uncore, reg) & mask) == value
Otherwise, the wait will timeout after slow_timeout_ms milliseconds. β³
For atomic contextslow_timeout_msmust be zero andfast_timeout_usmust be not larger than20,0000microseconds. π this part is serious, fr fr.
Note that this routine assumes the caller holds forcewake asserted, it is not suitable for very long waits. See intel_wait_for_register if you wish to wait without holding forcewake for the duration (i.e. you expect the wait to be slow). π§
πΈ RETURN πΈ
0 if the register matches the desired condition, or -ETIMEDOUT. π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/i915/intel_uncore.c π
intel_uncore_forcewake_get(9)intel_uncore_forcewake_user_get(9)intel_uncore_forcewake_user_put(9)intel_uncore_forcewake_get__locked(9)intel_uncore_forcewake_put(9)intel_uncore_forcewake_flush(9)intel_uncore_forcewake_put__locked(9)__intel_wait_for_register(9)intel_uncore_forcewake_for_reg(9)
xoxo, your Unix bestie π β this page is from ./drivers/gpu/drm/i915, October 2026 edition πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms