drm/amdgpu: Fix register access on GC v9.4.3
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 19 Sep 2022 12:38:25 +0000 (18:08 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:47:08 +0000 (09:47 -0400)
commit5a8b26a88639d69453d592ee11c03a24e0b62b9a
tree11bb98475cf255f0e88d4867205d51f3e68b31b7
parent955220b04d42c41050158fec0f53957f320b96f9
drm/amdgpu: Fix register access on GC v9.4.3

In GC v9.4.3 there are multiple XCCs. It's required to use
physical instance number to get the right register offset. Use
GET_INST API for that.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c