drm/amdgpu: resume ras for gfx v11_0_3 during reset on SRIOV
authorYiPeng Chai <YiPeng.Chai@amd.com>
Tue, 14 Mar 2023 06:13:34 +0000 (14:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Mar 2023 04:58:50 +0000 (00:58 -0400)
Gfx v11_0_3 supports ras on SRIOV, so need to resume ras
during reset.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 3c7ff73..bc15899 100644 (file)
@@ -5347,8 +5347,9 @@ retry:    /* Rest of adevs pre asic reset from XGMI hive. */
                if (r)
                        adev->asic_reset_res = r;
 
-               /* Aldebaran supports ras in SRIOV, so need resume ras during reset */
-               if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2))
+               /* Aldebaran and gfx_11_0_3 support ras in SRIOV, so need resume ras during reset */
+               if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2) ||
+                   adev->ip_versions[GC_HWIP][0] == IP_VERSION(11, 0, 3))
                        amdgpu_ras_resume(adev);
        } else {
                r = amdgpu_do_asic_reset(device_list_handle, reset_context);