intel-gtt: drop dcache support for i830 and later
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Nov 2010 17:41:50 +0000 (18:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Nov 2010 20:14:41 +0000 (20:14 +0000)
i830_check_flags already disallows it, so no need to implement it
in the write_entry function. Seems to be a remnant from i810 support.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/char/agp/intel-gtt.c

index d2733e526a68bc75b7a1e71266b47115ed4d5530..8a30a16c5706a7898de758e32c2f01d79c763e03 100644 (file)
@@ -896,14 +896,8 @@ static void i830_write_entry(dma_addr_t addr, unsigned int entry,
 {
        u32 pte_flags = I810_PTE_VALID;
        
-       switch (flags) {
-       case AGP_DCACHE_MEMORY:
-               pte_flags |= I810_PTE_LOCAL;
-               break;
-       case AGP_USER_CACHED_MEMORY:
+       if (flags ==  AGP_USER_CACHED_MEMORY)
                pte_flags |= I830_PTE_SYSTEM_CACHED;
-               break;
-       }
 
        writel(addr | pte_flags, intel_private.gtt + entry);
 }