aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2025-06-02 01:44:30 +0000
committerAlex Deucher <[email protected]>2025-06-18 16:19:18 +0000
commit64c3e4a868f1ddde8eee2bb038a2ed0e8f06a247 (patch)
tree8653b3ddd1082caab53f50b515e1de1ed39014f3 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amd/pm: Show default gfx clock levels (diff)
downloadkernel-64c3e4a868f1ddde8eee2bb038a2ed0e8f06a247.tar.gz
kernel-64c3e4a868f1ddde8eee2bb038a2ed0e8f06a247.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index efd6bff95e4e..7f8fa69300bf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -2576,7 +2576,7 @@ static int amdgpu_pmops_prepare(struct device *dev)
static void amdgpu_pmops_complete(struct device *dev)
{
- /* nothing to do */
+ amdgpu_device_complete(dev_get_drvdata(dev));
}
static int amdgpu_pmops_suspend(struct device *dev)