drm/amdgpu: ignoring unsupported ras blocks when MCA bank dispatches
Subsystems (2)
PATCH 1/1 drm/amdgpu: ignoring unsupported ras blocks when MCA bank dispatches
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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c +1 -1
@@ -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)
Signature · 1 line
2.34.1
Ping...
Best Regards,
Kevin
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yang Wang
Sent: 2024年5月6日 14:47
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>
Subject: [PATCH] drm/amdgpu: ignoring unsupported ras blocks when MCA bank dispatches
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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c +1 -1
@@ -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)
Signature · 1 line
2.34.1
Li, Candice
Reviewed-by[AMD Official Use Only - General]
Thanks,
Candice
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Tuesday, May 7, 2024 9:36 AM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Zhou, Hao (Claire) <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: ignoring unsupported ras blocks when MCA bank dispatches
Ping...
Best Regards,
Kevin
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yang Wang
Sent: 2024年5月6日 14:47
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>
Subject: [PATCH] drm/amdgpu: ignoring unsupported ras blocks when MCA bank dispatches
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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c +1 -1
@@ -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)
--
2.34.1