STRUCT PANTHOR_IRQ(9)
π struct panthor_irq(9) π
okay so this is the Kernel API Manual page for struct panthor_irq, and bestie, it is literally the IRQ data era. β¨ Used to automate IRQ handling for the 3 different IRQs in this driver β no cap, that's the whole vibe.
β¨ NAME β¨
struct panthor_irq β IRQ data π
πΈ SYNOPSIS πΈ
struct panthor_irq {
struct panthor_device *ptdev;
void __iomem *iomem;
int irq;
u32 mask;
spinlock_t mask_lock;
atomic_t state;
};
π Members π
ptdevβ Panthor device. π«Άiomemβ CPU mapping of the IRQ base address. literally the map, iykyk.irqβ IRQ number. πmaskβ values to write toxxx_INT_MASKif active. periodt.mask_lockβ protects modifications to_INT_MASKandmask. π₯
π¨ okay bestie, this is the crucial caveat: in paths where_INT_MASKis updated based on a state transition/check, it's crucial for the state update/check to be inside the locked section. Otherwise it introduces a race window leading to potential_INT_MASKinconsistencies. not me warning you dramatically, but fr fr. π
stateβ one ofenum panthor_irq_state, reflecting the current state. π
π Description π
Used to automate IRQ handling for the 3 different IRQs we have in this driver. that's it, that's the main character energy. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/panthor/panthor_device.h struct panthor_soc_data(9)enum panthor_device_pm_state(9)struct panthor_device(9)struct panthor_file(9)panthor_device_schedule_reset(9)panthor_device_reset_is_pending(9)panthor_exception_is_fault(9)PANTHOR_IRQ_HANDLER(9)
xoxo, signing off from ./drivers/gpu/drm/panthor β October 2026, struct panthor_irq(9) out! ππ«Άβ¨
π¦ 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