]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Move RPM resume into job run function
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 4 Feb 2026 17:11:17 +0000 (09:11 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 4 Feb 2026 21:08:48 +0000 (13:08 -0800)
commit69674c1c704c0199ca7a3947f3cdcd575973175d
tree39fcd9511b07720a208772313c36474fc50c8a6c
parentd19d963d2a4acb5bbf03e25733ba565a7f6e1422
accel/amdxdna: Move RPM resume into job run function

Currently, amdxdna_pm_resume_get() is called during job creation, and
amdxdna_pm_suspend_put() is called when the hardware notifies job
completion. If a job is canceled before it is run, no hardware
completion notification is generated, resulting in an unbalanced
runtime PM resume/suspend pair.

Fix this by moving amdxdna_pm_resume_get() to the job run path, ensuring
runtime PM is only resumed for jobs that are actually executed.

Fixes: 063db451832b ("accel/amdxdna: Enhance runtime power management")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260204171118.3165607-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c