]> Pileus Git - ~andy/linux/commitdiff
drm/i915/bdw: Flush system agent on gen8 also
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 24 Dec 2013 23:18:54 +0000 (15:18 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 6 Jan 2014 10:11:04 +0000 (11:11 +0100)
gem_gtt_cpu_tlb seems to indicate that it is needed.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72869

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c

index c79dd2b1f70ecc2af6d0fb67a3c3289672eba7f9..d3c3b5b15824ee8bb927a7b1a382582309b31376 100644 (file)
@@ -906,14 +906,12 @@ static void gen8_ggtt_insert_entries(struct i915_address_space *vm,
                WARN_ON(readq(&gtt_entries[i-1])
                        != gen8_pte_encode(addr, level, true));
 
-#if 0 /* TODO: Still needed on GEN8? */
        /* This next bit makes the above posting read even more important. We
         * want to flush the TLBs only after we're certain all the PTE updates
         * have finished.
         */
        I915_WRITE(GFX_FLSH_CNTL_GEN6, GFX_FLSH_CNTL_EN);
        POSTING_READ(GFX_FLSH_CNTL_GEN6);
-#endif
 }
 
 /*