drm/i915: break intel_display_types.h dependency on i915_drv.h
Subsystems (3)
v2 cover drm/i915: break intel_display_types.h dependency on i915_drv.h
v2 of https://patchwork.freedesktop.org/series/97173/
BR,
Jani.
Jani Nikula (10):
drm/i915/display: add intel_crtc_wait_for_next_vblank() and use it drm/i915/crtc: rename intel_get_crtc_for_pipe() to
intel_crtc_for_pipe()
drm/i915/crtc: rename intel_get_crtc_for_plane() to
intel_crtc_for_plane()
drm/i915/display: remove intel_wait_for_vblank() drm/i915/crtc: un-inline some crtc functions and move to
intel_crtc.[ch]
drm/i915/fb: move intel_fb_uses_dpt to intel_fb.c and un-inline drm/i915: split out intel_pm_types.h
drm/i915: move enum hpd_pin to intel_display.h drm/i915/display: convert dp_to_i915() to a macro drm/i915/display: stop including i915_drv.h from intel_display_types.h
.../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 4 +- drivers/gpu/drm/i915/display/intel_crt.c | 6 +- drivers/gpu/drm/i915/display/intel_crtc.c | 42 +++++++++ drivers/gpu/drm/i915/display/intel_crtc.h | 10 +++ drivers/gpu/drm/i915/display/intel_display.c | 56 ++++++------ drivers/gpu/drm/i915/display/intel_display.h | 24 +++++ .../drm/i915/display/intel_display_types.h | 72 +++------------ drivers/gpu/drm/i915/display/intel_dp.c | 2 +- .../drm/i915/display/intel_dp_aux_backlight.c | 1 + .../drm/i915/display/intel_dp_link_training.c | 2 +- drivers/gpu/drm/i915/display/intel_dpll.c | 2 +- drivers/gpu/drm/i915/display/intel_dsi.c | 2 + drivers/gpu/drm/i915/display/intel_fb.c | 11 +++ drivers/gpu/drm/i915/display/intel_fb.h | 2 + drivers/gpu/drm/i915/display/intel_fb_pin.c | 10 +-- drivers/gpu/drm/i915/display/intel_fdi.c | 4 +- .../drm/i915/display/intel_fifo_underrun.c | 10 +-- .../drm/i915/display/intel_plane_initial.c | 5 +- drivers/gpu/drm/i915/display/intel_quirks.c | 1 + drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite.c | 4 +- drivers/gpu/drm/i915/display/intel_tv.c | 7 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 88 +------------------ drivers/gpu/drm/i915/i915_irq.c | 6 +- drivers/gpu/drm/i915/i915_trace.h | 4 +- drivers/gpu/drm/i915/intel_pm.c | 12 +-- drivers/gpu/drm/i915/intel_pm_types.h | 76 ++++++++++++++++ 29 files changed, 252 insertions(+), 217 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_pm_types.h
Signature · 1 line
2.30.2
PATCH v2 1/10 drm/i915/display: add intel_crtc_wait_for_next_vblank() and use it
intel_wait_for_vblank() goes through a pipe to crtc lookup, while in most cases we already have the crtc available. Avoid the extra lookups by adding an intel_crtc based helper.
v2:
- Add intel_crtc_wait_for_next_vblank() helper (Ville)
--- drivers/gpu/drm/i915/display/intel_crt.c | 4 +-- drivers/gpu/drm/i915/display/intel_display.c | 32 +++++++++---------- .../drm/i915/display/intel_display_types.h | 12 +++++-- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- drivers/gpu/drm/i915/display/intel_tv.c | 7 ++-- 6 files changed, 32 insertions(+), 27 deletions(-)
drivers/gpu/drm/i915/display/intel_crt.c +2 -2
@@ -321,8 +321,8 @@ static void hsw_enable_crt(struct intel_atomic_state *state,intel_crt_set_dpms (encoder, crtc_state,DRM_MODE_DPMS_ON ); -intel_wait_for_vblank (dev_priv, pipe); -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); +intel_crtc_wait_for_next_vblank (crtc);intel_set_cpu_fifo_underrun_reporting (dev_priv, pipe, true);intel_set_pch_fifo_underrun_reporting (dev_priv,PIPE_A , true); }
drivers/gpu/drm/i915/display/intel_display.c +16 -16
@@ -775,7 +775,7 @@ void intel_plane_disable_noatomic(struct intel_crtc *crtc,*/ if (HAS_GMCH (dev_priv) &&intel_set_memory_cxsr (dev_priv, false)) -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc);/* * Gen2 reports pipe underruns whenever all planes are disabled.
@@ -785,7 +785,7 @@ void intel_plane_disable_noatomic(struct intel_crtc *crtc,intel_set_cpu_fifo_underrun_reporting (dev_priv, crtc->pipe, false);intel_plane_disable_arm (plane, crtc_state); -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); }unsigned int
@@ -1011,7 +1011,7 @@ bool intel_has_pending_fb_unpin(struct drm_i915_private *dev_priv)if (cleanup_done)continue ; -drm_crtc_wait_one_vblank (crtc); +intel_crtc_wait_for_next_vblank (to_intel_crtc (crtc));return true; }
@@ -1158,7 +1158,7 @@ void hsw_disable_ips(const struct intel_crtc_state *crtc_state) }/* We need to wait for a vblank before we can disable the plane. */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); }static void intel_crtc_dpms_overlay_disable (struct intel_crtc *crtc)
@@ -1389,7 +1389,6 @@ static void intel_crtc_disable_flip_done(struct intel_atomic_state *state,static void intel_crtc_async_flip_disable_wa (struct intel_atomic_state *state,struct intel_crtc *crtc) { -struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_crtc_state *old_crtc_state =intel_atomic_get_old_crtc_state (state, crtc); const struct intel_crtc_state *new_crtc_state =
@@ -1415,7 +1414,7 @@ static void intel_crtc_async_flip_disable_wa(struct intel_atomic_state *state, }if (need_vbl_wait) -intel_wait_for_vblank (i915, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); } static void intel_pre_plane_update(struct intel_atomic_state *state,
@@ -1434,7 +1433,7 @@ static void intel_pre_plane_update(struct intel_atomic_state *state,hsw_disable_ips (old_crtc_state);if (intel_fbc_pre_update (state, crtc)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);if (!needs_async_flip_vtd_wa (old_crtc_state) &&needs_async_flip_vtd_wa (new_crtc_state))
@@ -1466,7 +1465,7 @@ static void intel_pre_plane_update(struct intel_atomic_state *state,*/ if (HAS_GMCH (dev_priv) && old_crtc_state->hw.active && new_crtc_state->disable_cxsr &&intel_set_memory_cxsr (dev_priv, false)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);/* * IVB workaround: must disable low power watermarks for at least
@@ -1477,7 +1476,7 @@ static void intel_pre_plane_update(struct intel_atomic_state *state,*/ if (old_crtc_state->hw.active && new_crtc_state->disable_lp_wm &&ilk_disable_lp_wm (dev_priv)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);/* * If we're doing a modeset we don't need to do any
@@ -1893,8 +1892,8 @@ static void ilk_crtc_enable(struct intel_atomic_state *state,* in case there are more corner cases we don't know about. */ if (new_crtc_state->has_pch_encoder) { -intel_wait_for_vblank (dev_priv, pipe); -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); +intel_crtc_wait_for_next_vblank (crtc); }intel_set_cpu_fifo_underrun_reporting (dev_priv, pipe, true);intel_set_pch_fifo_underrun_reporting (dev_priv, pipe, true);
@@ -2094,7 +2093,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,intel_encoders_enable (state, crtc);if (psl_clkgate_wa) { -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);glk_pipe_scaler_clock_gating_wa (dev_priv, pipe, false); }
@@ -2529,7 +2528,7 @@ static void i9xx_crtc_enable(struct intel_atomic_state *state,/* prevents spurious underruns */ if (DISPLAY_VER (dev_priv) ==2 ) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); }static void i9xx_pfit_disable (const struct intel_crtc_state *old_crtc_state)
@@ -2560,7 +2559,7 @@ static void i9xx_crtc_disable(struct intel_atomic_state *state,* wait for planes to fully turn off before disabling the pipe. */ if (DISPLAY_VER (dev_priv) ==2 ) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);intel_encoders_disable (state, crtc);
@@ -4645,7 +4644,8 @@ int intel_get_load_detect_pipe(struct drm_connector *connector,drm_atomic_state_put (state);/* let the connector get through one full cycle before testing */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); +return true; fail:
@@ -8462,7 +8462,7 @@ static void skl_commit_modeset_enables(struct intel_atomic_state *state)if (!skl_ddb_entry_equal (&new_crtc_state->wm.skl.ddb, &old_crtc_state->wm.skl.ddb) && (update_pipes | modeset_pipes)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); } }
drivers/gpu/drm/i915/display/intel_display_types.h +9 -3
@@ -2019,21 +2019,27 @@ intel_crtc_needs_modeset(const struct intel_crtc_state *crtc_state)return drm_atomic_crtc_needs_modeset (&crtc_state->uapi); } +static inline void +intel_crtc_wait_for_next_vblank (struct intel_crtc *crtc) +{ +drm_crtc_wait_one_vblank (&crtc->base); +} +static inline void intel_wait_for_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) {struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); -drm_crtc_wait_one_vblank (&crtc->base); +intel_crtc_wait_for_next_vblank (crtc); }static inline void intel_wait_for_vblank_if_active (struct drm_i915_private *dev_priv,enum pipe pipe) { -const struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe);if (crtc->active) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); }static inline bool intel_modifier_uses_dpt (struct drm_i915_private *i915,u64 modifier)
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
@@ -3905,7 +3905,7 @@ int intel_dp_retrain_link(struct intel_encoder *encoder,to_intel_crtc_state (crtc->base.state);/* Keep underrun reporting disabled until things are stable */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc);intel_set_cpu_fifo_underrun_reporting (dev_priv, crtc->pipe, true);if (crtc_state->has_pch_encoder)
drivers/gpu/drm/i915/display/intel_sdvo.c +1 -1
@@ -1842,7 +1842,7 @@ static void intel_enable_sdvo(struct intel_atomic_state *state,intel_sdvo_write_sdvox (intel_sdvo, temp);for (i =0 ; i <2 ; i++) -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); success =intel_sdvo_get_trained_inputs (intel_sdvo, &input1, &input2);/*
drivers/gpu/drm/i915/display/intel_tv.c +3 -4
@@ -924,8 +924,7 @@ intel_enable_tv(struct intel_atomic_state *state,struct drm_i915_private *dev_priv =to_i915 (dev);/* Prevents vblank waits from timing out in intel_tv_detect_type() */ -intel_wait_for_vblank (dev_priv, -to_intel_crtc (pipe_config->uapi.crtc)->pipe); +intel_crtc_wait_for_next_vblank (to_intel_crtc (pipe_config->uapi.crtc));intel_de_write (dev_priv,TV_CTL ,intel_de_read (dev_priv,TV_CTL ) |TV_ENC_ENABLE );
@@ -1618,7 +1617,7 @@ intel_tv_detect_type(struct intel_tv *intel_tv,intel_de_write (dev_priv,TV_DAC , tv_dac);intel_de_posting_read (dev_priv,TV_DAC ); -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); type =-1 ; tv_dac =intel_de_read (dev_priv,TV_DAC );
@@ -1651,7 +1650,7 @@ intel_tv_detect_type(struct intel_tv *intel_tv,intel_de_posting_read (dev_priv,TV_CTL );/* For unknown reasons the hw barfs if we don't do this vblank wait. */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc);/* Restore interrupt config */ if (connector->polled &DRM_CONNECTOR_POLL_HPD ) {
Signature · 1 line
2.30.2
PATCH v2 2/10 drm/i915/crtc: rename intel_get_crtc_for_pipe() to intel_crtc_for_pipe()
In reply to Jani NikulaThe "get" in the name implies reference counting, remove it. This also makes the function conform to naming style.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 16 ++++++++-------- .../gpu/drm/i915/display/intel_display_types.h | 6 +++--- drivers/gpu/drm/i915/display/intel_dpll.c | 2 +- drivers/gpu/drm/i915/display/intel_fdi.c | 4 ++-- .../gpu/drm/i915/display/intel_fifo_underrun.c | 10 +++++----- drivers/gpu/drm/i915/display/intel_sprite.c | 4 ++-- drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- drivers/gpu/drm/i915/i915_trace.h | 4 ++-- drivers/gpu/drm/i915/intel_pm.c | 8 ++++---- 12 files changed, 33 insertions(+), 33 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +1 -1
@@ -395,7 +395,7 @@ int intel_plane_atomic_check(struct intel_atomic_state *state,const struct intel_plane_state *old_plane_state =intel_atomic_get_old_plane_state (state, plane);const struct intel_plane_state *new_master_plane_state; -struct intel_crtc *crtc =intel_get_crtc_for_pipe (i915, plane->pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (i915, plane->pipe);const struct intel_crtc_state *old_crtc_state =intel_atomic_get_old_crtc_state (state, crtc); struct intel_crtc_state *new_crtc_state =
drivers/gpu/drm/i915/display/intel_cdclk.c +1 -1
@@ -2592,7 +2592,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)struct intel_crtc_state *crtc_state; pipe =ilog2 (new_cdclk_state->active_pipes); - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); crtc_state =intel_atomic_get_crtc_state (&state->base, crtc);if (IS_ERR (crtc_state))
drivers/gpu/drm/i915/display/intel_display.c +8 -8
@@ -4830,7 +4830,7 @@ intel_encoder_current_mode(struct intel_encoder *encoder)if (!encoder->get_hw_state (encoder, &pipe))return NULL ; - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); mode =kzalloc (sizeof (*mode),GFP_KERNEL );if (!mode)
@@ -8962,8 +8962,8 @@ static void intel_plane_possible_crtcs_init(struct drm_i915_private *dev_priv)struct intel_plane *plane;for_each_intel_plane (&dev_priv->drm, plane) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, - plane->pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, + plane->pipe); plane->base.possible_crtcs =drm_crtc_mask (&crtc->base); }
@@ -9956,7 +9956,7 @@ int intel_modeset_init(struct drm_i915_private *i915)void i830_enable_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);/* 640x480@60Hz, ~25175 kHz */ struct dpll clock = { .m1 =18 ,
@@ -10029,7 +10029,7 @@ void i830_enable_pipe(struct drm_i915_private *dev_priv, enum pipe pipe)void i830_disable_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);drm_dbg_kms (&dev_priv->drm,"disabling pipe %c due to force quirk\n" ,pipe_name (pipe));
@@ -10081,7 +10081,7 @@ intel_sanitize_plane_mapping(struct drm_i915_private *dev_priv)"[PLANE:%d:%s] attached to the wrong pipe, disabling plane\n" , plane->base.base.id, plane->base.name); - plane_crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + plane_crtc =intel_crtc_for_pipe (dev_priv, pipe);intel_plane_disable_noatomic (plane_crtc, plane); } }
@@ -10334,7 +10334,7 @@ static void readout_plane_state(struct drm_i915_private *dev_priv) visible = plane->get_hw_state (plane, &pipe); - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); crtc_state =to_intel_crtc_state (crtc->base.state);intel_set_plane_visible (crtc_state, plane_state, visible);
@@ -10401,7 +10401,7 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev) pipe =0 ;if (encoder->get_hw_state (encoder, &pipe)) { - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); crtc_state =to_intel_crtc_state (crtc->base.state); encoder->base.crtc = &crtc->base;
drivers/gpu/drm/i915/display/intel_display_types.h +3 -3
@@ -1788,7 +1788,7 @@ intel_get_first_crtc(struct drm_i915_private *dev_priv) }static inline struct intel_crtc * -intel_get_crtc_for_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) +intel_crtc_for_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) {/* pipe_to_crtc_mapping may have hole on any of 3 display pipe system */ drm_WARN_ON(&dev_priv->drm,
@@ -2028,7 +2028,7 @@ intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc)static inline void intel_wait_for_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);intel_crtc_wait_for_next_vblank (crtc); }
@@ -2036,7 +2036,7 @@ intel_wait_for_vblank(struct drm_i915_private *dev_priv, enum pipe pipe)static inline void intel_wait_for_vblank_if_active (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);if (crtc->active)intel_crtc_wait_for_next_vblank (crtc);
drivers/gpu/drm/i915/display/intel_dpll.c +1 -1
@@ -1823,7 +1823,7 @@ void chv_enable_pll(const struct intel_crtc_state *crtc_state)int vlv_force_pll_on (struct drm_i915_private *dev_priv,enum pipe pipe,const struct dpll *dpll) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);struct intel_crtc_state *crtc_state; crtc_state =intel_crtc_state_alloc (crtc);
drivers/gpu/drm/i915/display/intel_fdi.c +2 -2
@@ -157,7 +157,7 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe,if (pipe_config->fdi_lanes <=2 )return 0 ; - other_crtc =intel_get_crtc_for_pipe (dev_priv,PIPE_C ); + other_crtc =intel_crtc_for_pipe (dev_priv,PIPE_C ); other_crtc_state =intel_atomic_get_crtc_state (state, other_crtc);if (IS_ERR (other_crtc_state))
@@ -178,7 +178,7 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe,return -EINVAL ; } - other_crtc =intel_get_crtc_for_pipe (dev_priv,PIPE_B ); + other_crtc =intel_crtc_for_pipe (dev_priv,PIPE_B ); other_crtc_state =intel_atomic_get_crtc_state (state, other_crtc);if (IS_ERR (other_crtc_state))
drivers/gpu/drm/i915/display/intel_fifo_underrun.c +5 -5
@@ -61,7 +61,7 @@ static bool ivb_can_enable_err_int(struct drm_device *dev)lockdep_assert_held (&dev_priv->irq_lock);for_each_pipe (dev_priv, pipe) { - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe);if (crtc->cpu_fifo_underrun_disabled)return false;
@@ -79,7 +79,7 @@ static bool cpt_can_enable_serr_int(struct drm_device *dev)lockdep_assert_held (&dev_priv->irq_lock);for_each_pipe (dev_priv, pipe) { - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe);if (crtc->pch_fifo_underrun_disabled)return false;
@@ -279,7 +279,7 @@ static bool __intel_set_cpu_fifo_underrun_reporting(struct drm_device *dev, enum pipe pipe, bool enable) {struct drm_i915_private *dev_priv =to_i915 (dev); -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);bool old;lockdep_assert_held (&dev_priv->irq_lock);
@@ -348,7 +348,7 @@ bool intel_set_pch_fifo_underrun_reporting(struct drm_i915_private *dev_priv, bool enable) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, pch_transcoder); +intel_crtc_for_pipe (dev_priv, pch_transcoder);unsigned long flags;bool old;
@@ -391,7 +391,7 @@ bool intel_set_pch_fifo_underrun_reporting(struct drm_i915_private *dev_priv,void intel_cpu_fifo_underrun_irq_handler (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);u32 underruns =0 ;/* We may be called too early in init, thanks BIOS! */
drivers/gpu/drm/i915/display/intel_sprite.c +2 -2
@@ -1584,8 +1584,8 @@ int intel_sprite_set_colorkey_ioctl(struct drm_device *dev, void *data,*/ if (!ret &&has_dst_key_in_primary_plane (dev_priv)) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, -to_intel_plane (plane)->pipe); +intel_crtc_for_pipe (dev_priv, +to_intel_plane (plane)->pipe); plane_state =drm_atomic_get_plane_state (state, crtc->base.primary);
drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
@@ -1116,7 +1116,7 @@ _get_crtc_for_pipe(struct drm_i915_private *i915, enum pipe pipe)if (!intel_pipe_valid (i915, pipe))return NULL ; -return intel_get_crtc_for_pipe (i915, pipe); +return intel_crtc_for_pipe (i915, pipe); } struct intel_crtc *
drivers/gpu/drm/i915/i915_irq.c +3 -3
@@ -224,7 +224,7 @@ static void intel_hpd_init_pins(struct drm_i915_private *dev_priv)static void intel_handle_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);drm_crtc_handle_vblank (&crtc->base); }
@@ -1318,7 +1318,7 @@ static void display_pipe_crc_irq_handler(struct drm_i915_private *dev_priv, u32 crc2, u32 crc3, u32 crc4) { - struct intel_crtc *crtc = intel_get_crtc_for_pipe(dev_priv, pipe); + struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe);struct intel_pipe_crc *pipe_crc = &crtc->pipe_crc;u32 crcs[5 ] = { crc0, crc1, crc2, crc3, crc4 };
@@ -1357,7 +1357,7 @@ display_pipe_crc_irq_handler(struct drm_i915_private *dev_priv,static void flip_done_handler (struct drm_i915_private *i915,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (i915, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (i915, pipe);struct drm_crtc_state *crtc_state = crtc->base.state;struct drm_pending_vblank_event *e = crtc_state->event;struct drm_device *dev = &i915->drm;
drivers/gpu/drm/i915/i915_trace.h +2 -2
@@ -109,7 +109,7 @@ TRACE_EVENT(intel_cpu_fifo_underrun, ),TP_fast_assign ( - struct intel_crtc *crtc = intel_get_crtc_for_pipe(dev_priv, pipe); + struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe); __entry->pipe = pipe; __entry->frame =intel_crtc_get_vblank_counter (crtc); __entry->scanline =intel_get_crtc_scanline (crtc);
@@ -132,7 +132,7 @@ TRACE_EVENT(intel_pch_fifo_underrun,TP_fast_assign ( enum pipe pipe = pch_transcoder; -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe); __entry->pipe = pipe; __entry->frame =intel_crtc_get_vblank_counter (crtc); __entry->scanline =intel_get_crtc_scanline (crtc);
drivers/gpu/drm/i915/intel_pm.c +4 -4
@@ -989,7 +989,7 @@ static void g4x_write_wm_values(struct drm_i915_private *dev_priv,enum pipe pipe;for_each_pipe (dev_priv, pipe) -trace_g4x_wm (intel_get_crtc_for_pipe (dev_priv, pipe), wm); +trace_g4x_wm (intel_crtc_for_pipe (dev_priv, pipe), wm); intel_uncore_write(&dev_priv->uncore, DSPFW1, FW_WM(wm->sr.plane, SR) |
@@ -1021,7 +1021,7 @@ static void vlv_write_wm_values(struct drm_i915_private *dev_priv,enum pipe pipe;for_each_pipe (dev_priv, pipe) { -trace_vlv_wm (intel_get_crtc_for_pipe (dev_priv, pipe), wm); +trace_vlv_wm (intel_crtc_for_pipe (dev_priv, pipe), wm); intel_uncore_write(&dev_priv->uncore, VLV_DDL(pipe), (wm->ddl[pipe].plane[PLANE_CURSOR] << DDL_CURSOR_SHIFT) |
@@ -6909,7 +6909,7 @@ void g4x_wm_sanitize(struct drm_i915_private *dev_priv)for_each_intel_plane (&dev_priv->drm, plane) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, plane->pipe); +intel_crtc_for_pipe (dev_priv, plane->pipe);struct intel_crtc_state *crtc_state =to_intel_crtc_state (crtc->base.state); struct intel_plane_state *plane_state =
@@ -7065,7 +7065,7 @@ void vlv_wm_sanitize(struct drm_i915_private *dev_priv)for_each_intel_plane (&dev_priv->drm, plane) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, plane->pipe); +intel_crtc_for_pipe (dev_priv, plane->pipe);struct intel_crtc_state *crtc_state =to_intel_crtc_state (crtc->base.state); struct intel_plane_state *plane_state =
Signature · 1 line
2.30.2
PATCH v2 3/10 drm/i915/crtc: rename intel_get_crtc_for_plane() to intel_crtc_for_plane()
In reply to Jani NikulaThe "get" in the name implies reference counting, remove it. This also makes the function conform to naming style.
--- drivers/gpu/drm/i915/display/intel_display_types.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_display_types.h +1 -1
@@ -1797,7 +1797,7 @@ intel_crtc_for_pipe(struct drm_i915_private *dev_priv, enum pipe pipe) }static inline struct intel_crtc * -intel_get_crtc_for_plane (struct drm_i915_private *dev_priv,enum i9xx_plane_id plane) +intel_crtc_for_plane (struct drm_i915_private *dev_priv,enum i9xx_plane_id plane) {return dev_priv->plane_to_crtc_mapping[plane]; }
drivers/gpu/drm/i915/intel_pm.c +2 -2
@@ -2357,7 +2357,7 @@ static void i9xx_update_wm(struct drm_i915_private *dev_priv) fifo_size =i830_get_fifo_size (dev_priv,PLANE_A ); else fifo_size =i9xx_get_fifo_size (dev_priv,PLANE_A ); - crtc =intel_get_crtc_for_plane (dev_priv,PLANE_A ); + crtc =intel_crtc_for_plane (dev_priv,PLANE_A );if (intel_crtc_active (crtc)) {const struct drm_display_mode *pipe_mode = &crtc->config->hw.pipe_mode;
@@ -2387,7 +2387,7 @@ static void i9xx_update_wm(struct drm_i915_private *dev_priv) fifo_size =i830_get_fifo_size (dev_priv,PLANE_B ); else fifo_size =i9xx_get_fifo_size (dev_priv,PLANE_B ); - crtc =intel_get_crtc_for_plane (dev_priv,PLANE_B ); + crtc =intel_crtc_for_plane (dev_priv,PLANE_B );if (intel_crtc_active (crtc)) {const struct drm_display_mode *pipe_mode = &crtc->config->hw.pipe_mode;
Signature · 1 line
2.30.2
PATCH v2 4/10 drm/i915/display: remove intel_wait_for_vblank()
In reply to Jani NikulaThere are only three call sites remaining for intel_wait_for_vblank(). Remove the function, and open code it to avoid new users from showing up.
v2:
- Use intel_crtc_wait_for_next_vblank() (Ville)
--- drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 8 ++++++-- drivers/gpu/drm/i915/display/intel_display_types.h | 8 -------- 4 files changed, 8 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/display/intel_cdclk.c +1 -1
@@ -1690,7 +1690,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,intel_de_write (dev_priv,CDCLK_CTL , val);if (pipe !=INVALID_PIPE ) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (intel_crtc_for_pipe (dev_priv, pipe));if (DISPLAY_VER (dev_priv) >=11 ) { ret = sandybridge_pcode_write(dev_priv, SKL_PCODE_CDCLK_CONTROL,
drivers/gpu/drm/i915/display/intel_crt.c +1 -1
@@ -721,7 +721,7 @@ intel_crt_load_detect(struct intel_crt *crt, u32 pipe)intel_uncore_posting_read (uncore, pipeconf_reg);/* Wait for next Vblank to substitue * border color for Color info */ -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (intel_crtc_for_pipe (dev_priv, pipe)); st00 =intel_uncore_read8 (uncore, _VGA_MSR_WRITE); status = ((st00 & (1 <<4 )) !=0 ) ? connector_status_connected :
drivers/gpu/drm/i915/display/intel_display.c +6 -2
@@ -2101,8 +2101,12 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,* to change the workaround. */ hsw_workaround_pipe = new_crtc_state->hsw_workaround_pipe;if (IS_HASWELL (dev_priv) && hsw_workaround_pipe !=INVALID_PIPE ) { -intel_wait_for_vblank (dev_priv, hsw_workaround_pipe); -intel_wait_for_vblank (dev_priv, hsw_workaround_pipe); +struct intel_crtc *wa_crtc; + + wa_crtc =intel_crtc_for_pipe (dev_priv, hsw_workaround_pipe); + +intel_crtc_wait_for_next_vblank (wa_crtc); +intel_crtc_wait_for_next_vblank (wa_crtc); } }
drivers/gpu/drm/i915/display/intel_display_types.h +0 -8
@@ -2025,14 +2025,6 @@ intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc)drm_crtc_wait_one_vblank (&crtc->base); } -static inline void -intel_wait_for_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) -{ -struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe); - -intel_crtc_wait_for_next_vblank (crtc); -} -static inline void intel_wait_for_vblank_if_active (struct drm_i915_private *dev_priv,enum pipe pipe) {
Signature · 1 line
2.30.2
PATCH v2 5/10 drm/i915/crtc: un-inline some crtc functions and move to intel_crtc.[ch]
In reply to Jani NikulaMove a number of crtc/pipe related functions to intel_crtc.[ch], and un-inline to avoid looking into struct drm_i915_private guts in header files.
--- drivers/gpu/drm/i915/display/intel_crtc.c | 42 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_crtc.h | 10 +++++ .../drm/i915/display/intel_display_types.h | 44 ------------------- 3 files changed, 52 insertions(+), 44 deletions(-)
drivers/gpu/drm/i915/display/intel_crtc.c +42 -0
@@ -36,6 +36,48 @@ static void assert_vblank_disabled(struct drm_crtc *crtc)drm_crtc_vblank_put (crtc); } +bool intel_pipe_valid (struct drm_i915_private *i915,enum pipe pipe) +{ +return (pipe >=0 && + pipe <ARRAY_SIZE (i915->pipe_to_crtc_mapping) && +INTEL_INFO (i915)->pipe_mask &BIT (pipe) && + i915->pipe_to_crtc_mapping[pipe]); +} + +struct intel_crtc *intel_get_first_crtc (struct drm_i915_private *i915) +{ +return to_intel_crtc (drm_crtc_from_index (&i915->drm,0 )); +} + +struct intel_crtc *intel_crtc_for_pipe (struct drm_i915_private *i915, +enum pipe pipe) +{ +/* pipe_to_crtc_mapping may have hole on any of 3 display pipe system */ +drm_WARN_ON (&i915->drm, + !(INTEL_INFO (i915)->pipe_mask &BIT (pipe))); +return i915->pipe_to_crtc_mapping[pipe]; +} + +struct intel_crtc *intel_crtc_for_plane (struct drm_i915_private *i915, +enum i9xx_plane_id plane) +{ +return i915->plane_to_crtc_mapping[plane]; +} + +void intel_crtc_wait_for_next_vblank (struct intel_crtc *crtc) +{ +drm_crtc_wait_one_vblank (&crtc->base); +} + +void intel_wait_for_vblank_if_active (struct drm_i915_private *i915, +enum pipe pipe) +{ +struct intel_crtc *crtc =intel_crtc_for_pipe (i915, pipe); + +if (crtc->active) +intel_crtc_wait_for_next_vblank (crtc); +} +u32 intel_crtc_get_vblank_counter (struct intel_crtc *crtc) {struct drm_device *dev = crtc->base.dev;
drivers/gpu/drm/i915/display/intel_crtc.h +10 -0
@@ -8,6 +8,7 @@#include <linux/types.h> +enum i9xx_plane_id ;enum pipe ;struct drm_display_mode ;struct drm_i915_private ;
@@ -28,5 +29,14 @@ void intel_crtc_vblank_off(const struct intel_crtc_state *crtc_state);void intel_pipe_update_start (struct intel_crtc_state *new_crtc_state);void intel_pipe_update_end (struct intel_crtc_state *new_crtc_state);void intel_wait_for_vblank_workers (struct intel_atomic_state *state); +bool intel_pipe_valid (struct drm_i915_private *i915,enum pipe pipe); +struct intel_crtc *intel_get_first_crtc (struct drm_i915_private *i915); +struct intel_crtc *intel_crtc_for_pipe (struct drm_i915_private *i915, +enum pipe pipe); +struct intel_crtc *intel_crtc_for_plane (struct drm_i915_private *i915, +enum i9xx_plane_id plane); +void intel_wait_for_vblank_if_active (struct drm_i915_private *i915, +enum pipe pipe); +void intel_crtc_wait_for_next_vblank (struct intel_crtc *crtc);#endif
drivers/gpu/drm/i915/display/intel_display_types.h +0 -44
56 lines not on this page · raw message
Signature · 1 line
2.30.2
PATCH v2 6/10 drm/i915/fb: move intel_fb_uses_dpt to intel_fb.c and un-inline
In reply to Jani NikulaMove fb functions where they belong, and un-inline to avoid looking into struct drm_i915_private guts in header files.
--- drivers/gpu/drm/i915/display/intel_display_types.h | 10 ---------- drivers/gpu/drm/i915/display/intel_fb.c | 10 ++++++++++ drivers/gpu/drm/i915/display/intel_fb.h | 2 ++ 3 files changed, 12 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_display_types.h +0 -10
@@ -1990,16 +1990,6 @@ intel_crtc_needs_modeset(const struct intel_crtc_state *crtc_state)return drm_atomic_crtc_needs_modeset (&crtc_state->uapi); } -static inline bool intel_modifier_uses_dpt (struct drm_i915_private *i915,u64 modifier) -{ -return DISPLAY_VER (i915) >=13 && modifier !=DRM_FORMAT_MOD_LINEAR ; -} - -static inline bool intel_fb_uses_dpt (const struct drm_framebuffer *fb) -{ -return fb &&intel_modifier_uses_dpt (to_i915 (fb->dev), fb->modifier); -} -static inline u32 intel_plane_ggtt_offset (const struct intel_plane_state *plane_state) {return i915_ggtt_offset (plane_state->ggtt_vma);
drivers/gpu/drm/i915/display/intel_fb.c +10 -0
@@ -658,6 +658,16 @@ static unsigned int intel_fb_modifier_to_tiling(u64 fb_modifier) } } +static bool intel_modifier_uses_dpt (struct drm_i915_private *i915,u64 modifier) +{ +return DISPLAY_VER (i915) >=13 && modifier !=DRM_FORMAT_MOD_LINEAR ; +} + +bool intel_fb_uses_dpt (const struct drm_framebuffer *fb) +{ +return fb &&intel_modifier_uses_dpt (to_i915 (fb->dev), fb->modifier); +} +unsigned int intel_cursor_alignment (const struct drm_i915_private *i915) {if (IS_I830 (i915))
drivers/gpu/drm/i915/display/intel_fb.h +2 -0
@@ -90,4 +90,6 @@ intel_user_framebuffer_create(struct drm_device *dev,struct drm_file *filp, const struct drm_mode_fb_cmd2 *user_mode_cmd); +bool intel_fb_uses_dpt (const struct drm_framebuffer *fb); +#endif /* __INTEL_FB_H__ */
Signature · 1 line
2.30.2
PATCH v2 7/10 drm/i915: split out intel_pm_types.h
In reply to Jani NikulaThis is far from ideal, but it reduces the i915_drv.h dependency from intel_display_types.h. Maybe in the future we'll need a better split.
--- .../drm/i915/display/intel_display_types.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 64 +--------------- drivers/gpu/drm/i915/intel_pm_types.h | 76 +++++++++++++++++++ 3 files changed, 78 insertions(+), 63 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_pm_types.h
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
@@ -47,6 +47,7 @@#include <media/cec-notifier.h> #include "i915_drv.h" +#include "intel_pm_types.h" struct drm_printer ;struct __intel_global_objs_state ;
drivers/gpu/drm/i915/i915_drv.h +1 -63
76 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm_types.h new file +76 -0
76 lines not on this page · raw message
Signature · 1 line
2.30.2
PATCH v2 8/10 drm/i915: move enum hpd_pin to intel_display.h
In reply to Jani NikulaIt's not the ideal location, but a better alternative than i915_drv.h. The goal is to break the intel_display_types.h to i915_drv.h dependency.
--- drivers/gpu/drm/i915/display/intel_display.h | 24 ++++++++++++++++++++ drivers/gpu/drm/i915/i915_drv.h | 24 -------------------- 2 files changed, 24 insertions(+), 24 deletions(-)
drivers/gpu/drm/i915/display/intel_display.h +24 -0
@@ -346,6 +346,30 @@ enum phy_fia { FIA3, }; +enum hpd_pin { +HPD_NONE =0 , +HPD_TV =HPD_NONE ,/* TV is known to be unreliable */ +HPD_CRT , +HPD_SDVO_B , +HPD_SDVO_C , +HPD_PORT_A , +HPD_PORT_B , +HPD_PORT_C , +HPD_PORT_D , +HPD_PORT_E , +HPD_PORT_TC1 , +HPD_PORT_TC2 , +HPD_PORT_TC3 , +HPD_PORT_TC4 , +HPD_PORT_TC5 , +HPD_PORT_TC6 , + +HPD_NUM_PINS +}; + +#define for_each_hpd_pin (__pin) \ + for ((__pin) = (HPD_NONE + 1); (__pin) < HPD_NUM_PINS; (__pin)++) +#define for_each_pipe (__dev_priv, __p) \ for ((__p) = 0; (__p) < I915_MAX_PIPES; (__p)++) \ for_each_if(INTEL_INFO(__dev_priv)->pipe_mask & BIT(__p))
drivers/gpu/drm/i915/i915_drv.h +0 -24
@@ -117,30 +117,6 @@struct drm_i915_gem_object ; -enum hpd_pin { -HPD_NONE =0 , -HPD_TV =HPD_NONE ,/* TV is known to be unreliable */ -HPD_CRT , -HPD_SDVO_B , -HPD_SDVO_C , -HPD_PORT_A , -HPD_PORT_B , -HPD_PORT_C , -HPD_PORT_D , -HPD_PORT_E , -HPD_PORT_TC1 , -HPD_PORT_TC2 , -HPD_PORT_TC3 , -HPD_PORT_TC4 , -HPD_PORT_TC5 , -HPD_PORT_TC6 , - -HPD_NUM_PINS -}; - -#define for_each_hpd_pin (__pin) \ - for ((__pin) = (HPD_NONE + 1); (__pin) < HPD_NUM_PINS; (__pin)++) -/* Threshold == 5 for long IRQs, 50 for short */ #define HPD_STORM_DEFAULT_THRESHOLD 50
Signature · 1 line
2.30.2
PATCH v2 9/10 drm/i915/display: convert dp_to_i915() to a macro
In reply to Jani NikulaAvoid looking into the guts of struct drm_i915_private in headers. Again, converting an inline function to a macro is less than ideal, but avoids having to pull in i915_drv.h just for the to_i915() part.
--- drivers/gpu/drm/i915/display/intel_display_types.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/gpu/drm/i915/display/intel_display_types.h +1 -5
@@ -1883,11 +1883,7 @@ dp_to_lspcon(struct intel_dp *intel_dp)return &dp_to_dig_port (intel_dp)->lspcon; } -static inline struct drm_i915_private * -dp_to_i915 (struct intel_dp *intel_dp) -{ -return to_i915 (dp_to_dig_port (intel_dp)->base.base.dev); -} +#define dp_to_i915 (__intel_dp) to_i915(dp_to_dig_port(__intel_dp)->base.base.dev)#define CAN_PSR (intel_dp) ((intel_dp)->psr.sink_support && \ (intel_dp)->psr.source_support)
Signature · 1 line
2.30.2
PATCH v2 10/10 drm/i915/display: stop including i915_drv.h from intel_display_types.h
In reply to Jani NikulaBreak the dependency on i915_drv.h.
--- drivers/gpu/drm/i915/display/intel_display_types.h | 9 ++++++++- drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 1 + drivers/gpu/drm/i915/display/intel_dp_link_training.c | 2 +- drivers/gpu/drm/i915/display/intel_dsi.c | 2 ++ drivers/gpu/drm/i915/display/intel_fb.c | 1 + drivers/gpu/drm/i915/display/intel_fb_pin.c | 10 +++++----- drivers/gpu/drm/i915/display/intel_plane_initial.c | 5 +++-- drivers/gpu/drm/i915/display/intel_quirks.c | 1 + 8 files changed, 22 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/display/intel_display_types.h +8 -1
@@ -36,6 +36,7 @@#include <drm/drm_crtc.h> #include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_dp_mst_helper.h> +#include <drm/drm_dsc.h> #include <drm/drm_encoder.h> #include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h>
@@ -46,13 +47,19 @@#include <drm/i915_mei_hdcp_interface.h> #include <media/cec-notifier.h> -#include "i915_drv.h" +#include "i915_vma.h" +#include "i915_vma_types.h" +#include "intel_bios.h" +#include "intel_display.h" +#include "intel_display_power.h" +#include "intel_dpll_mgr.h" #include "intel_pm_types.h" struct drm_printer ;struct __intel_global_objs_state ;struct intel_ddi_buf_trans ;struct intel_fbc ; +struct intel_connector ;/* * Display related stuff
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c +1 -0
@@ -34,6 +34,7 @@* for some reason. */ +#include "i915_drv.h" #include "intel_backlight.h" #include "intel_display_types.h" #include "intel_dp.h"
drivers/gpu/drm/i915/display/intel_dp_link_training.c +1 -1
@@ -21,11 +21,11 @@* IN THE SOFTWARE. */ +#include "i915_drv.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" -static void intel_dp_reset_lttpr_common_caps (struct intel_dp *intel_dp) {memset (intel_dp->lttpr_common_caps,0 ,sizeof (intel_dp->lttpr_common_caps));
drivers/gpu/drm/i915/display/intel_dsi.c +2 -0
@@ -4,6 +4,8 @@*/ #include <drm/drm_mipi_dsi.h> + +#include "i915_drv.h" #include "intel_dsi.h" #include "intel_panel.h"
drivers/gpu/drm/i915/display/intel_fb.c +1 -0
@@ -6,6 +6,7 @@#include <drm/drm_framebuffer.h> #include <drm/drm_modeset_helper.h> +#include "i915_drv.h" #include "intel_display.h" #include "intel_display_types.h" #include "intel_dpt.h"
drivers/gpu/drm/i915/display/intel_fb_pin.c +5 -5
@@ -7,13 +7,13 @@* DOC: display pinning helpers */ -#include "intel_display_types.h" -#include "intel_fb_pin.h" -#include "intel_fb.h" +#include "gem/i915_gem_object.h" +#include "i915_drv.h" +#include "intel_display_types.h" #include "intel_dpt.h" - -#include "gem/i915_gem_object.h" +#include "intel_fb.h" +#include "intel_fb_pin.h" static struct i915_vma * intel_pin_fb_obj_dpt(struct drm_framebuffer *fb,
drivers/gpu/drm/i915/display/intel_plane_initial.c +3 -2
@@ -3,11 +3,12 @@* Copyright © 2021 Intel Corporation */ -#include "intel_display_types.h" -#include "intel_plane_initial.h" +#include "i915_drv.h" #include "intel_atomic_plane.h" #include "intel_display.h" +#include "intel_display_types.h" #include "intel_fb.h" +#include "intel_plane_initial.h" static bool intel_reuse_initial_plane_obj(struct drm_i915_private *i915,
drivers/gpu/drm/i915/display/intel_quirks.c +1 -0
@@ -5,6 +5,7 @@#include <linux/dmi.h> +#include "i915_drv.h" #include "intel_display_types.h" #include "intel_quirks.h"
Signature · 1 line
2.30.2
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
URL : https://patchwork.freedesktop.org/series/97173/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip e378d10ac676 drm/i915/display: add intel_crtc_wait_for_next_vblank() and use it fe65a94cc935 drm/i915/crtc: rename intel_get_crtc_for_pipe() to intel_crtc_for_pipe() -:294: WARNING:TABSTOP: Statements should start on a tabstop #294: FILE: drivers/gpu/drm/i915/i915_trace.h:112: + struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe);
-:303: WARNING:TABSTOP: Statements should start on a tabstop #303: FILE: drivers/gpu/drm/i915/i915_trace.h:135:
+ struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe);
total: 0 errors, 2 warnings, 0 checks, 252 lines checked3a537873f52a drm/i915/crtc: rename intel_get_crtc_for_plane() to intel_crtc_for_plane() 020f325604a5 drm/i915/display: remove intel_wait_for_vblank()2e66240a65d1 drm/i915/crtc: un-inline some crtc functions and move to intel_crtc.[ch] 0b58bbeef964 drm/i915/fb: move intel_fb_uses_dpt to intel_fb.c and un-inline 9e846bc528ce drm/i915: split out intel_pm_types.h
-:106: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #106:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 159 lines checkedbe3ee6847fa0 drm/i915: move enum hpd_pin to intel_display.h
-:41: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__pin' - possible side-effects? #41: FILE: drivers/gpu/drm/i915/display/intel_display.h:370:
+#define for_each_hpd_pin(__pin) \
+ for ((__pin) = (HPD_NONE + 1); (__pin) < HPD_NUM_PINS; (__pin)++)
total: 0 errors, 0 warnings, 1 checks, 60 lines checked48cc6caf924d drm/i915/display: convert dp_to_i915() to a macro c81d16843e49 drm/i915/display: stop including i915_drv.h from intel_display_types.h
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
URL : https://patchwork.freedesktop.org/series/97173/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
URL : https://patchwork.freedesktop.org/series/97173/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10949 -> Patchwork_21716
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/index.html
Participating hosts (39 -> 32)
------------------------------
Additional (2): fi-kbl-soraka fi-jsl-1
Missing (9): fi-rkl-guc bat-dg1-6 bat-dg1-5 fi-bsw-cyan bat-adlp-6 bat-adlp-4 fi-pnv-d510 bat-jsl-2 bat-jsl-1
Known issues
------------
Here are the changes found in Patchwork_21716 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][1] ([fdo#109271]) +8 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-kbl-soraka/igt@gem_exec_fence@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][2] ([fdo#109271] / [i915#2190])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-kbl-soraka/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#4613]) +3 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-bsw-nick: [PASS][4] -> [INCOMPLETE][5] ([i915#2940])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/fi-bsw-nick/igt@i915_selftest@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-bsw-nick/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][6] ([i915#1886] / [i915#2291])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][7] ([fdo#109271] / [fdo#111827]) +8 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][8] ([fdo#109271] / [i915#533])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-kbl-soraka/igt@[email protected]
* igt@runner@aborted:
- fi-bsw-nick: NOTRUN -> [FAIL][9] ([fdo#109271] / [i915#1436] / [i915#3428] / [i915#4312])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-bsw-nick/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-tgl-1115g4: [FAIL][10] ([i915#1888]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/fi-tgl-1115g4/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/fi-tgl-1115g4/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Build changes
-------------
* Linux: CI_DRM_10949 -> Patchwork_21716
CI-20190529: 20190529
CI_DRM_10949: c43a205a07b34ebbf7fe9205454a422147791ef3 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6295: 2d7f671b872ed856a97957051098974be2380019 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_21716: c81d16843e499b02a79f5d7d92c74d3219be764b @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
c81d16843e49 drm/i915/display: stop including i915_drv.h from intel_display_types.h 48cc6caf924d drm/i915/display: convert dp_to_i915() to a macro be3ee6847fa0 drm/i915: move enum hpd_pin to intel_display.h9e846bc528ce drm/i915: split out intel_pm_types.h0b58bbeef964 drm/i915/fb: move intel_fb_uses_dpt to intel_fb.c and un-inline 2e66240a65d1 drm/i915/crtc: un-inline some crtc functions and move to intel_crtc.[ch] 020f325604a5 drm/i915/display: remove intel_wait_for_vblank() 3a537873f52a drm/i915/crtc: rename intel_get_crtc_for_plane() to intel_crtc_for_plane() fe65a94cc935 drm/i915/crtc: rename intel_get_crtc_for_pipe() to intel_crtc_for_pipe() e378d10ac676 drm/i915/display: add intel_crtc_wait_for_next_vblank() and use it
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/index.html
Re: [Intel-gfx] [PATCH v2 02/10] drm/i915/crtc: rename intel_get_crtc_for_pipe() to intel_crtc_for_pipe()
In reply to Jani NikulaQuoted 5 lines · Jani Nikula
The "get" in the name implies reference counting, remove it. This also makes the function conform to naming style.
Suggested-by Ville Syrjälä <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 348 lines
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 16 ++++++++-------- .../gpu/drm/i915/display/intel_display_types.h | 6 +++--- drivers/gpu/drm/i915/display/intel_dpll.c | 2 +- drivers/gpu/drm/i915/display/intel_fdi.c | 4 ++-- .../gpu/drm/i915/display/intel_fifo_underrun.c | 10 +++++----- drivers/gpu/drm/i915/display/intel_sprite.c | 4 ++-- drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- drivers/gpu/drm/i915/i915_trace.h | 4 ++-- drivers/gpu/drm/i915/intel_pm.c | 8 ++++---- 12 files changed, 33 insertions(+), 33 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +1
-1@@ -395,7 +395,7 @@ int intel_plane_atomic_check(struct intel_atomic_state *state,const struct intel_plane_state *old_plane_state =intel_atomic_get_old_plane_state (state, plane);const struct intel_plane_state *new_master_plane_state; -struct intel_crtc *crtc =intel_get_crtc_for_pipe (i915, plane->pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (i915, plane->pipe);const struct intel_crtc_state *old_crtc_state =intel_atomic_get_old_crtc_state (state, crtc); struct intel_crtc_state *new_crtc_state =drivers/gpu/drm/i915/display/intel_cdclk.c +1
-1@@ -2592,7 +2592,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)struct intel_crtc_state *crtc_state; pipe =ilog2 (new_cdclk_state->active_pipes); - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); crtc_state =intel_atomic_get_crtc_state (&state->base, crtc);if (IS_ERR (crtc_state))drivers/gpu/drm/i915/display/intel_display.c +8
-8@@ -4830,7 +4830,7 @@ intel_encoder_current_mode(struct intel_encoder *encoder)if (!encoder->get_hw_state (encoder, &pipe))return NULL ; - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); mode =kzalloc (sizeof (*mode),GFP_KERNEL );if (!mode)@@ -8962,8 +8962,8 @@ static void intel_plane_possible_crtcs_init(struct drm_i915_private *dev_priv)struct intel_plane *plane;for_each_intel_plane (&dev_priv->drm, plane) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, - plane->pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, + plane->pipe); plane->base.possible_crtcs =drm_crtc_mask (&crtc->base); }@@ -9956,7 +9956,7 @@ int intel_modeset_init(struct drm_i915_private *i915)void i830_enable_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);/* 640x480@60Hz, ~25175 kHz */ struct dpll clock = { .m1 =18 ,@@ -10029,7 +10029,7 @@ void i830_enable_pipe(struct drm_i915_private *dev_priv, enum pipe pipe)void i830_disable_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);drm_dbg_kms (&dev_priv->drm,"disabling pipe %c due to force quirk\n" ,pipe_name (pipe));@@ -10081,7 +10081,7 @@ intel_sanitize_plane_mapping(struct drm_i915_private *dev_priv)"[PLANE:%d:%s] attached to the wrong pipe, disabling plane\n" , plane->base.base.id, plane->base.name); - plane_crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + plane_crtc =intel_crtc_for_pipe (dev_priv, pipe);intel_plane_disable_noatomic (plane_crtc, plane); } }@@ -10334,7 +10334,7 @@ static void readout_plane_state(struct drm_i915_private *dev_priv) visible = plane->get_hw_state (plane, &pipe); - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); crtc_state =to_intel_crtc_state (crtc->base.state);intel_set_plane_visible (crtc_state, plane_state, visible);@@ -10401,7 +10401,7 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev) pipe =0 ;if (encoder->get_hw_state (encoder, &pipe)) { - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe); crtc_state =to_intel_crtc_state (crtc->base.state); encoder->base.crtc = &crtc->base;drivers/gpu/drm/i915/display/intel_display_types.h +3
-3@@ -1788,7 +1788,7 @@ intel_get_first_crtc(struct drm_i915_private *dev_priv) }static inline struct intel_crtc * -intel_get_crtc_for_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) +intel_crtc_for_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) {/* pipe_to_crtc_mapping may have hole on any of 3 display pipe system */ drm_WARN_ON(&dev_priv->drm,@@ -2028,7 +2028,7 @@ intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc)static inline void intel_wait_for_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);intel_crtc_wait_for_next_vblank (crtc); }@@ -2036,7 +2036,7 @@ intel_wait_for_vblank(struct drm_i915_private *dev_priv, enum pipe pipe)static inline void intel_wait_for_vblank_if_active (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);if (crtc->active)intel_crtc_wait_for_next_vblank (crtc);drivers/gpu/drm/i915/display/intel_dpll.c +1
-1@@ -1823,7 +1823,7 @@ void chv_enable_pll(const struct intel_crtc_state *crtc_state)int vlv_force_pll_on (struct drm_i915_private *dev_priv,enum pipe pipe,const struct dpll *dpll) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);struct intel_crtc_state *crtc_state; crtc_state =intel_crtc_state_alloc (crtc);drivers/gpu/drm/i915/display/intel_fdi.c +2
-2@@ -157,7 +157,7 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe,if (pipe_config->fdi_lanes <=2 )return 0 ; - other_crtc =intel_get_crtc_for_pipe (dev_priv,PIPE_C ); + other_crtc =intel_crtc_for_pipe (dev_priv,PIPE_C ); other_crtc_state =intel_atomic_get_crtc_state (state, other_crtc);if (IS_ERR (other_crtc_state))@@ -178,7 +178,7 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe,return -EINVAL ; } - other_crtc =intel_get_crtc_for_pipe (dev_priv,PIPE_B ); + other_crtc =intel_crtc_for_pipe (dev_priv,PIPE_B ); other_crtc_state =intel_atomic_get_crtc_state (state, other_crtc);if (IS_ERR (other_crtc_state))drivers/gpu/drm/i915/display/intel_fifo_underrun.c +5
-5@@ -61,7 +61,7 @@ static bool ivb_can_enable_err_int(struct drm_device *dev)lockdep_assert_held (&dev_priv->irq_lock);for_each_pipe (dev_priv, pipe) { - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe);if (crtc->cpu_fifo_underrun_disabled)return false;@@ -79,7 +79,7 @@ static bool cpt_can_enable_serr_int(struct drm_device *dev)lockdep_assert_held (&dev_priv->irq_lock);for_each_pipe (dev_priv, pipe) { - crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc =intel_crtc_for_pipe (dev_priv, pipe);if (crtc->pch_fifo_underrun_disabled)return false;@@ -279,7 +279,7 @@ static bool __intel_set_cpu_fifo_underrun_reporting(struct drm_device *dev, enum pipe pipe, bool enable) {struct drm_i915_private *dev_priv =to_i915 (dev); -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);bool old;lockdep_assert_held (&dev_priv->irq_lock);@@ -348,7 +348,7 @@ bool intel_set_pch_fifo_underrun_reporting(struct drm_i915_private *dev_priv, bool enable) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, pch_transcoder); +intel_crtc_for_pipe (dev_priv, pch_transcoder);unsigned long flags;bool old;@@ -391,7 +391,7 @@ bool intel_set_pch_fifo_underrun_reporting(struct drm_i915_private *dev_priv,void intel_cpu_fifo_underrun_irq_handler (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);u32 underruns =0 ;/* We may be called too early in init, thanks BIOS! */ drivers/gpu/drm/i915/display/intel_sprite.c +2
-2@@ -1584,8 +1584,8 @@ int intel_sprite_set_colorkey_ioctl(struct drm_device *dev, void *data,*/ if (!ret &&has_dst_key_in_primary_plane (dev_priv)) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, -to_intel_plane (plane)->pipe); +intel_crtc_for_pipe (dev_priv, +to_intel_plane (plane)->pipe); plane_state =drm_atomic_get_plane_state (state, crtc->base.primary);drivers/gpu/drm/i915/display/intel_vdsc.c +1
-1@@ -1116,7 +1116,7 @@ _get_crtc_for_pipe(struct drm_i915_private *i915, enum pipe pipe)if (!intel_pipe_valid (i915, pipe))return NULL ; -return intel_get_crtc_for_pipe (i915, pipe); +return intel_crtc_for_pipe (i915, pipe); } struct intel_crtc *drivers/gpu/drm/i915/i915_irq.c +3
-3@@ -224,7 +224,7 @@ static void intel_hpd_init_pins(struct drm_i915_private *dev_priv)static void intel_handle_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe);drm_crtc_handle_vblank (&crtc->base); }@@ -1318,7 +1318,7 @@ static void display_pipe_crc_irq_handler(struct drm_i915_private *dev_priv, u32 crc2, u32 crc3, u32 crc4) { - struct intel_crtc *crtc = intel_get_crtc_for_pipe(dev_priv, pipe); + struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe);struct intel_pipe_crc *pipe_crc = &crtc->pipe_crc;u32 crcs[5 ] = { crc0, crc1, crc2, crc3, crc4 };@@ -1357,7 +1357,7 @@ display_pipe_crc_irq_handler(struct drm_i915_private *dev_priv,static void flip_done_handler (struct drm_i915_private *i915,enum pipe pipe) { -struct intel_crtc *crtc =intel_get_crtc_for_pipe (i915, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (i915, pipe);struct drm_crtc_state *crtc_state = crtc->base.state;struct drm_pending_vblank_event *e = crtc_state->event;struct drm_device *dev = &i915->drm;drivers/gpu/drm/i915/i915_trace.h +2
-2@@ -109,7 +109,7 @@ TRACE_EVENT(intel_cpu_fifo_underrun, ),TP_fast_assign ( - struct intel_crtc *crtc = intel_get_crtc_for_pipe(dev_priv, pipe); + struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe); __entry->pipe = pipe; __entry->frame =intel_crtc_get_vblank_counter (crtc); __entry->scanline =intel_get_crtc_scanline (crtc);@@ -132,7 +132,7 @@ TRACE_EVENT(intel_pch_fifo_underrun,TP_fast_assign ( enum pipe pipe = pch_transcoder; -struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe); __entry->pipe = pipe; __entry->frame =intel_crtc_get_vblank_counter (crtc); __entry->scanline =intel_get_crtc_scanline (crtc);drivers/gpu/drm/i915/intel_pm.c +4
-4@@ -989,7 +989,7 @@ static void g4x_write_wm_values(struct drm_i915_private *dev_priv,enum pipe pipe;for_each_pipe (dev_priv, pipe) -trace_g4x_wm (intel_get_crtc_for_pipe (dev_priv, pipe), wm); +trace_g4x_wm (intel_crtc_for_pipe (dev_priv, pipe), wm); intel_uncore_write(&dev_priv->uncore, DSPFW1, FW_WM(wm->sr.plane, SR) |@@ -1021,7 +1021,7 @@ static void vlv_write_wm_values(struct drm_i915_private *dev_priv,enum pipe pipe;for_each_pipe (dev_priv, pipe) { -trace_vlv_wm (intel_get_crtc_for_pipe (dev_priv, pipe), wm); +trace_vlv_wm (intel_crtc_for_pipe (dev_priv, pipe), wm); intel_uncore_write(&dev_priv->uncore, VLV_DDL(pipe), (wm->ddl[pipe].plane[PLANE_CURSOR] << DDL_CURSOR_SHIFT) |@@ -6909,7 +6909,7 @@ void g4x_wm_sanitize(struct drm_i915_private *dev_priv)for_each_intel_plane (&dev_priv->drm, plane) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, plane->pipe); +intel_crtc_for_pipe (dev_priv, plane->pipe);struct intel_crtc_state *crtc_state =to_intel_crtc_state (crtc->base.state); struct intel_plane_state *plane_state =@@ -7065,7 +7065,7 @@ void vlv_wm_sanitize(struct drm_i915_private *dev_priv)for_each_intel_plane (&dev_priv->drm, plane) {struct intel_crtc *crtc = -intel_get_crtc_for_pipe (dev_priv, plane->pipe); +intel_crtc_for_pipe (dev_priv, plane->pipe);struct intel_crtc_state *crtc_state =to_intel_crtc_state (crtc->base.state); struct intel_plane_state *plane_state =Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 01/10] drm/i915/display: add intel_crtc_wait_for_next_vblank() and use it
In reply to Jani NikulaQuoted 8 lines · Jani Nikula
intel_wait_for_vblank()goes through a pipe to crtc lookup, while in most cases we already have the crtc available. Avoid the extra lookups by adding anintel_crtcbased helper.v2:
- Addintel_crtc_wait_for_next_vblank()helper (Ville)Signed-off-by Jani Nikula <[email protected]>
Quoted 260 lines
--- drivers/gpu/drm/i915/display/intel_crt.c | 4 +-- drivers/gpu/drm/i915/display/intel_display.c | 32 +++++++++---------- .../drm/i915/display/intel_display_types.h | 12 +++++-- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- drivers/gpu/drm/i915/display/intel_tv.c | 7 ++-- 6 files changed, 32 insertions(+), 27 deletions(-)drivers/gpu/drm/i915/display/intel_crt.c +2
-2@@ -321,8 +321,8 @@ static void hsw_enable_crt(struct intel_atomic_state *state,intel_crt_set_dpms (encoder, crtc_state,DRM_MODE_DPMS_ON ); -intel_wait_for_vblank (dev_priv, pipe); -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); +intel_crtc_wait_for_next_vblank (crtc);intel_set_cpu_fifo_underrun_reporting (dev_priv, pipe, true);intel_set_pch_fifo_underrun_reporting (dev_priv,PIPE_A , true); }drivers/gpu/drm/i915/display/intel_display.c +16
-16@@ -775,7 +775,7 @@ void intel_plane_disable_noatomic(struct intel_crtc *crtc,*/ if (HAS_GMCH (dev_priv) &&intel_set_memory_cxsr (dev_priv, false)) -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc);/* * Gen2 reports pipe underruns whenever all planes are disabled. @@ -785,7 +785,7 @@ void intel_plane_disable_noatomic(struct intel_crtc *crtc,intel_set_cpu_fifo_underrun_reporting (dev_priv, crtc->pipe, false);intel_plane_disable_arm (plane, crtc_state); -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); }unsigned int @@ -1011,7 +1011,7 @@ bool intel_has_pending_fb_unpin(struct drm_i915_private *dev_priv)if (cleanup_done)continue ; -drm_crtc_wait_one_vblank (crtc); +intel_crtc_wait_for_next_vblank (to_intel_crtc (crtc));return true; }@@ -1158,7 +1158,7 @@ void hsw_disable_ips(const struct intel_crtc_state *crtc_state) }/* We need to wait for a vblank before we can disable the plane. */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); }static void intel_crtc_dpms_overlay_disable (struct intel_crtc *crtc)@@ -1389,7 +1389,6 @@ static void intel_crtc_disable_flip_done(struct intel_atomic_state *state,static void intel_crtc_async_flip_disable_wa (struct intel_atomic_state *state,struct intel_crtc *crtc) { -struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_crtc_state *old_crtc_state =intel_atomic_get_old_crtc_state (state, crtc); const struct intel_crtc_state *new_crtc_state =@@ -1415,7 +1414,7 @@ static void intel_crtc_async_flip_disable_wa(struct intel_atomic_state *state, }if (need_vbl_wait) -intel_wait_for_vblank (i915, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); } static void intel_pre_plane_update(struct intel_atomic_state *state,@@ -1434,7 +1433,7 @@ static void intel_pre_plane_update(struct intel_atomic_state *state,hsw_disable_ips (old_crtc_state);if (intel_fbc_pre_update (state, crtc)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);if (!needs_async_flip_vtd_wa (old_crtc_state) &&needs_async_flip_vtd_wa (new_crtc_state))@@ -1466,7 +1465,7 @@ static void intel_pre_plane_update(struct intel_atomic_state *state,*/ if (HAS_GMCH (dev_priv) && old_crtc_state->hw.active && new_crtc_state->disable_cxsr &&intel_set_memory_cxsr (dev_priv, false)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);/* * IVB workaround: must disable low power watermarks for at least @@ -1477,7 +1476,7 @@ static void intel_pre_plane_update(struct intel_atomic_state *state,*/ if (old_crtc_state->hw.active && new_crtc_state->disable_lp_wm &&ilk_disable_lp_wm (dev_priv)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);/* * If we're doing a modeset we don't need to do any @@ -1893,8 +1892,8 @@ static void ilk_crtc_enable(struct intel_atomic_state *state,* in case there are more corner cases we don't know about. */ if (new_crtc_state->has_pch_encoder) { -intel_wait_for_vblank (dev_priv, pipe); -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); +intel_crtc_wait_for_next_vblank (crtc); }intel_set_cpu_fifo_underrun_reporting (dev_priv, pipe, true);intel_set_pch_fifo_underrun_reporting (dev_priv, pipe, true);@@ -2094,7 +2093,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,intel_encoders_enable (state, crtc);if (psl_clkgate_wa) { -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);glk_pipe_scaler_clock_gating_wa (dev_priv, pipe, false); }@@ -2529,7 +2528,7 @@ static void i9xx_crtc_enable(struct intel_atomic_state *state,/* prevents spurious underruns */ if (DISPLAY_VER (dev_priv) ==2 ) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); }static void i9xx_pfit_disable (const struct intel_crtc_state *old_crtc_state)@@ -2560,7 +2559,7 @@ static void i9xx_crtc_disable(struct intel_atomic_state *state,* wait for planes to fully turn off before disabling the pipe. */ if (DISPLAY_VER (dev_priv) ==2 ) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc);intel_encoders_disable (state, crtc);@@ -4645,7 +4644,8 @@ int intel_get_load_detect_pipe(struct drm_connector *connector,drm_atomic_state_put (state);/* let the connector get through one full cycle before testing */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); +return true; fail:@@ -8462,7 +8462,7 @@ static void skl_commit_modeset_enables(struct intel_atomic_state *state)if (!skl_ddb_entry_equal (&new_crtc_state->wm.skl.ddb, &old_crtc_state->wm.skl.ddb) && (update_pipes | modeset_pipes)) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); } }drivers/gpu/drm/i915/display/intel_display_types.h +9
-3@@ -2019,21 +2019,27 @@ intel_crtc_needs_modeset(const struct intel_crtc_state *crtc_state)return drm_atomic_crtc_needs_modeset (&crtc_state->uapi); } +static inline void +intel_crtc_wait_for_next_vblank (struct intel_crtc *crtc) +{ +drm_crtc_wait_one_vblank (&crtc->base); +} +static inline void intel_wait_for_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) {struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); -drm_crtc_wait_one_vblank (&crtc->base); +intel_crtc_wait_for_next_vblank (crtc); }static inline void intel_wait_for_vblank_if_active (struct drm_i915_private *dev_priv,enum pipe pipe) { -const struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe); +struct intel_crtc *crtc =intel_get_crtc_for_pipe (dev_priv, pipe);if (crtc->active) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (crtc); }static inline bool intel_modifier_uses_dpt (struct drm_i915_private *i915,u64 modifier)drivers/gpu/drm/i915/display/intel_dp.c +1
-1@@ -3905,7 +3905,7 @@ int intel_dp_retrain_link(struct intel_encoder *encoder,to_intel_crtc_state (crtc->base.state);/* Keep underrun reporting disabled until things are stable */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc);intel_set_cpu_fifo_underrun_reporting (dev_priv, crtc->pipe, true);if (crtc_state->has_pch_encoder)drivers/gpu/drm/i915/display/intel_sdvo.c +1
-1@@ -1842,7 +1842,7 @@ static void intel_enable_sdvo(struct intel_atomic_state *state,intel_sdvo_write_sdvox (intel_sdvo, temp);for (i =0 ; i <2 ; i++) -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); success =intel_sdvo_get_trained_inputs (intel_sdvo, &input1, &input2);/* drivers/gpu/drm/i915/display/intel_tv.c +3
-4@@ -924,8 +924,7 @@ intel_enable_tv(struct intel_atomic_state *state,struct drm_i915_private *dev_priv =to_i915 (dev);/* Prevents vblank waits from timing out in intel_tv_detect_type() */ -intel_wait_for_vblank (dev_priv, -to_intel_crtc (pipe_config->uapi.crtc)->pipe); +intel_crtc_wait_for_next_vblank (to_intel_crtc (pipe_config->uapi.crtc));intel_de_write (dev_priv,TV_CTL ,intel_de_read (dev_priv,TV_CTL ) |TV_ENC_ENABLE );@@ -1618,7 +1617,7 @@ intel_tv_detect_type(struct intel_tv *intel_tv,intel_de_write (dev_priv,TV_DAC , tv_dac);intel_de_posting_read (dev_priv,TV_DAC ); -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc); type =-1 ; tv_dac =intel_de_read (dev_priv,TV_DAC );@@ -1651,7 +1650,7 @@ intel_tv_detect_type(struct intel_tv *intel_tv,intel_de_posting_read (dev_priv,TV_CTL );/* For unknown reasons the hw barfs if we don't do this vblank wait. */ -intel_wait_for_vblank (dev_priv, crtc->pipe); +intel_crtc_wait_for_next_vblank (crtc);/* Restore interrupt config */ if (connector->polled &DRM_CONNECTOR_POLL_HPD ) {Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 03/10] drm/i915/crtc: rename intel_get_crtc_for_plane() to intel_crtc_for_plane()
In reply to Jani NikulaQuoted 5 lines · Jani Nikula
The "get" in the name implies reference counting, remove it. This also makes the function conform to naming style.
Suggested-by Ville Syrjälä <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/i915/display/intel_display_types.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/display/intel_display_types.h +1
-1@@ -1797,7 +1797,7 @@ intel_crtc_for_pipe(struct drm_i915_private *dev_priv, enum pipe pipe) }static inline struct intel_crtc * -intel_get_crtc_for_plane (struct drm_i915_private *dev_priv,enum i9xx_plane_id plane) +intel_crtc_for_plane (struct drm_i915_private *dev_priv,enum i9xx_plane_id plane) {return dev_priv->plane_to_crtc_mapping[plane]; }drivers/gpu/drm/i915/intel_pm.c +2
-2@@ -2357,7 +2357,7 @@ static void i9xx_update_wm(struct drm_i915_private *dev_priv) fifo_size =i830_get_fifo_size (dev_priv,PLANE_A ); else fifo_size =i9xx_get_fifo_size (dev_priv,PLANE_A ); - crtc =intel_get_crtc_for_plane (dev_priv,PLANE_A ); + crtc =intel_crtc_for_plane (dev_priv,PLANE_A );if (intel_crtc_active (crtc)) {const struct drm_display_mode *pipe_mode = &crtc->config->hw.pipe_mode;@@ -2387,7 +2387,7 @@ static void i9xx_update_wm(struct drm_i915_private *dev_priv) fifo_size =i830_get_fifo_size (dev_priv,PLANE_B ); else fifo_size =i9xx_get_fifo_size (dev_priv,PLANE_B ); - crtc =intel_get_crtc_for_plane (dev_priv,PLANE_B ); + crtc =intel_crtc_for_plane (dev_priv,PLANE_B );if (intel_crtc_active (crtc)) {const struct drm_display_mode *pipe_mode = &crtc->config->hw.pipe_mode;Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 04/10] drm/i915/display: remove intel_wait_for_vblank()
In reply to Jani NikulaQuoted 8 lines · Jani Nikula
There are only three call sites remaining for
intel_wait_for_vblank(). Remove the function, and open code it to avoid new users from showing up.v2:
- Useintel_crtc_wait_for_next_vblank()(Ville)Signed-off-by Jani Nikula <[email protected]>
Quoted 73 lines
--- drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 8 ++++++-- drivers/gpu/drm/i915/display/intel_display_types.h | 8 -------- 4 files changed, 8 insertions(+), 12 deletions(-)drivers/gpu/drm/i915/display/intel_cdclk.c +1
-1@@ -1690,7 +1690,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,intel_de_write (dev_priv,CDCLK_CTL , val);if (pipe !=INVALID_PIPE ) -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (intel_crtc_for_pipe (dev_priv, pipe));if (DISPLAY_VER (dev_priv) >=11 ) { ret = sandybridge_pcode_write(dev_priv, SKL_PCODE_CDCLK_CONTROL,drivers/gpu/drm/i915/display/intel_crt.c +1
-1@@ -721,7 +721,7 @@ intel_crt_load_detect(struct intel_crt *crt, u32 pipe)intel_uncore_posting_read (uncore, pipeconf_reg);/* Wait for next Vblank to substitue * border color for Color info */ -intel_wait_for_vblank (dev_priv, pipe); +intel_crtc_wait_for_next_vblank (intel_crtc_for_pipe (dev_priv, pipe)); st00 =intel_uncore_read8 (uncore, _VGA_MSR_WRITE); status = ((st00 & (1 <<4 )) !=0 ) ? connector_status_connected :drivers/gpu/drm/i915/display/intel_display.c +6
-2@@ -2101,8 +2101,12 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,* to change the workaround. */ hsw_workaround_pipe = new_crtc_state->hsw_workaround_pipe;if (IS_HASWELL (dev_priv) && hsw_workaround_pipe !=INVALID_PIPE ) { -intel_wait_for_vblank (dev_priv, hsw_workaround_pipe); -intel_wait_for_vblank (dev_priv, hsw_workaround_pipe); +struct intel_crtc *wa_crtc; + + wa_crtc =intel_crtc_for_pipe (dev_priv, hsw_workaround_pipe); + +intel_crtc_wait_for_next_vblank (wa_crtc); +intel_crtc_wait_for_next_vblank (wa_crtc); } }drivers/gpu/drm/i915/display/intel_display_types.h +0
-8@@ -2025,14 +2025,6 @@ intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc)drm_crtc_wait_one_vblank (&crtc->base); } -static inline void -intel_wait_for_vblank (struct drm_i915_private *dev_priv,enum pipe pipe) -{ -struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe); - -intel_crtc_wait_for_next_vblank (crtc); -} -static inline void intel_wait_for_vblank_if_active (struct drm_i915_private *dev_priv,enum pipe pipe) {Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 06/10] drm/i915/fb: move intel_fb_uses_dpt to intel_fb.c and un-inline
In reply to Jani NikulaQuoted 4 lines · Jani Nikula
Move fb functions where they belong, and un-inline to avoid looking into struct
drm_i915_privateguts in header files.Signed-off-by Jani Nikula <[email protected]>
Quoted 61 lines
--- drivers/gpu/drm/i915/display/intel_display_types.h | 10 ---------- drivers/gpu/drm/i915/display/intel_fb.c | 10 ++++++++++ drivers/gpu/drm/i915/display/intel_fb.h | 2 ++ 3 files changed, 12 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/display/intel_display_types.h +0
-10@@ -1990,16 +1990,6 @@ intel_crtc_needs_modeset(const struct intel_crtc_state *crtc_state)return drm_atomic_crtc_needs_modeset (&crtc_state->uapi); } -static inline bool intel_modifier_uses_dpt (struct drm_i915_private *i915,u64 modifier) -{ -return DISPLAY_VER (i915) >=13 && modifier !=DRM_FORMAT_MOD_LINEAR ; -} - -static inline bool intel_fb_uses_dpt (const struct drm_framebuffer *fb) -{ -return fb &&intel_modifier_uses_dpt (to_i915 (fb->dev), fb->modifier); -} -static inline u32 intel_plane_ggtt_offset (const struct intel_plane_state *plane_state) {return i915_ggtt_offset (plane_state->ggtt_vma);drivers/gpu/drm/i915/display/intel_fb.c +10
-0@@ -658,6 +658,16 @@ static unsigned int intel_fb_modifier_to_tiling(u64 fb_modifier) } } +static bool intel_modifier_uses_dpt (struct drm_i915_private *i915,u64 modifier) +{ +return DISPLAY_VER (i915) >=13 && modifier !=DRM_FORMAT_MOD_LINEAR ; +} + +bool intel_fb_uses_dpt (const struct drm_framebuffer *fb) +{ +return fb &&intel_modifier_uses_dpt (to_i915 (fb->dev), fb->modifier); +} +unsigned int intel_cursor_alignment (const struct drm_i915_private *i915) {if (IS_I830 (i915))drivers/gpu/drm/i915/display/intel_fb.h +2
-0@@ -90,4 +90,6 @@ intel_user_framebuffer_create(struct drm_device *dev,struct drm_file *filp, const struct drm_mode_fb_cmd2 *user_mode_cmd); +bool intel_fb_uses_dpt (const struct drm_framebuffer *fb); +#endif /* __INTEL_FB_H__ */ Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 05/10] drm/i915/crtc: un-inline some crtc functions and move to intel_crtc.[ch]
In reply to Jani NikulaQuoted 5 lines · Jani Nikula
Move a number of crtc/pipe related functions to intel_crtc.[ch], and un-inline to avoid looking into struct
drm_i915_privateguts in header files.Signed-off-by Jani Nikula <[email protected]>
Quoted 150 lines
--- drivers/gpu/drm/i915/display/intel_crtc.c | 42 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_crtc.h | 10 +++++ .../drm/i915/display/intel_display_types.h | 44 ------------------- 3 files changed, 52 insertions(+), 44 deletions(-)drivers/gpu/drm/i915/display/intel_crtc.c +42
-0@@ -36,6 +36,48 @@ static void assert_vblank_disabled(struct drm_crtc *crtc)drm_crtc_vblank_put (crtc); } +bool intel_pipe_valid (struct drm_i915_private *i915,enum pipe pipe) +{ +return (pipe >=0 && + pipe <ARRAY_SIZE (i915->pipe_to_crtc_mapping) && +INTEL_INFO (i915)->pipe_mask &BIT (pipe) && + i915->pipe_to_crtc_mapping[pipe]); +} + +struct intel_crtc *intel_get_first_crtc (struct drm_i915_private *i915) +{ +return to_intel_crtc (drm_crtc_from_index (&i915->drm,0 )); +} + +struct intel_crtc *intel_crtc_for_pipe (struct drm_i915_private *i915, +enum pipe pipe) +{ +/* pipe_to_crtc_mapping may have hole on any of 3 display pipe system */ +drm_WARN_ON (&i915->drm, + !(INTEL_INFO (i915)->pipe_mask &BIT (pipe))); +return i915->pipe_to_crtc_mapping[pipe]; +} + +struct intel_crtc *intel_crtc_for_plane (struct drm_i915_private *i915, +enum i9xx_plane_id plane) +{ +return i915->plane_to_crtc_mapping[plane]; +} + +void intel_crtc_wait_for_next_vblank (struct intel_crtc *crtc) +{ +drm_crtc_wait_one_vblank (&crtc->base); +} + +void intel_wait_for_vblank_if_active (struct drm_i915_private *i915, +enum pipe pipe) +{ +struct intel_crtc *crtc =intel_crtc_for_pipe (i915, pipe); + +if (crtc->active) +intel_crtc_wait_for_next_vblank (crtc); +} +u32 intel_crtc_get_vblank_counter (struct intel_crtc *crtc) {struct drm_device *dev = crtc->base.dev;drivers/gpu/drm/i915/display/intel_crtc.h +10
-0@@ -8,6 +8,7 @@#include <linux/types.h> +enum i9xx_plane_id ;enum pipe ;struct drm_display_mode ;struct drm_i915_private ;@@ -28,5 +29,14 @@ void intel_crtc_vblank_off(const struct intel_crtc_state *crtc_state);void intel_pipe_update_start (struct intel_crtc_state *new_crtc_state);void intel_pipe_update_end (struct intel_crtc_state *new_crtc_state);void intel_wait_for_vblank_workers (struct intel_atomic_state *state); +bool intel_pipe_valid (struct drm_i915_private *i915,enum pipe pipe); +struct intel_crtc *intel_get_first_crtc (struct drm_i915_private *i915); +struct intel_crtc *intel_crtc_for_pipe (struct drm_i915_private *i915, +enum pipe pipe); +struct intel_crtc *intel_crtc_for_plane (struct drm_i915_private *i915, +enum i9xx_plane_id plane); +void intel_wait_for_vblank_if_active (struct drm_i915_private *i915, +enum pipe pipe); +void intel_crtc_wait_for_next_vblank (struct intel_crtc *crtc);#endif drivers/gpu/drm/i915/display/intel_display_types.h +0
-44@@ -1773,35 +1773,6 @@ vlv_pipe_to_channel(enum pipe pipe) } } -static inline bool intel_pipe_valid (struct drm_i915_private *i915,enum pipe pipe) -{ -return (pipe >=0 && - pipe <ARRAY_SIZE (i915->pipe_to_crtc_mapping) && -INTEL_INFO (i915)->pipe_mask &BIT (pipe) && - i915->pipe_to_crtc_mapping[pipe]); -} - -static inline struct intel_crtc * -intel_get_first_crtc (struct drm_i915_private *dev_priv) -{ -return to_intel_crtc (drm_crtc_from_index (&dev_priv->drm,0 )); -} - -static inline struct intel_crtc * -intel_crtc_for_pipe (struct drm_i915_private *dev_priv,enum pipe pipe) -{ -/* pipe_to_crtc_mapping may have hole on any of 3 display pipe system */ -drm_WARN_ON (&dev_priv->drm, - !(INTEL_INFO (dev_priv)->pipe_mask &BIT (pipe))); -return dev_priv->pipe_to_crtc_mapping[pipe]; -} - -static inline struct intel_crtc * -intel_crtc_for_plane (struct drm_i915_private *dev_priv,enum i9xx_plane_id plane) -{ -return dev_priv->plane_to_crtc_mapping[plane]; -} -struct intel_load_detect_pipe {struct drm_atomic_state *restore_state; };@@ -2019,21 +1990,6 @@ intel_crtc_needs_modeset(const struct intel_crtc_state *crtc_state)return drm_atomic_crtc_needs_modeset (&crtc_state->uapi); } -static inline void -intel_crtc_wait_for_next_vblank (struct intel_crtc *crtc) -{ -drm_crtc_wait_one_vblank (&crtc->base); -} - -static inline void -intel_wait_for_vblank_if_active (struct drm_i915_private *dev_priv,enum pipe pipe) -{ -struct intel_crtc *crtc =intel_crtc_for_pipe (dev_priv, pipe); - -if (crtc->active) -intel_crtc_wait_for_next_vblank (crtc); -} -static inline bool intel_modifier_uses_dpt (struct drm_i915_private *i915,u64 modifier) {return DISPLAY_VER (i915) >=13 && modifier !=DRM_FORMAT_MOD_LINEAR ;Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 07/10] drm/i915: split out intel_pm_types.h
In reply to Jani NikulaQuoted 2 lines · Jani Nikula
This is far from ideal, but it reduces the
i915_drv.hdependency fromintel_display_types.h. Maybe in the future we'll need a better split.
Yeah, looks pretty temporary until we move the wm code into some actually sensible place.
Quoted 187 lines
Signed-off-by Jani Nikula <[email protected]>--- .../drm/i915/display/intel_display_types.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 64 +--------------- drivers/gpu/drm/i915/intel_pm_types.h | 76 +++++++++++++++++++ 3 files changed, 78 insertions(+), 63 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_pm_types.hdrivers/gpu/drm/i915/display/intel_display_types.h +1
-0@@ -47,6 +47,7 @@#include <media/cec-notifier.h> #include "i915_drv.h" +#include "intel_pm_types.h" struct drm_printer ;struct __intel_global_objs_state ;drivers/gpu/drm/i915/i915_drv.h +1
-63@@ -89,6 +89,7 @@#include "intel_device_info.h" #include "intel_memory_region.h" #include "intel_pch.h" +#include "intel_pm_types.h" #include "intel_runtime_pm.h" #include "intel_step.h" #include "intel_uncore.h" @@ -730,69 +731,6 @@ struct intel_vbt_data {struct sdvo_device_mapping sdvo_mappings[2 ]; }; -enum intel_ddb_partitioning { -INTEL_DDB_PART_1_2 , -INTEL_DDB_PART_5_6 ,/* IVB+ */ -}; - -struct ilk_wm_values { -u32 wm_pipe[3 ]; -u32 wm_lp[3 ]; -u32 wm_lp_spr[3 ]; -bool enable_fbc_wm; -enum intel_ddb_partitioning partitioning; -}; - -struct g4x_pipe_wm { -u16 plane[I915_MAX_PLANES ]; -u16 fbc; -}; - -struct g4x_sr_wm { -u16 plane; -u16 cursor; -u16 fbc; -}; - -struct vlv_wm_ddl_values { -u8 plane[I915_MAX_PLANES ]; -}; - -struct vlv_wm_values { -struct g4x_pipe_wm pipe[3 ]; -struct g4x_sr_wm sr; -struct vlv_wm_ddl_values ddl[3 ]; -u8 level; -bool cxsr; -}; - -struct g4x_wm_values { -struct g4x_pipe_wm pipe[2 ]; -struct g4x_sr_wm sr; -struct g4x_sr_wm hpll; -bool cxsr; -bool hpll_en; -bool fbc_en; -}; - -struct skl_ddb_entry { -u16 start, end;/* in number of blocks, 'end' is exclusive */ -}; - -static inline u16 skl_ddb_entry_size (const struct skl_ddb_entry *entry) -{ -return entry->end - entry->start; -} - -static inline bool skl_ddb_entry_equal (const struct skl_ddb_entry *e1, -const struct skl_ddb_entry *e2) -{ -if (e1->start == e2->start && e1->end == e2->end) -return true; - -return false; -} -struct i915_frontbuffer_tracking {spinlock_t lock;drivers/gpu/drm/i915/intel_pm_types.h new file +76
-0@@ -0,0 +1,76 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2021 Intel Corporation +*/ + +#ifndef __INTEL_PM_TYPES_H__ +#define __INTEL_PM_TYPES_H__ + +#include <linux/types.h> + +#include "display/intel_display.h" + +enum intel_ddb_partitioning { +INTEL_DDB_PART_1_2 , +INTEL_DDB_PART_5_6 ,/* IVB+ */ +}; + +struct ilk_wm_values { +u32 wm_pipe[3 ]; +u32 wm_lp[3 ]; +u32 wm_lp_spr[3 ]; +bool enable_fbc_wm; +enum intel_ddb_partitioning partitioning; +}; + +struct g4x_pipe_wm { +u16 plane[I915_MAX_PLANES ]; +u16 fbc; +}; + +struct g4x_sr_wm { +u16 plane; +u16 cursor; +u16 fbc; +}; + +struct vlv_wm_ddl_values { +u8 plane[I915_MAX_PLANES ]; +}; + +struct vlv_wm_values { +struct g4x_pipe_wm pipe[3 ]; +struct g4x_sr_wm sr; +struct vlv_wm_ddl_values ddl[3 ]; +u8 level; +bool cxsr; +}; + +struct g4x_wm_values { +struct g4x_pipe_wm pipe[2 ]; +struct g4x_sr_wm sr; +struct g4x_sr_wm hpll; +bool cxsr; +bool hpll_en; +bool fbc_en; +}; + +struct skl_ddb_entry { +u16 start, end;/* in number of blocks, 'end' is exclusive */ +}; + +static inline u16 skl_ddb_entry_size (const struct skl_ddb_entry *entry) +{ +return entry->end - entry->start; +} + +static inline bool skl_ddb_entry_equal (const struct skl_ddb_entry *e1, +const struct skl_ddb_entry *e2) +{ +if (e1->start == e2->start && e1->end == e2->end) +return true; + +return false; +} + +#endif /* __INTEL_PM_TYPES_H__ */ Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 08/10] drm/i915: move enum hpd_pin to intel_display.h
In reply to Jani NikulaQuoted 5 lines · Jani Nikula
It's not the ideal location, but a better alternative than
i915_drv.h. The goal is to break theintel_display_types.htoi915_drv.hdependency.Signed-off-by Jani Nikula <[email protected]>
Quoted 77 lines
--- drivers/gpu/drm/i915/display/intel_display.h | 24 ++++++++++++++++++++ drivers/gpu/drm/i915/i915_drv.h | 24 -------------------- 2 files changed, 24 insertions(+), 24 deletions(-)drivers/gpu/drm/i915/display/intel_display.h +24
-0@@ -346,6 +346,30 @@ enum phy_fia { FIA3, }; +enum hpd_pin { +HPD_NONE =0 , +HPD_TV =HPD_NONE ,/* TV is known to be unreliable */ +HPD_CRT , +HPD_SDVO_B , +HPD_SDVO_C , +HPD_PORT_A , +HPD_PORT_B , +HPD_PORT_C , +HPD_PORT_D , +HPD_PORT_E , +HPD_PORT_TC1 , +HPD_PORT_TC2 , +HPD_PORT_TC3 , +HPD_PORT_TC4 , +HPD_PORT_TC5 , +HPD_PORT_TC6 , + +HPD_NUM_PINS +}; + +#define for_each_hpd_pin (__pin) \ + for ((__pin) = (HPD_NONE + 1); (__pin) < HPD_NUM_PINS; (__pin)++) +#define for_each_pipe (__dev_priv, __p) \ for ((__p) = 0; (__p) < I915_MAX_PIPES; (__p)++) \ for_each_if(INTEL_INFO(__dev_priv)->pipe_mask & BIT(__p))drivers/gpu/drm/i915/i915_drv.h +0
-24@@ -117,30 +117,6 @@struct drm_i915_gem_object ; -enum hpd_pin { -HPD_NONE =0 , -HPD_TV =HPD_NONE ,/* TV is known to be unreliable */ -HPD_CRT , -HPD_SDVO_B , -HPD_SDVO_C , -HPD_PORT_A , -HPD_PORT_B , -HPD_PORT_C , -HPD_PORT_D , -HPD_PORT_E , -HPD_PORT_TC1 , -HPD_PORT_TC2 , -HPD_PORT_TC3 , -HPD_PORT_TC4 , -HPD_PORT_TC5 , -HPD_PORT_TC6 , - -HPD_NUM_PINS -}; - -#define for_each_hpd_pin (__pin) \ - for ((__pin) = (HPD_NONE + 1); (__pin) < HPD_NUM_PINS; (__pin)++) -/* Threshold == 5 for long IRQs, 50 for short */ #define HPD_STORM_DEFAULT_THRESHOLD 50Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 09/10] drm/i915/display: convert dp_to_i915() to a macro
In reply to Jani NikulaQuoted 4 lines · Jani Nikula
Avoid looking into the guts of struct
drm_i915_privatein headers. Again, converting an inline function to a macro is less than ideal, but avoids having to pull ini915_drv.hjust for theto_i915()part.
Ugly, but gets the job done.
Quoted 25 lines
Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/i915/display/intel_display_types.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)drivers/gpu/drm/i915/display/intel_display_types.h +1
-5@@ -1883,11 +1883,7 @@ dp_to_lspcon(struct intel_dp *intel_dp)return &dp_to_dig_port (intel_dp)->lspcon; } -static inline struct drm_i915_private * -dp_to_i915 (struct intel_dp *intel_dp) -{ -return to_i915 (dp_to_dig_port (intel_dp)->base.base.dev); -} +#define dp_to_i915 (__intel_dp) to_i915(dp_to_dig_port(__intel_dp)->base.base.dev)#define CAN_PSR (intel_dp) ((intel_dp)->psr.sink_support && \ (intel_dp)->psr.source_support)Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 10/10] drm/i915/display: stop including i915_drv.h from intel_display_types.h
In reply to Jani NikulaQuoted 3 lines · Jani Nikula
Break the dependency on
i915_drv.h.Signed-off-by Jani Nikula <[email protected]>
Looks reasonable.
Quoted 154 lines
--- drivers/gpu/drm/i915/display/intel_display_types.h | 9 ++++++++- drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 1 + drivers/gpu/drm/i915/display/intel_dp_link_training.c | 2 +- drivers/gpu/drm/i915/display/intel_dsi.c | 2 ++ drivers/gpu/drm/i915/display/intel_fb.c | 1 + drivers/gpu/drm/i915/display/intel_fb_pin.c | 10 +++++----- drivers/gpu/drm/i915/display/intel_plane_initial.c | 5 +++-- drivers/gpu/drm/i915/display/intel_quirks.c | 1 + 8 files changed, 22 insertions(+), 9 deletions(-)drivers/gpu/drm/i915/display/intel_display_types.h +8
-1@@ -36,6 +36,7 @@#include <drm/drm_crtc.h> #include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_dp_mst_helper.h> +#include <drm/drm_dsc.h> #include <drm/drm_encoder.h> #include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> @@ -46,13 +47,19 @@#include <drm/i915_mei_hdcp_interface.h> #include <media/cec-notifier.h> -#include "i915_drv.h" +#include "i915_vma.h" +#include "i915_vma_types.h" +#include "intel_bios.h" +#include "intel_display.h" +#include "intel_display_power.h" +#include "intel_dpll_mgr.h" #include "intel_pm_types.h" struct drm_printer ;struct __intel_global_objs_state ;struct intel_ddi_buf_trans ;struct intel_fbc ; +struct intel_connector ;/* * Display related stuff drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c +1
-0@@ -34,6 +34,7 @@* for some reason. */ +#include "i915_drv.h" #include "intel_backlight.h" #include "intel_display_types.h" #include "intel_dp.h" drivers/gpu/drm/i915/display/intel_dp_link_training.c +1
-1@@ -21,11 +21,11 @@* IN THE SOFTWARE. */ +#include "i915_drv.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" -static void intel_dp_reset_lttpr_common_caps (struct intel_dp *intel_dp) {memset (intel_dp->lttpr_common_caps,0 ,sizeof (intel_dp->lttpr_common_caps));drivers/gpu/drm/i915/display/intel_dsi.c +2
-0@@ -4,6 +4,8 @@*/ #include <drm/drm_mipi_dsi.h> + +#include "i915_drv.h" #include "intel_dsi.h" #include "intel_panel.h" drivers/gpu/drm/i915/display/intel_fb.c +1
-0@@ -6,6 +6,7 @@#include <drm/drm_framebuffer.h> #include <drm/drm_modeset_helper.h> +#include "i915_drv.h" #include "intel_display.h" #include "intel_display_types.h" #include "intel_dpt.h" drivers/gpu/drm/i915/display/intel_fb_pin.c +5
-5@@ -7,13 +7,13 @@* DOC: display pinning helpers */ -#include "intel_display_types.h" -#include "intel_fb_pin.h" -#include "intel_fb.h" +#include "gem/i915_gem_object.h" +#include "i915_drv.h" +#include "intel_display_types.h" #include "intel_dpt.h" - -#include "gem/i915_gem_object.h" +#include "intel_fb.h" +#include "intel_fb_pin.h" static struct i915_vma * intel_pin_fb_obj_dpt(struct drm_framebuffer *fb,drivers/gpu/drm/i915/display/intel_plane_initial.c +3
-2@@ -3,11 +3,12 @@* Copyright © 2021 Intel Corporation */ -#include "intel_display_types.h" -#include "intel_plane_initial.h" +#include "i915_drv.h" #include "intel_atomic_plane.h" #include "intel_display.h" +#include "intel_display_types.h" #include "intel_fb.h" +#include "intel_plane_initial.h" static bool intel_reuse_initial_plane_obj(struct drm_i915_private *i915,drivers/gpu/drm/i915/display/intel_quirks.c +1
-0@@ -5,6 +5,7 @@#include <linux/dmi.h> +#include "i915_drv.h" #include "intel_display_types.h" #include "intel_quirks.h" Signature · 1 line
2.30.2
Signature · 2 lines
Ville Syrjälä Intel
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: break intel_display_types.h dependency on i915_drv.h (rev2)
URL : https://patchwork.freedesktop.org/series/97173/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10949_full -> Patchwork_21716_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (10 -> 11)
------------------------------
Additional (1): shard-rkl
Known issues
------------
Here are the changes found in Patchwork_21716_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@preservation-s3@vcs0:
- shard-kbl: [PASS][1] -> [DMESG-WARN][2] ([i915#180]) +5 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl4/igt@gem_ctx_isolation@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@gem_ctx_isolation@[email protected]
* igt@gem_exec_capture@pi@vcs0:
- shard-skl: [PASS][3] -> [INCOMPLETE][4] ([i915#4547])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl6/igt@gem_exec_capture@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl4/igt@gem_exec_capture@[email protected]
* igt@gem_exec_endless@dispatch@rcs0:
- shard-tglb: [PASS][5] -> [INCOMPLETE][6] ([i915#3778])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-tglb6/igt@gem_exec_endless@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-tglb6/igt@gem_exec_endless@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-skl: NOTRUN -> [FAIL][7] ([i915#2846])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@[email protected]
- shard-glk: [PASS][8] -> [FAIL][9] ([i915#2846])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-glk4/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-glk6/igt@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [PASS][10] -> [FAIL][11] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-tglb1/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-tglb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-iclb: [PASS][12] -> [FAIL][13] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb3/igt@gem_exec_fair@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb6/igt@gem_exec_fair@[email protected]
* igt@gem_lmem_swapping@heavy-verify-random:
- shard-skl: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#4613]) +1 similar issue
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl9/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#4613])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl2/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-skl: NOTRUN -> [DMESG-WARN][16] ([i915#1436] / [i915#716])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-kbl: NOTRUN -> [DMESG-WARN][17] ([i915#180])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [PASS][18] -> [FAIL][19] ([i915#2521])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl6/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl4/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-kbl: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#3777])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl2/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-skl: NOTRUN -> [FAIL][21] ([i915#3743])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-apl: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#3777])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl2/igt@[email protected]
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][23] ([fdo#109271] / [i915#3886]) +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl2/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-skl: NOTRUN -> [SKIP][24] ([fdo#109271] / [i915#3886]) +2 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl7/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][25] ([fdo#109271] / [i915#3886]) +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl4/igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][26] ([i915#3689])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-tglb3/igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_ccs.html
* igt@kms_cdclk@mode-transition:
- shard-apl: NOTRUN -> [SKIP][27] ([fdo#109271]) +40 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl2/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][28] ([fdo#109271] / [fdo#111827]) +2 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl2/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-storm-disable:
- shard-kbl: NOTRUN -> [SKIP][29] ([fdo#109271] / [fdo#111827]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-ctm-negative:
- shard-skl: NOTRUN -> [SKIP][30] ([fdo#109271] / [fdo#111827]) +4 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl9/igt@[email protected]
* igt@kms_content_protection@srm:
- shard-kbl: NOTRUN -> [TIMEOUT][31] ([i915#1319])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@[email protected]
* igt@kms_cursor_legacy@2x-cursor-vs-flip-legacy:
- shard-tglb: NOTRUN -> [SKIP][32] ([fdo#111825])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-tglb3/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-torture-bo:
- shard-skl: NOTRUN -> [SKIP][33] ([fdo#109271] / [i915#533])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: NOTRUN -> [INCOMPLETE][34] ([i915#180] / [i915#1982])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl8/igt@[email protected]
* igt@kms_flip@2x-plain-flip-fb-recreate-interruptible@ab-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][35] -> [FAIL][36] ([i915#2122])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-glk4/igt@kms_flip@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-glk8/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a2:
- shard-glk: [PASS][37] -> [FAIL][38] ([i915#79])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-glk9/igt@kms_flip@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-glk2/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check-interruptible@a-edp1:
- shard-skl: [PASS][39] -> [FAIL][40] ([i915#2122])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl7/igt@kms_flip@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl7/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-render:
- shard-skl: NOTRUN -> [SKIP][41] ([fdo#109271]) +38 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl9/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-msflip-blt:
- shard-kbl: NOTRUN -> [SKIP][42] ([fdo#109271]) +66 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl2/igt@[email protected]
* igt@kms_pipe_b_c_ivb@disable-pipe-b-enable-pipe-c:
- shard-tglb: NOTRUN -> [SKIP][43] ([fdo#109289])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-tglb3/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence:
- shard-kbl: NOTRUN -> [SKIP][44] ([fdo#109271] / [i915#533])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes:
- shard-apl: [PASS][45] -> [DMESG-WARN][46] ([i915#180]) +2 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-apl7/igt@kms_plane@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl4/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- shard-kbl: NOTRUN -> [FAIL][47] ([fdo#108145] / [i915#265])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][48] -> [FAIL][49] ([fdo#108145] / [i915#265])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl9/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl10/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-2:
- shard-kbl: NOTRUN -> [SKIP][50] ([fdo#109271] / [i915#658]) +2 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl2/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][51] -> [SKIP][52] ([fdo#109642] / [fdo#111068] / [i915#658])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb2/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb4/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][53] -> [SKIP][54] ([fdo#109441]) +3 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb4/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_setmode@basic:
- shard-glk: [PASS][55] -> [FAIL][56] ([i915#31])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-glk2/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-glk1/igt@[email protected]
* igt@sysfs_clients@pidname:
- shard-skl: NOTRUN -> [SKIP][57] ([fdo#109271] / [i915#2994])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@[email protected]
* igt@sysfs_clients@split-10:
- shard-apl: NOTRUN -> [SKIP][58] ([fdo#109271] / [i915#2994])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl2/igt@[email protected]
#### Possible fixes ####
* igt@gem_softpin@allocator-evict@rcs0:
- shard-glk: [DMESG-WARN][59] ([i915#118]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-glk6/igt@gem_softpin@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-glk7/igt@gem_softpin@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][61] ([i915#454]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb3/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb7/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-kbl: [DMESG-WARN][63] ([i915#180]) -> [PASS][64] +3 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl1/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-skl: [FAIL][65] ([i915#2122]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl9/igt@kms_flip@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile:
- shard-iclb: [SKIP][67] ([i915#3701]) -> [PASS][68] +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb2/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb3/igt@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [FAIL][69] ([i915#1188]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl9/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl10/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-apl: [DMESG-WARN][71] ([i915#180]) -> [PASS][72] +2 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-apl4/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl6/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- shard-glk: [DMESG-WARN][73] ([i915#118] / [i915#1888]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-glk4/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-glk8/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [DMESG-WARN][75] ([i915#180] / [i915#295]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-apl3/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-apl6/igt@[email protected]
#### Warnings ####
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][77] ([i915#2684]) -> [WARN][78] ([i915#1804] / [i915#2684])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb5/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb6/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][79] ([i915#1804] / [i915#2684]) -> [WARN][80] ([i915#2684])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb4/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-1:
- shard-iclb: [SKIP][81] ([i915#2920]) -> [SKIP][82] ([i915#658]) +1 similar issue
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb2/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb4/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-3:
- shard-iclb: [SKIP][83] ([i915#658]) -> [SKIP][84] ([i915#2920]) +2 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-iclb7/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][85], [FAIL][86], [FAIL][87], [FAIL][88], [FAIL][89], [FAIL][90], [FAIL][91], [FAIL][92], [FAIL][93], [FAIL][94]) ([i915#180] / [i915#1814] / [i915#2426] / [i915#3002] / [i915#3363] / [i915#4312] / [i915#602]) -> ([FAIL][95], [FAIL][96], [FAIL][97], [FAIL][98], [FAIL][99], [FAIL][100], [FAIL][101], [FAIL][102], [FAIL][103], [FAIL][104]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#2426] / [i915#3002] / [i915#3363] / [i915#4312] / [i915#602])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl2/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl1/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl1/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl7/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl6/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl6/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl4/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl6/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl7/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-kbl7/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl3/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl1/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl1/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl6/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl3/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl1/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl3/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-kbl7/igt@[email protected]
- shard-skl: ([FAIL][105], [FAIL][106], [FAIL][107], [FAIL][108], [FAIL][109]) ([i915#2029] / [i915#2426] / [i915#3002] / [i915#3363] / [i915#4312]) -> ([FAIL][110], [FAIL][111], [FAIL][112], [FAIL][113]) ([i915#1436] / [i915#2426] / [i915#3002] / [i915#3363] / [i915#4312])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl9/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl6/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl10/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl9/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10949/shard-skl5/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl4/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl10/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/shard-skl1/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
[fdo#109307]: https://bugs.freedesktop.org/show_bug.cgi?id=109307
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110254]: https://bugs.freedesktop.org/show_bug.cgi?id=110254
[fdo#110542]: https://bugs.freedesktop.org/show_bug.cgi?id=110542
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111314]: https://bugs.freedesktop.org/show_bug.cgi?id=111314
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112022]: https://bugs.freedesktop.org/show_bug.cgi?id=112022
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1149]: https://gitlab.freedesktop.org/drm/intel/issues/1149
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1257]: https://gitlab.freedesktop.org/drm/intel/issues/1257
[i915#1319]: https://gitlab.freedesktop.org/drm/intel/issues/1319
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1804]: https://gitlab.freedesktop.org/drm/intel/issues/1804
[i915#1814]: https://gitlab.freedesktop.org/drm/intel/issues/1814
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1836]: https://gitlab.freedesktop.org/drm/intel/issues/1836
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1850]: https://gitlab.freedesktop.org/drm/intel/issues/1850
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2433]: https://gitlab.freedesktop.org/drm/intel/issues/2433
[i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434
[i915#2435]: https://gitlab.freedesktop.org/drm/intel/issues/2435
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2530]: https://gitlab.freedesktop.org/drm/intel/issues/2530
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#2684]: https://gitlab.freedesktop.org/drm/intel/issues/2684
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#295]: https://gitlab.freedesktop.org/drm/intel/issues/295
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3323]: https://gitlab.freedesktop.org/drm/intel/issues/3323
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3363]: https://gitlab.freedesktop.org/drm/intel/issues/3363
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3699]: https://gitlab.freedesktop.org/drm/intel/issues/3699
[i915#3701]: https://gitlab.freedesktop.org/drm/intel/issues/3701
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743
[i915#3777]: https://gitlab.freedesktop.org/drm/intel/issues/3777
[i915#3778]: https://gitlab.freedesktop.org/drm/intel/issues/3778
[i915#3826]: https://gitlab.freedesktop.org/drm/intel/issues/3826
[i915#3828]: https://gitlab.freedesktop.org/drm/intel/issues/3828
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#4016]: https://gitlab.freedesktop.org/drm/intel/issues/4016
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4278]: https://gitlab.freedesktop.org/drm/intel/issues/4278
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4663]: https://gitlab.freedesktop.org/drm/intel/issues/4663
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#602]: https://gitlab.freedesktop.org/drm/intel/issues/602
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Build changes
-------------
* Linux: CI_DRM_10949 -> Patchwork_21716
CI-20190529: 20190529
CI_DRM_10949: c43a205a07b34ebbf7fe9205454a422147791ef3 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6295: 2d7f671b872ed856a97957051
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21716/index.html
Quoted 4 lines · Jani Nikula
v2 of https://patchwork.freedesktop.org/series/97173/
BR,
Jani.
Pushed, thanks for the reviews!
BR,
Jani.
Quoted 48 lines
Jani Nikula (10):
drm/i915/display: addintel_crtc_wait_for_next_vblank()and use it drm/i915/crtc: renameintel_get_crtc_for_pipe()to
intel_crtc_for_pipe()
drm/i915/crtc: renameintel_get_crtc_for_plane()to
intel_crtc_for_plane()
drm/i915/display: removeintel_wait_for_vblank()drm/i915/crtc: un-inline some crtc functions and move tointel_crtc.[ch]drm/i915/fb: move
intel_fb_uses_dpttointel_fb.cand un-inline drm/i915: split outintel_pm_types.h
drm/i915: move enumhpd_pintointel_display.hdrm/i915/display: convertdp_to_i915()to a macro drm/i915/display: stop includingi915_drv.hfromintel_display_types.h.../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 4 +- drivers/gpu/drm/i915/display/intel_crt.c | 6 +- drivers/gpu/drm/i915/display/intel_crtc.c | 42 +++++++++ drivers/gpu/drm/i915/display/intel_crtc.h | 10 +++ drivers/gpu/drm/i915/display/intel_display.c | 56 ++++++------ drivers/gpu/drm/i915/display/intel_display.h | 24 +++++ .../drm/i915/display/intel_display_types.h | 72 +++------------ drivers/gpu/drm/i915/display/intel_dp.c | 2 +- .../drm/i915/display/intel_dp_aux_backlight.c | 1 + .../drm/i915/display/intel_dp_link_training.c | 2 +- drivers/gpu/drm/i915/display/intel_dpll.c | 2 +- drivers/gpu/drm/i915/display/intel_dsi.c | 2 + drivers/gpu/drm/i915/display/intel_fb.c | 11 +++ drivers/gpu/drm/i915/display/intel_fb.h | 2 + drivers/gpu/drm/i915/display/intel_fb_pin.c | 10 +-- drivers/gpu/drm/i915/display/intel_fdi.c | 4 +- .../drm/i915/display/intel_fifo_underrun.c | 10 +-- .../drm/i915/display/intel_plane_initial.c | 5 +- drivers/gpu/drm/i915/display/intel_quirks.c | 1 + drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite.c | 4 +- drivers/gpu/drm/i915/display/intel_tv.c | 7 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 88 +------------------ drivers/gpu/drm/i915/i915_irq.c | 6 +- drivers/gpu/drm/i915/i915_trace.h | 4 +- drivers/gpu/drm/i915/intel_pm.c | 12 +-- drivers/gpu/drm/i915/intel_pm_types.h | 76 ++++++++++++++++ 29 files changed, 252 insertions(+), 217 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_pm_types.h
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center