drm/ttm: Fix cached TTM page allocation.
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 26 May 2010 14:21:03 +0000 (16:21 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 31 May 2010 23:39:48 +0000 (09:39 +1000)
commite8613c0e29d0018a80652e6ae58660c8a75ac74b
treee81cd1dcf06946ea1eb1c36943a3073c13c65c8b
parentcf22f20ade30f8c03955324aaf27b1049e182600
drm/ttm: Fix cached TTM page allocation.

This patch fixes a regression introduced with the pool page allocator
in the event that there are no highmem pages (for example x86_64),
in which case cached page allocation would fail.

Tested with the vmwgfx driver on a 64-bit vm.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c