panthor_fw_update_reqs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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.h struct
  • 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