Skip to content

Commit cc17396

Browse files
jnikuladanvet
authored andcommitted
drm/i915: do not update cursor in crtc mode set
The cursor is disabled before crtc mode set in crtc disable (and we assert this is the case), and enabled afterwards in crtc enable. Do not update it in crtc mode set. On HSW enabling a plane on a disabled pipe may hang the entire system. And there's no good reason for doing it ever, so just don't. v2: Add note about HSW hangs - vsyrjala Cc: stable@vger.kernel.org Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Tested-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 571c608 commit cc17396

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4877,9 +4877,6 @@ static int i9xx_crtc_mode_set(struct drm_crtc *crtc,
48774877
return -EINVAL;
48784878
}
48794879

4880-
/* Ensure that the cursor is valid for the new mode before changing... */
4881-
intel_crtc_update_cursor(crtc, true);
4882-
48834880
if (is_lvds && dev_priv->lvds_downclock_avail) {
48844881
/*
48854882
* Ensure we match the reduced clock's P to the target clock.
@@ -5768,9 +5765,6 @@ static int ironlake_crtc_mode_set(struct drm_crtc *crtc,
57685765
intel_crtc->config.dpll.p2 = clock.p2;
57695766
}
57705767

5771-
/* Ensure that the cursor is valid for the new mode before changing... */
5772-
intel_crtc_update_cursor(crtc, true);
5773-
57745768
/* CPU eDP is the only output that doesn't need a PCH PLL of its own. */
57755769
if (intel_crtc->config.has_pch_encoder) {
57765770
fp = i9xx_dpll_compute_fp(&intel_crtc->config.dpll);
@@ -6260,9 +6254,6 @@ static int haswell_crtc_mode_set(struct drm_crtc *crtc,
62606254
if (!intel_ddi_pll_mode_set(crtc))
62616255
return -EINVAL;
62626256

6263-
/* Ensure that the cursor is valid for the new mode before changing... */
6264-
intel_crtc_update_cursor(crtc, true);
6265-
62666257
if (intel_crtc->config.has_dp_encoder)
62676258
intel_dp_set_m_n(intel_crtc);
62686259

0 commit comments

Comments
 (0)