]> 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>
Wed, 13 Dec 2023 20:09:52 +0000 (15:09 -0500)
Part of commit c03581986234 ("drm/amdgpu: fix buffer funcs setting order on suspend")
got dropped accidently.  Add it back.

Fixes: c03581986234 ("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 138c7b37af698d73d23836966a9266eba95eadab..f58fb719292d1e7fe41b5badd46800c433478106 100644 (file)
@@ -4589,8 +4589,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)