drm/i915: Clear intel_crtc->atomic before updating it.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ville Syrjälä
Tested-byQuoted 14 lines · Maarten Lankhorst
If an atomic update fails
intel_crtc->atomicmay have have some values left from the last atomic check. One example isatomic->wait_for_vblank, which results in spurious errors inkms_flip.Testcase:
kms_flipReported-by Ville Syrjälä <[email protected]>Cc [email protected] #v4.3Signed-off-by Maarten Lankhorst <[email protected]>---
drivers/gpu/drm/i915/intel_display.c +0
-0
drivers/gpu/drm/i915/intel_display.c static int intel_atomic_check(struct drm_device *dev, · line 13145
Quoted 5 lines
drivers/gpu/drm/i915/intel_display.c +2
-0@@ -13141,6 +13141,9 @@ static int intel_atomic_check(struct drm_device *dev,struct intel_crtc_state *pipe_config =to_intel_crtc_state (crtc_state); +memset (&to_intel_crtc (crtc)->atomic,0 , +sizeof (struct intel_crtc_atomic_commit ));
sizeof(to_intel_crtc(crtc)->atomic) would be better.
This cures a ton of "wait_for_vblank called with a disabled pipe" type of errors.
Tested-by Ville Syrjälä <[email protected]>
Quoted 4 lines
drivers/gpu/drm/i915/intel_display.c +1
-0+/* Catch I915_MODE_FLAG_INHERITED */ if (crtc_state->mode.private_flags != crtc->state->mode.private_flags) crtc_state->mode_changed = true;
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx