<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - [SNB, IVB] Page flips hang indefinitely, apparently waiting for mmio writes that never happen"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75502#c21">Comment # 21</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - [SNB, IVB] Page flips hang indefinitely, apparently waiting for mmio writes that never happen"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75502">bug 75502</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>To double check the theory that the scanout went awol, can you please try with
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
b/drivers/gpu/drm/i915/i915_debugfs.c
index 94aabfc63c3d..c6b81e59058d 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -611,16 +611,28 @@ static int i915_gem_pageflip_info(struct seq_file *m,
void *data)
seq_puts(m, "Stall check waiting for page flip
ioctl, ");
seq_printf(m, "%d prepares\n",
atomic_read(&work->pending));
+ {
+ u32 addr;
+
+ if (INTEL_INFO(dev)->gen >= 4)
+ addr = DSPSURF(crtc->plane);
+ else
+ addr = DSPADDR(crtc->plane);
+
+ seq_printf(m, "Current scanout address
0x%08lx\n",
+ I915_READ(addr));
+ }
+
if (work->old_fb_obj) {
struct drm_i915_gem_object *obj =
work->old_fb_obj;
- seq_printf(m, "Old framebuffer gtt_offset
0x%08lx\n",
+ seq_printf(m, "Old framebuffer address
0x%08lx\n",
i915_gem_obj_ggtt_offset(obj));
}
if (work->pending_flip_obj) {
struct drm_i915_gem_object *obj =
work->pending_flip_obj;
bool complete;
- seq_printf(m, "New framebuffer gtt_offset
0x%08lx\n",
+ seq_printf(m, "New framebuffer address
0x%08lx\n",
i915_gem_obj_ggtt_offset(obj));
if (INTEL_INFO(dev)->gen >= 4) {</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>