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>
This commit is contained in:
parent
0293bd519f
commit
154683dd39
|
@ -223,6 +223,17 @@ static struct kobj_type ttm_pool_kobj_type = {
|
|||
static struct ttm_pool_manager *_manager;
|
||||
|
||||
#ifndef CONFIG_X86
|
||||
static int set_pages_wb(struct page *page, int numpages)
|
||||
{
|
||||
#if IS_ENABLED(CONFIG_AGP)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < numpages; i++)
|
||||
unmap_page_from_agp(page++);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int set_pages_array_wb(struct page **pages, int addrinarray)
|
||||
{
|
||||
#if IS_ENABLED(CONFIG_AGP)
|
||||
|
|
Loading…
Reference in New Issue