]> Gentwo Git Trees - linux/.git/commit
accel/amdxdna: Support firmware debug buffer
authorLizhi Hou <lizhi.hou@amd.com>
Thu, 16 Oct 2025 20:30:16 +0000 (13:30 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Mon, 20 Oct 2025 16:07:12 +0000 (09:07 -0700)
commit7ea0468380216c10b73633b976d33efa8c12d375
tree797530eab663d2df75988972c844c4dab77e6e5e
parentfb4f1cb3e04d706bc7d02dc6ed9e5baafa903de9
accel/amdxdna: Support firmware debug buffer

To collect firmware debug information, the userspace application allocates
a AMDXDNA_BO_DEV buffer object through DRM_IOCTL_AMDXDNA_CREATE_BO.
Then it associates the buffer with the hardware context through
DRM_IOCTL_AMDXDNA_CONFIG_HWCTX which requests firmware to bind the buffer
through a mailbox command. The firmware then writes the debug data into
this buffer. The buffer can be mapped into userspace so that
applications can retrieve and analyze the firmware debug information.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20251016203016.819441-1-lizhi.hou@amd.com
14 files changed:
drivers/accel/amdxdna/TODO
drivers/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/aie2_message.c
drivers/accel/amdxdna/aie2_msg_priv.h
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/aie2_pci.h
drivers/accel/amdxdna/amdxdna_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.h
drivers/accel/amdxdna/amdxdna_gem.c
drivers/accel/amdxdna/amdxdna_gem.h
drivers/accel/amdxdna/amdxdna_pci_drv.c
drivers/accel/amdxdna/amdxdna_pci_drv.h
drivers/accel/amdxdna/npu1_regs.c
drivers/accel/amdxdna/npu4_regs.c