]> git.ipfire.org Git - people/ms/linux.git/commitdiff
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 18:25:39 +0000 (14:25 -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 55284b24f113934bcf9470be8ab8c03805dbd3b8..2e50db3b761e4697d0426f9abb3654c85975019d 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: