[PATCH 4/4] drm/amdgpu/gmc11: disable AGP on GC 11.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AGP aperture is deprecated and no longer functional.

Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
index 6947b598e9b2..7ee91b66f761 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
@@ -745,6 +745,9 @@ static int gmc_v11_0_mc_init(struct amdgpu_device *adev)
 		adev->gmc.gart_placement = AMDGPU_GART_PLACEMENT_LOW;
 	else
 		adev->gmc.gart_placement = AMDGPU_GART_PLACEMENT_HIGH;
+	/* AGP aperture is removed on GC11.5 */
+	if (amdgpu_ip_version(adev, GC_HWIP, -2) >= IP_VERSION(11, 5, 0))
+		adev->gmc.no_agp = true;
 
 	gmc_v11_0_vram_gtt_location(adev, &adev->gmc);
 
-- 
2.41.0




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux