drm/amdgpu/sriov: Need to initialize the HDP_NONSURFACE_BAStE
Subsystems (2)
PATCH 1/1 drm/amdgpu/sriov: Need to initialize the HDP_NONSURFACE_BAStE
it requires to initialize HDP_NONSURFACE_BASE, so as to avoid using the value left by a previous VM under sriov scenario.
v2: it should not hurt baremetal, generalize it for both sriov and baremetal
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
@@ -1181,6 +1181,9 @@ static int gmc_v9_0_gart_enable(struct amdgpu_device *adev) tmp =RREG32_SOC15 (HDP ,0 , mmHDP_HOST_PATH_CNTL);WREG32_SOC15 (HDP ,0 , mmHDP_HOST_PATH_CNTL, tmp); +WREG32_SOC15 (HDP ,0 , mmHDP_NONSURFACE_BASE, (adev->gmc.vram_start >>8 )); +WREG32_SOC15 (HDP ,0 , mmHDP_NONSURFACE_BASE_HI, (adev->gmc.vram_start >>40 )); +/* After HDP is initialized, flush HDP.*/ adev->nbio_funcs->hdp_flush (adev,NULL );
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1557831559-6925-1-git-send-email-Tiecheng.Zhou-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 14.05.19 um 12:59 schrieb Tiecheng Zhou:
Quoted 8 lines
it requires to initialize
HDP_NONSURFACE_BASE, so as to avoid using the value left by a previous VM under sriov scenario.v2: it should not hurt baremetal, generalize it for both sriov and baremetal
Signed-off-by Emily Deng <[email protected]>Signed-off-by Tiecheng Zhou <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static int gmc_v9_0_gart_enable(struct amdgpu_device *adev) · line 1189
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3
-0@@ -1181,6 +1181,9 @@ static int gmc_v9_0_gart_enable(struct amdgpu_device *adev) tmp =RREG32_SOC15 (HDP ,0 , mmHDP_HOST_PATH_CNTL);WREG32_SOC15 (HDP ,0 , mmHDP_HOST_PATH_CNTL, tmp); +WREG32_SOC15 (HDP ,0 , mmHDP_NONSURFACE_BASE, (adev->gmc.vram_start >>8 )); +WREG32_SOC15 (HDP ,0 , mmHDP_NONSURFACE_BASE_HI, (adev->gmc.vram_start >>40 )); +/* After HDP is initialized, flush HDP.*/ adev->nbio_funcs->hdp_flush (adev,NULL );
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx