drm/i915: Create a intel_encoder_find_connector helper function.
Subsystems (2)
PATCH 1/2 drm/i915: Create a intel_encoder_find_connector helper function.
This makes the code in intel_sanitize_encoder slightly more readable. This was meant to be addressed in fd6bbda9c7a4, but I missed that review comment.
--- drivers/gpu/drm/i915/intel_display.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/intel_display.c +13 -7
@@ -16423,6 +16423,17 @@ static bool intel_crtc_has_encoders(struct intel_crtc *crtc)return false; } +static struct intel_connector *intel_encoder_find_connector (struct intel_encoder *encoder) +{ +struct drm_device *dev = encoder->base.dev; +struct intel_connector *connector; + +for_each_connector_on_encoder (dev, &encoder->base, connector) +return connector; + +return NULL ; +} +static bool has_pch_trancoder (struct drm_i915_private *dev_priv,enum transcoder pch_transcoder) {
@@ -16526,7 +16537,6 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder) {struct intel_connector *connector;struct drm_device *dev = encoder->base.dev; -bool found_connector = false;/* We need to check both for a crtc link (meaning that the * encoder is active and trying to read from a pipe) and the
@@ -16534,12 +16544,8 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder)bool has_active_crtc = encoder->base.crtc &&to_intel_crtc (encoder->base.crtc)->active; -for_each_connector_on_encoder (dev, &encoder->base, connector) { - found_connector = true; -break ; - } - -if (found_connector && !has_active_crtc) { + connector =intel_encoder_find_connector (encoder); +if (connector && !has_active_crtc) {DRM_DEBUG_KMS ("[ENCODER:%d:%s] has active connectors but no active pipe!\n" , encoder->base.base.id, encoder->base.name);
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Cleanup crt disable sequence on hsw+
Instead of iterating overthe connectors manually, run the last part of DDI disabling inside the crt post disable function.
This was meant to be addressed before submitting the other commit, but I missed the review comments.
--- drivers/gpu/drm/i915/intel_crt.c | 15 ++++++++ drivers/gpu/drm/i915/intel_ddi.c | 67 ++++++++++++++++++------------------ drivers/gpu/drm/i915/intel_display.c | 25 ++------------ drivers/gpu/drm/i915/intel_drv.h | 8 +++-- 4 files changed, 57 insertions(+), 58 deletions(-)
drivers/gpu/drm/i915/intel_crt.c +15 -0
@@ -215,6 +215,20 @@ static void pch_post_disable_crt(struct intel_encoder *encoder,intel_disable_crt (encoder, old_crtc_state, old_conn_state); } +static void hsw_post_disable_crt (struct intel_encoder *encoder, +struct intel_crtc_state *old_crtc_state, +struct drm_connector_state *old_conn_state) +{ +struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); + +pch_post_disable_crt (encoder, old_crtc_state, old_conn_state); + +lpt_disable_pch_transcoder (dev_priv); +lpt_disable_iclkip (dev_priv); + +intel_ddi_fdi_post_disable (encoder, old_crtc_state, old_conn_state); +} +static void intel_enable_crt (struct intel_encoder *encoder,struct intel_crtc_state *pipe_config,struct drm_connector_state *conn_state)
@@ -905,6 +919,7 @@ void intel_crt_init(struct drm_device *dev)if (HAS_DDI (dev)) { crt->base.get_config = hsw_crt_get_config; crt->base.get_hw_state = intel_ddi_get_hw_state; + crt->base.post_disable = hsw_post_disable_crt; }else { crt->base.get_config = intel_crt_get_config; crt->base.get_hw_state = intel_crt_get_hw_state;
drivers/gpu/drm/i915/intel_ddi.c +34 -33
79 lines not on this page · raw message
drivers/gpu/drm/i915/intel_display.c +3 -22
@@ -1907,7 +1907,7 @@ static void ironlake_disable_pch_transcoder(struct drm_i915_private *dev_priv, } } -static void lpt_disable_pch_transcoder (struct drm_i915_private *dev_priv) +void lpt_disable_pch_transcoder (struct drm_i915_private *dev_priv) {u32 val;
@@ -4292,7 +4292,7 @@ static int intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc)return 0 ; } -static void lpt_disable_iclkip (struct drm_i915_private *dev_priv) +void lpt_disable_iclkip (struct drm_i915_private *dev_priv) {u32 temp;
@@ -5606,28 +5606,9 @@ static void haswell_crtc_disable(struct intel_crtc_state *old_crtc_state,intel_encoders_post_disable (crtc, old_crtc_state, old_state); -if (intel_crtc->config->has_pch_encoder) { -struct drm_connector_state *old_conn_state; -struct drm_connector *conn; -int i; - -lpt_disable_pch_transcoder (dev_priv); -lpt_disable_iclkip (dev_priv); - -for_each_connector_in_state (old_state, conn, old_conn_state, i) -if (old_conn_state->crtc == crtc) { -struct intel_encoder *encoder = -to_intel_encoder (old_conn_state->best_encoder); - -intel_ddi_fdi_disable (encoder, - old_crtc_state, - old_conn_state); -break ; - } - +if (old_crtc_state->has_pch_encoder)intel_set_pch_fifo_underrun_reporting (dev_priv,TRANSCODER_A , true); - } }static void i9xx_pfit_enable (struct intel_crtc *crtc)
drivers/gpu/drm/i915/intel_drv.h +5 -3
@@ -1137,6 +1137,9 @@ void intel_crt_reset(struct drm_encoder *encoder);/* intel_ddi.c */ void intel_ddi_clk_select (struct intel_encoder *encoder,const struct intel_crtc_state *pipe_config); +void intel_ddi_fdi_post_disable (struct intel_encoder *intel_encoder, +struct intel_crtc_state *old_crtc_state, +struct drm_connector_state *old_conn_state);void intel_prepare_dp_ddi_buffers (struct intel_encoder *encoder);void hsw_fdi_link_train (struct drm_crtc *crtc);void intel_ddi_init (struct drm_device *dev,enum port port);
@@ -1152,9 +1155,6 @@ bool intel_ddi_pll_select(struct intel_crtc *crtc,void intel_ddi_set_pipe_settings (struct drm_crtc *crtc);void intel_ddi_prepare_link_retrain (struct intel_dp *intel_dp);bool intel_ddi_connector_get_hw_state (struct intel_connector *intel_connector); -void intel_ddi_fdi_disable (struct intel_encoder *, -struct intel_crtc_state *, -struct drm_connector_state *);void intel_ddi_get_config (struct intel_encoder *encoder,struct intel_crtc_state *pipe_config); struct intel_encoder *
@@ -1185,6 +1185,8 @@ void skl_set_preferred_cdclk_vco(struct drm_i915_private *dev_priv, int vco);void intel_update_rawclk (struct drm_i915_private *dev_priv);int vlv_get_cck_clock (struct drm_i915_private *dev_priv,const char *name,u32 reg,int ref_freq); +void lpt_disable_pch_transcoder (struct drm_i915_private *dev_priv); +void lpt_disable_iclkip (struct drm_i915_private *dev_priv);extern const struct drm_plane_funcs intel_plane_funcs;void intel_init_display_hooks (struct drm_i915_private *dev_priv); unsigned int intel_fb_xy_to_linear(int x, int y,
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Cleanup crt disable sequence on hsw+
Quoted 8 lines · Maarten Lankhorst
Instead of iterating overthe connectors manually, run the last part of DDI disabling inside the crt post disable function.
This was meant to be addressed before submitting the other commit, but I missed the review comments.
Fixes fd6bbda9c7a4 ("drm/i915: Pass crtc_state and connector_state to encoder functions")Signed-off-by Maarten Lankhorst <[email protected]>
Yup, I think that's much more tidy.
Quoted 217 lines
--- drivers/gpu/drm/i915/intel_crt.c | 15 ++++++++ drivers/gpu/drm/i915/intel_ddi.c | 67 ++++++++++++++++++------------------ drivers/gpu/drm/i915/intel_display.c | 25 ++------------ drivers/gpu/drm/i915/intel_drv.h | 8 +++-- 4 files changed, 57 insertions(+), 58 deletions(-)drivers/gpu/drm/i915/intel_crt.c +15
-0@@ -215,6 +215,20 @@ static void pch_post_disable_crt(struct intel_encoder *encoder,intel_disable_crt (encoder, old_crtc_state, old_conn_state); } +static void hsw_post_disable_crt (struct intel_encoder *encoder, +struct intel_crtc_state *old_crtc_state, +struct drm_connector_state *old_conn_state) +{ +struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); + +pch_post_disable_crt (encoder, old_crtc_state, old_conn_state); + +lpt_disable_pch_transcoder (dev_priv); +lpt_disable_iclkip (dev_priv); + +intel_ddi_fdi_post_disable (encoder, old_crtc_state, old_conn_state); +} +static void intel_enable_crt (struct intel_encoder *encoder,struct intel_crtc_state *pipe_config,struct drm_connector_state *conn_state)@@ -905,6 +919,7 @@ void intel_crt_init(struct drm_device *dev)if (HAS_DDI (dev)) { crt->base.get_config = hsw_crt_get_config; crt->base.get_hw_state = intel_ddi_get_hw_state; + crt->base.post_disable = hsw_post_disable_crt; }else { crt->base.get_config = intel_crt_get_config; crt->base.get_hw_state = intel_crt_get_hw_state;drivers/gpu/drm/i915/intel_ddi.c +34
-33@@ -1714,6 +1714,40 @@ static void intel_ddi_post_disable(struct intel_encoder *intel_encoder, } } +void intel_ddi_fdi_post_disable (struct intel_encoder *intel_encoder, +struct intel_crtc_state *old_crtc_state, +struct drm_connector_state *old_conn_state) +{ +struct drm_i915_private *dev_priv =to_i915 (intel_encoder->base.dev); +uint32_t val; + +/* +* Bspec lists this as both step 13 (before DDI_BUF_CTL disable) +* and step 18 (after clearing PORT_CLK_SEL). Based on a BUN, +* step 13 is the correct place for it. Step 18 is where it was +* originally before the BUN. +*/ + val =I915_READ (FDI_RX_CTL (PIPE_A )); + val &= ~FDI_RX_ENABLE ; +I915_WRITE (FDI_RX_CTL (PIPE_A ), val); + +intel_ddi_post_disable (intel_encoder, old_crtc_state, old_conn_state); + + val =I915_READ (FDI_RX_MISC (PIPE_A )); + val &= ~(FDI_RX_PWRDN_LANE1_MASK |FDI_RX_PWRDN_LANE0_MASK ); + val |=FDI_RX_PWRDN_LANE1_VAL (2 ) |FDI_RX_PWRDN_LANE0_VAL (2 ); +I915_WRITE (FDI_RX_MISC (PIPE_A ), val); + + val =I915_READ (FDI_RX_CTL (PIPE_A )); + val &= ~FDI_PCDCLK ; +I915_WRITE (FDI_RX_CTL (PIPE_A ), val); + + val =I915_READ (FDI_RX_CTL (PIPE_A )); + val &= ~FDI_RX_PLL_ENABLE ; +I915_WRITE (FDI_RX_CTL (PIPE_A ), val); +} + +static void intel_enable_ddi (struct intel_encoder *intel_encoder,struct intel_crtc_state *pipe_config,struct drm_connector_state *conn_state)@@ -2153,39 +2187,6 @@ void intel_ddi_prepare_link_retrain(struct intel_dp *intel_dp)udelay (600 ); } -void intel_ddi_fdi_disable (struct intel_encoder *intel_encoder, -struct intel_crtc_state *old_crtc_state, -struct drm_connector_state *old_conn_state) -{ -struct drm_i915_private *dev_priv =to_i915 (intel_encoder->base.dev); -uint32_t val; - -/* -* Bspec lists this as both step 13 (before DDI_BUF_CTL disable) -* and step 18 (after clearing PORT_CLK_SEL). Based on a BUN, -* step 13 is the correct place for it. Step 18 is where it was -* originally before the BUN. -*/ - val =I915_READ (FDI_RX_CTL (PIPE_A )); - val &= ~FDI_RX_ENABLE ; -I915_WRITE (FDI_RX_CTL (PIPE_A ), val); - -intel_ddi_post_disable (intel_encoder, old_crtc_state, old_conn_state); - - val =I915_READ (FDI_RX_MISC (PIPE_A )); - val &= ~(FDI_RX_PWRDN_LANE1_MASK |FDI_RX_PWRDN_LANE0_MASK ); - val |=FDI_RX_PWRDN_LANE1_VAL (2 ) |FDI_RX_PWRDN_LANE0_VAL (2 ); -I915_WRITE (FDI_RX_MISC (PIPE_A ), val); - - val =I915_READ (FDI_RX_CTL (PIPE_A )); - val &= ~FDI_PCDCLK ; -I915_WRITE (FDI_RX_CTL (PIPE_A ), val); - - val =I915_READ (FDI_RX_CTL (PIPE_A )); - val &= ~FDI_RX_PLL_ENABLE ; -I915_WRITE (FDI_RX_CTL (PIPE_A ), val); -} -void intel_ddi_get_config (struct intel_encoder *encoder,struct intel_crtc_state *pipe_config) {drivers/gpu/drm/i915/intel_display.c +3
-22@@ -1907,7 +1907,7 @@ static void ironlake_disable_pch_transcoder(struct drm_i915_private *dev_priv, } } -static void lpt_disable_pch_transcoder (struct drm_i915_private *dev_priv) +void lpt_disable_pch_transcoder (struct drm_i915_private *dev_priv) {u32 val;@@ -4292,7 +4292,7 @@ static int intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc)return 0 ; } -static void lpt_disable_iclkip (struct drm_i915_private *dev_priv) +void lpt_disable_iclkip (struct drm_i915_private *dev_priv) {u32 temp;@@ -5606,28 +5606,9 @@ static void haswell_crtc_disable(struct intel_crtc_state *old_crtc_state,intel_encoders_post_disable (crtc, old_crtc_state, old_state); -if (intel_crtc->config->has_pch_encoder) { -struct drm_connector_state *old_conn_state; -struct drm_connector *conn; -int i; - -lpt_disable_pch_transcoder (dev_priv); -lpt_disable_iclkip (dev_priv); - -for_each_connector_in_state (old_state, conn, old_conn_state, i) -if (old_conn_state->crtc == crtc) { -struct intel_encoder *encoder = -to_intel_encoder (old_conn_state->best_encoder); - -intel_ddi_fdi_disable (encoder, - old_crtc_state, - old_conn_state); -break ; - } - +if (old_crtc_state->has_pch_encoder)intel_set_pch_fifo_underrun_reporting (dev_priv,TRANSCODER_A , true); - } }static void i9xx_pfit_enable (struct intel_crtc *crtc)drivers/gpu/drm/i915/intel_drv.h +5
-3@@ -1137,6 +1137,9 @@ void intel_crt_reset(struct drm_encoder *encoder);/* intel_ddi.c */ void intel_ddi_clk_select (struct intel_encoder *encoder,const struct intel_crtc_state *pipe_config); +void intel_ddi_fdi_post_disable (struct intel_encoder *intel_encoder, +struct intel_crtc_state *old_crtc_state, +struct drm_connector_state *old_conn_state);void intel_prepare_dp_ddi_buffers (struct intel_encoder *encoder);void hsw_fdi_link_train (struct drm_crtc *crtc);void intel_ddi_init (struct drm_device *dev,enum port port);@@ -1152,9 +1155,6 @@ bool intel_ddi_pll_select(struct intel_crtc *crtc,void intel_ddi_set_pipe_settings (struct drm_crtc *crtc);void intel_ddi_prepare_link_retrain (struct intel_dp *intel_dp);bool intel_ddi_connector_get_hw_state (struct intel_connector *intel_connector); -void intel_ddi_fdi_disable (struct intel_encoder *, -struct intel_crtc_state *, -struct drm_connector_state *);void intel_ddi_get_config (struct intel_encoder *encoder,struct intel_crtc_state *pipe_config); struct intel_encoder *@@ -1185,6 +1185,8 @@ void skl_set_preferred_cdclk_vco(struct drm_i915_private *dev_priv, int vco);void intel_update_rawclk (struct drm_i915_private *dev_priv);int vlv_get_cck_clock (struct drm_i915_private *dev_priv,const char *name,u32 reg,int ref_freq); +void lpt_disable_pch_transcoder (struct drm_i915_private *dev_priv); +void lpt_disable_iclkip (struct drm_i915_private *dev_priv);extern const struct drm_plane_funcs intel_plane_funcs;void intel_init_display_hooks (struct drm_i915_private *dev_priv); unsigned int intel_fb_xy_to_linear(int x, int y,Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Maarten Lankhorst
This makes the code in
intel_sanitize_encoderslightly more readable. This was meant to be addressed infd6bbda9c7a4, but I missed that review comment.Fixes fd6bbda9c7a4 ("drm/i915: Pass crtc_state and connector_state to encoder functions")Signed-off-by Maarten Lankhorst <[email protected]>
Yeah, prettiness restored!
Quoted 56 lines
--- drivers/gpu/drm/i915/intel_display.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/intel_display.c +13
-7@@ -16423,6 +16423,17 @@ static bool intel_crtc_has_encoders(struct intel_crtc *crtc)return false; } +static struct intel_connector *intel_encoder_find_connector (struct intel_encoder *encoder) +{ +struct drm_device *dev = encoder->base.dev; +struct intel_connector *connector; + +for_each_connector_on_encoder (dev, &encoder->base, connector) +return connector; + +return NULL ; +} +static bool has_pch_trancoder (struct drm_i915_private *dev_priv,enum transcoder pch_transcoder) {@@ -16526,7 +16537,6 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder) {struct intel_connector *connector;struct drm_device *dev = encoder->base.dev; -bool found_connector = false;/* We need to check both for a crtc link (meaning that the * encoder is active and trying to read from a pipe) and the @@ -16534,12 +16544,8 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder)bool has_active_crtc = encoder->base.crtc &&to_intel_crtc (encoder->base.crtc)->active; -for_each_connector_on_encoder (dev, &encoder->base, connector) { - found_connector = true; -break ; - } - -if (found_connector && !has_active_crtc) { + connector =intel_encoder_find_connector (encoder); +if (connector && !has_active_crtc) {DRM_DEBUG_KMS ("[ENCODER:%d:%s] has active connectors but no active pipe!\n" , encoder->base.base.id, encoder->base.name);Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
kbuild test robot
build botreproduce:
Hi Maarten,
[auto build test WARNING on drm-intel/for-linux-next]
[cannot apply to v4.8-rc3 next-20160823]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information]
url: https://github.com/0day-ci/linux/commits/Maarten-Lankhorst/drm-i915-Create-a-intel_encoder_find_connector-helper-function/20160823-222308 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-x016-201634 (attached as .config) compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705 reproduce: # save the attached .config to linux build tree make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/gpu/drm/i915/intel_display.c: In function 'intel_sanitize_encoder':
>> drivers/gpu/drm/i915/intel_display.c:16539:21: warning: unused variable 'dev' [-Wunused-variable]
struct drm_device *dev = encoder->base.dev;
^~~vim +/dev +16539 drivers/gpu/drm/i915/intel_display.c
a168f5b3f1 Ville Syrjälä 2016-08-05 16523 * We track the PCH trancoder underrun reporting state
a168f5b3f1 Ville Syrjälä 2016-08-05 16524 * within the crtc. With crtc for pipe A housing the underrun
a168f5b3f1 Ville Syrjälä 2016-08-05 16525 * reporting state for PCH transcoder A, crtc for pipe B housing
a168f5b3f1 Ville Syrjälä 2016-08-05 16526 * it for PCH transcoder B, etc. LPT-H has only PCH transcoder A,
a168f5b3f1 Ville Syrjälä 2016-08-05 16527 * and marking underrun reporting as disabled for the non-existing
a168f5b3f1 Ville Syrjälä 2016-08-05 16528 * PCH transcoders B and C would prevent enabling the south
a168f5b3f1 Ville Syrjälä 2016-08-05 16529 * error interrupt (see cpt_can_enable_serr_int()).
a168f5b3f1 Ville Syrjälä 2016-08-05 16530 */
a168f5b3f1 Ville Syrjälä 2016-08-05 16531 if (has_pch_trancoder(dev_priv, (enum transcoder)crtc->pipe))
4cc3148930 Daniel Vetter 2014-03-24 16532 crtc->pch_fifo_underrun_disabled = true;
4cc3148930 Daniel Vetter 2014-03-24 16533 }
2492935248 Daniel Vetter 2012-07-02 16534 }
2492935248 Daniel Vetter 2012-07-02 16535
2492935248 Daniel Vetter 2012-07-02 16536 static void intel_sanitize_encoder(struct intel_encoder *encoder)
2492935248 Daniel Vetter 2012-07-02 16537 {
2492935248 Daniel Vetter 2012-07-02 16538 struct intel_connector *connector;
2492935248 Daniel Vetter 2012-07-02 @16539 struct drm_device *dev = encoder->base.dev;
2492935248 Daniel Vetter 2012-07-02 16540
2492935248 Daniel Vetter 2012-07-02 16541 /* We need to check both for a crtc link (meaning that the
2492935248 Daniel Vetter 2012-07-02 16542 * encoder is active and trying to read from a pipe) and the
2492935248 Daniel Vetter 2012-07-02 16543 * pipe itself being active. */
2492935248 Daniel Vetter 2012-07-02 16544 bool has_active_crtc = encoder->base.crtc &&
2492935248 Daniel Vetter 2012-07-02 16545 to_intel_crtc(encoder->base.crtc)->active;
2492935248 Daniel Vetter 2012-07-02 16546 d1b4131c19 Maarten Lankhorst 2016-08-23 16547 connector = intel_encoder_find_connector(encoder);
:::::: The code at line 16539 was first introduced by commit
:::::: 24929352481f085c5f85d4d4cbc919ddf106d381 drm/i915: read out the modeset hw state at load and resume time
:::::: TO: Daniel Vetter <[email protected]>
:::::: CC: Daniel Vetter <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
kbuild test robot
build botreproduce:
Hi Maarten,
[auto build test ERROR on drm-intel/for-linux-next]
[cannot apply to v4.8-rc3 next-20160823]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information]
url: https://github.com/0day-ci/linux/commits/Maarten-Lankhorst/drm-i915-Create-a-intel_encoder_find_connector-helper-function/20160823-222308 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-x009-201634 (attached as .config) compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705 reproduce: # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/intel_display.c: In function 'intel_sanitize_encoder':
>> drivers/gpu/drm/i915/intel_display.c:16539:21: error: unused variable 'dev' [-Werror=unused-variable]
struct drm_device *dev = encoder->base.dev;
^~~cc1: all warnings being treated as errors
vim +/dev +16539 drivers/gpu/drm/i915/intel_display.c
4cc31489 Daniel Vetter 2014-03-24 16533 }
24929352 Daniel Vetter 2012-07-02 16534 }
24929352 Daniel Vetter 2012-07-02 16535
24929352 Daniel Vetter 2012-07-02 16536 static void intel_sanitize_encoder(struct intel_encoder *encoder)
24929352 Daniel Vetter 2012-07-02 16537 {
24929352 Daniel Vetter 2012-07-02 16538 struct intel_connector *connector;
24929352 Daniel Vetter 2012-07-02 @16539 struct drm_device *dev = encoder->base.dev;
24929352 Daniel Vetter 2012-07-02 16540
24929352 Daniel Vetter 2012-07-02 16541 /* We need to check both for a crtc link (meaning that the
24929352 Daniel Vetter 2012-07-02 16542 * encoder is active and trying to read from a pipe) and the:::::: The code at line 16539 was first introduced by commit
:::::: 24929352481f085c5f85d4d4cbc919ddf106d381 drm/i915: read out the modeset hw state at load and resume time
:::::: TO: Daniel Vetter <[email protected]>
:::::: CC: Daniel Vetter <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915: Create a intel_encoder_find_connector helper function.
In reply to Maarten Lankhorst== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915: Create a intel_encoder_find_connector helper function.
URL : https://patchwork.freedesktop.org/series/11475/
State : failure
== Summary ==
Series 11475v1 Series without cover letter
http://patchwork.freedesktop.org/api/1.0/series/11475/revisions/1/mbox/
Test gem_exec_suspend:
Subgroup basic-s3:
incomplete -> DMESG-WARN (fi-hsw-4770k)
Test kms_cursor_legacy:
Subgroup basic-flip-vs-cursor-legacy:
pass -> FAIL (fi-bsw-n3050)
fail -> PASS (fi-bdw-5557u)
Test kms_flip:
Subgroup basic-plain-flip:
pass -> DMESG-WARN (fi-bdw-5557u)fi-bdw-5557u total:249 pass:231 dwarn:1 dfail:0 fail:1 skip:16 fi-bsw-n3050 total:249 pass:202 dwarn:0 dfail:0 fail:3 skip:44 fi-byt-n2820 total:249 pass:204 dwarn:0 dfail:0 fail:4 skip:41 fi-hsw-4770k total:249 pass:220 dwarn:6 dfail:0 fail:1 skip:22 fi-hsw-4770r total:249 pass:222 dwarn:0 dfail:0 fail:1 skip:26 fi-ivb-3520m total:249 pass:217 dwarn:0 dfail:0 fail:1 skip:31 fi-skl-6260u total:249 pass:234 dwarn:0 dfail:0 fail:1 skip:14 fi-skl-6700k total:249 pass:214 dwarn:4 dfail:0 fail:3 skip:28 fi-snb-2520m total:249 pass:201 dwarn:4 dfail:0 fail:2 skip:42 fi-snb-2600 total:249 pass:202 dwarn:4 dfail:0 fail:1 skip:42
Results at /archive/results/CI_IGT_test/Patchwork_2409/
d05ed1828321404c7fdf369ca17fa958938913bc drm-intel-nightly: 2016y-08m-23d-16h-32m-14s UTC integration manifest d850b44 drm/i915: Cleanup crt disable sequence on hsw+
6d1b137 drm/i915: Create a intel_encoder_find_connector helper function.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx