drm/nv10: Change the BO size threshold determining the memory placement range.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 6 Nov 2011 20:21:28 +0000 (21:21 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 9 Nov 2011 23:02:34 +0000 (09:02 +1000)
Fixes the framebuffer memory allocation failure seen on some
low-memory cards, followed by X refusing to start.

https://bugs.freedesktop.org/show_bug.cgi?id=42384

Reported-by: Chris Paulson-Ellis <chris@edesix.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c

index 7226f419e178b64e76d9a65a7d341f1de874b746..7cc37e69086012594a1dff3a2e255f66e396e656 100644 (file)
@@ -148,7 +148,7 @@ set_placement_range(struct nouveau_bo *nvbo, uint32_t type)
 
        if (dev_priv->card_type == NV_10 &&
            nvbo->tile_mode && (type & TTM_PL_FLAG_VRAM) &&
-           nvbo->bo.mem.num_pages < vram_pages / 2) {
+           nvbo->bo.mem.num_pages < vram_pages / 4) {
                /*
                 * Make sure that the color and depth buffers are handled
                 * by independent memory controller units. Up to a 9x