]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Reduce log noise during process termination
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 10 Feb 2026 16:42:51 +0000 (10:42 -0600)
committerLizhi Hou <lizhi.hou@amd.com>
Mon, 23 Feb 2026 17:24:16 +0000 (09:24 -0800)
commit57aa3917a3b3bd805a3679371f97a1ceda3c5510
tree1b581d5004a7d62a9f37b76aa3a9fc7376bd74fe
parent8363c02863332992a1822688da41f881d88d1631
accel/amdxdna: Reduce log noise during process termination

During process termination, several error messages are logged that are
not actual errors but expected conditions when a process is killed or
interrupted. This creates unnecessary noise in the kernel log.

The specific scenarios are:

1. HMM invalidation returns -ERESTARTSYS when the wait is interrupted by
   a signal during process cleanup. This is expected when a process is
   being terminated and should not be logged as an error.

2. Context destruction returns -ENODEV when the firmware or device has
   already stopped, which commonly occurs during cleanup if the device
   was already torn down. This is also an expected condition during
   orderly shutdown.

Downgrade these expected error conditions from error level to debug level
to reduce log noise while still keeping genuine errors visible.

Fixes: 97f27573837e ("accel/amdxdna: Fix potential NULL pointer dereference in context cleanup")
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260210164521.1094274-3-mario.limonciello@amd.com
drivers/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/aie2_message.c