drm/amdgpu: Skip program gfxhub_v3_0_3 system aperture registers under SRIOV
Subsystems (2)
PATCH v2 1/1 drm/amdgpu: Skip program gfxhub_v3_0_3 system aperture registers under SRIOV
[Why]gfxhub_v3_0_3 system aperture registers are removed from RLCG register access range.
[How]
Skip access gfxhub_v3_0_3 system aperture registers under SRIOV VF. These registers will be programmed on host side.
Signed-off-by Yifan Zha <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c +3 -0
@@ -154,6 +154,9 @@ static void gfxhub_v3_0_3_init_system_aperture_regs(struct amdgpu_device *adev) {uint64_t value; +if (amdgpu_sriov_vf (adev)) +return ; +/* Disable AGP. */ WREG32_SOC15 (GC ,0 , regGCMC_VM_AGP_BASE,0 );WREG32_SOC15 (GC ,0 , regGCMC_VM_AGP_TOP,0 );
Signature · 1 line
2.25.1
Quoted 9 lines · Yifan Zha
[Why]
gfxhub_v3_0_3system aperture registers are removed from RLCG register access range.[How]
Skip accessgfxhub_v3_0_3system aperture registers under SRIOV VF. These registers will be programmed on host side.Signed-off-by Yifan Zha <[email protected]>
Series is:
Acked-by Alex Deucher <[email protected]>
Quoted 21 lines
--- drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c +3
-1@@ -154,6 +154,9 @@ static void gfxhub_v3_0_3_init_system_aperture_regs(struct amdgpu_device *adev) {uint64_t value; +if (amdgpu_sriov_vf (adev)) +return ; +/* Disable AGP. */ WREG32_SOC15 (GC ,0 , regGCMC_VM_AGP_BASE,0 );WREG32_SOC15 (GC ,0 , regGCMC_VM_AGP_TOP,0 ); --2.25.1