Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8613c0e authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Dave Airlie
Browse files

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: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent cf22f20a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -671,7 +671,7 @@ int ttm_get_pages(struct list_head *pages, int flags,
		if (flags & TTM_PAGE_FLAG_DMA32)
			gfp_flags |= GFP_DMA32;
		else
			gfp_flags |= __GFP_HIGHMEM;
			gfp_flags |= GFP_HIGHUSER;

		for (r = 0; r < count; ++r) {
			p = alloc_page(gfp_flags);