]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm/amdgpu: fix buffer funcs setting order on suspend harder
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Dec 2023 16:28:30 +0000 (11:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Dec 2023 17:37:56 +0000 (12:37 -0500)
Part of commit dab96d8b61aa ("drm/amdgpu: fix buffer funcs setting order on suspend")
got dropped accidently.  Add it back.

Fixes: dab96d8b61aa ("drm/amdgpu: fix buffer funcs setting order on suspend")
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 1f64d8cbb14df8cd210271107b8cf8bb045249df..8dee52ce26d0cb07d5787218a5ec5b1ea4ba501b 100644 (file)
@@ -4516,8 +4516,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
 
        amdgpu_ras_suspend(adev);
 
-       amdgpu_ttm_set_buffer_funcs_status(adev, false);
-
        amdgpu_device_ip_suspend_phase1(adev);
 
        if (!adev->in_s0ix)