Skip to content

Commit 453740d

Browse files
icklegregkh
authored andcommitted
drm/i915: Apply the GTT write flush for all !llc machines
commit c5ba5b2 upstream. We also see the delayed GTT write issue on i915g/i915gm, so let's presume that it is a universal problem for all !llc machines, and that we just haven't yet noticed on g33, gen4 and gen5 machines. v2: Use a register that exists on all platforms Testcase: igt/gem_mmap_gtt/coherency # i915gm References: https://bugs.freedesktop.org/show_bug.cgi?id=102577 Signed-off-by: Chris Wilson <[email protected]> Cc: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Sudip Mukherjee <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 425026a commit 453740d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/i915_gem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ flush_write_domain(struct drm_i915_gem_object *obj, unsigned int flush_domains)
687687

688688
switch (obj->base.write_domain) {
689689
case I915_GEM_DOMAIN_GTT:
690-
if (INTEL_GEN(dev_priv) >= 6 && !HAS_LLC(dev_priv)) {
690+
if (!HAS_LLC(dev_priv)) {
691691
intel_runtime_pm_get(dev_priv);
692692
spin_lock_irq(&dev_priv->uncore.lock);
693-
POSTING_READ_FW(RING_ACTHD(dev_priv->engine[RCS]->mmio_base));
693+
POSTING_READ_FW(RING_HEAD(dev_priv->engine[RCS]->mmio_base));
694694
spin_unlock_irq(&dev_priv->uncore.lock);
695695
intel_runtime_pm_put(dev_priv);
696696
}

0 commit comments

Comments
 (0)