]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Improve tracing for job lifecycle and mailbox RX worker
authorMax Zhen <max.zhen@amd.com>
Tue, 21 Apr 2026 18:15:02 +0000 (11:15 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 22 Apr 2026 15:35:21 +0000 (08:35 -0700)
commit8711eb2dde2ed44c98714b875dcf7329950c71ba
tree494eaa33cd274e061de4756edf742b661511c409
parent3a9f1d470619a7b0c0bdee564d312bb1424dfe01
accel/amdxdna: Improve tracing for job lifecycle and mailbox RX worker

Add more trace coverage to amdxdna job handling and mailbox receive
processing to make driver execution easier to debug.

Extend the xdna_job trace event to record the command opcode in
addition to the job sequence number. Use the enhanced tracepoint in
the job run, sent-to-device, signaled-fence, and job-free paths so
that trace output can be correlated with the command being executed.

Also add debug-point tracing when a command is received through the
submit ioctl path, and add a trace event when the mailbox RX worker
runs.

These changes improve visibility into job lifetime transitions and
mailbox activity, which helps debug command flow and scheduler issues.

Signed-off-by: Max Zhen <max.zhen@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260421181502.1970263-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.h
drivers/accel/amdxdna/amdxdna_mailbox.c
include/trace/events/amdxdna.h