Skip to contentSkip to conversation

drm/nouveau: fix nv40 gart size

PATCH In review Lucas Stach 2 participants 4 messages Oct 17, 2010 – Oct 19, 2010 1 message not in the archive

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

PATCH 1/1 drm/nouveau: fix nv40 gart size

Nouveau sets GART size to 64MiB for all cards before nv50, but nv40 has enough RAMIN space to support 512MiB GART size. This patch fixes this value to make use of this hardware capability.

---
drivers/gpu/drm/nouveau/nouveau_sgdma.c | 6 +++++-

1 files changed, 5 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
index 7f028fe..388b3e1 100644

drivers/gpu/drm/nouveau/nouveau_sgdma.c +0 -0
@@ -224,7 +224,11 @@ nouveau_sgdma_init(struct drm_device *dev)

int i, ret;

if (dev_priv->card_type < NV_50) {
- aper_size = (64 * 1024 * 1024);
+ if(dev_priv->card_type < NV_40) {
+ aper_size = (64 * 1024 * 1024);
+ } else {
+ aper_size = (512 * 1024 * 1024);
+ }
obj_size = (aper_size >> NV_CTXDMA_PAGE_SHIFT) * 4; obj_size += 8; /* ctxdma header */
} else {

Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 6 lines · Lucas Stach

Nouveau sets GART size to 64MiB for all cards before nv50, but nv40 has enough RAMIN space to support 512MiB GART size. This patch fixes this value to make use of this hardware capability.

---

The patch doesn't seem to apply, I guess it's been corrupted on the way. Can you please resend?

Quoted 19 lines

drivers/gpu/drm/nouveau/nouveau_sgdma.c | 6 +++++-

1 files changed, 5 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nouveau_sgdma.c +5 -1
index 7f028fe..388b3e1 100644
@@ -224,7 +224,11 @@ nouveau_sgdma_init(struct drm_device *dev)
 int i, ret;
 
 if (dev_priv->card_type < NV_50) {
- aper_size = (64 * 1024 * 1024);
+ if(dev_priv->card_type < NV_40) {
+ aper_size = (64 * 1024 * 1024);
+ } else {
+ aper_size = (512 * 1024 * 1024);
+ }
 obj_size  = (aper_size >> NV_CTXDMA_PAGE_SHIFT) * 4;
Quoted 2 lines

obj_size += 8; /* ctxdma header */
} else {

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Oh, yes. It seems my email client had some good lunch with the tabs.

I added the patch as an attachment. Hope it works this time.

-- Lucas

Am Montag, den 18.10.2010, 15:47 +0200 schrieb Francisco Jerez:

Quoted 10 lines
Quoted 6 lines · Lucas Stach

Nouveau sets GART size to 64MiB for all cards before nv50, but nv40 has enough RAMIN space to support 512MiB GART size. This patch fixes this value to make use of this hardware capability.

---

The patch doesn't seem to apply, I guess it's been corrupted on the way. Can you please resend?

From a1dda375b4a03aba7af45f4723b7fc69bdc8421e Mon Sep 17 00:00:00 2001
From: Lucas Stach <[email protected]>
Date: Fri, 15 Oct 2010 22:22:59 +0200
Subject: [PATCH] drm/nouveau: fix nv40 gart size

Nouveau sets GART size to 64MiB for all cards before nv50, but nv40 has enough RAMIN space to support 512MiB GART size. This patch fixes this value to make use of this hardware capability.

---
 drivers/gpu/drm/nouveau/nouveau_sgdma.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nouveau_sgdma.c +5 -1
index 7f028fe..388b3e1 100644
@@ -224,7 +224,11 @@ nouveau_sgdma_init(struct drm_device *dev)
 	int i, ret;
 
 	if (dev_priv->card_type < NV_50) {
-		aper_size = (64 * 1024 * 1024);
+		if(dev_priv->card_type < NV_40) {
+			aper_size = (64 * 1024 * 1024);
+		} else {
+			aper_size = (512 * 1024 * 1024);
+		}
 		obj_size  = (aper_size >> NV_CTXDMA_PAGE_SHIFT) * 4;
 		obj_size += 8; /* ctxdma header */
 	} else {
Signature · 1 line
1.7.2.3

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw
Quoted 6 lines · Lucas Stach

Oh, yes. It seems my email client had some good lunch with the tabs.

I added the patch as an attachment. Hope it works this time.

-- Lucas

Thanks, pushed.

Quoted 11 lines

Am Montag, den 18.10.2010, 15:47 +0200 schrieb Francisco Jerez:

Quoted 10 lines
Quoted 6 lines · Lucas Stach

Nouveau sets GART size to 64MiB for all cards before nv50, but nv40 has enough RAMIN space to support 512MiB GART size. This patch fixes this value to make use of this hardware capability.

---

The patch doesn't seem to apply, I guess it's been corrupted on the way. Can you please resend?

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau