drm/amdgpu: Drop pcie_bif ras check from fatal error handler
Subsystems (2)
PATCH 1/1 drm/amdgpu: Drop pcie_bif ras check from fatal error handler
Some ASICs support fatal error event but do not
support pcie_bif ras.
Signed-off-by Candice Li <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -2
@@ -1597,8 +1597,7 @@ static int amdgpu_ras_fs_fini(struct amdgpu_device *adev)void amdgpu_ras_interrupt_fatal_error_handler (struct amdgpu_device *adev) {/* Fatal error events are handled on host side */ -if (amdgpu_sriov_vf (adev) || - !amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__PCIE_BIF )) +if (amdgpu_sriov_vf (adev))return ; if (adev->nbio.ras &&
Signature · 1 line
2.17.1
[AMD Official Use Only - General]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Candice Li
Sent: Wednesday, April 19, 2023 17:40
To: [email protected]
Cc: Li, Candice <[email protected]>
Subject: [PATCH] drm/amdgpu: Drop pcie_bif ras check from fatal error handler
Some ASICs support fatal error event but do not support pcie_bif ras.
Signed-off-by Candice Li <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -3
@@ -1597,8 +1597,7 @@ static int amdgpu_ras_fs_fini(struct amdgpu_device *adev) void amdgpu_ras_interrupt_fatal_error_handler(struct amdgpu_device *adev) {/* Fatal error events are handled on host side */ -if (amdgpu_sriov_vf (adev) || - !amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__PCIE_BIF )) +if (amdgpu_sriov_vf (adev))return ; if (adev->nbio.ras && --
2.17.1