diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_tt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 9b2248a80cff..b8b6c4a5f983 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c | |||
@@ -137,13 +137,15 @@ static void ttm_tt_free_page_directory(struct ttm_tt *ttm) | |||
137 | 137 | ||
138 | static struct page *ttm_tt_alloc_page(unsigned page_flags) | 138 | static struct page *ttm_tt_alloc_page(unsigned page_flags) |
139 | { | 139 | { |
140 | gfp_t gfp_flags = GFP_HIGHUSER; | 140 | gfp_t gfp_flags = GFP_USER; |
141 | 141 | ||
142 | if (page_flags & TTM_PAGE_FLAG_ZERO_ALLOC) | 142 | if (page_flags & TTM_PAGE_FLAG_ZERO_ALLOC) |
143 | gfp_flags |= __GFP_ZERO; | 143 | gfp_flags |= __GFP_ZERO; |
144 | 144 | ||
145 | if (page_flags & TTM_PAGE_FLAG_DMA32) | 145 | if (page_flags & TTM_PAGE_FLAG_DMA32) |
146 | gfp_flags |= __GFP_DMA32; | 146 | gfp_flags |= __GFP_DMA32; |
147 | else | ||
148 | gfp_flags |= __GFP_HIGHMEM; | ||
147 | 149 | ||
148 | return alloc_page(gfp_flags); | 150 | return alloc_page(gfp_flags); |
149 | } | 151 | } |