panthor_fw_update_reqs(9)
π panthor_fw_update_reqs β a Kernel API Manual moment (section 9, bestie)
okay so real talk, this one lives in the 9 manual, and the whole vibe is "update bits to reflect a configuration change" β¨ like that's literally the NAME and it's giving main character energy.
β¨ SYNOPSIS β¨
panthor_fw_update_reqs (__iface , __in_reg , __val , __mask );
that's it. four args. iconic. π
πΈ ARGUMENTS πΈ
__ifaceβ the interface you're operating on. the one you picked. slay π__in_regβ the name of the register to update, specifically the one in the input section of the interface. yes, the input one, not the other one π¦__valβ the value you wanna set. the actual value. no cap.__maskβ the mask to apply to the update. it masks. it does its job.
π DESCRIPTION π
okay so here's the tea π β some configuration gets passed through req registers, right? but those same req registers are ALSO used to send events to the FW. and because those req registers get updated from the interrupt handler, they lowkey need special helpers to update the configuration part too. that's literally why this function exists. it's giving "glue code but make it necessary."
concurrent accesses to the same req register? covered. handled. not your problem. π«Ά
but if you need atomic updates to multiple registers? nah bestie, that needs a dedicated lock β this helper is not gonna save you there. so don't come for it. π
fr fr, keep that distinction in your head: same register = fine, multiple registers = bring your own lock. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/panthor/panthor_fw.hstruct panthor_fw_cs_iface(9)struct panthor_fw_csg_iface(9)struct panthor_fw_global_iface(9)panthor_fw_toggle_reqs(9)
and that's the whole page, bestie π§π β brought to you by the fine folks at ./drivers/gpu/drm/panthor, dated October 2026, and yeah, it's the panthor_fw_update_reqs(9) entry from the Kernel API Manual. go forth and update your reqs responsibly. periodt. π
π¦ 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