aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2023-11-29 20:44:25 +0000
committerAlex Deucher <[email protected]>2023-12-06 21:05:32 +0000
commitdab96d8b61aab1a4f99d0b86964a6c40e7bb1756 (patch)
treef1065afde03b445a215751ccd49c282c4b97dd1d /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amdgpu: Avoid querying DRM MGCG status (diff)
downloadkernel-dab96d8b61aab1a4f99d0b86964a6c40e7bb1756.tar.gz
kernel-dab96d8b61aab1a4f99d0b86964a6c40e7bb1756.zip
drm/amdgpu: fix buffer funcs setting order on suspend
We need to disable this after the last eviction call, but before we disable the SDMA IP. Fixes: b70438004a14 ("drm/amdgpu: move buffer funcs setting up a level") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Luben Tuikov <[email protected]> Tested-by: Phillip Susi <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: Phillip Susi <[email protected]> Cc: Luben Tuikov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 1cc1ae2743c1..1f64d8cbb14d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -4527,6 +4527,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
if (r)
return r;
+ amdgpu_ttm_set_buffer_funcs_status(adev, false);
+
amdgpu_fence_driver_hw_fini(adev);
amdgpu_device_ip_suspend_phase2(adev);