drm/amdgpu: Fix SWS on multi-XCD GPU
authorAmber Lin <Amber.Lin@amd.com>
Tue, 12 Apr 2022 19:37:15 +0000 (15:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:46:48 +0000 (09:46 -0400)
commita058799923af7984552c6c07d6bbb088c1537e6a
tree8a52f0f5ba348f6c3f1fd03280a35940d7b0d117
parent9cd51d53695e1df134301c1bdb8a8f965506e35b
drm/amdgpu: Fix SWS on multi-XCD GPU

GFX_9_4_3 supports multi-XCDs and multi-AIDs in one GPU device. SWS needs
to program IH_VMID_x_LUT with specified XCC instance and corresponded
AID instance.

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gc_9_4_3.c