dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Ben Skeggs <skeggsb@gmail.com>
To: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: "nouveau@lists.freedesktop.org" <nouveau@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] drm/nouveau: remove limit on gart
Date: Tue, 18 Jun 2013 09:48:31 +1000	[thread overview]
Message-ID: <CACAvsv6zG797_VsMDBedmM8xgYEj9OvLJAVqX9JGuhEcQ8ZWBw@mail.gmail.com> (raw)
In-Reply-To: <51BF0A75.5080803@canonical.com>

On Mon, Jun 17, 2013 at 11:09 PM, Maarten Lankhorst
<maarten.lankhorst@canonical.com> wrote:
> Most graphics cards nowadays have a multiple of this limit as their vram, so
> limiting GART doesn't seem to make much sense.
Pushed, thanks :)

>
> Signed-off-by: Maarten >Lnkhorst <maarten.lankhorst@canonical.com>
> ---
> diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c b/drivers/gpu/drm/nouveau/nouveau_ttm.c
> index 3a5e19a..41ddecd 100644
> --- a/drivers/gpu/drm/nouveau/nouveau_ttm.c
> +++ b/drivers/gpu/drm/nouveau/nouveau_ttm.c
> @@ -168,9 +168,6 @@ nouveau_gart_manager_new(struct ttm_mem_type_manager *man,
>         struct nouveau_bo *nvbo = nouveau_bo(bo);
>         struct nouveau_mem *node;
>
> -       if (unlikely((mem->num_pages << PAGE_SHIFT) >= 512 * 1024 * 1024))
> -               return -ENOMEM;
> -
>         node = kzalloc(sizeof(*node), GFP_KERNEL);
>         if (!node)
>                 return -ENOMEM;
> @@ -406,8 +403,6 @@ nouveau_ttm_init(struct nouveau_drm *drm)
>         /* GART init */
>         if (drm->agp.stat != ENABLED) {
>                 drm->gem.gart_available = nouveau_vmmgr(drm->device)->limit;
> -               if (drm->gem.gart_available > 512 * 1024 * 1024)
> -                       drm->gem.gart_available = 512 * 1024 * 1024;
>         } else {
>                 drm->gem.gart_available = drm->agp.size;
>         }
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2013-06-17 23:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17 13:09 [PATCH] drm/nouveau: remove limit on gart Maarten Lankhorst
2013-06-17 23:48 ` Ben Skeggs [this message]

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=CACAvsv6zG797_VsMDBedmM8xgYEj9OvLJAVqX9JGuhEcQ8ZWBw@mail.gmail.com \
    --to=skeggsb@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=maarten.lankhorst@canonical.com \
    --cc=nouveau@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).