drm/amdgpu: Check if AID is active before access
Subsystems (2)
PATCH 1/1 drm/amdgpu: Check if AID is active before access
Access XGMI registers only if AID is active.
Signed-off-by Lijo Lazar <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +4 -0
@@ -336,6 +336,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);
Signature · 1 line
2.49.0
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Asad Kamal <[email protected]>
Thanks & Regards
Asad
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Thursday, November 6, 2025 6:49 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>; Kamal, Asad <[email protected]>
Subject: [PATCH] drm/amdgpu: Check if AID is active before access
Access XGMI registers only if AID is active.
Signed-off-by Lijo Lazar <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +4 -0
@@ -336,6 +336,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);
--
2.49.0