mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 02:31:27 +02:00
drm/amdgpu: Check if AID is active before access
Access XGMI registers only if AID is active. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d4a640d4b9
commit
baf75a087c
|
|
@ -333,6 +333,10 @@ static u32 xgmi_v6_4_get_link_status(struct amdgpu_device *adev, int global_link
|
|||
}
|
||||
|
||||
i = global_link_num / n;
|
||||
|
||||
if (!(adev->aid_mask & BIT(i)))
|
||||
return U32_MAX;
|
||||
|
||||
addr += adev->asic_funcs->encode_ext_smn_addressing(i);
|
||||
|
||||
return RREG32_PCIE_EXT(addr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user