aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
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.h
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.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 09f45ff40057..5e2f086d2c99 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1620,6 +1620,7 @@ void amdgpu_driver_release_kms(struct drm_device *dev);
int amdgpu_device_ip_suspend(struct amdgpu_device *adev);
int amdgpu_device_prepare(struct drm_device *dev);
+void amdgpu_device_complete(struct drm_device *dev);
int amdgpu_device_suspend(struct drm_device *dev, bool fbcon);
int amdgpu_device_resume(struct drm_device *dev, bool fbcon);
u32 amdgpu_get_vblank_counter_kms(struct drm_crtc *crtc);