drm/amdgpu: limit GDS clearing workaround in cold boot sequence
authorGuchun Chen <guchun.chen@amd.com>
Sun, 9 Feb 2020 08:21:09 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Feb 2020 20:37:02 +0000 (15:37 -0500)
commit2cabe0d4cd88f7386e9c5a82236ceda46080a80b
tree287f3a54de005e791ba3fe5c086022c064ae6d70
parent46d1da733fbc867cd3c3aabec21aeaacd9a41771
drm/amdgpu: limit GDS clearing workaround in cold boot sequence

GDS clear workaround will cause gfx failure in suspend/resume case.

[   98.679559] [drm:amdgpu_device_ip_late_init [amdgpu]] *ERROR* late_init of IP block <gfx_v9_0> failed -110
[   98.679561] PM: dpm_run_callback(): pci_pm_resume+0x0/0xa0 returns -110
[   98.679562] PM: Device 0000:03:00.0 failed to resume async: error -110

As this workaround is specific to the HW bug of GDS's ECC error
existing in cold boot up, so bypass this workaround in suspend/
resume case after booting up.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c