]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drm: Use pgprot_writecombine in GEM GTT mapping to get the right bits for !PAT.
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 1 Apr 2009 01:22:31 +0000 (18:22 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 2 Apr 2009 21:28:32 +0000 (14:28 -0700)
commit1055f9ddad093f54dfd708a0f976582034d4ce1a
tree0e13654a1cc5cbd204b7b2cbaebd48b11821d507
parent5e118f4139feafe97e913df67b1f7c1e5083e535
drm: Use pgprot_writecombine in GEM GTT mapping to get the right bits for !PAT.

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>
drivers/gpu/drm/drm_gem.c