Linux Kernels

drm/i915: WARN if power sequencer is not connected to the LVDS port on pre-ilk

This change “drm/i915: WARN if power sequencer is not connected to the LVDS port on pre-ilk” (commit f0d2b75) in Linux kernel is authored by Ville Syrjälä <ville.syrjala [at] linux.intel.com> on Fri May 18 18:29:31 2018 +0300.

Description of "drm/i915: WARN if power sequencer is not connected to the LVDS port on pre-ilk"

The change “drm/i915: WARN if power sequencer is not connected to the LVDS port on pre-ilk” introduces changes as follows.

drm/i915: WARN if power sequencer is not connected to the LVDS port on pre-ilk

We don't support using the power sequencer with other ports besides LVDS
on pre-ilk platforms. WARN if someone has mistakenly connected the power
sequencer to the wrong port.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180518152931.13104-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>

Linux kernel releases containing commit f0d2b75

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes in "drm/i915: WARN if power sequencer is not connected to the LVDS port on pre-ilk"

There are 5 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/gpu/drm/i915/intel_display.c | 5 +++++
 1 file changed, 5 insertions(+)
 
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 3a0709a6e4a0..aab1c6c58edf 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1236,7 +1236,12 @@ void assert_panel_unlocked(struct drm_i915_private *dev_priv, enum pipe pipe)
 		pp_reg = PP_CONTROL(pipe);
 		panel_pipe = pipe;
 	} else {
+		u32 port_sel;
+
 		pp_reg = PP_CONTROL(0);
+		port_sel = I915_READ(PP_ON_DELAYS(0)) & PANEL_PORT_SELECT_MASK;
+
+		WARN_ON(port_sel != PANEL_PORT_SELECT_LVDS);
 		intel_lvds_port_enabled(dev_priv, LVDS, &panel_pipe);
 	}
 

The commit for this change in Linux stable tree is f0d2b75 (patch).

Last modified: 2020/01/11 06:55