diff options
author | 2023-07-20 15:25:15 +0800 | |
---|---|---|
committer | 2023-07-25 13:47:26 -0400 | |
commit | 9bc12db4e2f62fe257ce02a8d4aa20e9c47fbe0e (patch) | |
tree | 9036ec0a5ed6a405b36616eba8fa4a9516ed4b00 /drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | |
parent | drm/amdgpu: add VISIBLE info in amdgpu_bo_print_info (diff) | |
download | linux-rng-9bc12db4e2f62fe257ce02a8d4aa20e9c47fbe0e.tar.xz linux-rng-9bc12db4e2f62fe257ce02a8d4aa20e9c47fbe0e.zip |
drm/amdgpu: fix the indexing issue during rlcg access ctrl init
In case that the GET_INST() is used for looping, only loops for the
times of actual num of xcc, otherwise GET_INST() will return the invalid
index, a.k.a -1
And also remove the redundant mask checking in case of GET_INST()
Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c')
0 files changed, 0 insertions, 0 deletions