]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: Skip the program of GRBM_CAM* in SRIOV
authorPeng Ju Zhou <PengJu.Zhou@amd.com>
Fri, 23 Apr 2021 05:36:18 +0000 (13:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:37:59 +0000 (22:37 -0400)
KMD should not the program these registers,
so skip them in the SRIOV environment.

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

index 2408ed4c7d847c570355442f88cefb3bbbf4bd47..bee5791f8980b90aaee8784a00754fe67d2b741c 100644 (file)
@@ -7114,6 +7114,9 @@ static void gfx_v10_0_setup_grbm_cam_remapping(struct amdgpu_device *adev)
 {
        uint32_t data;
 
+       if (amdgpu_sriov_vf(adev))
+               return;
+
        /* initialize cam_index to 0
         * index will auto-inc after each data writting */
        WREG32_SOC15(GC, 0, mmGRBM_CAM_INDEX, 0);