drm/amdgpu: support sdma error injection
authorStanley.Yang <Stanley.Yang@amd.com>
Thu, 1 Apr 2021 11:10:54 +0000 (19:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:50:23 +0000 (16:50 -0400)
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reivewed-by: Dennis Li <Dennis.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index c5a73b5..32be6dd 100644 (file)
@@ -925,6 +925,7 @@ int amdgpu_ras_error_inject(struct amdgpu_device *adev,
                        ret = -EINVAL;
                break;
        case AMDGPU_RAS_BLOCK__UMC:
+       case AMDGPU_RAS_BLOCK__SDMA:
        case AMDGPU_RAS_BLOCK__MMHUB:
        case AMDGPU_RAS_BLOCK__PCIE_BIF:
                ret = psp_ras_trigger_error(&adev->psp, &block_info);