Skip to content

Commit 73cb81d

Browse files
Hawking Zhangalexdeucher
authored andcommitted
drm/amdgpu: Packed socket_id to ras feature mask
Initialize RAS feature mask bit[31:29] with socket_id. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent fb1e917 commit 73cb81d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2919,6 +2919,11 @@ int amdgpu_ras_init(struct amdgpu_device *adev)
29192919

29202920
amdgpu_ras_query_poison_mode(adev);
29212921

2922+
/* Packed socket_id to ras feature mask bits[31:29] */
2923+
if (adev->smuio.funcs &&
2924+
adev->smuio.funcs->get_socket_id)
2925+
con->features |= ((adev->smuio.funcs->get_socket_id(adev)) << 29);
2926+
29222927
/* Get RAS schema for particular SOC */
29232928
con->schema = amdgpu_get_ras_schema(adev);
29242929

0 commit comments

Comments
 (0)