Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: remove sriov vf gfxhub fb location programming

host driver programmed the gfxhub fb location for vf, no need to
program in guest side.

Signed-off-by: Zhigang Luo <zhigang.luo@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-By : Shaoyun.liu <shaoyunl@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Zhigang Luo and committed by
Alex Deucher
95066fd5 adbe2e3d

-12
-12
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
··· 321 321 322 322 static int gfxhub_v1_0_gart_enable(struct amdgpu_device *adev) 323 323 { 324 - if (amdgpu_sriov_vf(adev) && adev->asic_type != CHIP_ARCTURUS) { 325 - /* 326 - * MC_VM_FB_LOCATION_BASE/TOP is NULL for VF, becuase they are 327 - * VF copy registers so vbios post doesn't program them, for 328 - * SRIOV driver need to program them 329 - */ 330 - WREG32_SOC15_RLC(GC, 0, mmMC_VM_FB_LOCATION_BASE, 331 - adev->gmc.vram_start >> 24); 332 - WREG32_SOC15_RLC(GC, 0, mmMC_VM_FB_LOCATION_TOP, 333 - adev->gmc.vram_end >> 24); 334 - } 335 - 336 324 /* GART Enable. */ 337 325 gfxhub_v1_0_init_gart_aperture_regs(adev); 338 326 gfxhub_v1_0_init_system_aperture_regs(adev);