drm/ttm: use ttm put pages function to properly restore cache attribute
authorJerome Glisse <jglisse@redhat.com>
Thu, 3 Nov 2011 05:22:39 +0000 (01:22 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 10:38:57 +0000 (10:38 +0000)
commit5e2656804a34f58c2bf557465ab77f8a26a500eb
tree1da5f23cbe2d67150c5998dc74c4647f004f918d
parenta14af87b0b6f5c1d44c1adaa07f1bd347f81dc04
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: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/ttm/ttm_tt.c