STRUCT PANTHOR_FW_CS_IFACE(9)
π NAME π
struct panthor_fw_cs_iface β the firmware command stream slot interface, bestie. It's from the Kernel API Manual and it's literally the little control panel for one command stream slot β¨
π¦ SYNOPSIS π¦
struct panthor_fw_cs_iface {
spinlock_t lock;
struct panthor_fw_cs_control_iface *control;
struct panthor_fw_cs_input_iface *input;
const struct panthor_fw_cs_output_iface *output;
};
okay so it's four fields, that's the whole vibe, no cap π
πΈ Members πΈ
π lock
The lock that protects access to the panthor_fw_cs_input_iface::req field. Yes queen, protect that field π
Why does it exist? Because we need to update the req field concurrently from the interrupt handler and from the scheduler logic. Two places, one field, so... lock. iykyk π
TODO: ideally we'd want to use acmpxchgto update thereq, but FW interface sections are mapped uncached/write-combined right now, and usingcmpxchgon such mappings leads to SError faults. π So nope. Revisit when we have'SHARED'GPU mappings hooked up, bestie.
ποΈ control
The command stream slot control interface. It's how we expose command stream slot properties.
This interface is read-only β look, don't touch, periodt π
π₯ input
The command stream slot input interface. This one's for host updates/events β the host is the main character here β¨
π€ output
The command stream slot output interface. This is for FW (firmware) updates/events.
This interface is read-only too β output named but you only get to read it, the irony is not lost on us π
π₯ SEE ALSO π₯
- the kernel file
./drivers/gpu/drm/panthor/panthor_fw.h struct panthor_fw_csg_iface(9)struct panthor_fw_global_iface(9)panthor_fw_toggle_reqs(9)panthor_fw_update_reqs(9)
go read those too, they're all in the same friend group fr fr π«Ά
okay that's the whole page, you ate that π this lil slice of kernel API lives at ./drivers/gpu/drm/panthor, dated October 2026, and it's filed under struct panthor_fw_cs_iface(9) β mwah, slay, bye ππβ
π¦ 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