From: Ben Skeggs Subject: Re: [PATCH] drm/nouveau: enlarge GART aperture Date: Thu, 04 Feb 2010 21:41:09 +1000 Message-ID: <1265283669.2975.1.camel@nisroch> References: <1264703119-6482-1-git-send-email-luca@luca-barbieri.com> Reply-To: skeggsb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1264703119-6482-1-git-send-email-luca-Ukmtq+NC3rhBHFWNQifrYwC/G2K4zDHf@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Luca Barbieri Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org On Thu, 2010-01-28 at 19:25 +0100, Luca Barbieri wrote: > 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. > > Signed-off-by: Luca Barbieri > --- > drivers/gpu/drm/nouveau/nouveau_sgdma.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c b/drivers/gpu/drm/nouveau/nouveau_sgdma.c > index 4c7f1e4..2ca44cc 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c > +++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c > @@ -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 {