[Nouveau] [PATCH] drm/nouveau: fix nv40 gart size
Francisco Jerez
currojerez at riseup.net
Mon Oct 18 06:47:48 PDT 2010
Lucas Stach <dev at lynxeye.de> 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 at lynxeye.de>
> ---
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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20101018/6e1dd7e6/attachment.pgp>
More information about the Nouveau
mailing list