OSDN Git Service

drm/amdgpu: Modify register access in sdma_v5_2 to use _SOC15 macros
authorRohit Khaire <rohit.khaire@amd.com>
Fri, 4 Jun 2021 19:34:14 +0000 (15:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Jun 2021 18:56:53 +0000 (14:56 -0400)
commitcf2a22e4080d8de3693bd11c288d34a6ea9d02fc
tree7bf38e02fedd88afe82294377aaf31436f02ab11
parent3e88cbb0d02a852369455323df3fa86fdd37eee3
drm/amdgpu: Modify register access in sdma_v5_2 to use _SOC15 macros

In SRIOV environment, KMD should access SDMA registers
through RLCG if GC indirect access flag enabled.

Using _SOC15 read/write macros ensures that they go
through RLC when the flag is enabled.

Signed-off-by: Rohit Khaire <rohit.khaire@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c