drm/amdgpu: Packed socket_id to ras feature mask
Initialize RAS feature mask bit[31:29] with socket_id. Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fb1e917199
commit
73cb81dc54
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user