Skip to content

Commit 07615da

Browse files
Tao Zhoualexdeucher
authored andcommitted
drm/amdgpu: enable RAS for VCN/JPEG v4.0
Set support flag for VCN/JPEG 4.0. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 1a11a65 commit 07615da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,8 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)
23482348
adev->ras_hw_enabled |= ~(1 << AMDGPU_RAS_BLOCK__UMC |
23492349
1 << AMDGPU_RAS_BLOCK__DF);
23502350

2351-
if (adev->ip_versions[VCN_HWIP][0] == IP_VERSION(2, 6, 0))
2351+
if (adev->ip_versions[VCN_HWIP][0] == IP_VERSION(2, 6, 0) ||
2352+
adev->ip_versions[VCN_HWIP][0] == IP_VERSION(4, 0, 0))
23522353
adev->ras_hw_enabled |= (1 << AMDGPU_RAS_BLOCK__VCN |
23532354
1 << AMDGPU_RAS_BLOCK__JPEG);
23542355
else

0 commit comments

Comments
 (0)