]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: ignoring unsupported ras blocks when MCA bank dispatches
authorYang Wang <kevinyang.wang@amd.com>
Mon, 6 May 2024 02:41:28 +0000 (10:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:05 +0000 (15:17 -0400)
This patch is used to solve the problem of incorrect parsing of error counts.
When the UE trigger gpu is reset, the driver will attempt to parse all possible ras blocks.
For ras blocks that are not supported by the current ASIC, the driver should ignore this error.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Candice Li <candice.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c

index 7b7040ec61bd743ff77393ab5e11afb5ebb38636..e0fe47c54e754f69ef68093e95f4d9280b1afd28 100644 (file)
@@ -415,7 +415,7 @@ static int amdgpu_mca_dispatch_mca_set(struct amdgpu_device *adev, enum amdgpu_r
 
                count = 0;
                ret = amdgpu_mca_smu_parse_mca_error_count(adev, blk, type, entry, &count);
-               if (ret)
+               if (ret && ret != -EOPNOTSUPP)
                        return ret;
 
                if (!count)