OSDN Git Service

drm/amdgpu: Modify GC register access to use _SOC15 macros
authorRohit Khaire <rohit.khaire@amd.com>
Fri, 4 Jun 2021 16:45:50 +0000 (12:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Jun 2021 20:02:57 +0000 (16:02 -0400)
commit46ed43e67df6648c421504146d5bd020dd0de4eb
tree0e4fb05f444df7c87084231ba845c0fda194977b
parentcec7e80fbff58cdfd6595e7d11d7b2a38545c2e4
drm/amdgpu: Modify GC register access to use _SOC15 macros

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

Using _SOC15 read/write macros ensures that they go
through RLC when 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/amdgpu_amdkfd_gfx_v10_3.c