]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
accel/amdxdna: Fix suspend failure after enabling turbo mode
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 11 Feb 2026 20:47:16 +0000 (12:47 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Mon, 23 Feb 2026 17:24:19 +0000 (09:24 -0800)
commitfdb65acfe655f844ae1e88696b9656d3ef5bb8fb
treeb1fe7518b7bc50e7699985bd53b800e79b8500ba
parent1aa82181a3c285c7351523d587f7981ae4c015c8
accel/amdxdna: Fix suspend failure after enabling turbo mode

Enabling turbo mode disables hardware clock gating. Suspend requires
hardware clock gating to be re-enabled, otherwise suspend will fail.
Fix this by calling aie2_runtime_cfg() from aie2_hw_stop() to
re-enable clock gating during suspend. Also ensure that firmware is
initialized in aie2_hw_start() before modifying clock-gating
settings during resume.

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