]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/nouveau: remove limit on gart
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 17 Jun 2013 13:09:09 +0000 (15:09 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 1 Jul 2013 03:50:43 +0000 (13:50 +1000)
Most graphics cards nowadays have a multiple of this limit as their vram,
so limiting GART doesn't seem to make much sense.

Signed-off-by: Maarten >Lnkhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_ttm.c

index 01e3154f896927013567aaf444d80f7caa3b7e81..d0382f7e86c83c6a07955e227d7c6d48e911ecb1 100644 (file)
@@ -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;
@@ -403,8 +400,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;
        }