drm/i915/vlv: use PIPE_START_VBLANK interrupts on VLV
Subsystems (2)
PATCH 1/1 drm/i915/vlv: use PIPE_START_VBLANK interrupts on VLV
This fixes a mismatch between our vblank enable code and our IRQ handler. Also, since vblank start events come in before page flips reliably, it also fixes the kms_flip plain-flip test on my BYT system.
--- drivers/gpu/drm/i915/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_irq.c +1 -1
@@ -1353,7 +1353,7 @@ static irqreturn_t valleyview_irq_handler(int irq, void *arg)spin_unlock_irqrestore (&dev_priv->irq_lock, irqflags);for_each_pipe (pipe) { -if (pipe_stats[pipe] &PIPE_VBLANK_INTERRUPT_STATUS ) +if (pipe_stats[pipe] &PIPE_START_VBLANK_INTERRUPT_STATUS )drm_handle_vblank (dev, pipe);if (pipe_stats[pipe] &PLANE_FLIPDONE_INT_STATUS_VLV ) {
Signature · 6 lines
1.8.4.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 6 lines · Jesse Barnes
This fixes a mismatch between our vblank enable code and our IRQ handler. Also, since vblank start events come in before page flips reliably, it also fixes the
kms_flipplain-flip test on my BYT system.Spotted-by Ville Syrjälä <[email protected]>Signed-off-by Jesse Barnes <[email protected]>
So kms_flip isn't totally crap I hear?
One problem is that the iosf bug is blocking QA's ability to use kms_flip as a regression tests. I wonder a bit whether we need to split out the results as subtests so that each connector type can be tracked individually. The problem with that is that we'd have unstable subtest names, which is a bit ugly ... Good ideas highly welcome.
Picked up for -fixes, thanks for the patch.
-Daniel
Quoted 24 lines
--- drivers/gpu/drm/i915/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_irq.c +1
-1@@ -1353,7 +1353,7 @@ static irqreturn_t valleyview_irq_handler(int irq, void *arg)spin_unlock_irqrestore (&dev_priv->irq_lock, irqflags);for_each_pipe (pipe) { -if (pipe_stats[pipe] &PIPE_VBLANK_INTERRUPT_STATUS ) +if (pipe_stats[pipe] &PIPE_START_VBLANK_INTERRUPT_STATUS )drm_handle_vblank (dev, pipe);if (pipe_stats[pipe] &PLANE_FLIPDONE_INT_STATUS_VLV ) {Signature · 6 lines
1.8.4.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch