drm/nouveau: Make use of TTM busy_placements.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 18 Mar 2010 12:07:47 +0000 (13:07 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 9 Apr 2010 00:11:54 +0000 (10:11 +1000)
commit78ad0f7bf2bb667729581f099781fc0b7ae58fcc
tree634b93b257da7f6ac4b67adcea209b920356fa3f
parent40b2a687bd92827ca144d3623cf48377d8f7680d
drm/nouveau: Make use of TTM busy_placements.

Previously we were filling it the same as "placements", but in some
cases there're valid alternatives that we were ignoring completely.
Keeping a back-up memory type helps on several low-mem situations.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_gem.c