Commit 4beb116a454867cc3a98d02d906e0f0459aefe72

Authored by Francisco Jerez
Committed by Ben Skeggs
1 parent 1c77e0f7fa

drm/nv10: Change the BO size threshold determining the memory placement range.

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/gpu/drm/nouveau/nouveau_bo.c
... ... @@ -148,7 +148,7 @@
148 148  
149 149 if (dev_priv->card_type == NV_10 &&
150 150 nvbo->tile_mode && (type & TTM_PL_FLAG_VRAM) &&
151   - nvbo->bo.mem.num_pages < vram_pages / 2) {
  151 + nvbo->bo.mem.num_pages < vram_pages / 4) {
152 152 /*
153 153 * Make sure that the color and depth buffers are handled
154 154 * by independent memory controller units. Up to a 9x