diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2010-08-27 11:08:57 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 21:51:44 -0700 |
commit | c4cf17f1e6a95168d479656d066c5b8324c16b06 (patch) | |
tree | 74ce6f9d1207da5b4b0712f278d3bd7495d947b8 /include | |
parent | 6b85aae5dfa34321a2336f57109cd9ad4ae1bb51 (diff) | |
download | linux-stable-c4cf17f1e6a95168d479656d066c5b8324c16b06.tar.gz linux-stable-c4cf17f1e6a95168d479656d066c5b8324c16b06.tar.bz2 linux-stable-c4cf17f1e6a95168d479656d066c5b8324c16b06.zip |
agp/intel: Fix cache control for Sandybridge
commit f8f235e5bbf4e61f3e0886a44afb1dc4cfe8f337 upstream.
Sandybridge GTT has new cache control bits in PTE, which controls
graphics page cache in LLC or LLC/MLC, so we need to extend the mask
function to respect the new bits.
And set cache control to always LLC only by default on Gen6.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/intel-gtt.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/intel-gtt.h b/include/linux/intel-gtt.h new file mode 100644 index 000000000000..1d19ab2afa39 --- /dev/null +++ b/include/linux/intel-gtt.h @@ -0,0 +1,20 @@ +/* + * Common Intel AGPGART and GTT definitions. + */ +#ifndef _INTEL_GTT_H +#define _INTEL_GTT_H + +#include <linux/agp_backend.h> + +/* This is for Intel only GTT controls. + * + * Sandybridge: AGP_USER_CACHED_MEMORY default to LLC only + */ + +#define AGP_USER_CACHED_MEMORY_LLC_MLC (AGP_USER_TYPES + 2) +#define AGP_USER_UNCACHED_MEMORY (AGP_USER_TYPES + 4) + +/* flag for GFDT type */ +#define AGP_USER_CACHED_MEMORY_GFDT (1 << 3) + +#endif |