Skip to contentSkip to conversation

drm/nouveau: enlarge GART aperture

PATCH In review Luca Barbieri 2 participants 2 messages Jan 28, 2010 – Feb 4, 2010 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: enlarge GART aperture

This patch enlarges the PCI GART aperture to 512 MB.

The current 64MB aperture is too small and should be enlarged. The optimal amound may be card/system-dependent, so a more sophisticated approach may be preferable.
In particular, if RAMIN is less than 1MB, a 512MB aperture won't fit.

---
 drivers/gpu/drm/nouveau/nouveau_sgdma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nouveau_sgdma.c +1 -1
index 4c7f1e4..2ca44cc 100644
@@ -227,7 +227,7 @@ nouveau_sgdma_init(struct drm_device *dev)
 	int i, ret;
 
 	if (dev_priv->card_type < NV_50) {
-		aper_size = (64 * 1024 * 1024);
+		aper_size = (512 * 1024 * 1024);
 		obj_size  = (aper_size >> NV_CTXDMA_PAGE_SHIFT) * 4;
 		obj_size += 8; /* ctxdma header */
 	} else {
Signature · 1 line
1.6.6.1.476.g01ddb

A message that is not in the archive (sent off-list or not yet received): 1264703119-6482-1-git-send-email-luca-Ukmtq+NC3rhBHFWNQifrYwC/[email protected]

#2 lore raw
Quoted 6 lines · Luca Barbieri

This patch enlarges the PCI GART aperture to 512 MB.

The current 64MB aperture is too small and should be enlarged. The optimal amound may be card/system-dependent, so a more sophisticated approach may be preferable.
In particular, if RAMIN is less than 1MB, a 512MB aperture won't fit.

This is something I've been meaning to do for a while, it keeps slipping my mind however.

A NACK on the patch as it currently is from me though, I believe it may break on some really early cards (not 100% sure, but we should be before doing it). If it does break them, the patch should be adjusted for that..

Ben.

Quoted 19 lines
---
 drivers/gpu/drm/nouveau/nouveau_sgdma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nouveau_sgdma.c +1 -1
index 4c7f1e4..2ca44cc 100644
@@ -227,7 +227,7 @@ nouveau_sgdma_init(struct drm_device *dev)
 	int i, ret;
 
 	if (dev_priv->card_type < NV_50) {
-		aper_size = (64 * 1024 * 1024);
+		aper_size = (512 * 1024 * 1024);
 		obj_size  = (aper_size >> NV_CTXDMA_PAGE_SHIFT) * 4;
 		obj_size += 8; /* ctxdma header */
 	} else {