From: Peng Ju Zhou Date: Fri, 23 Apr 2021 05:36:18 +0000 (+0800) Subject: drm/amdgpu: Skip the program of GRBM_CAM* in SRIOV X-Git-Tag: accepted/tizen/unified/20230118.172025~6864^2~23^2~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0972f8c21d2f1683329e7dddb45b0ed0a1b2fd9;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: Skip the program of GRBM_CAM* in SRIOV KMD should not the program these registers, so skip them in the SRIOV environment. Signed-off-by: Peng Ju Zhou Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 2408ed4..bee5791 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -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);