Skip to content

Commit

Permalink
drm/amdgpu: Packed socket_id to ras feature mask
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Hawking Zhang authored and alexdeucher committed Jan 9, 2024
1 parent fb1e917 commit 73cb81d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -2919,6 +2919,11 @@ int amdgpu_ras_init(struct amdgpu_device *adev)

amdgpu_ras_query_poison_mode(adev);

/* Packed socket_id to ras feature mask bits[31:29] */
if (adev->smuio.funcs &&
adev->smuio.funcs->get_socket_id)
con->features |= ((adev->smuio.funcs->get_socket_id(adev)) << 29);

/* Get RAS schema for particular SOC */
con->schema = amdgpu_get_ras_schema(adev);

Expand Down

0 comments on commit 73cb81d

Please sign in to comment.