diff options
author | Eric Anholt <eric@anholt.net> | 2009-11-02 18:33:05 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-02-26 16:23:18 -0500 |
commit | e3deb204c69c485c88c990f07b71be10a464e508 (patch) | |
tree | 6531d33bc519851b1cffabfc0cae19c7fc312d21 /drivers/char/agp | |
parent | f6e450a6417460db6a74241de8aaab5116cac140 (diff) |
agp/intel: Use a non-reserved value for the cache field of the PTEs.
I don't know if this is what we'll want to be using long term, we'll see.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/char/agp')
-rw-r--r-- | drivers/char/agp/intel-agp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index df85ed9c753..c3c870bf567 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c | |||
@@ -296,6 +296,11 @@ static void intel_agp_insert_sg_entries(struct agp_memory *mem, | |||
296 | off_t pg_start, int mask_type) | 296 | off_t pg_start, int mask_type) |
297 | { | 297 | { |
298 | int i, j; | 298 | int i, j; |
299 | u32 cache_bits = 0; | ||
300 | |||
301 | if (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB) { | ||
302 | cache_bits = I830_PTE_SYSTEM_CACHED; | ||
303 | } | ||
299 | 304 | ||
300 | for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { | 305 | for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { |
301 | writel(agp_bridge->driver->mask_memory(agp_bridge, | 306 | writel(agp_bridge->driver->mask_memory(agp_bridge, |