Skip to contentSkip to conversation

drm/amdgpu/gmc11: disable AGP aperture

PATCH In review Alex Deucher 3 participants 5 messages Nov 9, 2023 – Nov 10, 2023

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/3 drm/amdgpu/gmc11: disable AGP aperture

We've had misc reports of random IOMMU page faults when this is used. It's just a rarely used optimization anyway, so let's just disable it.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +0 -3
index 6dce9b29f675..e1cac5da9c4b 100644
@@ -640,9 +640,6 @@ static void gmc_v11_0_vram_gtt_location(struct amdgpu_device *adev,
 	amdgpu_gmc_set_agp_default(adev, mc);
 	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
 	amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_HIGH);
-	if (!amdgpu_sriov_vf(adev) ||
-	    (amdgpu_ip_version(adev, GC_HWIP, 0) < IP_VERSION(11, 5, 0)))
-		amdgpu_gmc_agp_location(adev, mc);
 
 	/* base offset of vram pages */
 	if (amdgpu_sriov_vf(adev))
Signature · 1 line
2.41.0
author maintainer
#1 lore raw

PATCH 2/3 drm/amdgpu/gmc10: disable AGP aperture

We've had misc reports of random IOMMU page faults when this is used. It's just a rarely used optimization anyway, so let's just disable it.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +0 -2
index 0ec7b061d7c2..8eb4db3dd931 100644
@@ -675,8 +675,6 @@ static void gmc_v10_0_vram_gtt_location(struct amdgpu_device *adev,
 	amdgpu_gmc_set_agp_default(adev, mc);
 	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
 	amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_BEST_FIT);
-	if (!amdgpu_sriov_vf(adev))
-		amdgpu_gmc_agp_location(adev, mc);
 
 	/* base offset of vram pages */
 	adev->vm_manager.vram_base_offset = adev->gfxhub.funcs->get_mc_fb_offset(adev);
Signature · 1 line
2.41.0
author maintainer
#2 lore raw

PATCH 3/3 drm/amdgpu/gmc9: disable AGP aperture

In reply to Alex Deucher

We've had misc reports of random IOMMU page faults when this is used. It's just a rarely used optimization anyway, so let's just disable it.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0 -2
index 05fb57540e35..39a0251ba60e 100644
@@ -1627,8 +1627,6 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev,
 	} else {
 		amdgpu_gmc_vram_location(adev, mc, base);
 		amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_BEST_FIT);
-		if (!amdgpu_sriov_vf(adev))
-			amdgpu_gmc_agp_location(adev, mc);
 	}
 	/* base offset of vram pages */
 	adev->vm_manager.vram_base_offset = adev->gfxhub.funcs->get_mc_fb_offset(adev);
Signature · 1 line
2.41.0
Reviewed-by on v1 1/3
#3 lore raw
In reply to Alex Deucher

Series is

Best Regards,
Kevin

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, November 9, 2023 10:42 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH 1/3] drm/amdgpu/gmc11: disable AGP aperture

We've had misc reports of random IOMMU page faults when this is used. It's just a rarely used optimization anyway, so let's just disable it.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +0 -3
index 6dce9b29f675..e1cac5da9c4b 100644
@@ -640,9 +640,6 @@ static void gmc_v11_0_vram_gtt_location(struct amdgpu_device *adev,
 	amdgpu_gmc_set_agp_default(adev, mc);
 	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
 	amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_HIGH);
-	if (!amdgpu_sriov_vf(adev) ||
-	    (amdgpu_ip_version(adev, GC_HWIP, 0) < IP_VERSION(11, 5, 0)))
-		amdgpu_gmc_agp_location(adev, mc);
 
 	/* base offset of vram pages */
 	if (amdgpu_sriov_vf(adev))

--
2.41.0

Acked-by on v1 1/3
#4 lore raw
In reply to Alex Deucher

Am 09.11.23 um 15:41 schrieb Alex Deucher:

Quoted 5 lines

We've had misc reports of random IOMMU page faults when this is used. It's just a rarely used optimization anyway, so let's just disable it.

Quoted 18 lines
---
  drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 3 ---
  1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +0 -3
index 6dce9b29f675..e1cac5da9c4b 100644
@@ -640,9 +640,6 @@ static void gmc_v11_0_vram_gtt_location(struct amdgpu_device *adev,
  	amdgpu_gmc_set_agp_default(adev, mc);
  	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
  	amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_HIGH);
-	if (!amdgpu_sriov_vf(adev) ||
-	    (amdgpu_ip_version(adev, GC_HWIP, 0) < IP_VERSION(11, 5, 0)))
-		amdgpu_gmc_agp_location(adev, mc);
 
  	/* base offset of vram pages */
  	if (amdgpu_sriov_vf(adev))