panthor_fw_unplug(9)
π panthor_fw_unplug(9) β Kernel API Manual π
okay bestie, welcome to panthor_fw_unplug(9), straight out of the Kernel API Manual β¨ this is the lil cleanup queen of the panthor firmware world and she has ONE job: making sure everything is chill before the device dips ππ«Ά
πΈ NAME πΈ
panthor_fw_unplug β literally called when the device is unplugged, no cap π
β¨ SYNOPSIS β¨
void panthor_fw_unplug (struct panthor_device *ptdev );
π ARGUMENTS π
ptdevβ the Device. that's it, that's the whole vibe π¦
π DESCRIPTION π
so this function has to make sure all pending operations are flushed before it goes and releases device resources β which is the whole point, because that's what prevents any interaction with the HW π₯ think of it as the "everyone out of the pool before we drain it" moment πββοΈπ
ngl this part matters: if there is still FW-related work running after this function returns, those guys must usedrm_dev_{enter,exit}()and skip any HW access whendrm_dev_enterreturns false π like, do not touch the hardware if the gate says no, fr fr.
π¦ SEE ALSO π¦
Kernel file ./drivers/gpu/drm/panthor/panthor_fw.c
and the whole friend group π:
struct panthor_fw_binary_hdr(9)enum panthor_fw_binary_entry_type(9)struct panthor_fw_binary_section_entry_hdr(9)struct panthor_fw_binary_iter(9)struct panthor_fw_section(9)struct panthor_fw_iface(9)struct panthor_fw(9)panthor_fw_get_glb_iface(9)panthor_fw_get_csg_iface(9)panthor_fw_get_cs_iface(9)panthor_fw_conv_timeout(9)panthor_fw_alloc_queue_iface_mem(9)panthor_fw_alloc_suspend_buf_mem(9)iface_fw_to_cpu_addr(9)panthor_fw_pre_reset(9)panthor_fw_post_reset(9)panthor_fw_wait_acks(9)panthor_fw_glb_wait_acks(9)panthor_fw_csg_wait_acks(9)panthor_fw_ring_csg_doorbells(9)panthor_fw_init(9)
okay that's the whole page bestie, go flush your pending ops and stan a clean shutdown π§ββοΈβ¨
this cutie lives at ./drivers/gpu/drm/panthor, the version is October 2026, and she answers to panthor_fw_unplug(9) β 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