drm/i915: Use mmio flips harder
Subsystems (2)
PATCH 1/1 drm/i915: Use mmio flips harder
Somehow (i.e. purely experimental evidence from users out there in the wild) using CS flips seems to be implicated in hw context switch hangs.
I have no idea why, but let's just try this out.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78960
References: https://bugs.freedesktop.org/show_bug.cgi?id=83677
References: https://bugs.freedesktop.org/show_bug.cgi?id=80660
References: https://bugs.freedesktop.org/show_bug.cgi?id=76314
--- drivers/gpu/drm/i915/intel_display.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_display.c +2 -0
@@ -9462,6 +9462,8 @@ static bool use_mmio_flip(struct intel_engine_cs *ring,return true; else if (i915.enable_execlists) return true; + else if (INTEL_FINO(ring->dev)->gen >= 6) + return true; else return ring != obj->ring; }
Signature · 6 lines
2.1.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 9 lines · Daniel Vetter
Somehow (i.e. purely experimental evidence from users out there in the wild) using CS flips seems to be implicated in hw context switch hangs.
I have no idea why, but let's just try this out.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78960
References: https://bugs.freedesktop.org/show_bug.cgi?id=83677
I tried using mmio flips exclusively on Simon's testcase (which is perphaps the most brutal as it still dies with the oneline fix that worked on the chromeboox).
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · Chris Wilson
Quoted 6 lines · Daniel Vetter
Somehow (i.e. purely experimental evidence from users out there in the wild) using CS flips seems to be implicated in hw context switch hangs.
I have no idea why, but let's just try this out.
Quoted 7 lines
Quoted 3 lines
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78960
References: https://bugs.freedesktop.org/show_bug.cgi?id=83677
I tried using mmio flips exclusively on Simon's testcase (which is perphaps the most brutal as it still dies with the oneline fix that worked on the chromeboox).
... and the testcase still dies in under 2 minutes. -Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 20 lines · Daniel Vetter
Somehow (i.e. purely experimental evidence from users out there in the wild) using CS flips seems to be implicated in hw context switch hangs.
I have no idea why, but let's just try this out.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78960
References: https://bugs.freedesktop.org/show_bug.cgi?id=83677
References: https://bugs.freedesktop.org/show_bug.cgi?id=80660
References: https://bugs.freedesktop.org/show_bug.cgi?id=76314Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/intel_display.c +0
-0
drivers/gpu/drm/i915/intel_display.c static bool use_mmio_flip(struct intel_engine_cs *ring, · line 9466
Quoted 5 lines
drivers/gpu/drm/i915/intel_display.c +2
-0@@ -9462,6 +9462,8 @@ static bool use_mmio_flip(struct intel_engine_cs *ring,return true; else if (i915.enable_execlists) return true; + else if (INTEL_FINO(ring->dev)->gen >= 6) + return true;
Missing:
#define INTEL_FINO(foo) INTEL_INFO(foo)
Signature · 5 lines
Damien _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx