]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/amdxdna: Resume power for creating and destroying hardware context
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 8 Oct 2025 04:53:24 +0000 (21:53 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 8 Oct 2025 15:31:39 +0000 (08:31 -0700)
commite00f78679f5a3d98b650fc9397c4d358ab570725
treecd04a0d1e4c8ac3b54693112f43ca83ccb87c47e
parent3379655524e613eb690d4c296ba0d2711a815f86
accel/amdxdna: Resume power for creating and destroying hardware context

When the hardware is powered down by auto-suspend, creating or destroying
a hardware context without resuming power will fail.
Call amdxdna_pm_resume_get() before requesting the hardware to create or
destroy a hardware context.

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://lore.kernel.org/r/20251008045324.4171807-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c