drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
Subsystems (3)
PATCH 1/4 drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
From: Ville Syrjälä <[email protected]>
Since intel_ddi_enable_pipe_clock() pass pushed down into the encoder hooks we can pass on the encoder instead of having to use intel_ddi_get_crtc_encoder().
--- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_ddi.c | 10 +++++----- drivers/gpu/drm/i915/display/intel_ddi.h | 3 ++- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/display/intel_crt.c +1 -1
@@ -294,7 +294,7 @@ static void hsw_pre_enable_crt(struct intel_atomic_state *state,hsw_fdi_link_train (encoder, crtc_state); -intel_ddi_enable_pipe_clock (crtc_state); +intel_ddi_enable_pipe_clock (encoder, crtc_state); } static void hsw_enable_crt(struct intel_atomic_state *state,
drivers/gpu/drm/i915/display/intel_ddi.c +5 -5
@@ -1986,11 +1986,11 @@ static void intel_ddi_get_power_domains(struct intel_encoder *encoder, intel_dsc_power_domain(crtc_state)); } -void intel_ddi_enable_pipe_clock (const struct intel_crtc_state *crtc_state) +void intel_ddi_enable_pipe_clock (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -struct intel_encoder *encoder =intel_ddi_get_crtc_encoder (crtc);enum port port = encoder->port;enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
@@ -3158,7 +3158,7 @@ static void tgl_ddi_pre_enable_dp(struct intel_atomic_state *state,* 7.a Configure Transcoder Clock Select to direct the Port clock to the * Transcoder. */ -intel_ddi_enable_pipe_clock (crtc_state); +intel_ddi_enable_pipe_clock (encoder, crtc_state);/* * 7.b Configure TRANS_DDI_FUNC_CTL DDI Select, DDI Mode Select & MST
@@ -3299,7 +3299,7 @@ static void hsw_ddi_pre_enable_dp(struct intel_atomic_state *state,intel_ddi_enable_fec (encoder, crtc_state);if (!is_mst) -intel_ddi_enable_pipe_clock (crtc_state); +intel_ddi_enable_pipe_clock (encoder, crtc_state);intel_dsc_enable (encoder, crtc_state); }
@@ -3360,7 +3360,7 @@ static void intel_ddi_pre_enable_hdmi(struct intel_atomic_state *state,if (IS_GEN9_BC (dev_priv))skl_ddi_set_iboost (encoder, level,INTEL_OUTPUT_HDMI ); -intel_ddi_enable_pipe_clock (crtc_state); +intel_ddi_enable_pipe_clock (encoder, crtc_state); intel_dig_port->set_infoframes(encoder, crtc_state->has_infoframe,
drivers/gpu/drm/i915/display/intel_ddi.h +2 -1
@@ -27,7 +27,8 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port);bool intel_ddi_get_hw_state (struct intel_encoder *encoder,enum pipe *pipe);void intel_ddi_enable_transcoder_func (const struct intel_crtc_state *crtc_state);void intel_ddi_disable_transcoder_func (const struct intel_crtc_state *crtc_state); -void intel_ddi_enable_pipe_clock (const struct intel_crtc_state *crtc_state); +void intel_ddi_enable_pipe_clock (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state);void intel_ddi_disable_pipe_clock (const struct intel_crtc_state *crtc_state);void intel_ddi_set_dp_msa (const struct intel_crtc_state *crtc_state,const struct drm_connector_state *conn_state);
drivers/gpu/drm/i915/display/intel_dp_mst.c +1 -1
@@ -489,7 +489,7 @@ static void intel_mst_pre_enable_dp(struct intel_atomic_state *state,* here for the following ones. */ if (INTEL_GEN (dev_priv) <12 || !first_mst_stream) -intel_ddi_enable_pipe_clock (pipe_config); +intel_ddi_enable_pipe_clock (encoder, pipe_config);intel_ddi_set_dp_msa (pipe_config, conn_state);
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/4 drm/i915: Move the TRANS_DDI_FUNC_CTL enable to a later point
From: Ville Syrjälä <[email protected]>
No reason that I can see why we should enable TRANS_DDI_FUNC_CTL before we set up the watermarks of confogiure the mbus stuff. In fact reordering these seems to match the bspec sequence better, and cricually will allow us to push the TRANS_DDI_FUNC_CTL enable into the encoder enable hook as a followup.
--- drivers/gpu/drm/i915/display/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +3 -3
@@ -7071,15 +7071,15 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,if (INTEL_GEN (dev_priv) >=11 )icl_set_pipe_chicken (crtc); -if (!transcoder_is_dsi (cpu_transcoder)) -intel_ddi_enable_transcoder_func (new_crtc_state); -if (dev_priv->display.initial_watermarks) dev_priv->display.initial_watermarks (state, crtc);if (INTEL_GEN (dev_priv) >=11 )icl_pipe_mbus_enable (crtc); +if (!transcoder_is_dsi (cpu_transcoder)) +intel_ddi_enable_transcoder_func (new_crtc_state); +intel_encoders_enable (state, crtc);if (psl_clkgate_wa) {
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 2/4] drm/i915: Move the TRANS_DDI_FUNC_CTL enable to a later point
Quoting Ville Syrjala (2020-04-17 14:47:18)
Quoted 9 lines
From: Ville Syrjälä <[email protected]>
No reason that I can see why we should enable
TRANS_DDI_FUNC_CTLbefore we set up the watermarks of confogiure the mbus stuff. In fact reordering these seems to match the bspec sequence better, and cricually will allow us to push theTRANS_DDI_FUNC_CTLenable into the encoder enable hook as a followup.Signed-off-by Ville Syrjälä <[email protected]>
I should not comment beyond the code appears to work,
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 2/4] drm/i915: Move the TRANS_DDI_FUNC_CTL enable to a later point
In reply to Ville SyrjalaQuoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
No reason that I can see why we should enable
TRANS_DDI_FUNC_CTLbefore we set up the watermarks of confogiure the mbus stuff. In fact reordering these seems to match the bspec sequence better, and cricually will allow us to push theTRANS_DDI_FUNC_CTLenable
^^^^^^^^^
The entire series is nice, but I especially like this "crucially" typo. It looks prezactly like a mix of crucially and critically.
FWIW the series is Acked-by me, as Chris beat me to review. I also didn't spot anything obviously wrong.
BR,
Jani.
Quoted 30 lines
into the encoder enable hook as a followup.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +3
-3@@ -7071,15 +7071,15 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,if (INTEL_GEN (dev_priv) >=11 )icl_set_pipe_chicken (crtc); -if (!transcoder_is_dsi (cpu_transcoder)) -intel_ddi_enable_transcoder_func (new_crtc_state); -if (dev_priv->display.initial_watermarks) dev_priv->display.initial_watermarks (state, crtc);if (INTEL_GEN (dev_priv) >=11 )icl_pipe_mbus_enable (crtc); +if (!transcoder_is_dsi (cpu_transcoder)) +intel_ddi_enable_transcoder_func (new_crtc_state); +intel_encoders_enable (state, crtc);if (psl_clkgate_wa) {
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 2/4] drm/i915: Move the TRANS_DDI_FUNC_CTL enable to a later point
Quoted 11 lines · Jani Nikula
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
No reason that I can see why we should enable
TRANS_DDI_FUNC_CTLbefore we set up the watermarks of confogiure the mbus stuff. In fact reordering these seems to match the bspec sequence better, and cricually will allow us to push theTRANS_DDI_FUNC_CTLenable^^^^^^^^^The entire series is nice, but I especially like this "crucially" typo. It looks prezactly like a mix of crucially and critically.
Wasn't the only typo. One day I need to invest in a spell checker.
Quoted 3 lines
FWIW the series is Acked-by me, as Chris beat me to review. I also didn't spot anything obviously wrong.
Thanks for the reviews/acks. Series pushed to dinq.
Quoted 38 lines
BR,
Jani.Quoted 30 lines
into the encoder enable hook as a followup.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +3
-3@@ -7071,15 +7071,15 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,if (INTEL_GEN (dev_priv) >=11 )icl_set_pipe_chicken (crtc); -if (!transcoder_is_dsi (cpu_transcoder)) -intel_ddi_enable_transcoder_func (new_crtc_state); -if (dev_priv->display.initial_watermarks) dev_priv->display.initial_watermarks (state, crtc);if (INTEL_GEN (dev_priv) >=11 )icl_pipe_mbus_enable (crtc); +if (!transcoder_is_dsi (cpu_transcoder)) +intel_ddi_enable_transcoder_func (new_crtc_state); +intel_encoders_enable (state, crtc);if (psl_clkgate_wa) {Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/4 drm/i915: Push TRANS_DDI_FUNC_CTL into the encoder->enable() hook
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Push the TRANS_DDI_FUNC_CTL into the encoder enable hook. The disable is already there, and as a followup will enable us to pass the encoder all the way down.
--- drivers/gpu/drm/i915/display/intel_crt.c | 2 ++ drivers/gpu/drm/i915/display/intel_ddi.c | 2 ++ drivers/gpu/drm/i915/display/intel_display.c | 3 --- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_crt.c +2 -0
@@ -308,6 +308,8 @@ static void hsw_enable_crt(struct intel_atomic_state *state,drm_WARN_ON (&dev_priv->drm, !crtc_state->has_pch_encoder); +intel_ddi_enable_transcoder_func (crtc_state); +intel_enable_pipe (crtc_state);lpt_pch_enable (crtc_state);
drivers/gpu/drm/i915/display/intel_ddi.c +2 -0
@@ -3768,6 +3768,8 @@ static void intel_enable_ddi(struct intel_atomic_state *state, {WARN_ON (crtc_state->has_pch_encoder); +intel_ddi_enable_transcoder_func (crtc_state); +intel_enable_pipe (crtc_state);intel_crtc_vblank_on (crtc_state);
drivers/gpu/drm/i915/display/intel_display.c +0 -3
@@ -7077,9 +7077,6 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,if (INTEL_GEN (dev_priv) >=11 )icl_pipe_mbus_enable (crtc); -if (!transcoder_is_dsi (cpu_transcoder)) -intel_ddi_enable_transcoder_func (new_crtc_state); -intel_encoders_enable (state, crtc);if (psl_clkgate_wa) {
drivers/gpu/drm/i915/display/intel_dp_mst.c +2 -0
@@ -508,6 +508,8 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state,drm_WARN_ON (&dev_priv->drm, pipe_config->has_pch_encoder); +intel_ddi_enable_transcoder_func (pipe_config); +intel_enable_pipe (pipe_config);intel_crtc_vblank_on (pipe_config);
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/4] drm/i915: Push TRANS_DDI_FUNC_CTL into the encoder->enable() hook
Quoting Ville Syrjala (2020-04-17 14:47:19)
Quoted 7 lines
From: Ville Syrjälä <[email protected]>
Push the
TRANS_DDI_FUNC_CTLinto the encoder enable hook. The disable is already there, and as a followup will enable us to pass the encoder all the way down.Signed-off-by Ville Syrjälä <[email protected]>
In intel_ddi_transcoder_func_reg_val_get() I found a list of ddi crtc types (HDMI, ANALOG, DP_MST, DP_SST). Now hdmi/dp == ddi, and so we are left with dp_mst and crt callbacks.
Is it possible to have more BUG_ON(!transcoder_is_ddi()) scatter around the entry points?
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/4] drm/i915: Push TRANS_DDI_FUNC_CTL into the encoder->enable() hook
Quoted 9 lines · Chris Wilson
Quoting Ville Syrjala (2020-04-17 14:47:19)
Quoted 7 lines
From: Ville Syrjälä <[email protected]>
Push the
TRANS_DDI_FUNC_CTLinto the encoder enable hook. The disable is already there, and as a followup will enable us to pass the encoder all the way down.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 8 lines
In
intel_ddi_transcoder_func_reg_val_get()I found a list of ddi crtc types (HDMI, ANALOG,DP_MST,DP_SST). Now hdmi/dp == ddi, and so we are left withdp_mstand crt callbacks.Reviewed-by Chris Wilson <[email protected]>Is it possible to have more BUG_ON(!transcoder_is_ddi()) scatter around the entry points?
I guess we could assert something about either the output_types or the encoder type, but not sure that would get us much. Bunch of that is anyway the same for pre-DDI stuff.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/4 drm/i915: Pass encoder all the way to intel_ddi_transcoder_func_reg_val_get()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Pass the encoder all the way down to intel_ddi_transcoder_func_reg_val_get(). Allows us eliminate the intel_ddi_get_crtc_encoder() eyesore.
--- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_ddi.c | 39 ++++++--------------- drivers/gpu/drm/i915/display/intel_ddi.h | 3 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- 4 files changed, 14 insertions(+), 32 deletions(-)
drivers/gpu/drm/i915/display/intel_crt.c +1 -1
@@ -308,7 +308,7 @@ static void hsw_enable_crt(struct intel_atomic_state *state,drm_WARN_ON (&dev_priv->drm, !crtc_state->has_pch_encoder); -intel_ddi_enable_transcoder_func (crtc_state); +intel_ddi_enable_transcoder_func (encoder, crtc_state);intel_enable_pipe (crtc_state);
drivers/gpu/drm/i915/display/intel_ddi.c +10 -29
@@ -1351,27 +1351,6 @@ static void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder) intel_dp->DP |=DDI_PORT_WIDTH (intel_dp->lane_count); } -static struct intel_encoder * -intel_ddi_get_crtc_encoder (struct intel_crtc *crtc) -{ -struct drm_device *dev = crtc->base.dev; -struct intel_encoder *encoder, *ret =NULL ; -int num_encoders =0 ; - -for_each_encoder_on_crtc (dev, &crtc->base, encoder) { - ret = encoder; - num_encoders++; - } - -if (num_encoders !=1 ) -drm_WARN (dev,1 ,"%d encoders on crtc for pipe %c\n" , - num_encoders, -pipe_name (crtc->pipe)); - -BUG_ON (ret ==NULL ); -return ret; -} -static int icl_calc_tbt_pll_link (struct drm_i915_private *dev_priv,enum port port) {
@@ -1512,10 +1491,10 @@ static u32 bdw_trans_port_sync_master_select(enum transcoder master_transcoder)* intel_ddi_config_transcoder_func(). */ static u32 -intel_ddi_transcoder_func_reg_val_get (const struct intel_crtc_state *crtc_state) +intel_ddi_transcoder_func_reg_val_get (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); -struct intel_encoder *encoder =intel_ddi_get_crtc_encoder (crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum pipe pipe = crtc->pipe;enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
@@ -1617,7 +1596,8 @@ intel_ddi_transcoder_func_reg_val_get(const struct intel_crtc_state *crtc_state)return temp; } -void intel_ddi_enable_transcoder_func (const struct intel_crtc_state *crtc_state) +void intel_ddi_enable_transcoder_func (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);
@@ -1640,7 +1620,7 @@ void intel_ddi_enable_transcoder_func(const struct intel_crtc_state *crtc_state) TRANS_DDI_FUNC_CTL2(cpu_transcoder), ctl2); } - ctl =intel_ddi_transcoder_func_reg_val_get (crtc_state); + ctl =intel_ddi_transcoder_func_reg_val_get (encoder, crtc_state);if (intel_crtc_has_type (crtc_state,INTEL_OUTPUT_DP_MST )) ctl |=TRANS_DDI_DP_VC_PAYLOAD_ALLOC ;intel_de_write (dev_priv,TRANS_DDI_FUNC_CTL (cpu_transcoder), ctl);
@@ -1651,14 +1631,15 @@ void intel_ddi_enable_transcoder_func(const struct intel_crtc_state *crtc_state)* bit. */ static void -intel_ddi_config_transcoder_func (const struct intel_crtc_state *crtc_state) +intel_ddi_config_transcoder_func (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;u32 ctl; - ctl =intel_ddi_transcoder_func_reg_val_get (crtc_state); + ctl =intel_ddi_transcoder_func_reg_val_get (encoder, crtc_state); ctl &= ~TRANS_DDI_FUNC_ENABLE ;intel_de_write (dev_priv,TRANS_DDI_FUNC_CTL (cpu_transcoder), ctl); }
@@ -3164,7 +3145,7 @@ static void tgl_ddi_pre_enable_dp(struct intel_atomic_state *state,* 7.b Configure TRANS_DDI_FUNC_CTL DDI Select, DDI Mode Select & MST * Transport Select */ -intel_ddi_config_transcoder_func (crtc_state); +intel_ddi_config_transcoder_func (encoder, crtc_state);/* * 7.c Configure & enable DP_TP_CTL with link training pattern 1
@@ -3768,7 +3749,7 @@ static void intel_enable_ddi(struct intel_atomic_state *state, {WARN_ON (crtc_state->has_pch_encoder); -intel_ddi_enable_transcoder_func (crtc_state); +intel_ddi_enable_transcoder_func (encoder, crtc_state);intel_enable_pipe (crtc_state);
drivers/gpu/drm/i915/display/intel_ddi.h +2 -1
@@ -25,7 +25,8 @@ void hsw_fdi_link_train(struct intel_encoder *encoder, const struct intel_crtc_state *crtc_state);void intel_ddi_init (struct drm_i915_private *dev_priv,enum port port);bool intel_ddi_get_hw_state (struct intel_encoder *encoder,enum pipe *pipe); -void intel_ddi_enable_transcoder_func (const struct intel_crtc_state *crtc_state); +void intel_ddi_enable_transcoder_func (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state);void intel_ddi_disable_transcoder_func (const struct intel_crtc_state *crtc_state);void intel_ddi_enable_pipe_clock (struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state);
drivers/gpu/drm/i915/display/intel_dp_mst.c +1 -1
@@ -508,7 +508,7 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state,drm_WARN_ON (&dev_priv->drm, pipe_config->has_pch_encoder); -intel_ddi_enable_transcoder_func (pipe_config); +intel_ddi_enable_transcoder_func (encoder, pipe_config);intel_enable_pipe (pipe_config);
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 4/4] drm/i915: Pass encoder all the way to intel_ddi_transcoder_func_reg_val_get()
Quoting Ville Syrjala (2020-04-17 14:47:20)
Quoted 45 lines
From: Ville Syrjälä <[email protected]>
Pass the encoder all the way down to
intel_ddi_transcoder_func_reg_val_get(). Allows us eliminate theintel_ddi_get_crtc_encoder()eyesore.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_ddi.c | 39 ++++++--------------- drivers/gpu/drm/i915/display/intel_ddi.h | 3 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- 4 files changed, 14 insertions(+), 32 deletions(-)drivers/gpu/drm/i915/display/intel_crt.c +1
-1@@ -308,7 +308,7 @@ static void hsw_enable_crt(struct intel_atomic_state *state,drm_WARN_ON (&dev_priv->drm, !crtc_state->has_pch_encoder); -intel_ddi_enable_transcoder_func (crtc_state); +intel_ddi_enable_transcoder_func (encoder, crtc_state);intel_enable_pipe (crtc_state);drivers/gpu/drm/i915/display/intel_ddi.c +0
-10@@ -1351,27 +1351,6 @@ static void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder) intel_dp->DP |=DDI_PORT_WIDTH (intel_dp->lane_count); } -static struct intel_encoder * -intel_ddi_get_crtc_encoder (struct intel_crtc *crtc) -{ -struct drm_device *dev = crtc->base.dev; -struct intel_encoder *encoder, *ret =NULL ; -int num_encoders =0 ; - -for_each_encoder_on_crtc (dev, &crtc->base, encoder) { - ret = encoder; - num_encoders++;
drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder) · line 1373
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +0
-10- } - -if (num_encoders !=1 ) -drm_WARN (dev,1 ,"%d encoders on crtc for pipe %c\n" , - num_encoders, -pipe_name (crtc->pipe)); - -BUG_ON (ret ==NULL ); -return ret; -}
Worth it. Eyesore, more like booby trap.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.DOCS: warning for series starting with [1/4] drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
URL : https://patchwork.freedesktop.org/series/76097/
State : warning
== Summary ==
$ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING: duplicate label gpu/i915:layout, other instance in /home/cidrm/kernel/Documentation/gpu/i915.rst
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/4] drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
URL : https://patchwork.freedesktop.org/series/76097/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8319 -> Patchwork_17350
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/index.html
Known issues
------------
Here are the changes found in Patchwork_17350 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@module-reload:
- fi-icl-dsi: [PASS][1] -> [INCOMPLETE][2] ([i915#189])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/fi-icl-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/fi-icl-dsi/igt@[email protected]
[i915#189]: https://gitlab.freedesktop.org/drm/intel/issues/189
Participating hosts (51 -> 45)
------------------------------
Additional (1): fi-kbl-7560u
Missing (7): fi-hsw-4200u fi-skl-6770hq fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8319 -> Patchwork_17350
CI-20190529: 20190529
CI_DRM_8319: 18043327e8a9cba095bca9f80cdc70900a51f92c @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5599: cdb07101dda33e2fcb0f4c2aa199c47159d88f35 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17350: 0cf01a5dabf796c1438b394844567e70d59749f0 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
0cf01a5dabf7 drm/i915: Pass encoder all the way to intel_ddi_transcoder_func_reg_val_get() 7948852d83fc drm/i915: Push TRANS_DDI_FUNC_CTL into the encoder->enable() hook 97ad2767af80 drm/i915: Move the TRANS_DDI_FUNC_CTL enable to a later point 061836a62d28 drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Ville Syrjala (2020-04-17 14:47:17)
Quoted 7 lines
From: Ville Syrjälä <[email protected]>
Since
intel_ddi_enable_pipe_clock()pass pushed down into the encoder hooks we can pass on the encoder instead of having to useintel_ddi_get_crtc_encoder().Signed-off-by Ville Syrjälä <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/4] drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i195: Pass encoder to intel_ddi_enable_pipe_clock()
URL : https://patchwork.freedesktop.org/series/76097/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8319_full -> Patchwork_17350_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_17350_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_params@invalid-bsd-ring:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#109276])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-iclb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-iclb6/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-kbl: [PASS][3] -> [DMESG-WARN][4] ([i915#716])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl4/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-glk: [PASS][5] -> [INCOMPLETE][6] ([i915#58] / [k.org#198133])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-glk1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-glk9/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-128x42-random:
- shard-kbl: [PASS][7] -> [FAIL][8] ([i915#54] / [i915#93] / [i915#95])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x85-offscreen:
- shard-apl: [PASS][9] -> [FAIL][10] ([i915#54] / [i915#95])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-apl4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-apl1/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-skl: [PASS][11] -> [FAIL][12] ([IGT#5])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-skl5/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-skl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-rte:
- shard-kbl: [PASS][13] -> [DMESG-WARN][14] ([i915#165])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl4/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [PASS][15] -> [INCOMPLETE][16] ([i915#155])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl7/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl3/igt@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][17] -> [FAIL][18] ([i915#1188]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-skl8/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-skl4/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-kbl: [PASS][19] -> [DMESG-WARN][20] ([i915#180]) +4 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl3/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl4/igt@[email protected]
* igt@kms_mmap_write_crc@main:
- shard-kbl: [PASS][21] -> [FAIL][22] ([i915#93] / [i915#95])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl7/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl3/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-skl: [PASS][23] -> [INCOMPLETE][24] ([i915#69])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-skl7/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-skl9/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-apl: [PASS][25] -> [DMESG-WARN][26] ([i915#180])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-apl7/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-apl1/igt@[email protected]
* igt@kms_plane@plane-position-hole-pipe-a-planes:
- shard-snb: [PASS][27] -> [SKIP][28] ([fdo#109271]) +3 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-snb5/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-snb2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][29] -> [FAIL][30] ([fdo#108145] / [i915#265]) +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-skl9/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-skl4/igt@[email protected]
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][31] -> [SKIP][32] ([fdo#109441]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-iclb5/igt@kms_psr@psr2_cursor_render.html
* igt@kms_setmode@basic:
- shard-kbl: [PASS][33] -> [FAIL][34] ([i915#31])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl4/igt@[email protected]
#### Possible fixes ####
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][35] ([i915#454]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-iclb2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-iclb5/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-snb: [FAIL][37] ([i915#1066]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-snb2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-snb4/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [DMESG-WARN][39] ([i915#180]) -> [PASS][40] +5 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl7/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-apl: [DMESG-WARN][41] ([i915#180]) -> [PASS][42] +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-apl4/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-apl1/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-wc-untiled:
- shard-glk: [FAIL][43] ([i915#52] / [i915#54]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-glk4/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-glk7/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [FAIL][45] ([i915#1188]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-skl1/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-skl5/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-skl: [INCOMPLETE][47] ([i915#69]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-skl6/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-skl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [FAIL][49] ([fdo#108145] / [i915#265]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-skl1/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-skl5/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][51] ([fdo#109441]) -> [PASS][52] +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-iclb3/igt@kms_psr@psr2_sprite_plane_move.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
* {igt@perf@polling-parameterized}:
- shard-iclb: [FAIL][53] ([i915#1542]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-iclb6/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-iclb1/igt@[email protected]
#### Warnings ####
* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-iclb: [SKIP][55] ([i915#658]) -> [SKIP][56] ([i915#588])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-iclb7/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-iclb2/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-kbl: [FAIL][57] ([i915#93] / [i915#95]) -> [DMESG-FAIL][58] ([i915#180] / [i915#95])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl7/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-kbl: [FAIL][59] ([fdo#108145] / [i915#265]) -> [FAIL][60] ([fdo#108145] / [i915#265] / [i915#62])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl4/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: [FAIL][61] ([i915#1423] / [i915#92]) -> ([FAIL][62], [FAIL][63]) ([i915#1423] / [i915#716] / [i915#92])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8319/shard-kbl2/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl7/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/shard-kbl4/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#5]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/5
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#1066]: https://gitlab.freedesktop.org/drm/intel/issues/1066
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1423]: https://gitlab.freedesktop.org/drm/intel/issues/1423
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#155]: https://gitlab.freedesktop.org/drm/intel/issues/155
[i915#165]: https://gitlab.freedesktop.org/drm/intel/issues/165
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#198]: https://gitlab.freedesktop.org/drm/intel/issues/198
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#52]: https://gitlab.freedesktop.org/drm/intel/issues/52
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#58]: https://gitlab.freedesktop.org/drm/intel/issues/58
[i915#588]: https://gitlab.freedesktop.org/drm/intel/issues/588
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#69]: https://gitlab.freedesktop.org/drm/intel/issues/69
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#93]: https://gitlab.freedesktop.org/drm/intel/issues/93
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8319 -> Patchwork_17350
CI-20190529: 20190529
CI_DRM_8319: 18043327e8a9cba095bca9f80cdc70900a51f92c @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5599: cdb07101dda33e2fcb0f4c2aa199c47159d88f35 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17350: 0cf01a5dabf796c1438b394844567e70d59749f0 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17350/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx