]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: Modify GC register access from MMIO to RLCG in file nv.c
authorPeng Ju Zhou <PengJu.Zhou@amd.com>
Fri, 23 Apr 2021 05:13:41 +0000 (13:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 14:32:08 +0000 (10:32 -0400)
In SRIOV environment, KMD should access GC registers
with RLCG if GC indirect access flag enabled.

Signed-off-by: Peng Ju Zhou <PengJu.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index ec5f835f60f217ea81781b5e1562dc0dec6cafe1..437db0783b6497f7293bc78d207e806c2af5bd53 100644 (file)
@@ -466,7 +466,7 @@ void nv_grbm_select(struct amdgpu_device *adev,
        grbm_gfx_cntl = REG_SET_FIELD(grbm_gfx_cntl, GRBM_GFX_CNTL, VMID, vmid);
        grbm_gfx_cntl = REG_SET_FIELD(grbm_gfx_cntl, GRBM_GFX_CNTL, QUEUEID, queue);
 
-       WREG32(SOC15_REG_OFFSET(GC, 0, mmGRBM_GFX_CNTL), grbm_gfx_cntl);
+       WREG32_SOC15(GC, 0, mmGRBM_GFX_CNTL, grbm_gfx_cntl);
 }
 
 static void nv_vga_set_state(struct amdgpu_device *adev, bool state)