drm/amdgpu: Need to resume ras during gpu reset for gfx v9_4_3 sriov
authorYiPeng Chai <YiPeng.Chai@amd.com>
Tue, 30 Jan 2024 12:03:39 +0000 (20:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jan 2024 19:05:18 +0000 (14:05 -0500)
Need to resume ras during gpu reset for
gfx v9_4_3 sriov

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 6a930c9..d534e19 100644 (file)
@@ -5695,6 +5695,7 @@ retry:    /* Rest of adevs pre asic reset from XGMI hive. */
                /* Aldebaran and gfx_11_0_3 support ras in SRIOV, so need resume ras during reset */
                if (amdgpu_ip_version(adev, GC_HWIP, 0) ==
                            IP_VERSION(9, 4, 2) ||
+                   amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 4, 3) ||
                    amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(11, 0, 3))
                        amdgpu_ras_resume(adev);
        } else {