]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: correct sienna_cichlid SDMA RLC register offset error
authorKevin Wang <kevin1.wang@amd.com>
Wed, 19 May 2021 03:03:11 +0000 (11:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 14:31:58 +0000 (10:31 -0400)
commit8200b1cd85bb3a129a2fa6c21aa78ad9c89be3c7
tree2b45887d4b35f56618c89a6ddec1b67f692288fd
parent78842457127d060296c46cbe0ab5062965b0fa24
drm/amdkfd: correct sienna_cichlid SDMA RLC register offset error

1.correct KFD SDMA RLC queue register offset error.
(all sdma rlc register offset is base on SDMA0.RLC0_RLC0_RB_CNTL)
2.HQD_N_REGS (19+6+7+12)
  12: the 2 more resgisters than navi1x (SDMAx_RLCy_MIDCMD_DATA{9,10})

the patch also can be fixed NULL pointer issue when read
/sys/kernel/debug/kfd/hqds on sienna_cichlid chip.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c