drm/amdgpu: limit GDS clearing workaround in cold boot sequence
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6 -3
@@ -4320,9 +4320,12 @@ static int gfx_v9_0_ecc_late_init(void *handle)struct amdgpu_device *adev = (struct amdgpu_device *)handle;int r; - r =gfx_v9_0_do_edc_gds_workarounds (adev); -if (r) -return r; +/* limit gds clearing operation in cold boot sequence */ +if (!adev->in_suspend) { + r =gfx_v9_0_do_edc_gds_workarounds (adev); +if (r) +return r; + }/* requires IBs so do in late init after IB pool is initialized */ r =gfx_v9_0_do_edc_gpr_workarounds (adev);
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 10.02.20 um 09:33 schrieb Guchun Chen:
Quoted 9 lines
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 -110As 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.
Mhm, why doesn't this also apply for suspend/resume?
I mean the hardware is usually turned off which is equivalent to a cold boot up?
Christian.
Quoted 17 lines
Signed-off-by Guchun Chen <[email protected]>Reviewed-by Hawking Zhang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0
-2@@ -4320,9 +4320,12 @@ static int gfx_v9_0_ecc_late_init(void *handle)struct amdgpu_device *adev = (struct amdgpu_device *)handle;int r; - r =gfx_v9_0_do_edc_gds_workarounds (adev); -if (r)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static int gfx_v9_0_ecc_late_init(void *handle) · line 4331
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6
-1-return r; +/* limit gds clearing operation in cold boot sequence */ +if (!adev->in_suspend) { + r =gfx_v9_0_do_edc_gds_workarounds (adev); +if (r) +return r; + }/* requires IBs so do in late init after IB pool is initialized */ r =gfx_v9_0_do_edc_gpr_workarounds (adev);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx