]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/amdxdna: Unify pm and rpm suspend and resume callbacks
authorLizhi Hou <lizhi.hou@amd.com>
Sun, 3 Aug 2025 19:14:50 +0000 (12:14 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 6 Aug 2025 17:31:55 +0000 (10:31 -0700)
commitd2b48f2b30f25997a1ae1ad0cefac68c25f8c330
tree51155ccd7837f655ac8565c0b46e6e929565bffc
parentdbdea37add132a0f5d96006ea01fa73280984b88
accel/amdxdna: Unify pm and rpm suspend and resume callbacks

The suspend and resume callbacks for pm and runtime pm should be same.
During suspending, it needs to stop all hardware contexts first. And
the hardware contexts will be restarted after the device is resumed.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20250803191450.1568851-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/aie2_pci.h
drivers/accel/amdxdna/amdxdna_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.h
drivers/accel/amdxdna/amdxdna_pci_drv.c
drivers/accel/amdxdna/amdxdna_pci_drv.h