[PATCH 1/2] drm/ttm: Fix cached TTM page allocation.

2010-05-26 Thread Thomas Hellstrom
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 thellst...@vmware.com
---
 drivers/gpu/drm/ttm/ttm_page_alloc.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c 
b/drivers/gpu/drm/ttm/ttm_page_alloc.c
index 0d9a42c..b6d1523 100644
--- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
@@ -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);
-- 
1.6.2.5


--

--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [PATCH 1/2] drm/ttm: Fix cached TTM page allocation.

2010-05-26 Thread Jerome Glisse
On Wed, May 26, 2010 at 04:18:49PM +0200, Thomas Hellstrom wrote:
 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 thellst...@vmware.com
Reviewed-by: Jerome Glisse jgli...@redhat.com

 ---
  drivers/gpu/drm/ttm/ttm_page_alloc.c |2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
 
 diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c 
 b/drivers/gpu/drm/ttm/ttm_page_alloc.c
 index 0d9a42c..b6d1523 100644
 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
 +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
 @@ -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);
 -- 
 1.6.2.5
 
 
 --
 
 --
 ___
 Dri-devel mailing list
 Dri-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dri-devel

--

--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel