drm: Use pgprot_writecombine in GEM GTT mapping to get the right bits for !PAT.
commitd1ea508946d0958c7c55a2d4e35400c8c77e1a07
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 7 Apr 2009 02:40:23 +0000 (6 19:40 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:53 +0000 (27 10:36 -0700)
tree79bf35415850ad5938fe7e7bc5c418ef1f37cb42
parent1317b1720eef5a7ce3a712c99d9d605e2552615c
drm: Use pgprot_writecombine in GEM GTT mapping to get the right bits for !PAT.

upstream commit: 1055f9ddad093f54dfd708a0f976582034d4ce1a

Otherwise, the PAGE_CACHE_WC would end up getting us a UC-only mapping, and
the write performance of GTT maps dropped 10x.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[anholt: cleaned up unused var]
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/gpu/drm/drm_gem.c