From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lucas Stach Subject: Re: [PATCH] drm/nouveau: fix nv40 gart size Date: Mon, 18 Oct 2010 17:09:30 +0200 Message-ID: <1287414570.2373.5.camel@workstation> References: <1287321287.2215.13.camel@workstation> <87sk03d33v.fsf@riseup.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-SpKadeNuYWtEs/xoapZg" Return-path: In-Reply-To: <87sk03d33v.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Francisco Jerez Cc: Nouveau Dev List List-Id: nouveau.vger.kernel.org --=-SpKadeNuYWtEs/xoapZg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 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 > > --- > The patch doesn't seem to apply, I guess it's been corrupted on the way. > Can you please resend? --=-SpKadeNuYWtEs/xoapZg Content-Disposition: attachment; filename="nv40_gart_size.diff" Content-Type: text/x-patch; name="nv40_gart_size.diff"; charset="UTF-8" Content-Transfer-Encoding: 7bit >From a1dda375b4a03aba7af45f4723b7fc69bdc8421e Mon Sep 17 00:00:00 2001 From: Lucas Stach 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 --- 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 --=-SpKadeNuYWtEs/xoapZg Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --=-SpKadeNuYWtEs/xoapZg--