mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
drm/i915: Avoid spurious WARNs about the wrong pipe in the PPS code
commitaa9323dd49upstream. Until recently vlv_steal_power_sequencer() wasn't being called for normal DP ports, and hence it could assert that it should only be called for pipe A and B (since pipe C doesn't support eDP). However that changed when we started to consider normal DP ports as well when choosing a PPS. So we will now get spurious warnings when vlv_steal_power_sequencer() does get called for pipe C. Avoid this by moving the WARN down into vlv_detach_power_sequencer() where this assertion should still hold. Cc: Imre Deak <imre.deak@intel.com> Fixes:9f2bdb006a("drm/i915: Prevent PPS stealing from a normal DP port on VLV/CHV") References: https://bugs.freedesktop.org/show_bug.cgi?id=95287 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170208175254.10958-1-ville.syrjala@linux.intel.com Reviewed-by: Imre Deak <imre.deak@intel.com> (cherry picked from commitd158694f45) Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
967e17bcc9
commit
686ea5862e
@@ -2832,6 +2832,9 @@ static void vlv_detach_power_sequencer(struct intel_dp *intel_dp)
|
|||||||
enum pipe pipe = intel_dp->pps_pipe;
|
enum pipe pipe = intel_dp->pps_pipe;
|
||||||
i915_reg_t pp_on_reg = PP_ON_DELAYS(pipe);
|
i915_reg_t pp_on_reg = PP_ON_DELAYS(pipe);
|
||||||
|
|
||||||
|
if (WARN_ON(pipe != PIPE_A && pipe != PIPE_B))
|
||||||
|
return;
|
||||||
|
|
||||||
edp_panel_vdd_off_sync(intel_dp);
|
edp_panel_vdd_off_sync(intel_dp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -2859,9 +2862,6 @@ static void vlv_steal_power_sequencer(struct drm_device *dev,
|
|||||||
|
|
||||||
lockdep_assert_held(&dev_priv->pps_mutex);
|
lockdep_assert_held(&dev_priv->pps_mutex);
|
||||||
|
|
||||||
if (WARN_ON(pipe != PIPE_A && pipe != PIPE_B))
|
|
||||||
return;
|
|
||||||
|
|
||||||
for_each_intel_encoder(dev, encoder) {
|
for_each_intel_encoder(dev, encoder) {
|
||||||
struct intel_dp *intel_dp;
|
struct intel_dp *intel_dp;
|
||||||
enum port port;
|
enum port port;
|
||||||
|
|||||||
Reference in New Issue
Block a user