[Nouveau] [PATCH] drm/nouveau: enlarge GART aperture

Ben Skeggs skeggsb at gmail.com
Thu Feb 4 03:41:09 PST 2010


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 <luca at luca-barbieri.com>
> ---
>  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 {




More information about the Nouveau mailing list