Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: add fbdev suspend/resume on gpu reset

This can fix the baco reset failure seen on Navi10.
And this should be a low risk fix as the same sequence
is already used for system suspend/resume.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Evan Quan and committed by
Alex Deucher
063e768e 5bbc6604

+4
+4
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 3913 3913 if (r) 3914 3914 goto out; 3915 3915 3916 + amdgpu_fbdev_set_suspend(tmp_adev, 0); 3917 + 3916 3918 /* must succeed. */ 3917 3919 amdgpu_ras_resume(tmp_adev); 3918 3920 ··· 4087 4085 * And add them back after reset completed 4088 4086 */ 4089 4087 amdgpu_unregister_gpu_instance(tmp_adev); 4088 + 4089 + amdgpu_fbdev_set_suspend(adev, 1); 4090 4090 4091 4091 /* disable ras on ALL IPs */ 4092 4092 if (!(in_ras_intr && !use_baco) &&