drm/amdgpu: correct the vmhub index when page fault occurs
authorLe Ma <le.ma@amd.com>
Fri, 9 Dec 2022 11:44:05 +0000 (19:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:50:30 +0000 (09:50 -0400)
commit98b2e9cad2279132e3aa4b9caf9164b2e35c1a52
tree15fad3a321f8d41a256fb1d6a9fecc6bf2f7bfcc
parent1794e9d7e78cb52605234d0ddc3f46084937f4e9
drm/amdgpu: correct the vmhub index when page fault occurs

The AMDGPU_GFXHUB was bind to each xcc in the logical order.
Thus convert the node_id to logical xcc_id to index the
correct AMDGPU_GFXHUB. And "node_id / 4" can get the correct
AMDGPU_MMHUB0 index.

Signed-off-by: Le Ma <le.ma@amd.com>
Tested-by: Asad kamal <asad.kamal@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c