Commit 5e265680 authored by Jerome Glisse's avatar Jerome Glisse Committed by Dave Airlie
Browse files

drm/ttm: use ttm put pages function to properly restore cache attribute

On failure we need to make sure the page we free has wb cache
attribute. Do this pas call the proper ttm page helper function.

Signed-off-by: default avatarJerome Glisse <>
Reviewed-by: default avatarKonrad Rzeszutek Wilk <>
Reviewed-by: default avatarThomas Hellstrom <>
parent a14af87b
......@@ -90,7 +90,10 @@ static struct page *__ttm_tt_get_page(struct ttm_tt *ttm, int index)
return p;
list_add(&p->lru, &h);
ttm_put_pages(&h, 1, ttm->page_flags,
ttm->caching_state, &ttm->dma_address[index]);
return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment