diff options
| author | Lijo Lazar <lijo.lazar@amd.com> | 2025-11-06 16:14:29 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-11-12 05:54:18 +0300 |
| commit | baf75a087c41eeb03c471099dc5d77e3b068c33b (patch) | |
| tree | c8be61f9f6c33795fd9f97d997ad318bef7325d1 | |
| parent | d4a640d4b9f34aa9472c71986ef4b5a42dbe4f0f (diff) | |
| download | linux-baf75a087c41eeb03c471099dc5d77e3b068c33b.tar.xz | |
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>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index 1ede308a7c67..2f553af1d2a3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c @@ -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); |
