drm/amd: Add support for a complete pmops action
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 2 Jun 2025 01:44:30 +0000 (20:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:18 +0000 (12:19 -0400)
commit64c3e4a868f1ddde8eee2bb038a2ed0e8f06a247
tree8653b3ddd1082caab53f50b515e1de1ed39014f3
parentdd3999b658e4c15dea5feda5bf3f8ff6b1a31d2f
drm/amd: Add support for a complete pmops action

complete() callbacks are supposed to handle reversing anything
that occurred during prepare() callbacks.  They'll be called on every
power state transition, and will also be called if the sequence is
failed (such as an aborted suspend).

Add support for IP blocks to support this action.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://lore.kernel.org/r/20250602014432.3538345-2-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/include/amd_shared.h