aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2025-06-02 01:44:32 +0000
committerAlex Deucher <[email protected]>2025-06-18 16:19:18 +0000
commit45cc102f8e6520ac07637c7e09f61dcc3772e125 (patch)
treed97a2433e7344dcce78ea8f714e088de72dc6bad /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
parentdrm/amd/display: Stop storing failures into adev->dm.cached_state (diff)
downloadkernel-45cc102f8e6520ac07637c7e09f61dcc3772e125.tar.gz
kernel-45cc102f8e6520ac07637c7e09f61dcc3772e125.zip
drm/amd/display: Destroy cached state in complete() callback
[Why] When the suspend sequence has been aborted after prepare() but before suspend() the resume() callback never gets called. The PM core will call complete() when this happens. As the state has been cached in prepare() it needs to be destroyed in complete() if it's still around. [How] Create a helper for destroying cached state and call it both in resume() and complete() callbacks. If resume has been called the state will be destroyed and it's a no-op for complete(). If resume hasn't been called (such as an aborted suspend) then destroy the state in complete(). Fixes: 50e0bae34fa6 ("drm/amd/display: Add and use new dm_prepare_suspend() callback") 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_sdma.c')
0 files changed, 0 insertions, 0 deletions