From: Guchun Chen Date: Wed, 11 Sep 2019 03:07:15 +0000 (+0800) Subject: drm/amdgpu: support pcie bif ras query and inject X-Git-Tag: v5.15~4946^2~37^2~239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7bd680d4047921b18fd90480c577a38178ed09d;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: support pcie bif ras query and inject Call pcie bif ras query/inject in amdgpu ras. Signed-off-by: Tao Zhou Signed-off-by: Guchun Chen Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 994d2b34094c..faf6863ca785 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -656,6 +656,10 @@ int amdgpu_ras_error_query(struct amdgpu_device *adev, if (adev->mmhub_funcs->query_ras_error_count) adev->mmhub_funcs->query_ras_error_count(adev, &err_data); break; + case AMDGPU_RAS_BLOCK__PCIE_BIF: + if (adev->nbio.funcs->query_ras_error_count) + adev->nbio.funcs->query_ras_error_count(adev, &err_data); + break; default: break; } @@ -705,6 +709,7 @@ int amdgpu_ras_error_inject(struct amdgpu_device *adev, case AMDGPU_RAS_BLOCK__UMC: case AMDGPU_RAS_BLOCK__MMHUB: case AMDGPU_RAS_BLOCK__XGMI_WAFL: + case AMDGPU_RAS_BLOCK__PCIE_BIF: ret = psp_ras_trigger_error(&adev->psp, &block_info); break; default: