drm/amdgpu: Enable full reset when RAS is supported on gc v11_0_0
authorCandice Li <candice.li@amd.com>
Wed, 7 Sep 2022 07:58:59 +0000 (15:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 16:56:16 +0000 (12:56 -0400)
Enable full reset for RAS supported configuration on gc v11_0_0.

v2: simplify the code.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index a26c5723c46e27a555d5103b438d598fa4d88934..5f0d6983714addea63aee5f5f3c34167beaecbb4 100644 (file)
@@ -421,6 +421,7 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
 {
        switch (adev->ip_versions[GC_HWIP][0]) {
        case IP_VERSION(11, 0, 0):
+               return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);
        case IP_VERSION(11, 0, 2):
                return false;
        default: