Skip to content

Commit bc0f808

Browse files
candicelicyalexdeucher
authored andcommitted
drm/amdgpu: Extend poison mode check to SDMA/VCN/JPEG
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>
1 parent cd11589 commit bc0f808

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3148,7 +3148,10 @@ int amdgpu_ras_is_supported(struct amdgpu_device *adev,
31483148
* that the ras block supports ras function.
31493149
*/
31503150
if (!ret &&
3151-
block == AMDGPU_RAS_BLOCK__GFX &&
3151+
(block == AMDGPU_RAS_BLOCK__GFX ||
3152+
block == AMDGPU_RAS_BLOCK__SDMA ||
3153+
block == AMDGPU_RAS_BLOCK__VCN ||
3154+
block == AMDGPU_RAS_BLOCK__JPEG) &&
31523155
amdgpu_ras_is_poison_mode_supported(adev) &&
31533156
amdgpu_ras_get_ras_block(adev, block, 0))
31543157
ret = 1;

0 commit comments

Comments
 (0)