projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e450a
)
agp/intel: Use a non-reserved value for the cache field of the PTEs.
author
Eric Anholt
<eric@anholt.net>
Mon, 2 Nov 2009 23:33:05 +0000
(15:33 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 26 Feb 2010 21:23:18 +0000
(13:23 -0800)
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>
drivers/char/agp/intel-agp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/agp/intel-agp.c
b/drivers/char/agp/intel-agp.c
index df85ed9c7531e2ba2d16d08c06135aed15ff6dfc..c3c870bf567808005301483c2bab399659ec667a 100644
(file)
--- 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,
off_t pg_start, int mask_type)
{
int i, j;
+ u32 cache_bits = 0;
+
+ if (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB) {
+ cache_bits = I830_PTE_SYSTEM_CACHED;
+ }
for (i = 0, j = pg_start; i < mem->page_count; i++, j++) {
writel(agp_bridge->driver->mask_memory(agp_bridge,