Skip to content

Commit 9097eef

Browse files
committed
Merge branch 'drm-intel-fixes' into drm-intel-next
2 parents b13c2b9 + 71f4566 commit 9097eef

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎drivers/char/agp/intel-gtt.c‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,12 +1135,19 @@ static void i9xx_chipset_flush(void)
11351135
writel(1, intel_private.i9xx_flush_page);
11361136
}
11371137

1138-
static void i965_write_entry(dma_addr_t addr, unsigned int entry,
1138+
static void i965_write_entry(dma_addr_t addr,
1139+
unsigned int entry,
11391140
unsigned int flags)
11401141
{
1142+
u32 pte_flags;
1143+
1144+
pte_flags = I810_PTE_VALID;
1145+
if (flags == AGP_USER_CACHED_MEMORY)
1146+
pte_flags |= I830_PTE_SYSTEM_CACHED;
1147+
11411148
/* Shift high bits down */
11421149
addr |= (addr >> 28) & 0xf0;
1143-
writel(addr | I810_PTE_VALID, intel_private.gtt + entry);
1150+
writel(addr | pte_flags, intel_private.gtt + entry);
11441151
}
11451152

11461153
static bool gen6_check_flags(unsigned int flags)

0 commit comments

Comments
 (0)