From: Francisco Jerez <currojerez-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
To: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
Cc: Nouveau Dev List
<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH] drm/nouveau: fix nv40 gart size
Date: Mon, 18 Oct 2010 15:47:48 +0200 [thread overview]
Message-ID: <87sk03d33v.fsf@riseup.net> (raw)
In-Reply-To: <1287321287.2215.13.camel@workstation> (Lucas Stach's message of "Sun, 17 Oct 2010 15:14:47 +0200")
[-- 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
next prev parent reply other threads:[~2010-10-18 13:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-17 13:14 [PATCH] drm/nouveau: fix nv40 gart size Lucas Stach
2010-10-18 13:47 ` Francisco Jerez [this message]
[not found] ` <87sk03d33v.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-10-18 15:09 ` Lucas Stach
2010-10-19 15:02 ` Francisco Jerez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sk03d33v.fsf@riseup.net \
--to=currojerez-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
--cc=dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.