drm/amdgpu: only allow error injection to UMC IP block
error injection to other IP blocks (except UMC) will be enabled until RAS feature stablize on those IP blocks Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
4d249d3abd
commit
a5dd40ca81
@@ -689,6 +689,12 @@ int amdgpu_ras_error_inject(struct amdgpu_device *adev,
|
|||||||
if (!obj)
|
if (!obj)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (block_info.block_id != TA_RAS_BLOCK__UMC) {
|
||||||
|
DRM_INFO("%s error injection is not supported yet\n",
|
||||||
|
ras_block_str(info->head.block));
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
ret = psp_ras_trigger_error(&adev->psp, &block_info);
|
ret = psp_ras_trigger_error(&adev->psp, &block_info);
|
||||||
if (ret)
|
if (ret)
|
||||||
DRM_ERROR("RAS ERROR: inject %s error failed ret %d\n",
|
DRM_ERROR("RAS ERROR: inject %s error failed ret %d\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user