drm/amdgpu: Extend poison mode check to SDMA/VCN/JPEG
authorCandice Li <candice.li@amd.com>
Tue, 8 Aug 2023 08:59:18 +0000 (16:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:46:05 +0000 (09:46 -0400)
Treat SDMA/VCN/JPEG as RAS capable IP blocks in poison mode.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index 00658c2816dc2f38206ba513f578e963af25de02..886c7c6f1c3b3e805e455fed3e163571022082ea 100644 (file)
@@ -3148,7 +3148,10 @@ int amdgpu_ras_is_supported(struct amdgpu_device *adev,
         * that the ras block supports ras function.
         */
        if (!ret &&
-           block == AMDGPU_RAS_BLOCK__GFX &&
+           (block == AMDGPU_RAS_BLOCK__GFX ||
+            block == AMDGPU_RAS_BLOCK__SDMA ||
+            block == AMDGPU_RAS_BLOCK__VCN ||
+            block == AMDGPU_RAS_BLOCK__JPEG) &&
            amdgpu_ras_is_poison_mode_supported(adev) &&
            amdgpu_ras_get_ras_block(adev, block, 0))
                ret = 1;