All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/nouveau: fix nv40 gart size
@ 2010-10-17 13:14 Lucas Stach
  2010-10-18 13:47 ` Francisco Jerez
  0 siblings, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2010-10-17 13:14 UTC (permalink / raw)
  To: Nouveau Dev List

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.

Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
---
drivers/gpu/drm/nouveau/nouveau_sgdma.c |    6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
index 7f028fe..388b3e1 100644
--- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
@@ -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 {
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/nouveau: fix nv40 gart size
  2010-10-17 13:14 [PATCH] drm/nouveau: fix nv40 gart size Lucas Stach
@ 2010-10-18 13:47 ` Francisco Jerez
       [not found]   ` <87sk03d33v.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Francisco Jerez @ 2010-10-18 13:47 UTC (permalink / raw)
  To: Lucas Stach; +Cc: Nouveau Dev List


[-- Attachment #1.1.1: Type: text/plain, Size: 1166 bytes --]

Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> writes:

> 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.
>
> Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
> ---
The patch doesn't seem to apply, I guess it's been corrupted on the way.
Can you please resend?

> drivers/gpu/drm/nouveau/nouveau_sgdma.c |    6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
> b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
> index 7f028fe..388b3e1 100644
> --- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
> +++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
> @@ -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 {

[-- Attachment #1.2: Type: application/pgp-signature, Size: 229 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/nouveau: fix nv40 gart size
       [not found]   ` <87sk03d33v.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
@ 2010-10-18 15:09     ` Lucas Stach
  2010-10-19 15:02       ` Francisco Jerez
  0 siblings, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2010-10-18 15:09 UTC (permalink / raw)
  To: Francisco Jerez; +Cc: Nouveau Dev List

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]

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: 
> Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> writes:
> 
> > 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.
> >
> > Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
> > ---
> The patch doesn't seem to apply, I guess it's been corrupted on the way.
> Can you please resend?


[-- Attachment #2: nv40_gart_size.diff --]
[-- Type: text/x-patch, Size: 1210 bytes --]

From a1dda375b4a03aba7af45f4723b7fc69bdc8421e Mon Sep 17 00:00:00 2001
From: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
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.

Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
---
 drivers/gpu/drm/nouveau/nouveau_sgdma.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
index 7f028fe..388b3e1 100644
--- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
@@ -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 {
-- 
1.7.2.3


[-- Attachment #3: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/nouveau: fix nv40 gart size
  2010-10-18 15:09     ` Lucas Stach
@ 2010-10-19 15:02       ` Francisco Jerez
  0 siblings, 0 replies; 4+ messages in thread
From: Francisco Jerez @ 2010-10-19 15:02 UTC (permalink / raw)
  To: Lucas Stach; +Cc: Nouveau Dev List


[-- Attachment #1.1.1: Type: text/plain, Size: 794 bytes --]

Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> writes:

> 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.

> Am Montag, den 18.10.2010, 15:47 +0200 schrieb Francisco Jerez: 
>> Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> writes:
>> 
>> > 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.
>> >
>> > Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
>> > ---
>> The patch doesn't seem to apply, I guess it's been corrupted on the way.
>> Can you please resend?

[-- Attachment #1.2: Type: application/pgp-signature, Size: 229 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-19 15:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-17 13:14 [PATCH] drm/nouveau: fix nv40 gart size Lucas Stach
2010-10-18 13:47 ` Francisco Jerez
     [not found]   ` <87sk03d33v.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-10-18 15:09     ` Lucas Stach
2010-10-19 15:02       ` Francisco Jerez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.