XE_REG_OPTION_MASKED(9)
π NAME π
okay so bestie, welcome to XE_REG_OPTION_MASKED(9) from the Kernel API Manual β and the vibe is literally this:
XE_REG_OPTION_MASKEDβ register is "masked", with the upper 16 bits marking the written bits on the lower 16 bits. πβ¨
β¨ SYNOPSIS β¨
XE_REG_OPTION_MASKED
π¦ DESCRIPTION π¦
okay so the vibe check here: this option only applies to registers explicitly marked in bspec with "Access: Masked". no cap. π
Registers with this option can have write operations to specific lower bits by setting the corresponding upper bits. Other bits will not be affected. This allows register writes without needing a RMW cycle and without caching in software the register value. periodt. π
π₯
πΈ EXAMPLE πΈ
a write with value 0x00010001 will set bit 0 and all other bits retain their previous values. π
To be used with XE_REG. XE_REG_MCR and XE_REG_INITIALIZER. iykyk. π¦
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/regs/xe_reg_defs.h XE_REG_ADDR_MAX(9)struct xe_reg(9)struct xe_reg_mcr(9)XE_REG_OPTION_VF(9)XE_REG_INITIALIZER(9)XE_REG(9)XE_REG_MCR(9)
signing off from the source/version corner at ./drivers/gpu/drm/xe/regs, dated October 2026, on the XE_REG_OPTION_MASKED(9) page β mwah πβ¨
π¦ 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