Skip to content

Commit dab96d8

Browse files
committed
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: b704380 ("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]>
1 parent 27b024a commit dab96d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4527,6 +4527,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
45274527
if (r)
45284528
return r;
45294529

4530+
amdgpu_ttm_set_buffer_funcs_status(adev, false);
4531+
45304532
amdgpu_fence_driver_hw_fini(adev);
45314533

45324534
amdgpu_device_ip_suspend_phase2(adev);

0 commit comments

Comments
 (0)