AGP aperture is deprecated and no longer functional. v2: fix typo (Alex) v3: just skip the agp setup call v4: revert back to the original model Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> --- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c index 28dc08fe542b..9de5659ecfba 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c @@ -741,7 +741,8 @@ static int gmc_v11_0_mc_init(struct amdgpu_device *adev) else adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; - if (amdgpu_sriov_vf(adev)) + if (amdgpu_sriov_vf(adev) || + (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(11, 5, 0))) adev->gmc.disable_agp = true; gmc_v11_0_vram_gtt_location(adev, &adev->gmc); -- 2.41.0