Skip to content

Commit baf75a0

Browse files
Lijo Lazaralexdeucher
authored andcommitted
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>
1 parent d4a640d commit baf75a0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ static u32 xgmi_v6_4_get_link_status(struct amdgpu_device *adev, int global_link
333333
}
334334

335335
i = global_link_num / n;
336+
337+
if (!(adev->aid_mask & BIT(i)))
338+
return U32_MAX;
339+
336340
addr += adev->asic_funcs->encode_ext_smn_addressing(i);
337341

338342
return RREG32_PCIE_EXT(addr);

0 commit comments

Comments
 (0)