drm/amdkfd: fix the wrong sdma instance query for renoir
authorHuang Rui <ray.huang@amd.com>
Tue, 11 Aug 2020 05:54:56 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Aug 2020 21:54:12 +0000 (17:54 -0400)
commit34174b89bfa495bed9cddcc504fb38feca90fab7
tree428fdd8bca247dd40b1e7c2577e6c44f88ffc5b9
parent0a668aee0ac288cf36a554eb7f270be2ca8ef476
drm/amdkfd: fix the wrong sdma instance query for renoir

Renoir only has one sdma instance, it will get failed once query the
sdma1 registers. So use switch-case instead of static register array.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c