diff options
author | Roger He <Hongbo.He@amd.com> | 2017-11-22 02:09:33 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-05 14:37:05 -0500 |
commit | 54ddc5f2d709e9eae5c55a665b37fe2581681c90 (patch) | |
tree | 25f6c2471dfd6077344ead3145351b10f5b2d0d8 | |
parent | 6d5e4e3213f4700338627f1f2fba6d3552b1158a (diff) |
drm/ttm: add set_pages_wb for handling page order more than zero
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_page_alloc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index bf25ba25bfc6..359a641d3211 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c | |||
@@ -223,6 +223,17 @@ static struct kobj_type ttm_pool_kobj_type = { | |||
223 | static struct ttm_pool_manager *_manager; | 223 | static struct ttm_pool_manager *_manager; |
224 | 224 | ||
225 | #ifndef CONFIG_X86 | 225 | #ifndef CONFIG_X86 |
226 | static int set_pages_wb(struct page *page, int numpages) | ||
227 | { | ||
228 | #if IS_ENABLED(CONFIG_AGP) | ||
229 | int i; | ||
230 | |||
231 | for (i = 0; i < numpages; i++) | ||
232 | unmap_page_from_agp(page++); | ||
233 | #endif | ||
234 | return 0; | ||
235 | } | ||
236 | |||
226 | static int set_pages_array_wb(struct page **pages, int addrinarray) | 237 | static int set_pages_array_wb(struct page **pages, int addrinarray) |
227 | { | 238 | { |
228 | #if IS_ENABLED(CONFIG_AGP) | 239 | #if IS_ENABLED(CONFIG_AGP) |