Skip to contentSkip to conversation

drm/nouveau: remove limit on gart

PATCH In review Maarten Lankhorst 2 participants 2 messages Jun 17, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: remove limit on gart

Most graphics cards nowadays have a multiple of this limit as their vram, so limiting GART doesn't seem to make much sense.

---

drivers/gpu/drm/nouveau/nouveau_ttm.c +0 -5
index 3a5e19a..41ddecd 100644
@@ -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;
 	}
#1 lore raw
Quoted 2 lines · Maarten Lankhorst

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 :)

Quoted 31 lines

---

drivers/gpu/drm/nouveau/nouveau_ttm.c +0 -5
index 3a5e19a..41ddecd 100644
@@ -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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel