drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
Maarten Lankhorst
maintainerPATCH 1/12 drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
We are still looking at drm_crtc_state in a few places, convert those to use intel_crtc_state instead.
Changes since v1:
- Move to before uapi/hw split.
- Add hunks for intel_pm.c as well.
Changes since v2:
- Incorporate Ville's feedback.
--- drivers/gpu/drm/i915/display/intel_display.c | 15 ++++++++------- drivers/gpu/drm/i915/display/intel_dp_mst.c | 12 ++++++++---- drivers/gpu/drm/i915/display/intel_psr.c | 16 +++++++--------- drivers/gpu/drm/i915/intel_pm.c | 6 ++---- 4 files changed, 25 insertions(+), 24 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +8 -7
@@ -16714,8 +16714,7 @@ static int intel_initial_commit(struct drm_device *dev) {struct drm_atomic_state *state =NULL ;struct drm_modeset_acquire_ctx ctx; -struct drm_crtc *crtc; -struct drm_crtc_state *crtc_state; +struct intel_crtc *crtc;int ret =0 ; state =drm_atomic_state_alloc (dev);
@@ -16727,15 +16726,17 @@ static int intel_initial_commit(struct drm_device *dev) retry: state->acquire_ctx = &ctx; -drm_for_each_crtc (crtc, dev) { - crtc_state =drm_atomic_get_crtc_state (state, crtc); +for_each_intel_crtc (dev, crtc) { +struct intel_crtc_state *crtc_state = +intel_atomic_get_crtc_state (state, crtc); +if (IS_ERR (crtc_state)) { ret =PTR_ERR (crtc_state); goto out; } -if (crtc_state->active) { - ret =drm_atomic_add_affected_planes (state, crtc); +if (crtc_state->base.active) { + ret =drm_atomic_add_affected_planes (state, &crtc->base);if (ret) goto out;
@@ -16745,7 +16746,7 @@ static int intel_initial_commit(struct drm_device *dev)* having a proper LUT loaded. Remove once we * have readout for pipe gamma enable. */ - crtc_state->color_mgmt_changed = true; + crtc_state->base.color_mgmt_changed = true; } }
drivers/gpu/drm/i915/display/intel_dp_mst.c +8 -4
@@ -168,7 +168,6 @@ intel_dp_mst_atomic_check(struct drm_connector *connector,struct intel_connector *intel_connector =to_intel_connector (connector);struct drm_crtc *new_crtc = new_conn_state->crtc; -struct drm_crtc_state *crtc_state;struct drm_dp_mst_topology_mgr *mgr;int ret;
@@ -183,11 +182,16 @@ intel_dp_mst_atomic_check(struct drm_connector *connector,* connector */ if (new_crtc) { - crtc_state =drm_atomic_get_new_crtc_state (state, new_crtc); +struct intel_atomic_state *intel_state = +to_intel_atomic_state (state); +struct intel_crtc *intel_crtc =to_intel_crtc (new_crtc); +struct intel_crtc_state *crtc_state = +intel_atomic_get_new_crtc_state (intel_state, + intel_crtc);if (!crtc_state || - !drm_atomic_crtc_needs_modeset (crtc_state) || - crtc_state->enable) + !drm_atomic_crtc_needs_modeset (&crtc_state->base) || + crtc_state->base.enable)return 0 ; }
drivers/gpu/drm/i915/display/intel_psr.c +7 -9
@@ -26,6 +26,7 @@#include "display/intel_dp.h" #include "i915_drv.h" +#include "intel_atomic.h" #include "intel_display_types.h" #include "intel_psr.h" #include "intel_sprite.h"
@@ -1096,7 +1097,7 @@ static int intel_psr_fastset_force(struct drm_i915_private *dev_priv)struct drm_device *dev = &dev_priv->drm;struct drm_modeset_acquire_ctx ctx;struct drm_atomic_state *state; -struct drm_crtc *crtc; +struct intel_crtc *crtc;int err; state =drm_atomic_state_alloc (dev);
@@ -1107,21 +1108,18 @@ static int intel_psr_fastset_force(struct drm_i915_private *dev_priv) state->acquire_ctx = &ctx; retry: -drm_for_each_crtc (crtc, dev) { -struct drm_crtc_state *crtc_state; -struct intel_crtc_state *intel_crtc_state; +for_each_intel_crtc (dev, crtc) { +struct intel_crtc_state *crtc_state = +intel_atomic_get_crtc_state (state, crtc); - crtc_state =drm_atomic_get_crtc_state (state, crtc);if (IS_ERR (crtc_state)) { err =PTR_ERR (crtc_state); goto error; } - intel_crtc_state =to_intel_crtc_state (crtc_state); - -if (crtc_state->active && intel_crtc_state->has_psr) { +if (crtc_state->base.active && crtc_state->has_psr) {/* Mark mode as changed to trigger a pipe->update() */ - crtc_state->mode_changed = true; + crtc_state->base.mode_changed = true;break ; } }
drivers/gpu/drm/i915/intel_pm.c +2 -4
@@ -3073,11 +3073,9 @@ static bool ilk_validate_pipe_wm(const struct drm_i915_private *dev_priv,/* Compute new watermarks for the pipe */ static int ilk_compute_pipe_wm (struct intel_crtc_state *crtc_state) { -struct drm_atomic_state *state = crtc_state->base.state; +struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev);struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc);struct intel_pipe_wm *pipe_wm; -struct drm_device *dev = state->dev; -const struct drm_i915_private *dev_priv =to_i915 (dev);struct intel_plane *plane;const struct intel_plane_state *plane_state;const struct intel_plane_state *pristate =NULL ;
@@ -3772,7 +3770,7 @@ bool intel_can_enable_sagv(struct intel_atomic_state *state) crtc =intel_get_crtc_for_pipe (dev_priv, pipe); crtc_state =to_intel_crtc_state (crtc->base.state); -if (crtc->base.state->adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE ) +if (crtc_state->base.adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE )return false;for_each_intel_plane_on_crtc (dev, crtc, plane) {
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 2/12 drm/i915: Add aliases for uapi and hw to crtc_state
Prepare to split up hw and uapi machinally, by adding a uapi and hw alias. We will remove the base in a bit. This is a split from the original uapi/hw patch, which did it all in one go.
--- drivers/gpu/drm/i915/display/intel_atomic.c | 8 ++++-- drivers/gpu/drm/i915/display/intel_display.c | 2 ++ drivers/gpu/drm/i915/display/intel_display.h | 6 ++--- .../drm/i915/display/intel_display_types.h | 27 ++++++++++++++++++- 4 files changed, 37 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic.c +6 -2
@@ -186,9 +186,10 @@ intel_digital_connector_duplicate_state(struct drm_connector *connector)struct drm_crtc_state *intel_crtc_duplicate_state (struct drm_crtc *crtc) { +const struct intel_crtc_state *old_crtc_state =to_intel_crtc_state (crtc->state);struct intel_crtc_state *crtc_state; - crtc_state =kmemdup (crtc->state,sizeof (*crtc_state),GFP_KERNEL ); + crtc_state =kmemdup (old_crtc_state,sizeof (*crtc_state),GFP_KERNEL );if (!crtc_state)return NULL ;
@@ -219,7 +220,10 @@ void intel_crtc_destroy_state(struct drm_crtc *crtc, struct drm_crtc_state *state) { -drm_atomic_helper_crtc_destroy_state (crtc, state); + struct intel_crtc_state *crtc_state = to_intel_crtc_state(state); + +__drm_atomic_helper_crtc_destroy_state (&crtc_state->base); +kfree (crtc_state); } static void intel_atomic_setup_scaler(struct intel_crtc_scaler_state *scaler_state,
drivers/gpu/drm/i915/display/intel_display.c +2 -0
@@ -12592,6 +12592,8 @@ clear_intel_crtc_state(struct intel_crtc_state *crtc_state)/* Keep base drm_crtc_state intact, only clear our extended struct */ BUILD_BUG_ON (offsetof(struct intel_crtc_state , base)); +BUILD_BUG_ON (offsetof(struct intel_crtc_state , uapi)); +BUILD_BUG_ON (offsetof(struct intel_crtc_state , hw));memcpy (&crtc_state->base +1 , &saved_state->base +1 ,sizeof (*crtc_state) -sizeof (crtc_state->base));
drivers/gpu/drm/i915/display/intel_display.h +3 -3
@@ -447,10 +447,10 @@ enum phy_fia {#define intel_atomic_crtc_state_for_each_plane_state ( \ plane, plane_state, \ crtc_state) \ - for_each_intel_plane_mask(((crtc_state)->base.state->dev), (plane), \ - ((crtc_state)->base.plane_mask)) \ + for_each_intel_plane_mask(((crtc_state)->uapi.state->dev), (plane), \ + ((crtc_state)->uapi.plane_mask)) \ for_each_if ((plane_state = \ - to_intel_plane_state(__drm_atomic_get_current_plane_state((crtc_state)->base.state, &plane->base)))) + to_intel_plane_state(__drm_atomic_get_current_plane_state((crtc_state)->uapi.state, &plane->base)))) void intel_link_compute_m_n(u16 bpp, int nlanes, int pixel_clock, int link_clock,
drivers/gpu/drm/i915/display/intel_display_types.h +26 -1
@@ -757,7 +757,32 @@ enum intel_output_format { };struct intel_crtc_state { +union {struct drm_crtc_state base; +/* +* uapi (drm) state. This is the software state shown to userspace. +* In particular, the following members are used for bookkeeping: +* - crtc +* - state +* - *_changed +* - event +* - commit +* - mode_blob +*/ +struct drm_crtc_state uapi; + +/* +* actual hardware state, the state we program to the hardware. +* The following members are used to verify the hardware state: +* - enable +* - active +* - mode / adjusted_mode +* - color property blobs. +* +* During initial hw readout, they need to be copied to uapi. +*/ +struct drm_crtc_state hw; + };/** * quirks - bitfield with hw state readout quirks
@@ -1112,7 +1137,7 @@ struct cxsr_latency {#define to_intel_atomic_state (x) container_of(x, struct intel_atomic_state, base)#define to_intel_crtc (x) container_of(x, struct intel_crtc, base) -#define to_intel_crtc_state (x) container_of(x, struct intel_crtc_state, base) +#define to_intel_crtc_state (x) container_of(x, struct intel_crtc_state, uapi)#define to_intel_connector (x) container_of(x, struct intel_connector, base)#define to_intel_encoder (x) container_of(x, struct intel_encoder, base)#define to_intel_framebuffer (x) container_of(x, struct intel_framebuffer, base)
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 02/12] drm/i915: Add aliases for uapi and hw to crtc_state
Quoted 5 lines · Maarten Lankhorst
Prepare to split up hw and uapi machinally, by adding a uapi and hw alias. We will remove the base in a bit. This is a split from the original uapi/hw patch, which did it all in one go.
Signed-off-by Maarten Lankhorst <[email protected]>
Quoted 119 lines
--- drivers/gpu/drm/i915/display/intel_atomic.c | 8 ++++-- drivers/gpu/drm/i915/display/intel_display.c | 2 ++ drivers/gpu/drm/i915/display/intel_display.h | 6 ++--- .../drm/i915/display/intel_display_types.h | 27 ++++++++++++++++++- 4 files changed, 37 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/display/intel_atomic.c +6
-2@@ -186,9 +186,10 @@ intel_digital_connector_duplicate_state(struct drm_connector *connector)struct drm_crtc_state *intel_crtc_duplicate_state (struct drm_crtc *crtc) { +const struct intel_crtc_state *old_crtc_state =to_intel_crtc_state (crtc->state);struct intel_crtc_state *crtc_state; - crtc_state =kmemdup (crtc->state,sizeof (*crtc_state),GFP_KERNEL ); + crtc_state =kmemdup (old_crtc_state,sizeof (*crtc_state),GFP_KERNEL );if (!crtc_state)return NULL ;@@ -219,7 +220,10 @@ void intel_crtc_destroy_state(struct drm_crtc *crtc, struct drm_crtc_state *state) { -drm_atomic_helper_crtc_destroy_state (crtc, state); + struct intel_crtc_state *crtc_state = to_intel_crtc_state(state); + +__drm_atomic_helper_crtc_destroy_state (&crtc_state->base); +kfree (crtc_state); } static void intel_atomic_setup_scaler(struct intel_crtc_scaler_state *scaler_state,drivers/gpu/drm/i915/display/intel_display.c +2
-0@@ -12592,6 +12592,8 @@ clear_intel_crtc_state(struct intel_crtc_state *crtc_state)/* Keep base drm_crtc_state intact, only clear our extended struct */ BUILD_BUG_ON (offsetof(struct intel_crtc_state , base)); +BUILD_BUG_ON (offsetof(struct intel_crtc_state , uapi)); +BUILD_BUG_ON (offsetof(struct intel_crtc_state , hw));memcpy (&crtc_state->base +1 , &saved_state->base +1 ,sizeof (*crtc_state) -sizeof (crtc_state->base));drivers/gpu/drm/i915/display/intel_display.h +3
-3@@ -447,10 +447,10 @@ enum phy_fia {#define intel_atomic_crtc_state_for_each_plane_state ( \ plane, plane_state, \ crtc_state) \ - for_each_intel_plane_mask(((crtc_state)->base.state->dev), (plane), \ - ((crtc_state)->base.plane_mask)) \ + for_each_intel_plane_mask(((crtc_state)->uapi.state->dev), (plane), \ + ((crtc_state)->uapi.plane_mask)) \ for_each_if ((plane_state = \ - to_intel_plane_state(__drm_atomic_get_current_plane_state((crtc_state)->base.state, &plane->base)))) + to_intel_plane_state(__drm_atomic_get_current_plane_state((crtc_state)->uapi.state, &plane->base)))) void intel_link_compute_m_n(u16 bpp, int nlanes, int pixel_clock, int link_clock,drivers/gpu/drm/i915/display/intel_display_types.h +26
-1@@ -757,7 +757,32 @@ enum intel_output_format { };struct intel_crtc_state { +union {struct drm_crtc_state base; +/* +* uapi (drm) state. This is the software state shown to userspace. +* In particular, the following members are used for bookkeeping: +* - crtc +* - state +* - *_changed +* - event +* - commit +* - mode_blob +*/ +struct drm_crtc_state uapi; + +/* +* actual hardware state, the state we program to the hardware. +* The following members are used to verify the hardware state: +* - enable +* - active +* - mode / adjusted_mode +* - color property blobs. +* +* During initial hw readout, they need to be copied to uapi. +*/ +struct drm_crtc_state hw; + };/** * quirks - bitfield with hw state readout quirks @@ -1112,7 +1137,7 @@ struct cxsr_latency {#define to_intel_atomic_state (x) container_of(x, struct intel_atomic_state, base)#define to_intel_crtc (x) container_of(x, struct intel_crtc, base) -#define to_intel_crtc_state (x) container_of(x, struct intel_crtc_state, base) +#define to_intel_crtc_state (x) container_of(x, struct intel_crtc_state, uapi)#define to_intel_connector (x) container_of(x, struct intel_connector, base)#define to_intel_encoder (x) container_of(x, struct intel_encoder, base)#define to_intel_framebuffer (x) container_of(x, struct intel_framebuffer, base)Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 3/12 drm/i915: Perform manual conversions for crtc uapi/hw split, v2.
In reply to Maarten Lankhorstintel_get_load_detect_pipe() needs to set uapi active, uapi enable is set by the call to drm_atomic_set_mode_for_crtc(), so we can remove it.
intel_pipe_config_compare() needs to look at hw state, but I didn't change spatch to look at it. It's easy enough to do manually.
intel_atomic_check() definitely needs to check for uapi enable, otherwise intel_modeset_pipe_config cannot copy uapi state to hw.
Changes since v1:
- Actually set uapi.active in get_load_detect_pipe().
--- drivers/gpu/drm/i915/display/intel_display.c | 42 ++++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +21 -21
@@ -11432,7 +11432,7 @@ int intel_get_load_detect_pipe(struct drm_connector *connector, goto fail; } - crtc_state->base.active = crtc_state->base.enable = true; + crtc_state->uapi.active = true; ret =drm_atomic_set_mode_for_crtc (&crtc_state->base, &load_detect_mode);
@@ -13077,19 +13077,19 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,PIPE_CONF_CHECK_X (output_types); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_hdisplay); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_htotal); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_hblank_start); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_hblank_end); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_hsync_start); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_hsync_end); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_hdisplay); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_htotal); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_hblank_start); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_hblank_end); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_hsync_start); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_hsync_end); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_vdisplay); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_vtotal); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_vblank_start); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_vblank_end); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_vsync_start); -PIPE_CONF_CHECK_I (base.adjusted_mode.crtc_vsync_end); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_vdisplay); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_vtotal); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_vblank_start); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_vblank_end); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_vsync_start); +PIPE_CONF_CHECK_I (hw.adjusted_mode.crtc_vsync_end);PIPE_CONF_CHECK_I (pixel_multiplier);PIPE_CONF_CHECK_I (output_format);
@@ -13106,17 +13106,17 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,PIPE_CONF_CHECK_BOOL_INCOMPLETE (has_audio); -PIPE_CONF_CHECK_FLAGS (base.adjusted_mode.flags, +PIPE_CONF_CHECK_FLAGS (hw.adjusted_mode.flags,DRM_MODE_FLAG_INTERLACE );if (!PIPE_CONF_QUIRK (PIPE_CONFIG_QUIRK_MODE_SYNC_FLAGS )) { -PIPE_CONF_CHECK_FLAGS (base.adjusted_mode.flags, +PIPE_CONF_CHECK_FLAGS (hw.adjusted_mode.flags,DRM_MODE_FLAG_PHSYNC ); -PIPE_CONF_CHECK_FLAGS (base.adjusted_mode.flags, +PIPE_CONF_CHECK_FLAGS (hw.adjusted_mode.flags,DRM_MODE_FLAG_NHSYNC ); -PIPE_CONF_CHECK_FLAGS (base.adjusted_mode.flags, +PIPE_CONF_CHECK_FLAGS (hw.adjusted_mode.flags,DRM_MODE_FLAG_PVSYNC ); -PIPE_CONF_CHECK_FLAGS (base.adjusted_mode.flags, +PIPE_CONF_CHECK_FLAGS (hw.adjusted_mode.flags,DRM_MODE_FLAG_NVSYNC ); }
@@ -13155,7 +13155,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config, bp_gamma =intel_color_get_gamma_bit_precision (pipe_config);if (bp_gamma) -PIPE_CONF_CHECK_COLOR_LUT (gamma_mode, base.gamma_lut, bp_gamma); +PIPE_CONF_CHECK_COLOR_LUT (gamma_mode, hw.gamma_lut, bp_gamma); }
@@ -13200,7 +13200,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,if (IS_G4X (dev_priv) ||INTEL_GEN (dev_priv) >=5 )PIPE_CONF_CHECK_I (pipe_bpp); -PIPE_CONF_CHECK_CLOCK_FUZZY (base.adjusted_mode.crtc_clock); +PIPE_CONF_CHECK_CLOCK_FUZZY (hw.adjusted_mode.crtc_clock);PIPE_CONF_CHECK_CLOCK_FUZZY (port_clock);PIPE_CONF_CHECK_I (min_voltage_level);
@@ -14007,7 +14007,7 @@ static int intel_atomic_check(struct drm_device *dev,if (!needs_modeset (new_crtc_state))continue ; -if (!new_crtc_state->base.enable) { +if (!new_crtc_state->uapi.enable) { any_ms = true;continue ; }
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 4/12 drm/i915: Perform automated conversions for crtc uapi/hw split, base -> hw.
In reply to Maarten LankhorstSplit up crtc_state->base to hw where appropriate. This is done using the following patch:
@@
struct intel_crtc_state *T;
identifier x =~ "^(active|enable|degamma_lut|gamma_lut|ctm|mode|adjusted_mode)$"; @@
-T->base.x
+T->hw.x
@@
struct drm_crtc_state *T;
identifier x =~ "^(active|enable|degamma_lut|gamma_lut|ctm|mode|adjusted_mode)$"; @@
-to_intel_crtc_state(T)->base.x
+to_intel_crtc_state(T)->hw.x
--- drivers/gpu/drm/drm_dp_mst_topology.c | 1 + drivers/gpu/drm/i915/display/icl_dsi.c | 12 +- drivers/gpu/drm/i915/display/intel_audio.c | 4 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 8 +- drivers/gpu/drm/i915/display/intel_color.c | 108 ++++---- drivers/gpu/drm/i915/display/intel_crt.c | 18 +- drivers/gpu/drm/i915/display/intel_ddi.c | 18 +- drivers/gpu/drm/i915/display/intel_display.c | 259 +++++++++--------- drivers/gpu/drm/i915/display/intel_dp.c | 22 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 +- drivers/gpu/drm/i915/display/intel_dvo.c | 12 +- drivers/gpu/drm/i915/display/intel_fbc.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 20 +- drivers/gpu/drm/i915/display/intel_lspcon.c | 4 +- drivers/gpu/drm/i915/display/intel_lvds.c | 8 +- drivers/gpu/drm/i915/display/intel_panel.c | 8 +- drivers/gpu/drm/i915/display/intel_pipe_crc.c | 2 +- drivers/gpu/drm/i915/display/intel_psr.c | 12 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 16 +- drivers/gpu/drm/i915/display/intel_sprite.c | 8 +- drivers/gpu/drm/i915/display/intel_tv.c | 4 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 4 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 10 +- drivers/gpu/drm/i915/i915_debugfs.c | 8 +- drivers/gpu/drm/i915/intel_pm.c | 56 ++-- 25 files changed, 317 insertions(+), 313 deletions(-)
drivers/gpu/drm/drm_dp_mst_topology.c +1 -0
@@ -33,6 +33,7 @@#include <linux/sort.h> #include <linux/timekeeping.h> #include <linux/math64.h> +#include <linux/stacktrace.h> #endif #include <drm/drm_atomic.h>
drivers/gpu/drm/i915/display/icl_dsi.c +6 -6
@@ -276,7 +276,7 @@ static void configure_dual_link_mode(struct intel_encoder *encoder,if (intel_dsi->dual_link ==DSI_DUAL_LINK_FRONT_BACK ) {const struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;u32 dss_ctl2;u16 hactive = adjusted_mode->crtc_hdisplay;u16 dl_buffer_depth;
@@ -768,7 +768,7 @@ gen11_dsi_set_transcoder_timings(struct intel_encoder *encoder,struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base);const struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;enum port port;enum transcoder dsi_trans;/* horizontal timings */
@@ -1216,7 +1216,7 @@ static void gen11_dsi_get_timings(struct intel_encoder *encoder, {struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base);struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;if (intel_dsi->dual_link) { adjusted_mode->crtc_hdisplay *=2 ;
@@ -1249,9 +1249,9 @@ static void gen11_dsi_get_config(struct intel_encoder *encoder, pipe_config->port_clock =cnl_calc_wrpll_link (dev_priv, &pipe_config->dpll_hw_state); - pipe_config->base.adjusted_mode.crtc_clock = intel_dsi->pclk; + pipe_config->hw.adjusted_mode.crtc_clock = intel_dsi->pclk;if (intel_dsi->dual_link) - pipe_config->base.adjusted_mode.crtc_clock *=2 ; + pipe_config->hw.adjusted_mode.crtc_clock *=2 ;gen11_dsi_get_timings (encoder, pipe_config); pipe_config->output_types |=BIT (INTEL_OUTPUT_DSI );
@@ -1269,7 +1269,7 @@ static int gen11_dsi_compute_config(struct intel_encoder *encoder,const struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode; pipe_config->output_format =INTEL_OUTPUT_FORMAT_RGB ;intel_fixed_panel_mode (fixed_mode, adjusted_mode);
drivers/gpu/drm/i915/display/intel_audio.c +2 -2
@@ -234,7 +234,7 @@ static const struct hdmi_aud_ncts hdmi_aud_ncts_36bpp[] = {static u32 audio_config_hdmi_pixel_clock (const struct intel_crtc_state *crtc_state) {const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;int i;for (i =0 ; i <ARRAY_SIZE (hdmi_audio_clock); i++) {
@@ -695,7 +695,7 @@ void intel_audio_codec_enable(struct intel_encoder *encoder,struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);struct drm_connector *connector = conn_state->connector;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;enum port port = encoder->port;enum pipe pipe = crtc->pipe;
drivers/gpu/drm/i915/display/intel_cdclk.c +4 -4
@@ -1937,7 +1937,7 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state)to_i915 (crtc_state->base.crtc->dev);int min_cdclk; -if (!crtc_state->base.enable) +if (!crtc_state->hw.enable)return 0 ; min_cdclk =intel_pixel_rate_to_cdclk (crtc_state);
@@ -2074,7 +2074,7 @@ static int bxt_compute_min_voltage_level(struct intel_atomic_state *state)for_each_new_intel_crtc_in_state (state, crtc, crtc_state, i) {int ret; -if (crtc_state->base.enable) +if (crtc_state->hw.enable) min_voltage_level = crtc_state->min_voltage_level;else min_voltage_level =0 ;
@@ -2168,7 +2168,7 @@ static int skl_dpll0_vco(struct intel_atomic_state *state) vco = dev_priv->skl_preferred_vco_freq;for_each_new_intel_crtc_in_state (state, crtc, crtc_state, i) { -if (!crtc_state->base.enable) +if (!crtc_state->hw.enable)continue ;if (!intel_crtc_has_type (crtc_state,INTEL_OUTPUT_EDP ))
@@ -2281,7 +2281,7 @@ static int intel_modeset_all_pipes(struct intel_atomic_state *state)if (IS_ERR (crtc_state))return PTR_ERR (crtc_state); -if (!crtc_state->base.active || +if (!crtc_state->hw.active ||drm_atomic_crtc_needs_modeset (&crtc_state->base))continue ;
drivers/gpu/drm/i915/display/intel_color.c +54 -54
328 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_crt.c +9 -9
@@ -132,9 +132,9 @@ static void intel_crt_get_config(struct intel_encoder *encoder, { pipe_config->output_types |=BIT (INTEL_OUTPUT_ANALOG ); - pipe_config->base.adjusted_mode.flags |=intel_crt_get_flags (encoder); + pipe_config->hw.adjusted_mode.flags |=intel_crt_get_flags (encoder); - pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; + pipe_config->hw.adjusted_mode.crtc_clock = pipe_config->port_clock; } static void hsw_crt_get_config(struct intel_encoder *encoder,
@@ -144,13 +144,13 @@ static void hsw_crt_get_config(struct intel_encoder *encoder,intel_ddi_get_config (encoder, pipe_config); - pipe_config->base.adjusted_mode.flags &= ~(DRM_MODE_FLAG_PHSYNC | + pipe_config->hw.adjusted_mode.flags &= ~(DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_PVSYNC |DRM_MODE_FLAG_NVSYNC ); - pipe_config->base.adjusted_mode.flags |=intel_crt_get_flags (encoder); + pipe_config->hw.adjusted_mode.flags |=intel_crt_get_flags (encoder); - pipe_config->base.adjusted_mode.crtc_clock =lpt_get_iclkip (dev_priv); + pipe_config->hw.adjusted_mode.crtc_clock =lpt_get_iclkip (dev_priv); }/* Note: The caller is required to filter out dpms modes not supported by the
@@ -162,7 +162,7 @@ static void intel_crt_set_dpms(struct intel_encoder *encoder,struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_crt *crt =intel_encoder_to_crt (encoder);struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); -const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;u32 adpa;if (INTEL_GEN (dev_priv) >=5 )
@@ -358,7 +358,7 @@ static int intel_crt_compute_config(struct intel_encoder *encoder, struct drm_connector_state *conn_state) {struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )return -EINVAL ;
@@ -373,7 +373,7 @@ static int pch_crt_compute_config(struct intel_encoder *encoder, struct drm_connector_state *conn_state) {struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )return -EINVAL ;
@@ -390,7 +390,7 @@ static int hsw_crt_compute_config(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )return -EINVAL ;
drivers/gpu/drm/i915/display/intel_ddi.c +9 -9
@@ -1528,7 +1528,7 @@ static void ddi_dotclock_get(struct intel_crtc_state *pipe_config)if (pipe_config->pixel_multiplier) dotclock /= pipe_config->pixel_multiplier; - pipe_config->base.adjusted_mode.crtc_clock = dotclock; + pipe_config->hw.adjusted_mode.crtc_clock = dotclock; } static void icl_ddi_clock_get(struct intel_encoder *encoder,
@@ -1860,9 +1860,9 @@ intel_ddi_transcoder_func_reg_val_get(const struct intel_crtc_state *crtc_state)BUG (); } -if (crtc_state->base.adjusted_mode.flags &DRM_MODE_FLAG_PVSYNC ) +if (crtc_state->hw.adjusted_mode.flags &DRM_MODE_FLAG_PVSYNC ) temp |=TRANS_DDI_PVSYNC ; -if (crtc_state->base.adjusted_mode.flags &DRM_MODE_FLAG_PHSYNC ) +if (crtc_state->hw.adjusted_mode.flags &DRM_MODE_FLAG_PHSYNC ) temp |=TRANS_DDI_PHSYNC ;if (cpu_transcoder ==TRANSCODER_EDP ) {
@@ -3376,7 +3376,7 @@ static void tgl_dc3co_exitline_compute_config(struct intel_encoder *encoder, {u32 exit_scanlines;struct drm_i915_private *dev_priv =to_i915 (cstate->base.crtc->dev); -u32 crtc_vdisplay = cstate->base.adjusted_mode.crtc_vdisplay; +u32 crtc_vdisplay = cstate->hw.adjusted_mode.crtc_vdisplay; cstate->dc3co_exitline =0 ;
@@ -3388,7 +3388,7 @@ static void tgl_dc3co_exitline_compute_config(struct intel_encoder *encoder, encoder->port != PORT_A)return ; -if (!cstate->has_psr2 || !cstate->base.active) +if (!cstate->has_psr2 || !cstate->hw.active)return ;/*
@@ -3396,7 +3396,7 @@ static void tgl_dc3co_exitline_compute_config(struct intel_encoder *encoder,* PSR2 transcoder Early Exit scanlines = ROUNDUP(200 / line time) + 1 */ exit_scanlines = -intel_usecs_to_scanlines (&cstate->base.adjusted_mode,200 ) +1 ; +intel_usecs_to_scanlines (&cstate->hw.adjusted_mode,200 ) +1 ;if (WARN_ON (exit_scanlines > crtc_vdisplay))return ;
@@ -4083,7 +4083,7 @@ intel_ddi_update_prepare(struct intel_atomic_state *state,WARN_ON (crtc && crtc->active);intel_tc_port_get_link (enc_to_dig_port (&encoder->base), required_lanes); -if (crtc_state && crtc_state->base.active) +if (crtc_state && crtc_state->hw.active)intel_update_active_dpll (state, crtc, encoder); }
@@ -4231,7 +4231,7 @@ void intel_ddi_get_config(struct intel_encoder *encoder,else flags |=DRM_MODE_FLAG_NVSYNC ; - pipe_config->base.adjusted_mode.flags |= flags; + pipe_config->hw.adjusted_mode.flags |= flags;switch (temp &TRANS_DDI_BPC_MASK ) {case TRANS_DDI_BPC_6 :
@@ -4514,7 +4514,7 @@ static int intel_hdmi_reset_link(struct intel_encoder *encoder,WARN_ON (!intel_crtc_has_type (crtc_state,INTEL_OUTPUT_HDMI )); -if (!crtc_state->base.active) +if (!crtc_state->hw.active)return 0 ; if (!crtc_state->hdmi_high_tmds_clock_ratio &&
drivers/gpu/drm/i915/display/intel_display.c +131 -128
752 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_dp.c +11 -11
@@ -1995,7 +1995,7 @@ intel_dp_compute_link_config_wide(struct intel_dp *intel_dp,struct intel_crtc_state *pipe_config, const struct link_config_limits *limits) { - struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; + struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;int bpp, clock, lane_count;int mode_rate, link_clock, link_avail;
@@ -2049,7 +2049,7 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, {struct intel_digital_port *dig_port =dp_to_dig_port (intel_dp);struct drm_i915_private *dev_priv =to_i915 (dig_port->base.base.dev); -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;u8 dsc_max_bpc;int pipe_bpp;int ret;
@@ -2160,7 +2160,7 @@ intel_dp_compute_link_config(struct intel_encoder *encoder,struct intel_crtc_state *pipe_config, struct drm_connector_state *conn_state) { - struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; + struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);struct link_config_limits limits;int common_len;
@@ -2248,7 +2248,7 @@ intel_dp_ycbcr420_config(struct intel_dp *intel_dp, {const struct drm_display_info *info = &connector->display_info;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);int ret;
@@ -2277,7 +2277,7 @@ bool intel_dp_limited_color_range(const struct intel_crtc_state *crtc_state,const struct intel_digital_connector_state *intel_conn_state =to_intel_digital_connector_state (conn_state);const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;/* * Our YCbCr output is always limited range.
@@ -2310,7 +2310,7 @@ intel_dp_compute_config(struct intel_encoder *encoder, struct drm_connector_state *conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);struct intel_lspcon *lspcon =enc_to_intel_lspcon (&encoder->base);enum port port = encoder->port;
@@ -2433,7 +2433,7 @@ static void intel_dp_prepare(struct intel_encoder *encoder,struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);enum port port = encoder->port;struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); -const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; intel_dp_set_link_params(intel_dp, pipe_config->port_clock, pipe_config->lane_count,
@@ -3265,7 +3265,7 @@ static void intel_dp_get_config(struct intel_encoder *encoder, flags |=DRM_MODE_FLAG_NVSYNC ; } - pipe_config->base.adjusted_mode.flags |= flags; + pipe_config->hw.adjusted_mode.flags |= flags;if (IS_G4X (dev_priv) && tmp &DP_COLOR_RANGE_16_235 ) pipe_config->limited_color_range = true;
@@ -3282,7 +3282,7 @@ static void intel_dp_get_config(struct intel_encoder *encoder, pipe_config->port_clock =270000 ; } - pipe_config->base.adjusted_mode.crtc_clock = + pipe_config->hw.adjusted_mode.crtc_clock =intel_dotclock_calculate (pipe_config->port_clock, &pipe_config->dp_m_n);
@@ -5075,7 +5075,7 @@ int intel_dp_retrain_link(struct intel_encoder *encoder,WARN_ON (!intel_crtc_has_dp_encoder (crtc_state)); -if (!crtc_state->base.active) +if (!crtc_state->hw.active)return 0 ; if (conn_state->commit &&
@@ -6943,7 +6943,7 @@ static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,return ; } -if (!crtc_state->base.active) { +if (!crtc_state->hw.active) {DRM_DEBUG_KMS ("eDP encoder disabled. CRTC not Active\n" );return ; }
drivers/gpu/drm/i915/display/intel_dp_mst.c +3 -3
@@ -48,7 +48,7 @@ static int intel_dp_mst_compute_link_config(struct intel_encoder *encoder,struct intel_connector *connector =to_intel_connector (conn_state->connector);const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;void *port = connector->port;bool constant_n =drm_dp_has_quirk (&intel_dp->desc,DP_DPCD_QUIRK_CONSTANT_N );
@@ -99,7 +99,7 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder,struct intel_digital_connector_state *intel_conn_state =to_intel_digital_connector_state (conn_state);const struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;void *port = connector->port;struct link_config_limits limits;int ret;
@@ -191,7 +191,7 @@ intel_dp_mst_atomic_check(struct drm_connector *connector,if (!crtc_state || !drm_atomic_crtc_needs_modeset (&crtc_state->base) || - crtc_state->base.enable) + crtc_state->hw.enable)return 0 ; }
drivers/gpu/drm/i915/display/intel_dvo.c +6 -6
@@ -178,9 +178,9 @@ static void intel_dvo_get_config(struct intel_encoder *encoder,else flags |=DRM_MODE_FLAG_NVSYNC ; - pipe_config->base.adjusted_mode.flags |= flags; + pipe_config->hw.adjusted_mode.flags |= flags; - pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; + pipe_config->hw.adjusted_mode.crtc_clock = pipe_config->port_clock; } static void intel_disable_dvo(struct intel_encoder *encoder,
@@ -207,8 +207,8 @@ static void intel_enable_dvo(struct intel_encoder *encoder,u32 temp =I915_READ (dvo_reg); intel_dvo->dev.dev_ops->mode_set (&intel_dvo->dev, - &pipe_config->base.mode, - &pipe_config->base.adjusted_mode); + &pipe_config->hw.mode, + &pipe_config->hw.adjusted_mode);I915_WRITE (dvo_reg, temp |DVO_ENABLE );I915_READ (dvo_reg);
@@ -253,7 +253,7 @@ static int intel_dvo_compute_config(struct intel_encoder *encoder,struct intel_dvo *intel_dvo =enc_to_dvo (encoder);const struct drm_display_mode *fixed_mode = intel_dvo->attached_connector->panel.fixed_mode; -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;/* * If we have timings from the BIOS for the panel, put them in
@@ -278,7 +278,7 @@ static void intel_dvo_pre_enable(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); -const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct intel_dvo *intel_dvo =enc_to_dvo (encoder);enum pipe pipe = crtc->pipe;u32 dvo_val;
drivers/gpu/drm/i915/display/intel_fbc.c +1 -1
@@ -667,7 +667,7 @@ static void intel_fbc_update_state_cache(struct intel_crtc *crtc, cache->vma =NULL ; cache->flags =0 ; - cache->crtc.mode_flags = crtc_state->base.adjusted_mode.flags; + cache->crtc.mode_flags = crtc_state->hw.adjusted_mode.flags;if (IS_HASWELL (dev_priv) ||IS_BROADWELL (dev_priv)) cache->crtc.hsw_bdw_pixel_rate = crtc_state->pixel_rate;
drivers/gpu/drm/i915/display/intel_hdmi.c +10 -10
@@ -708,7 +708,7 @@ intel_hdmi_compute_avi_infoframe(struct intel_encoder *encoder, {struct hdmi_avi_infoframe *frame = &crtc_state->infoframes.avi.avi;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;struct drm_connector *connector = conn_state->connector;int ret;
@@ -804,7 +804,7 @@ intel_hdmi_compute_hdmi_infoframe(struct intel_encoder *encoder, ret =drm_hdmi_vendor_infoframe_from_display_mode (frame, conn_state->connector, - &crtc_state->base.adjusted_mode); + &crtc_state->hw.adjusted_mode);if (WARN_ON (ret))return false;
@@ -1027,7 +1027,7 @@ static void intel_hdmi_compute_gcp_infoframe(struct intel_encoder *encoder,/* Enable default_phase whenever the display mode is suitably aligned */ if (gcp_default_phase_possible (crtc_state->pipe_bpp, - &crtc_state->base.adjusted_mode)) + &crtc_state->hw.adjusted_mode)) crtc_state->infoframes.gcp |=GCP_DEFAULT_PHASE_ENABLE ; }
@@ -1738,7 +1738,7 @@ static void intel_hdmi_prepare(struct intel_encoder *encoder,struct drm_i915_private *dev_priv =to_i915 (dev);struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);struct intel_hdmi *intel_hdmi =enc_to_intel_hdmi (&encoder->base); -const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;u32 hdmi_val;intel_dp_dual_mode_set_tmds_output (intel_hdmi, true);
@@ -1829,7 +1829,7 @@ static void intel_hdmi_get_config(struct intel_encoder *encoder, tmp & HDMI_COLOR_RANGE_16_235) pipe_config->limited_color_range = true; - pipe_config->base.adjusted_mode.flags |= flags; + pipe_config->hw.adjusted_mode.flags |= flags;if ((tmp &SDVO_COLOR_FORMAT_MASK ) == HDMI_COLOR_FORMAT_12bpc) dotclock = pipe_config->port_clock *2 /3 ;
@@ -1839,7 +1839,7 @@ static void intel_hdmi_get_config(struct intel_encoder *encoder,if (pipe_config->pixel_multiplier) dotclock /= pipe_config->pixel_multiplier; - pipe_config->base.adjusted_mode.crtc_clock = dotclock; + pipe_config->hw.adjusted_mode.crtc_clock = dotclock; pipe_config->lane_count =4 ;
@@ -2215,7 +2215,7 @@ static bool hdmi_deep_color_possible(const struct intel_crtc_state *crtc_state,struct drm_connector_state *connector_state;struct drm_connector *connector;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;int i;if (HAS_GMCH (dev_priv))
@@ -2336,7 +2336,7 @@ static int intel_hdmi_compute_clock(struct intel_encoder *encoder, {struct intel_hdmi *intel_hdmi =enc_to_intel_hdmi (&encoder->base);const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;int bpc, clock = adjusted_mode->crtc_clock;if (adjusted_mode->flags &DRM_MODE_FLAG_DBLCLK )
@@ -2378,7 +2378,7 @@ static bool intel_hdmi_limited_color_range(const struct intel_crtc_state *crtc_sconst struct intel_digital_connector_state *intel_conn_state =to_intel_digital_connector_state (conn_state);const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;/* * Our YCbCr output is always limited range.
@@ -2406,7 +2406,7 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder, {struct intel_hdmi *intel_hdmi =enc_to_intel_hdmi (&encoder->base);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct drm_connector *connector = conn_state->connector;struct drm_scdc *scdc = &connector->display_info.hdmi.scdc; struct intel_digital_connector_state *intel_conn_state =
drivers/gpu/drm/i915/display/intel_lspcon.c +2 -2
@@ -189,7 +189,7 @@ void lspcon_ycbcr420_config(struct drm_connector *connector, {const struct drm_display_info *info = &connector->display_info;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;if (drm_mode_is_420_only (info, adjusted_mode) && connector->ycbcr_420_allowed) {
@@ -475,7 +475,7 @@ void lspcon_set_infoframes(struct intel_encoder *encoder,struct intel_digital_port *dig_port =enc_to_dig_port (&encoder->base);struct intel_lspcon *lspcon = &dig_port->lspcon;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;if (!lspcon->active) {DRM_ERROR ("Writing infoframes while LSPCON disabled ?\n" );
drivers/gpu/drm/i915/display/intel_lvds.c +4 -4
@@ -135,7 +135,7 @@ static void intel_lvds_get_config(struct intel_encoder *encoder,else flags |=DRM_MODE_FLAG_PVSYNC ; - pipe_config->base.adjusted_mode.flags |= flags; + pipe_config->hw.adjusted_mode.flags |= flags;if (INTEL_GEN (dev_priv) <5 ) pipe_config->gmch_pfit.lvds_border_bits =
@@ -148,7 +148,7 @@ static void intel_lvds_get_config(struct intel_encoder *encoder, pipe_config->gmch_pfit.control |= tmp &PANEL_8TO6_DITHER_ENABLE ; } - pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; + pipe_config->hw.adjusted_mode.crtc_clock = pipe_config->port_clock; } static void intel_lvds_pps_get_hw_state(struct drm_i915_private *dev_priv,
@@ -231,7 +231,7 @@ static void intel_pre_enable_lvds(struct intel_encoder *encoder,struct intel_lvds_encoder *lvds_encoder =to_lvds_encoder (&encoder->base);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); -const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;enum pipe pipe = crtc->pipe;u32 temp;
@@ -392,7 +392,7 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder,to_lvds_encoder (&intel_encoder->base);struct intel_connector *intel_connector = lvds_encoder->attached_connector; -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc);unsigned int lvds_bpp;
drivers/gpu/drm/i915/display/intel_panel.c +4 -4
@@ -178,7 +178,7 @@ intel_pch_panel_fitting(struct intel_crtc *intel_crtc, struct intel_crtc_state *pipe_config, int fitting_mode) { -const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;int x =0 , y =0 , width =0 , height =0 ;/* Native modes don't need fitting */
@@ -300,7 +300,7 @@ static inline u32 panel_fitter_scaling(u32 source, u32 target)static void i965_scale_aspect (struct intel_crtc_state *pipe_config,u32 *pfit_control) { -const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_config->pipe_src_h; u32 scaled_height = pipe_config->pipe_src_w *
@@ -321,7 +321,7 @@ static void i9xx_scale_aspect(struct intel_crtc_state *pipe_config, u32 *pfit_control, u32 *pfit_pgm_ratios, u32 *border) { -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_config->pipe_src_h; u32 scaled_height = pipe_config->pipe_src_w *
@@ -380,7 +380,7 @@ void intel_gmch_panel_fitting(struct intel_crtc *intel_crtc, {struct drm_i915_private *dev_priv =to_i915 (intel_crtc->base.dev);u32 pfit_control =0 , pfit_pgm_ratios =0 , border =0 ; -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;/* Native modes don't need fitting */ if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w &&
drivers/gpu/drm/i915/display/intel_pipe_crc.c +1 -1
@@ -313,7 +313,7 @@ intel_crtc_crc_setup_workarounds(struct intel_crtc *crtc, bool enable) pipe_config->crc_enabled = enable;if (IS_HASWELL (dev_priv) && - pipe_config->base.active && crtc->pipe ==PIPE_A && + pipe_config->hw.active && crtc->pipe ==PIPE_A && pipe_config->cpu_transcoder ==TRANSCODER_EDP ) pipe_config->base.mode_changed = true;
drivers/gpu/drm/i915/display/intel_psr.c +6 -6
@@ -537,11 +537,11 @@ transcoder_has_psr2(struct drm_i915_private *dev_priv, enum transcoder trans)static u32 intel_get_frame_time_us (const struct intel_crtc_state *cstate) { -if (!cstate || !cstate->base.active) +if (!cstate || !cstate->hw.active)return 0 ;return DIV_ROUND_UP (1000 *1000 , -drm_mode_vrefresh (&cstate->base.adjusted_mode)); +drm_mode_vrefresh (&cstate->hw.adjusted_mode)); } static void psr2_program_idle_frames(struct drm_i915_private *dev_priv,
@@ -606,8 +606,8 @@ static bool intel_psr2_config_valid(struct intel_dp *intel_dp, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); -int crtc_hdisplay = crtc_state->base.adjusted_mode.crtc_hdisplay; -int crtc_vdisplay = crtc_state->base.adjusted_mode.crtc_vdisplay; +int crtc_hdisplay = crtc_state->hw.adjusted_mode.crtc_hdisplay; +int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay;int psr_max_h =0 , psr_max_v =0 ;if (!dev_priv->psr.sink_psr2_support)
@@ -673,7 +673,7 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,struct intel_digital_port *dig_port =dp_to_dig_port (intel_dp);struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp);const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;int psr_setup_time;if (!CAN_PSR (dev_priv))
@@ -1117,7 +1117,7 @@ static int intel_psr_fastset_force(struct drm_i915_private *dev_priv) goto error; } -if (crtc_state->base.active && crtc_state->has_psr) { +if (crtc_state->hw.active && crtc_state->has_psr) {/* Mark mode as changed to trigger a pipe->update() */ crtc_state->base.mode_changed = true;break ;
drivers/gpu/drm/i915/display/intel_sdvo.c +8 -8
@@ -1087,7 +1087,7 @@ static bool intel_sdvo_compute_avi_infoframe(struct intel_sdvo *intel_sdvo, {struct hdmi_avi_infoframe *frame = &crtc_state->infoframes.avi.avi;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;int ret;if (!crtc_state->has_hdmi_sink)
@@ -1276,8 +1276,8 @@ static int intel_sdvo_compute_config(struct intel_encoder *encoder,to_intel_sdvo_connector_state (conn_state);struct intel_sdvo_connector *intel_sdvo_connector =to_intel_sdvo_connector (conn_state->connector); -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; -struct drm_display_mode *mode = &pipe_config->base.mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; +struct drm_display_mode *mode = &pipe_config->hw.mode;DRM_DEBUG_KMS ("forcing bpc to 8 for SDVO\n" ); pipe_config->pipe_bpp =8 *3 ;
@@ -1430,12 +1430,12 @@ static void intel_sdvo_pre_enable(struct intel_encoder *intel_encoder, {struct drm_i915_private *dev_priv =to_i915 (intel_encoder->base.dev);struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); -const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;const struct intel_sdvo_connector_state *sdvo_state =to_intel_sdvo_connector_state (conn_state);const struct intel_sdvo_connector *intel_sdvo_connector =to_intel_sdvo_connector (conn_state->connector); -const struct drm_display_mode *mode = &crtc_state->base.mode; +const struct drm_display_mode *mode = &crtc_state->hw.mode;struct intel_sdvo *intel_sdvo =to_sdvo (intel_encoder);u32 sdvox;struct intel_sdvo_in_out_map in_out;
@@ -1629,7 +1629,7 @@ static void intel_sdvo_get_config(struct intel_encoder *encoder, flags |=DRM_MODE_FLAG_NVSYNC ; } - pipe_config->base.adjusted_mode.flags |= flags; + pipe_config->hw.adjusted_mode.flags |= flags;/* * pixel multiplier readout is tricky: Only on i915g/gm it is stored in
@@ -1649,7 +1649,7 @@ static void intel_sdvo_get_config(struct intel_encoder *encoder,if (pipe_config->pixel_multiplier) dotclock /= pipe_config->pixel_multiplier; - pipe_config->base.adjusted_mode.crtc_clock = dotclock; + pipe_config->hw.adjusted_mode.crtc_clock = dotclock;/* Cross check the port pixel multiplier with the sdvo encoder state. */ if (intel_sdvo_get_value(intel_sdvo, SDVO_CMD_GET_CLOCK_RATE_MULT,
@@ -1701,7 +1701,7 @@ static void intel_sdvo_enable_audio(struct intel_sdvo *intel_sdvo, const struct drm_connector_state *conn_state) {const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;struct drm_connector *connector = conn_state->connector;u8 *eld = connector->eld;
drivers/gpu/drm/i915/display/intel_sprite.c +4 -4
@@ -83,7 +83,7 @@ void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state) {struct intel_crtc *crtc =to_intel_crtc (new_crtc_state->base.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -const struct drm_display_mode *adjusted_mode = &new_crtc_state->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &new_crtc_state->hw.adjusted_mode;long timeout =msecs_to_jiffies_timeout (1 );int scanline, min, max, vblank_start;wait_queue_head_t *wq =drm_crtc_vblank_waitqueue (&crtc->base);
@@ -1891,7 +1891,7 @@ g4x_sprite_check_scaling(struct intel_crtc_state *crtc_state,const struct drm_rect *dst = &plane_state->base.dst;int src_x, src_w, src_h, crtc_w, crtc_h;const struct drm_display_mode *adjusted_mode = - &crtc_state->base.adjusted_mode; + &crtc_state->hw.adjusted_mode;unsigned int stride = plane_state->color_plane[0 ].stride;unsigned int cpp = fb->format->cpp[0 ];unsigned int width_bytes;
@@ -2105,8 +2105,8 @@ static int skl_plane_check_fb(const struct intel_crtc_state *crtc_state, }/* Y-tiling is not supported in IF-ID Interlace mode */ - if (crtc_state->base.enable && - crtc_state->base.adjusted_mode.flags & DRM_MODE_FLAG_INTERLACE && + if (crtc_state->hw.enable && + crtc_state->hw.adjusted_mode.flags & DRM_MODE_FLAG_INTERLACE && (fb->modifier == I915_FORMAT_MOD_Y_TILED || fb->modifier == I915_FORMAT_MOD_Yf_TILED || fb->modifier == I915_FORMAT_MOD_Y_TILED_CCS ||
drivers/gpu/drm/i915/display/intel_tv.c +2 -2
@@ -1085,7 +1085,7 @@ intel_tv_get_config(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;struct drm_display_mode mode = {};u32 tv_ctl, hctl1, hctl3, vctl1, vctl2, tmp;struct tv_mode tv_mode = {};
@@ -1188,7 +1188,7 @@ intel_tv_compute_config(struct intel_encoder *encoder,to_intel_tv_connector_state (conn_state);const struct tv_mode *tv_mode =intel_tv_mode_find (conn_state);struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;int hdisplay = adjusted_mode->crtc_hdisplay;int vdisplay = adjusted_mode->crtc_vdisplay;
drivers/gpu/drm/i915/display/intel_vdsc.c +2 -2
@@ -329,8 +329,8 @@ int intel_dp_compute_dsc_params(struct intel_dp *intel_dp,int column_index =0 ;u8 line_buf_depth =0 ; - vdsc_cfg->pic_width = pipe_config->base.adjusted_mode.crtc_hdisplay; - vdsc_cfg->pic_height = pipe_config->base.adjusted_mode.crtc_vdisplay; + vdsc_cfg->pic_width = pipe_config->hw.adjusted_mode.crtc_hdisplay; + vdsc_cfg->pic_height = pipe_config->hw.adjusted_mode.crtc_vdisplay; vdsc_cfg->slice_width =DIV_ROUND_UP (vdsc_cfg->pic_width, pipe_config->dsc.slice_count);/*
drivers/gpu/drm/i915/display/vlv_dsi.c +5 -5
@@ -263,7 +263,7 @@ static int intel_dsi_compute_config(struct intel_encoder *encoder,struct intel_connector *intel_connector = intel_dsi->attached_connector;struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc);const struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode; -struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;int ret;DRM_DEBUG_KMS ("\n" );
@@ -1032,7 +1032,7 @@ static void bxt_dsi_get_pipe_config(struct intel_encoder *encoder,struct drm_device *dev = encoder->base.dev;struct drm_i915_private *dev_priv =to_i915 (dev);struct drm_display_mode *adjusted_mode = - &pipe_config->base.adjusted_mode; + &pipe_config->hw.adjusted_mode;struct drm_display_mode *adjusted_mode_sw;struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc);struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base);
@@ -1045,7 +1045,7 @@ static void bxt_dsi_get_pipe_config(struct intel_encoder *encoder, crtc_hblank_start_sw, crtc_hblank_end_sw;/* FIXME: hw readout should not depend on SW state */ - adjusted_mode_sw = &crtc->config->base.adjusted_mode; + adjusted_mode_sw = &crtc->config->hw.adjusted_mode;/* * Atleast one port is active as encoder->get_config called only if
@@ -1204,7 +1204,7 @@ static void intel_dsi_get_config(struct intel_encoder *encoder, }if (pclk) { - pipe_config->base.adjusted_mode.crtc_clock = pclk; + pipe_config->hw.adjusted_mode.crtc_clock = pclk; pipe_config->port_clock = pclk; } }
@@ -1317,7 +1317,7 @@ static void intel_dsi_prepare(struct intel_encoder *intel_encoder,struct drm_i915_private *dev_priv =to_i915 (dev);struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc);struct intel_dsi *intel_dsi =enc_to_intel_dsi (encoder); -const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; +const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;enum port port;unsigned int bpp =mipi_dsi_pixel_format_to_bpp (intel_dsi->pixel_format);u32 val, tmp;
drivers/gpu/drm/i915/i915_debugfs.c +4 -4
@@ -2684,11 +2684,11 @@ static int i915_display_info(struct seq_file *m, void *unused)seq_printf (m,"CRTC %d: pipe: %c, active=%s, (size=%dx%d), dither=%s, bpp=%d\n" , crtc->base.base.id,pipe_name (crtc->pipe), -yesno (pipe_config->base.active), +yesno (pipe_config->hw.active), pipe_config->pipe_src_w, pipe_config->pipe_src_h,yesno (pipe_config->dither), pipe_config->pipe_bpp); -if (pipe_config->base.active) { +if (pipe_config->hw.active) {struct intel_plane *cursor =to_intel_plane (crtc->base.cursor);
@@ -4161,7 +4161,7 @@ static int i915_drrs_ctl_set(void *data, u64 val) crtc_state =to_intel_crtc_state (crtc->base.state); -if (!crtc_state->base.active || +if (!crtc_state->hw.active || !crtc_state->has_drrs) goto out;
@@ -4243,7 +4243,7 @@ i915_fifo_underrun_reset_write(struct file *filp, ret =wait_for_completion_interruptible (&commit->flip_done); } -if (!ret && crtc_state->base.active) { +if (!ret && crtc_state->hw.active) {DRM_DEBUG_KMS ("Re-arming FIFO underruns on pipe %c\n" ,pipe_name (intel_crtc->pipe));
drivers/gpu/drm/i915/intel_pm.c +28 -28
217 lines not on this page · raw message
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 5/12 drm/i915: Perform automated conversions for crtc uapi/hw split, base -> uapi.
In reply to Maarten LankhorstSplit up crtc_state->base to uapi. This is done using the following patch, ran after the previous commit that splits out any hw references:
@@
struct intel_crtc_state *T;
@@
-T->base
+T->uapi
--- drivers/gpu/drm/i915/display/icl_dsi.c | 6 +- drivers/gpu/drm/i915/display/intel_atomic.c | 8 +- .../gpu/drm/i915/display/intel_atomic_plane.c | 6 +- drivers/gpu/drm/i915/display/intel_audio.c | 8 +- drivers/gpu/drm/i915/display/intel_bw.c | 4 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 12 +- drivers/gpu/drm/i915/display/intel_color.c | 70 ++--- drivers/gpu/drm/i915/display/intel_crt.c | 6 +- drivers/gpu/drm/i915/display/intel_ddi.c | 32 +-- drivers/gpu/drm/i915/display/intel_display.c | 253 +++++++++--------- drivers/gpu/drm/i915/display/intel_dp.c | 20 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 4 +- drivers/gpu/drm/i915/display/intel_dpio_phy.c | 14 +- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 20 +- drivers/gpu/drm/i915/display/intel_dvo.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 44 +-- drivers/gpu/drm/i915/display/intel_lvds.c | 4 +- drivers/gpu/drm/i915/display/intel_panel.c | 6 +- drivers/gpu/drm/i915/display/intel_pipe_crc.c | 4 +- drivers/gpu/drm/i915/display/intel_psr.c | 6 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 6 +- drivers/gpu/drm/i915/display/intel_sprite.c | 17 +- drivers/gpu/drm/i915/display/intel_tv.c | 4 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 8 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 10 +- drivers/gpu/drm/i915/i915_debugfs.c | 6 +- drivers/gpu/drm/i915/intel_pm.c | 110 ++++---- 27 files changed, 346 insertions(+), 344 deletions(-)
drivers/gpu/drm/i915/display/icl_dsi.c +3 -3
@@ -625,7 +625,7 @@ gen11_dsi_configure_transcoder(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base); -struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->uapi.crtc);enum pipe pipe = intel_crtc->pipe;u32 tmp;enum port port;
@@ -1242,7 +1242,7 @@ static void gen11_dsi_get_config(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base);/* FIXME: adapt icl_ddi_clock_get() for DSI and use that? */
@@ -1265,7 +1265,7 @@ static int gen11_dsi_compute_config(struct intel_encoder *encoder, struct intel_dsi *intel_dsi = container_of(encoder, struct intel_dsi, base);struct intel_connector *intel_connector = intel_dsi->attached_connector; -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);const struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode; struct drm_display_mode *adjusted_mode =
drivers/gpu/drm/i915/display/intel_atomic.c +4 -4
@@ -193,7 +193,7 @@ intel_crtc_duplicate_state(struct drm_crtc *crtc)if (!crtc_state)return NULL ; -__drm_atomic_helper_crtc_duplicate_state (crtc, &crtc_state->base); +__drm_atomic_helper_crtc_duplicate_state (crtc, &crtc_state->uapi); crtc_state->update_pipe = false; crtc_state->disable_lp_wm = false;
@@ -205,7 +205,7 @@ intel_crtc_duplicate_state(struct drm_crtc *crtc) crtc_state->fb_bits =0 ; crtc_state->update_planes =0 ; -return &crtc_state->base; +return &crtc_state->uapi; }/**
@@ -222,7 +222,7 @@ intel_crtc_destroy_state(struct drm_crtc *crtc, {struct intel_crtc_state *crtc_state =to_intel_crtc_state (state); -__drm_atomic_helper_crtc_destroy_state (&crtc_state->base); +__drm_atomic_helper_crtc_destroy_state (&crtc_state->uapi);kfree (crtc_state); }
@@ -322,7 +322,7 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,struct intel_plane_state *plane_state =NULL ;struct intel_crtc_scaler_state *scaler_state = &crtc_state->scaler_state; -struct drm_atomic_state *drm_state = crtc_state->base.state; +struct drm_atomic_state *drm_state = crtc_state->uapi.state;struct intel_atomic_state *intel_state =to_intel_atomic_state (drm_state);int num_scalers_need;int i;
drivers/gpu/drm/i915/display/intel_atomic_plane.c +3 -3
@@ -307,7 +307,7 @@ void intel_update_plane(struct intel_plane *plane,const struct intel_crtc_state *crtc_state, const struct intel_plane_state *plane_state) { - struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);trace_intel_update_plane (&plane->base, crtc); plane->update_plane (plane, crtc_state, plane_state);
@@ -317,7 +317,7 @@ void intel_update_slave(struct intel_plane *plane,const struct intel_crtc_state *crtc_state, const struct intel_plane_state *plane_state) { - struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);trace_intel_update_plane (&plane->base, crtc); plane->update_slave (plane, crtc_state, plane_state);
@@ -326,7 +326,7 @@ void intel_update_slave(struct intel_plane *plane,void intel_disable_plane (struct intel_plane *plane,const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);trace_intel_disable_plane (&plane->base, crtc); plane->disable_plane (plane, crtc_state);
drivers/gpu/drm/i915/display/intel_audio.c +4 -4
@@ -555,7 +555,7 @@ static void ilk_audio_codec_disable(struct intel_encoder *encoder, const struct drm_connector_state *old_conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc);enum pipe pipe = crtc->pipe;enum port port = encoder->port;u32 tmp, eldv;
@@ -602,7 +602,7 @@ static void ilk_audio_codec_enable(struct intel_encoder *encoder, const struct drm_connector_state *conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_connector *connector = conn_state->connector;enum pipe pipe = crtc->pipe;enum port port = encoder->port;
@@ -692,7 +692,7 @@ void intel_audio_codec_enable(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct i915_audio_component *acomp = dev_priv->audio_component; -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_connector *connector = conn_state->connector;const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
@@ -753,7 +753,7 @@ void intel_audio_codec_disable(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct i915_audio_component *acomp = dev_priv->audio_component; -struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc);enum port port = encoder->port;enum pipe pipe = crtc->pipe;
drivers/gpu/drm/i915/display/intel_bw.c +2 -2
@@ -297,7 +297,7 @@ static unsigned int intel_bw_crtc_num_active_planes(const struct intel_crtc_statstatic unsigned int intel_bw_crtc_data_rate (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);unsigned int data_rate =0 ;enum plane_id plane_id;
@@ -318,7 +318,7 @@ static unsigned int intel_bw_crtc_data_rate(const struct intel_crtc_state *crtc_void intel_bw_crtc_update (struct intel_bw_state *bw_state,const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); bw_state->data_rate[crtc->pipe] =intel_bw_crtc_data_rate (crtc_state);
drivers/gpu/drm/i915/display/intel_cdclk.c +6 -6
@@ -1902,7 +1902,7 @@ intel_set_cdclk_post_plane_update(struct drm_i915_private *dev_priv,static int intel_pixel_rate_to_cdclk (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);int pixel_rate = crtc_state->pixel_rate;if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv))
@@ -1920,7 +1920,7 @@ static int intel_pixel_rate_to_cdclk(const struct intel_crtc_state *crtc_state)static int intel_planes_min_cdclk (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_plane *plane;int min_cdclk =0 ;
@@ -1934,7 +1934,7 @@ static int intel_planes_min_cdclk(const struct intel_crtc_state *crtc_state)int intel_crtc_compute_min_cdclk (const struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv = -to_i915 (crtc_state->base.crtc->dev); +to_i915 (crtc_state->uapi.crtc->dev);int min_cdclk;if (!crtc_state->hw.enable)
@@ -2282,10 +2282,10 @@ static int intel_modeset_all_pipes(struct intel_atomic_state *state)return PTR_ERR (crtc_state);if (!crtc_state->hw.active || -drm_atomic_crtc_needs_modeset (&crtc_state->base)) +drm_atomic_crtc_needs_modeset (&crtc_state->uapi))continue ; - crtc_state->base.mode_changed = true; + crtc_state->uapi.mode_changed = true; ret =drm_atomic_add_affected_connectors (&state->base, &crtc->base);
@@ -2366,7 +2366,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (IS_ERR (crtc_state))return PTR_ERR (crtc_state); -if (drm_atomic_crtc_needs_modeset (&crtc_state->base)) +if (drm_atomic_crtc_needs_modeset (&crtc_state->uapi)) pipe =INVALID_PIPE ; }else { pipe =INVALID_PIPE ;
drivers/gpu/drm/i915/display/intel_color.c +35 -35
275 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_crt.c +3 -3
@@ -161,7 +161,7 @@ static void intel_crt_set_dpms(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_crt *crt =intel_encoder_to_crt (encoder); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;u32 adpa;
@@ -271,7 +271,7 @@ static void hsw_pre_enable_crt(struct intel_encoder *encoder, const struct drm_connector_state *conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);enum pipe pipe = crtc->pipe;WARN_ON (!crtc_state->has_pch_encoder);
@@ -288,7 +288,7 @@ static void hsw_enable_crt(struct intel_encoder *encoder, const struct drm_connector_state *conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);enum pipe pipe = crtc->pipe;WARN_ON (!crtc_state->has_pch_encoder);
drivers/gpu/drm/i915/display/intel_ddi.c +16 -16
@@ -1744,7 +1744,7 @@ static void intel_ddi_clock_get(struct intel_encoder *encoder,void intel_ddi_set_dp_msa (const struct intel_crtc_state *crtc_state,const struct drm_connector_state *conn_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;u32 temp;
@@ -1806,7 +1806,7 @@ void intel_ddi_set_dp_msa(const struct intel_crtc_state *crtc_state,void intel_ddi_set_vc_payload_alloc (const struct intel_crtc_state *crtc_state,bool state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;u32 temp;
@@ -1828,7 +1828,7 @@ void intel_ddi_set_vc_payload_alloc(const struct intel_crtc_state *crtc_state,static u32 intel_ddi_transcoder_func_reg_val_get (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct intel_encoder *encoder =intel_ddi_get_crtc_encoder (crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum pipe pipe = crtc->pipe;
@@ -1918,7 +1918,7 @@ intel_ddi_transcoder_func_reg_val_get(const struct intel_crtc_state *crtc_state)void intel_ddi_enable_transcoder_func (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;u32 temp;
@@ -1934,7 +1934,7 @@ void intel_ddi_enable_transcoder_func(const struct intel_crtc_state *crtc_state)static void intel_ddi_config_transcoder_func (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;u32 temp;
@@ -1946,7 +1946,7 @@ intel_ddi_config_transcoder_func(const struct intel_crtc_state *crtc_state)void intel_ddi_disable_transcoder_func (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;i915_reg_t reg =TRANS_DDI_FUNC_CTL (cpu_transcoder);
@@ -2244,7 +2244,7 @@ static void intel_ddi_get_power_domains(struct intel_encoder *encoder,void intel_ddi_enable_pipe_clock (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_encoder *encoder =intel_ddi_get_crtc_encoder (crtc);enum port port = encoder->port;
@@ -2262,7 +2262,7 @@ void intel_ddi_enable_pipe_clock(const struct intel_crtc_state *crtc_state)void intel_ddi_disable_pipe_clock (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;if (cpu_transcoder !=TRANSCODER_EDP ) {
@@ -3342,7 +3342,7 @@ static void intel_ddi_disable_fec_state(struct intel_encoder *encoder,static void tgl_clear_psr2_transcoder_exitline (const struct intel_crtc_state *cstate) { -struct drm_i915_private *dev_priv =to_i915 (cstate->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (cstate->uapi.crtc->dev);u32 val;if (!cstate->dc3co_exitline)
@@ -3357,7 +3357,7 @@ static void tgl_set_psr2_transcoder_exitline(const struct intel_crtc_state *cstate) {u32 val, exit_scanlines; -struct drm_i915_private *dev_priv =to_i915 (cstate->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (cstate->uapi.crtc->dev);if (!cstate->dc3co_exitline)return ;
@@ -3375,7 +3375,7 @@ static void tgl_dc3co_exitline_compute_config(struct intel_encoder *encoder, struct intel_crtc_state *cstate) {u32 exit_scanlines; -struct drm_i915_private *dev_priv =to_i915 (cstate->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (cstate->uapi.crtc->dev);u32 crtc_vdisplay = cstate->hw.adjusted_mode.crtc_vdisplay; cstate->dc3co_exitline =0 ;
@@ -3384,7 +3384,7 @@ static void tgl_dc3co_exitline_compute_config(struct intel_encoder *encoder,return ;/* B.Specs:49196 DC3CO only works with pipeA and DDIA.*/ -if (to_intel_crtc (cstate->base.crtc)->pipe !=PIPE_A || +if (to_intel_crtc (cstate->uapi.crtc)->pipe !=PIPE_A || encoder->port !=PORT_A )return ;
@@ -3408,7 +3408,7 @@ static void tgl_dc3co_exitline_compute_config(struct intel_encoder *encoder,static void tgl_dc3co_exitline_get_config (struct intel_crtc_state *crtc_state) {u32 val; -struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);if (INTEL_GEN (dev_priv) <12 )return ;
@@ -3656,7 +3656,7 @@ static void intel_ddi_pre_enable(struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { - struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum pipe pipe = crtc->pipe;
@@ -4213,7 +4213,7 @@ void intel_ddi_get_config(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->uapi.crtc);enum transcoder cpu_transcoder = pipe_config->cpu_transcoder;u32 temp, flags =0 ;
@@ -4380,7 +4380,7 @@ static int intel_ddi_compute_config(struct intel_encoder *encoder,struct intel_crtc_state *pipe_config, struct drm_connector_state *conn_state) { - struct intel_crtc *crtc = to_intel_crtc(pipe_config->base.crtc); + struct intel_crtc *crtc = to_intel_crtc(pipe_config->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);enum port port = encoder->port;int ret;
drivers/gpu/drm/i915/display/intel_display.c +127 -126
910 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_dp.c +10 -10
@@ -2249,7 +2249,7 @@ intel_dp_ycbcr420_config(struct intel_dp *intel_dp,const struct drm_display_info *info = &connector->display_info;const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);int ret; if (!drm_mode_is_420_only(info, adjusted_mode) ||
@@ -2314,7 +2314,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);struct intel_lspcon *lspcon =enc_to_intel_lspcon (&encoder->base);enum port port = encoder->port; -struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->uapi.crtc);struct intel_connector *intel_connector = intel_dp->attached_connector;struct intel_digital_connector_state *intel_conn_state =to_intel_digital_connector_state (conn_state);
@@ -2432,7 +2432,7 @@ static void intel_dp_prepare(struct intel_encoder *encoder,struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);enum port port = encoder->port; -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; intel_dp_set_link_params(intel_dp, pipe_config->port_clock,
@@ -3030,7 +3030,7 @@ static void assert_edp_pll(struct drm_i915_private *dev_priv, bool state)static void ironlake_edp_pll_on (struct intel_dp *intel_dp,const struct intel_crtc_state *pipe_config) { -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);assert_pipe_disabled (dev_priv, crtc->pipe);
@@ -3070,7 +3070,7 @@ static void ironlake_edp_pll_on(struct intel_dp *intel_dp,static void ironlake_edp_pll_off (struct intel_dp *intel_dp,const struct intel_crtc_state *old_crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);assert_pipe_disabled (dev_priv, crtc->pipe);
@@ -3230,7 +3230,7 @@ static void intel_dp_get_config(struct intel_encoder *encoder,struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);u32 tmp, flags =0 ;enum port port = encoder->port; -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);if (encoder->type ==INTEL_OUTPUT_EDP ) pipe_config->output_types |=BIT (INTEL_OUTPUT_EDP );
@@ -3497,7 +3497,7 @@ static void intel_enable_dp(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base); -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);u32 dp_reg =I915_READ (intel_dp->output_reg);enum pipe pipe = crtc->pipe;intel_wakeref_t wakeref;
@@ -3630,7 +3630,7 @@ static void vlv_init_panel_power_sequencer(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);lockdep_assert_held (&dev_priv->pps_mutex);
@@ -4152,7 +4152,7 @@ intel_dp_link_down(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base); -struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc);enum port port = encoder->port;u32 DP = intel_dp->DP;
@@ -6910,7 +6910,7 @@ static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv, int refresh_rate) {struct intel_dp *intel_dp = dev_priv->drrs.dp; -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->uapi.crtc);enum drrs_refresh_rate_type index =DRRS_HIGH_RR ;if (refresh_rate <=0 ) {
drivers/gpu/drm/i915/display/intel_dp_mst.c +2 -2
@@ -42,7 +42,7 @@ static int intel_dp_mst_compute_link_config(struct intel_encoder *encoder,struct drm_connector_state *conn_state, struct link_config_limits *limits) { - struct drm_atomic_state *state = crtc_state->base.state; + struct drm_atomic_state *state = crtc_state->uapi.state;struct intel_dp_mst_encoder *intel_mst =enc_to_mst (&encoder->base);struct intel_dp *intel_dp = &intel_mst->primary->dp; struct intel_connector *connector =
@@ -190,7 +190,7 @@ intel_dp_mst_atomic_check(struct drm_connector *connector, intel_crtc);if (!crtc_state || - !drm_atomic_crtc_needs_modeset (&crtc_state->base) || + !drm_atomic_crtc_needs_modeset (&crtc_state->uapi) || crtc_state->hw.enable)return 0 ; }
drivers/gpu/drm/i915/display/intel_dpio_phy.c +7 -7
@@ -739,7 +739,7 @@ void chv_data_lane_soft_reset(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);enum dpio_channel ch =vlv_dport_to_channel (enc_to_dig_port (&encoder->base)); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);enum pipe pipe = crtc->pipe;u32 val;
@@ -783,7 +783,7 @@ void chv_phy_pre_pll_enable(struct intel_encoder *encoder, {struct intel_digital_port *dport =enc_to_dig_port (&encoder->base);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);enum dpio_channel ch =vlv_dport_to_channel (dport);enum pipe pipe = crtc->pipe; unsigned int lane_mask =
@@ -864,7 +864,7 @@ void chv_phy_pre_encoder_enable(struct intel_encoder *encoder,struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);struct intel_digital_port *dport =dp_to_dig_port (intel_dp);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);enum dpio_channel ch =vlv_dport_to_channel (dport);enum pipe pipe = crtc->pipe;int data, i, stagger;
@@ -953,7 +953,7 @@ void chv_phy_post_pll_disable(struct intel_encoder *encoder, const struct intel_crtc_state *old_crtc_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -enum pipe pipe =to_intel_crtc (old_crtc_state->base.crtc)->pipe; +enum pipe pipe =to_intel_crtc (old_crtc_state->uapi.crtc)->pipe;u32 val;vlv_dpio_get (dev_priv);
@@ -1016,7 +1016,7 @@ void vlv_phy_pre_pll_enable(struct intel_encoder *encoder, {struct intel_digital_port *dport =enc_to_dig_port (&encoder->base);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);enum dpio_channel port =vlv_dport_to_channel (dport);enum pipe pipe = crtc->pipe;
@@ -1046,7 +1046,7 @@ void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder,struct intel_dp *intel_dp =enc_to_intel_dp (&encoder->base);struct intel_digital_port *dport =dp_to_dig_port (intel_dp);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);enum dpio_channel port =vlv_dport_to_channel (dport);enum pipe pipe = crtc->pipe;u32 val;
@@ -1075,7 +1075,7 @@ void vlv_phy_reset_lanes(struct intel_encoder *encoder, {struct intel_digital_port *dport =enc_to_dig_port (&encoder->base);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc);enum dpio_channel port =vlv_dport_to_channel (dport);enum pipe pipe = crtc->pipe;
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +10 -10
@@ -136,7 +136,7 @@ void assert_shared_dpll(struct drm_i915_private *dev_priv,*/ void intel_prepare_shared_dpll (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_shared_dpll *pll = crtc_state->shared_dpll;
@@ -163,7 +163,7 @@ void intel_prepare_shared_dpll(const struct intel_crtc_state *crtc_state)*/ void intel_enable_shared_dpll (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_shared_dpll *pll = crtc_state->shared_dpll;unsigned int crtc_mask =drm_crtc_mask (&crtc->base);
@@ -208,7 +208,7 @@ void intel_enable_shared_dpll(const struct intel_crtc_state *crtc_state)*/ void intel_disable_shared_dpll (const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_shared_dpll *pll = crtc_state->shared_dpll;unsigned int crtc_mask =drm_crtc_mask (&crtc->base);
@@ -842,7 +842,7 @@ hsw_ddi_hdmi_get_dpll(struct intel_atomic_state *state,static struct intel_shared_dpll *hsw_ddi_dp_get_dpll (struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);struct intel_shared_dpll *pll;enum intel_dpll_id pll_id;int clock = crtc_state->port_clock;
@@ -1751,7 +1751,7 @@ static bool bxt_ddi_hdmi_pll_dividers(struct intel_crtc_state *crtc_state, struct bxt_clk_div *clk_div) { - struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);struct dpll best_clock;/* Calculate HDMI div */
@@ -2274,7 +2274,7 @@ static bool cnl_ddi_calculate_wrpll(struct intel_crtc_state *crtc_state, struct skl_wrpll_params *wrpll_params) { - struct drm_i915_private *dev_priv = to_i915(crtc_state->base.crtc->dev); + struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev);u32 afe_clock = crtc_state->port_clock *5 ;u32 ref_clock;u32 dco_min =7998000 ;
@@ -2553,7 +2553,7 @@ static const struct skl_wrpll_params tgl_tbt_pll_24MHz_values = {static bool icl_calc_dp_combo_pll (struct intel_crtc_state *crtc_state,struct skl_wrpll_params *pll_params) { -struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);const struct icl_combo_pll_params *params = dev_priv->cdclk.hw.ref ==24000 ? icl_dp_combo_pll_24MHz_values :
@@ -2575,7 +2575,7 @@ static bool icl_calc_dp_combo_pll(struct intel_crtc_state *crtc_state,static bool icl_calc_tbt_pll (struct intel_crtc_state *crtc_state,struct skl_wrpll_params *pll_params) { -struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);if (INTEL_GEN (dev_priv) >=12 ) {switch (dev_priv->cdclk.hw.ref) {
@@ -2612,7 +2612,7 @@ static bool icl_calc_dpll_state(struct intel_crtc_state *crtc_state,struct intel_encoder *encoder, struct intel_dpll_hw_state *pll_state) { - struct drm_i915_private *dev_priv = to_i915(crtc_state->base.crtc->dev); + struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev);u32 cfgcr0, cfgcr1;struct skl_wrpll_params pll_params = {0 };bool ret;
@@ -2744,7 +2744,7 @@ static bool icl_mg_pll_find_divisors(int clock_khz, bool is_dp, bool use_ssc,static bool icl_calc_mg_pll_state (struct intel_crtc_state *crtc_state,struct intel_dpll_hw_state *pll_state) { -struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);int refclk_khz = dev_priv->cdclk.hw.ref;int clock = crtc_state->port_clock;u32 dco_khz, m1div, m2div_int, m2div_rem, m2div_frac;
drivers/gpu/drm/i915/display/intel_dvo.c +1 -1
@@ -277,7 +277,7 @@ static void intel_dvo_pre_enable(struct intel_encoder *encoder, const struct drm_connector_state *conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct intel_dvo *intel_dvo =enc_to_dvo (encoder);enum pipe pipe = crtc->pipe;
drivers/gpu/drm/i915/display/intel_hdmi.c +22 -22
170 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_lvds.c +2 -2
@@ -230,7 +230,7 @@ static void intel_pre_enable_lvds(struct intel_encoder *encoder, {struct intel_lvds_encoder *lvds_encoder =to_lvds_encoder (&encoder->base);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;enum pipe pipe = crtc->pipe;u32 temp;
@@ -393,7 +393,7 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder,struct intel_connector *intel_connector = lvds_encoder->attached_connector;struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; -struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->uapi.crtc);unsigned int lvds_bpp;/* Should never happen!! */
drivers/gpu/drm/i915/display/intel_panel.c +3 -3
@@ -1047,7 +1047,7 @@ static void vlv_enable_backlight(const struct intel_crtc_state *crtc_state,struct intel_connector *connector =to_intel_connector (conn_state->connector);struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct intel_panel *panel = &connector->panel; -enum pipe pipe =to_intel_crtc (crtc_state->base.crtc)->pipe; +enum pipe pipe =to_intel_crtc (crtc_state->uapi.crtc)->pipe;u32 ctl, ctl2; ctl2 =I915_READ (VLV_BLC_PWM_CTL2 (pipe));
@@ -1077,7 +1077,7 @@ static void bxt_enable_backlight(const struct intel_crtc_state *crtc_state,struct intel_connector *connector =to_intel_connector (conn_state->connector);struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct intel_panel *panel = &connector->panel; -enum pipe pipe =to_intel_crtc (crtc_state->base.crtc)->pipe; +enum pipe pipe =to_intel_crtc (crtc_state->uapi.crtc)->pipe;u32 pwm_ctl, val;/* Controller 1 uses the utility pin. */
@@ -1189,7 +1189,7 @@ void intel_panel_enable_backlight(const struct intel_crtc_state *crtc_state,struct intel_connector *connector =to_intel_connector (conn_state->connector);struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct intel_panel *panel = &connector->panel; -enum pipe pipe =to_intel_crtc (crtc_state->base.crtc)->pipe; +enum pipe pipe =to_intel_crtc (crtc_state->uapi.crtc)->pipe;if (!panel->backlight.present)return ;
drivers/gpu/drm/i915/display/intel_pipe_crc.c +2 -2
@@ -309,13 +309,13 @@ intel_crtc_crc_setup_workarounds(struct intel_crtc *crtc, bool enable) goto put_state; } - pipe_config->base.mode_changed = pipe_config->has_psr; + pipe_config->uapi.mode_changed = pipe_config->has_psr; pipe_config->crc_enabled = enable;if (IS_HASWELL (dev_priv) && pipe_config->hw.active && crtc->pipe ==PIPE_A && pipe_config->cpu_transcoder ==TRANSCODER_EDP ) - pipe_config->base.mode_changed = true; + pipe_config->uapi.mode_changed = true; ret =drm_atomic_commit (state);
drivers/gpu/drm/i915/display/intel_psr.c +3 -3
@@ -793,7 +793,7 @@ static void intel_psr_enable_locked(struct drm_i915_private *dev_priv, dev_priv->psr.psr2_enabled =intel_psr2_enabled (dev_priv, crtc_state); dev_priv->psr.busy_frontbuffer_bits =0 ; - dev_priv->psr.pipe =to_intel_crtc (crtc_state->base.crtc)->pipe; + dev_priv->psr.pipe =to_intel_crtc (crtc_state->uapi.crtc)->pipe; dev_priv->psr.dc3co_enabled = !!crtc_state->dc3co_exitline; dev_priv->psr.dc3co_exit_delay =intel_get_frame_time_us (crtc_state); dev_priv->psr.transcoder = crtc_state->cpu_transcoder;
@@ -1040,7 +1040,7 @@ void intel_psr_update(struct intel_dp *intel_dp,int intel_psr_wait_for_idle (const struct intel_crtc_state *new_crtc_state,u32 *out_value) { -struct intel_crtc *crtc =to_intel_crtc (new_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (new_crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);if (!dev_priv->psr.enabled || !new_crtc_state->has_psr)
@@ -1119,7 +1119,7 @@ static int intel_psr_fastset_force(struct drm_i915_private *dev_priv)if (crtc_state->hw.active && crtc_state->has_psr) {/* Mark mode as changed to trigger a pipe->update() */ - crtc_state->base.mode_changed = true; + crtc_state->uapi.mode_changed = true;break ; } }
drivers/gpu/drm/i915/display/intel_sdvo.c +3 -3
@@ -1429,7 +1429,7 @@ static void intel_sdvo_pre_enable(struct intel_encoder *intel_encoder, const struct drm_connector_state *conn_state) {struct drm_i915_private *dev_priv =to_i915 (intel_encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;const struct intel_sdvo_connector_state *sdvo_state =to_intel_sdvo_connector_state (conn_state);
@@ -1723,7 +1723,7 @@ static void intel_disable_sdvo(struct intel_encoder *encoder, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct intel_sdvo *intel_sdvo =to_sdvo (encoder); -struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc);u32 temp;if (old_crtc_state->has_audio)
@@ -1785,7 +1785,7 @@ static void intel_enable_sdvo(struct intel_encoder *encoder,struct drm_device *dev = encoder->base.dev;struct drm_i915_private *dev_priv =to_i915 (dev);struct intel_sdvo *intel_sdvo =to_sdvo (encoder); -struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->uapi.crtc);u32 temp;bool input1, input2;int i;
drivers/gpu/drm/i915/display/intel_sprite.c +9 -8
@@ -81,7 +81,7 @@ int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode,*/ void intel_pipe_update_start (const struct intel_crtc_state *new_crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (new_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (new_crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);const struct drm_display_mode *adjusted_mode = &new_crtc_state->hw.adjusted_mode;long timeout =msecs_to_jiffies_timeout (1 );
@@ -190,7 +190,7 @@ void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state)*/ void intel_pipe_update_end (struct intel_crtc_state *new_crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (new_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (new_crtc_state->uapi.crtc);enum pipe pipe = crtc->pipe;int scanline_end =intel_get_crtc_scanline (crtc);u32 end_vbl_count =intel_crtc_get_vblank_counter (crtc);
@@ -203,14 +203,15 @@ void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state)* Would be slightly nice to just grab the vblank count and arm the * event outside of the critical section - the spinlock might spin for a * while ... */ -if (new_crtc_state->base.event) { +if (new_crtc_state->uapi.event) {WARN_ON (drm_crtc_vblank_get (&crtc->base) !=0 );spin_lock (&crtc->base.dev->event_lock); -drm_crtc_arm_vblank_event (&crtc->base, new_crtc_state->base.event); +drm_crtc_arm_vblank_event (&crtc->base, + new_crtc_state->uapi.event);spin_unlock (&crtc->base.dev->event_lock); - new_crtc_state->base.event =NULL ; + new_crtc_state->uapi.event =NULL ; }local_irq_enable ();
@@ -1964,7 +1965,7 @@ g4x_sprite_check(struct intel_crtc_state *crtc_state, } ret =drm_atomic_helper_check_plane_state (&plane_state->base, - &crtc_state->base, + &crtc_state->uapi, min_scale, max_scale, true, true);if (ret)
@@ -2021,7 +2022,7 @@ vlv_sprite_check(struct intel_crtc_state *crtc_state,return ret; ret =drm_atomic_helper_check_plane_state (&plane_state->base, - &crtc_state->base, + &crtc_state->uapi,DRM_PLANE_HELPER_NO_SCALING ,DRM_PLANE_HELPER_NO_SCALING , true, true);
@@ -2202,7 +2203,7 @@ static int skl_plane_check(struct intel_crtc_state *crtc_state, } ret =drm_atomic_helper_check_plane_state (&plane_state->base, - &crtc_state->base, + &crtc_state->uapi, min_scale, max_scale, true, true);if (ret)
drivers/gpu/drm/i915/display/intel_tv.c +2 -2
@@ -924,7 +924,7 @@ intel_enable_tv(struct intel_encoder *encoder,/* Prevents vblank waits from timing out in intel_tv_detect_type() */ intel_wait_for_vblank (dev_priv, -to_intel_crtc (pipe_config->base.crtc)->pipe); +to_intel_crtc (pipe_config->uapi.crtc)->pipe);I915_WRITE (TV_CTL ,I915_READ (TV_CTL ) |TV_ENC_ENABLE ); }
@@ -1417,7 +1417,7 @@ static void intel_tv_pre_enable(struct intel_encoder *encoder, const struct drm_connector_state *conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->uapi.crtc);struct intel_tv *intel_tv =enc_to_tv (encoder);const struct intel_tv_connector_state *tv_conn_state =to_intel_tv_connector_state (conn_state);
drivers/gpu/drm/i915/display/intel_vdsc.c +4 -4
@@ -459,7 +459,7 @@ int intel_dp_compute_dsc_params(struct intel_dp *intel_dp,enum intel_display_power_domain intel_dsc_power_domain (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *i915 =to_i915 (crtc_state->base.crtc->dev); +struct drm_i915_private *i915 =to_i915 (crtc_state->uapi.crtc->dev);enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;/*
@@ -483,7 +483,7 @@ intel_dsc_power_domain(const struct intel_crtc_state *crtc_state)static void intel_configure_pps_for_dsc_encoder (struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config;enum pipe pipe = crtc->pipe;
@@ -902,7 +902,7 @@ static void intel_dp_write_dsc_pps_sdp(struct intel_encoder *encoder,void intel_dsc_enable (struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);enum pipe pipe = crtc->pipe;i915_reg_t dss_ctl1_reg, dss_ctl2_reg;
@@ -938,7 +938,7 @@ void intel_dsc_enable(struct intel_encoder *encoder,void intel_dsc_disable (const struct intel_crtc_state *old_crtc_state) { -struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum pipe pipe = crtc->pipe;i915_reg_t dss_ctl1_reg, dss_ctl2_reg;
drivers/gpu/drm/i915/display/vlv_dsi.c +5 -5
@@ -261,7 +261,7 @@ static int intel_dsi_compute_config(struct intel_encoder *encoder, struct intel_dsi *intel_dsi = container_of(encoder, struct intel_dsi, base);struct intel_connector *intel_connector = intel_dsi->attached_connector; -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);const struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;int ret;
@@ -624,7 +624,7 @@ static void intel_dsi_port_enable(struct intel_encoder *encoder, const struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base);enum port port;
@@ -746,7 +746,7 @@ static void intel_dsi_pre_enable(struct intel_encoder *encoder, const struct drm_connector_state *conn_state) {struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base); -struct drm_crtc *crtc = pipe_config->base.crtc; +struct drm_crtc *crtc = pipe_config->uapi.crtc;struct drm_i915_private *dev_priv =to_i915 (crtc->dev);struct intel_crtc *intel_crtc =to_intel_crtc (crtc);enum pipe pipe = intel_crtc->pipe;
@@ -1034,7 +1034,7 @@ static void bxt_dsi_get_pipe_config(struct intel_encoder *encoder,struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct drm_display_mode *adjusted_mode_sw; -struct intel_crtc *crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (pipe_config->uapi.crtc);struct intel_dsi *intel_dsi =enc_to_intel_dsi (&encoder->base);unsigned int lane_count = intel_dsi->lane_count;unsigned int bpp, fmt;
@@ -1315,7 +1315,7 @@ static void intel_dsi_prepare(struct intel_encoder *intel_encoder,struct drm_encoder *encoder = &intel_encoder->base;struct drm_device *dev = encoder->dev;struct drm_i915_private *dev_priv =to_i915 (dev); -struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->base.crtc); +struct intel_crtc *intel_crtc =to_intel_crtc (pipe_config->uapi.crtc);struct intel_dsi *intel_dsi =enc_to_intel_dsi (encoder);const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;enum port port;
drivers/gpu/drm/i915/i915_debugfs.c +3 -3
@@ -4165,7 +4165,7 @@ static int i915_drrs_ctl_set(void *data, u64 val) !crtc_state->has_drrs) goto out; - commit = crtc_state->base.commit; + commit = crtc_state->uapi.commit;if (commit) { ret =wait_for_completion_interruptible (&commit->hw_done);if (ret)
@@ -4177,7 +4177,7 @@ static int i915_drrs_ctl_set(void *data, u64 val)struct intel_encoder *encoder;struct intel_dp *intel_dp; -if (!(crtc_state->base.connector_mask & +if (!(crtc_state->uapi.connector_mask &drm_connector_mask (connector)))continue ;
@@ -4236,7 +4236,7 @@ i915_fifo_underrun_reset_write(struct file *filp,return ret; crtc_state =to_intel_crtc_state (intel_crtc->base.state); - commit = crtc_state->base.commit; + commit = crtc_state->uapi.commit;if (commit) { ret =wait_for_completion_interruptible (&commit->hw_done);if (!ret)
drivers/gpu/drm/i915/intel_pm.c +55 -55
360 lines not on this page · raw message
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 6/12 drm/i915: Complete crtc hw/uapi split, v6.
In reply to Maarten LankhorstNow that we separated everything into uapi and hw, it's time to make the split definitive. Remove the union and make a copy of the hw state on modeset and fastset.
Color blobs are copied in crtc atomic_check(), right before color management is checked.
Changes since v1:
- Copy all blobs immediately after drm_atomic_helper_check_modeset().
- Clear crtc_state->hw on disable, instead of using clear_intel_crtc_state(). Changes since v2:
- Use intel_crtc_free_hw_state + clear in intel_crtc_disable_noatomic().
- Make a intel_crtc_prepare_state() function that clears the crtc_state and copies hw members.
- Remove setting uapi.adjusted_mode, we now have a direct call to drm_calc_timestamping_constants().
Changes since v3:
- Rename prefix copy_hw_to_uapi_state() with intel_crtc.
- Copy color blobs to uapi as well.
- Add a intel_crtc_copy_uapi_to_hw_state_nomodeset() function for clarity. Changes since v4:
- Copy hw.adjusted_mode back to uapi.adjusted_mode, to shut up the call to drm_calc_timestamping_constants() in drm_atomic_helper_update_legacy_modeset_state().
- Use drm_property_replace_blob (Ville).
Changes since v5:
- Use hw->mode in intel_modeset_readout_hw_state(). (Ville)
- Copy to uapi.mode using drm_atomic_set_mode_for_crtc(). (Ville)
--- drivers/gpu/drm/i915/display/intel_atomic.c | 31 +++++++ drivers/gpu/drm/i915/display/intel_atomic.h | 2 + drivers/gpu/drm/i915/display/intel_display.c | 90 +++++++++++++++---- .../drm/i915/display/intel_display_types.h | 9 +- 4 files changed, 109 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic.c +31 -0
@@ -195,6 +195,14 @@ intel_crtc_duplicate_state(struct drm_crtc *crtc)__drm_atomic_helper_crtc_duplicate_state (crtc, &crtc_state->uapi); +/* copy color blobs */ +if (crtc_state->hw.degamma_lut) +drm_property_blob_get (crtc_state->hw.degamma_lut); +if (crtc_state->hw.ctm) +drm_property_blob_get (crtc_state->hw.ctm); +if (crtc_state->hw.gamma_lut) +drm_property_blob_get (crtc_state->hw.gamma_lut); + crtc_state->update_pipe = false; crtc_state->disable_lp_wm = false; crtc_state->disable_cxsr = false;
@@ -208,6 +216,28 @@ intel_crtc_duplicate_state(struct drm_crtc *crtc)return &crtc_state->uapi; } +static void intel_crtc_put_color_blobs (struct intel_crtc_state *crtc_state) +{ +drm_property_blob_put (crtc_state->hw.degamma_lut); +drm_property_blob_put (crtc_state->hw.gamma_lut); +drm_property_blob_put (crtc_state->hw.ctm); +} + +void intel_crtc_free_hw_state (struct intel_crtc_state *crtc_state) +{ +intel_crtc_put_color_blobs (crtc_state); +} + +void intel_crtc_copy_color_blobs (struct intel_crtc_state *crtc_state) +{ +drm_property_replace_blob (&crtc_state->hw.degamma_lut, + crtc_state->uapi.degamma_lut); +drm_property_replace_blob (&crtc_state->hw.gamma_lut, + crtc_state->uapi.gamma_lut); +drm_property_replace_blob (&crtc_state->hw.ctm, + crtc_state->uapi.ctm); +} +/** * intel_crtc_destroy_state - destroy crtc state * @crtc: drm crtc
@@ -223,6 +253,7 @@ intel_crtc_destroy_state(struct drm_crtc *crtc,struct intel_crtc_state *crtc_state =to_intel_crtc_state (state);__drm_atomic_helper_crtc_destroy_state (&crtc_state->uapi); +intel_crtc_free_hw_state (crtc_state);kfree (crtc_state); }
drivers/gpu/drm/i915/display/intel_atomic.h +2 -0
@@ -36,6 +36,8 @@ intel_digital_connector_duplicate_state(struct drm_connector *connector);struct drm_crtc_state *intel_crtc_duplicate_state (struct drm_crtc *crtc);void intel_crtc_destroy_state (struct drm_crtc *crtc,struct drm_crtc_state *state); +void intel_crtc_free_hw_state (struct intel_crtc_state *crtc_state); +void intel_crtc_copy_color_blobs (struct intel_crtc_state *crtc_state);struct drm_atomic_state *intel_atomic_state_alloc (struct drm_device *dev);void intel_atomic_state_clear (struct drm_atomic_state *state);
drivers/gpu/drm/i915/display/intel_display.c +71 -19
178 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display_types.h +5 -4
@@ -757,8 +757,6 @@ enum intel_output_format { };struct intel_crtc_state { -union { -struct drm_crtc_state base;/* * uapi (drm) state. This is the software state shown to userspace. * In particular, the following members are used for bookkeeping:
@@ -781,8 +779,11 @@ struct intel_crtc_state {* * During initial hw readout, they need to be copied to uapi. */ -struct drm_crtc_state hw; - }; +struct { +bool active, enable; +struct drm_property_blob *degamma_lut, *gamma_lut, *ctm; +struct drm_display_mode mode, adjusted_mode; + } hw;/** * quirks - bitfield with hw state readout quirks
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 06/12] drm/i915: Complete crtc hw/uapi split, v6.
Quoted 286 lines · Maarten Lankhorst
Now that we separated everything into uapi and hw, it's time to make the split definitive. Remove the union and make a copy of the hw state on modeset and fastset.
Color blobs are copied in crtc
atomic_check(), right before color management is checked.Changes since v1:
- Copy all blobs immediately afterdrm_atomic_helper_check_modeset().
- Clearcrtc_state->hwon disable, instead of usingclear_intel_crtc_state(). Changes since v2:
- Useintel_crtc_free_hw_state+ clear inintel_crtc_disable_noatomic().
- Make aintel_crtc_prepare_state()function that clears thecrtc_stateand copies hw members.
- Remove setting uapi.adjusted_mode, we now have a direct call todrm_calc_timestamping_constants().
Changes since v3:
- Rename prefixcopy_hw_to_uapi_state()withintel_crtc.
- Copy color blobs to uapi as well.
- Add aintel_crtc_copy_uapi_to_hw_state_nomodeset()function for clarity. Changes since v4:
- Copy hw.adjusted_mode back to uapi.adjusted_mode, to shut up the call todrm_calc_timestamping_constants()indrm_atomic_helper_update_legacy_modeset_state().
- Usedrm_property_replace_blob(Ville).
Changes since v5:
- Usehw->modeinintel_modeset_readout_hw_state(). (Ville)
- Copy to uapi.mode usingdrm_atomic_set_mode_for_crtc(). (Ville)Signed-off-by Maarten Lankhorst <[email protected]>--- drivers/gpu/drm/i915/display/intel_atomic.c | 31 +++++++ drivers/gpu/drm/i915/display/intel_atomic.h | 2 + drivers/gpu/drm/i915/display/intel_display.c | 90 +++++++++++++++---- .../drm/i915/display/intel_display_types.h | 9 +- 4 files changed, 109 insertions(+), 23 deletions(-)drivers/gpu/drm/i915/display/intel_atomic.c +31
-0@@ -195,6 +195,14 @@ intel_crtc_duplicate_state(struct drm_crtc *crtc)__drm_atomic_helper_crtc_duplicate_state (crtc, &crtc_state->uapi); +/* copy color blobs */ +if (crtc_state->hw.degamma_lut) +drm_property_blob_get (crtc_state->hw.degamma_lut); +if (crtc_state->hw.ctm) +drm_property_blob_get (crtc_state->hw.ctm); +if (crtc_state->hw.gamma_lut) +drm_property_blob_get (crtc_state->hw.gamma_lut); + crtc_state->update_pipe = false; crtc_state->disable_lp_wm = false; crtc_state->disable_cxsr = false;@@ -208,6 +216,28 @@ intel_crtc_duplicate_state(struct drm_crtc *crtc)return &crtc_state->uapi; } +static void intel_crtc_put_color_blobs (struct intel_crtc_state *crtc_state) +{ +drm_property_blob_put (crtc_state->hw.degamma_lut); +drm_property_blob_put (crtc_state->hw.gamma_lut); +drm_property_blob_put (crtc_state->hw.ctm); +} + +void intel_crtc_free_hw_state (struct intel_crtc_state *crtc_state) +{ +intel_crtc_put_color_blobs (crtc_state); +} + +void intel_crtc_copy_color_blobs (struct intel_crtc_state *crtc_state) +{ +drm_property_replace_blob (&crtc_state->hw.degamma_lut, + crtc_state->uapi.degamma_lut); +drm_property_replace_blob (&crtc_state->hw.gamma_lut, + crtc_state->uapi.gamma_lut); +drm_property_replace_blob (&crtc_state->hw.ctm, + crtc_state->uapi.ctm); +} +/** * intel_crtc_destroy_state - destroy crtc state * @crtc: drm crtc @@ -223,6 +253,7 @@ intel_crtc_destroy_state(struct drm_crtc *crtc,struct intel_crtc_state *crtc_state =to_intel_crtc_state (state);__drm_atomic_helper_crtc_destroy_state (&crtc_state->uapi); +intel_crtc_free_hw_state (crtc_state);kfree (crtc_state); }drivers/gpu/drm/i915/display/intel_atomic.h +2
-0@@ -36,6 +36,8 @@ intel_digital_connector_duplicate_state(struct drm_connector *connector);struct drm_crtc_state *intel_crtc_duplicate_state (struct drm_crtc *crtc);void intel_crtc_destroy_state (struct drm_crtc *crtc,struct drm_crtc_state *state); +void intel_crtc_free_hw_state (struct intel_crtc_state *crtc_state); +void intel_crtc_copy_color_blobs (struct intel_crtc_state *crtc_state);struct drm_atomic_state *intel_atomic_state_alloc (struct drm_device *dev);void intel_atomic_state_clear (struct drm_atomic_state *state);drivers/gpu/drm/i915/display/intel_display.c +68
-18@@ -7185,6 +7185,8 @@ static void intel_crtc_disable_noatomic(struct drm_crtc *crtc, crtc->enabled = false; crtc->state->connector_mask =0 ; crtc->state->encoder_mask =0 ; +intel_crtc_free_hw_state (crtc_state); +memset (&crtc_state->hw,0 ,sizeof (crtc_state->hw));for_each_encoder_on_crtc (crtc->dev, crtc, encoder) encoder->base.crtc =NULL ;@@ -12557,8 +12559,41 @@ static bool check_digital_port_conflicts(struct intel_atomic_state *state)return ret; } +static void +intel_crtc_copy_uapi_to_hw_state_nomodeset (struct intel_crtc_state *crtc_state) +{ +intel_crtc_copy_color_blobs (crtc_state); +} + +static void +intel_crtc_copy_uapi_to_hw_state (struct intel_crtc_state *crtc_state) +{ + crtc_state->hw.enable = crtc_state->uapi.enable; + crtc_state->hw.active = crtc_state->uapi.active; + crtc_state->hw.mode = crtc_state->uapi.mode; + crtc_state->hw.adjusted_mode = crtc_state->uapi.adjusted_mode; +intel_crtc_copy_uapi_to_hw_state_nomodeset (crtc_state); +} + +static void intel_crtc_copy_hw_to_uapi_state (struct intel_crtc_state *crtc_state) +{ + crtc_state->uapi.enable = crtc_state->hw.enable; + crtc_state->uapi.active = crtc_state->hw.active; +WARN_ON (drm_atomic_set_mode_for_crtc (&crtc_state->uapi, &crtc_state->hw.mode) <0 ); + + crtc_state->uapi.adjusted_mode = crtc_state->hw.adjusted_mode; + +/* copy color blobs to uapi */ +drm_property_replace_blob (&crtc_state->uapi.degamma_lut, + crtc_state->hw.degamma_lut); +drm_property_replace_blob (&crtc_state->uapi.gamma_lut, + crtc_state->hw.gamma_lut); +drm_property_replace_blob (&crtc_state->uapi.ctm, + crtc_state->hw.ctm); +} +static int -clear_intel_crtc_state (struct intel_crtc_state *crtc_state) +intel_crtc_prepare_cleared_state (struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);@@ -12568,11 +12603,15 @@ clear_intel_crtc_state(struct intel_crtc_state *crtc_state)if (!saved_state)return -ENOMEM ; +/* free the old crtc_state->hw members */ +intel_crtc_free_hw_state (crtc_state); +/* FIXME: before the switch to atomic started, a new pipe_config was * kzalloc'd. Code that depends on any field being zero should be * fixed, so that the crtc_state can be safely duplicated. For now, * only fields that are know to not cause problems are preserved. */ + saved_state->uapi = crtc_state->uapi; saved_state->scaler_state = crtc_state->scaler_state; saved_state->shared_dpll = crtc_state->shared_dpll; saved_state->dpll_hw_state = crtc_state->dpll_hw_state;@@ -12590,14 +12629,11 @@ clear_intel_crtc_state(struct intel_crtc_state *crtc_state) saved_state->sync_mode_slaves_mask = crtc_state->sync_mode_slaves_mask; -/* Keep base drm_crtc_state intact, only clear our extended struct */ -BUILD_BUG_ON (offsetof(struct intel_crtc_state , base)); -BUILD_BUG_ON (offsetof(struct intel_crtc_state , uapi)); -BUILD_BUG_ON (offsetof(struct intel_crtc_state , hw)); -memcpy (&crtc_state->uapi +1 , &saved_state->uapi +1 , -sizeof (*crtc_state) -sizeof (crtc_state->uapi)); - +memcpy (crtc_state, saved_state,sizeof (*crtc_state));kfree (saved_state); + +intel_crtc_copy_uapi_to_hw_state (crtc_state); +return 0 ; }@@ -12613,10 +12649,6 @@ intel_modeset_pipe_config(struct intel_crtc_state *pipe_config)int i;bool retry = true; - ret =clear_intel_crtc_state (pipe_config); -if (ret) -return ret; - pipe_config->cpu_transcoder = (enum transcoder )to_intel_crtc (crtc)->pipe;@@ -12744,6 +12776,12 @@ intel_modeset_pipe_config(struct intel_crtc_state *pipe_config)DRM_DEBUG_KMS ("hw max bpp: %i, pipe bpp: %i, dithering: %i\n" , base_bpp, pipe_config->pipe_bpp, pipe_config->dither); +/* +* Make drm_calc_timestamping_constants in +* drm_atomic_helper_update_legacy_modeset_state() happy +*/ + pipe_config->uapi.adjusted_mode = pipe_config->hw.adjusted_mode; +return 0 ; }@@ -13473,6 +13511,8 @@ verify_crtc_state(struct intel_crtc *crtc, state = old_crtc_state->uapi.state;__drm_atomic_helper_crtc_destroy_state (&old_crtc_state->uapi); +intel_crtc_free_hw_state (old_crtc_state); + pipe_config = old_crtc_state;memset (pipe_config,0 ,sizeof (*pipe_config)); pipe_config->uapi.crtc = &crtc->base;@@ -14007,14 +14047,24 @@ static int intel_atomic_check(struct drm_device *dev,for_each_oldnew_intel_crtc_in_state (state, crtc, old_crtc_state, new_crtc_state, i) { -if (!needs_modeset (new_crtc_state)) +if (!needs_modeset (new_crtc_state)) { +/* Light copy */ +intel_crtc_copy_uapi_to_hw_state_nomodeset (new_crtc_state); +continue ; + }if (!new_crtc_state->uapi.enable) { +intel_crtc_copy_uapi_to_hw_state (new_crtc_state); + any_ms = true;continue ; } + ret =intel_crtc_prepare_cleared_state (new_crtc_state); +if (ret) + goto fail; + ret =intel_modeset_pipe_config (new_crtc_state);if (ret) goto fail;@@ -17285,6 +17335,7 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)to_intel_crtc_state (crtc->base.state);__drm_atomic_helper_crtc_destroy_state (&crtc_state->uapi); +intel_crtc_free_hw_state (crtc_state);memset (crtc_state,0 ,sizeof (*crtc_state));__drm_atomic_helper_crtc_reset (&crtc->base, &crtc_state->uapi);@@ -17396,15 +17447,14 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)int min_cdclk =0 ;if (crtc_state->hw.active) { -struct drm_display_mode mode; +struct drm_display_mode *mode = &crtc_state->hw.mode;intel_mode_from_pipe_config (&crtc_state->hw.adjusted_mode, crtc_state); - mode = crtc_state->hw.adjusted_mode; - mode.hdisplay = crtc_state->pipe_src_w; - mode.vdisplay = crtc_state->pipe_src_h; -WARN_ON (drm_atomic_set_mode_for_crtc (&crtc_state->uapi, &mode)); + *mode = crtc_state->hw.adjusted_mode; + mode->hdisplay = crtc_state->pipe_src_w; + mode->vdisplay = crtc_state->pipe_src_h;/* * The initial mode needs to be set in order to keep @@ -17415,11 +17465,13 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)* set a flag to indicate that a full recalculation is
drivers/gpu/drm/i915/display/intel_display.c static void intel_modeset_readout_hw_state(struct drm_device *dev) · line 17474
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +3
-1* needed on the next commit. */ - crtc_state->hw.mode.private_flags =I915_MODE_FLAG_INHERITED ; + mode->private_flags =I915_MODE_FLAG_INHERITED ;intel_crtc_compute_pixel_rate (crtc_state);intel_crtc_update_active_timings (crtc_state); + +intel_crtc_copy_hw_to_uapi_state (crtc_state);
Hmm. I wonder if we'd need to do this even if the crtc is not active? No difference in the driver load readout, but it will have some impact on resume readout. OTOH we do the commit_duplicated_state() thing so I guess the old uapi state shouldn't really matter at that point.
Fingers and toes crossed...
Quoted 37 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-0}for_each_intel_plane_on_crtc (&dev_priv->drm, crtc, plane) {drivers/gpu/drm/i915/display/intel_display_types.h +5
-4@@ -757,8 +757,6 @@ enum intel_output_format { };struct intel_crtc_state { -union { -struct drm_crtc_state base;/* * uapi (drm) state. This is the software state shown to userspace. * In particular, the following members are used for bookkeeping: @@ -781,8 +779,11 @@ struct intel_crtc_state {* * During initial hw readout, they need to be copied to uapi. */ -struct drm_crtc_state hw; - }; +struct { +bool active, enable; +struct drm_property_blob *degamma_lut, *gamma_lut, *ctm; +struct drm_display_mode mode, adjusted_mode; + } hw;/** * quirks - bitfield with hw state readout quirks Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 7/12 drm/i915: Add aliases for uapi and hw to plane_state
In reply to Maarten LankhorstPrepare to split up hw and uapi machinally, by adding a uapi and hw alias. We will remove the base in a bit. This is a split from the original uapi/hw patch, which did it all in one go.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 16 ++++++++-------- .../gpu/drm/i915/display/intel_display_types.h | 8 ++++++-- 2 files changed, 14 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +8 -8
@@ -80,22 +80,20 @@ void intel_plane_free(struct intel_plane *plane)struct drm_plane_state *intel_plane_duplicate_state (struct drm_plane *plane) { -struct drm_plane_state *state;struct intel_plane_state *intel_state; - intel_state =kmemdup (plane->state,sizeof (*intel_state),GFP_KERNEL ); + intel_state =to_intel_plane_state (plane->state); + intel_state =kmemdup (intel_state,sizeof (*intel_state),GFP_KERNEL );if (!intel_state)return NULL ; - state = &intel_state->base; - -__drm_atomic_helper_plane_duplicate_state (plane, state); +__drm_atomic_helper_plane_duplicate_state (plane, &intel_state->base); intel_state->vma =NULL ; intel_state->flags =0 ; -return state; +return &intel_state->base; }/**
@@ -110,9 +108,11 @@ void intel_plane_destroy_state(struct drm_plane *plane, struct drm_plane_state *state) { - WARN_ON(to_intel_plane_state(state)->vma); + struct intel_plane_state *plane_state = to_intel_plane_state(state); +WARN_ON (plane_state->vma); -drm_atomic_helper_plane_destroy_state (plane, state); +__drm_atomic_helper_plane_destroy_state (&plane_state->base); +kfree (plane_state); } unsigned int intel_plane_data_rate(const struct intel_crtc_state *crtc_state,
drivers/gpu/drm/i915/display/intel_display_types.h +6 -2
@@ -523,7 +523,11 @@ struct intel_atomic_state { };struct intel_plane_state { -struct drm_plane_state base; +union { +struct drm_plane_state base; +struct drm_plane_state uapi; +struct drm_plane_state hw; + };struct i915_ggtt_view view;struct i915_vma *vma;unsigned long flags;
@@ -1143,7 +1147,7 @@ struct cxsr_latency {#define to_intel_encoder (x) container_of(x, struct intel_encoder, base)#define to_intel_framebuffer (x) container_of(x, struct intel_framebuffer, base)#define to_intel_plane (x) container_of(x, struct intel_plane, base) -#define to_intel_plane_state (x) container_of(x, struct intel_plane_state, base) +#define to_intel_plane_state (x) container_of(x, struct intel_plane_state, uapi)#define intel_fb_obj (x) ((x) ? to_intel_bo((x)->obj[0]) : NULL)struct intel_hdmi {
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 07/12] drm/i915: Add aliases for uapi and hw to plane_state
Quoted 28 lines · Maarten Lankhorst
Prepare to split up hw and uapi machinally, by adding a uapi and hw alias. We will remove the base in a bit. This is a split from the original uapi/hw patch, which did it all in one go.
Signed-off-by Maarten Lankhorst <[email protected]>--- .../gpu/drm/i915/display/intel_atomic_plane.c | 16 ++++++++-------- .../gpu/drm/i915/display/intel_display_types.h | 8 ++++++-- 2 files changed, 14 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +2
-2@@ -80,22 +80,20 @@ void intel_plane_free(struct intel_plane *plane)struct drm_plane_state *intel_plane_duplicate_state (struct drm_plane *plane) { -struct drm_plane_state *state;struct intel_plane_state *intel_state; - intel_state =kmemdup (plane->state,sizeof (*intel_state),GFP_KERNEL ); + intel_state =to_intel_plane_state (plane->state); + intel_state =kmemdup (intel_state,sizeof (*intel_state),GFP_KERNEL );if (!intel_state)return NULL ;
drivers/gpu/drm/i915/display/intel_atomic_plane.c void intel_plane_free(struct intel_plane *plane) · line 96
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_atomic_plane.c +2
-4- state = &intel_state->base; - -__drm_atomic_helper_plane_duplicate_state (plane, state); +__drm_atomic_helper_plane_duplicate_state (plane, &intel_state->base); intel_state->vma =NULL ; intel_state->flags =0 ; -return state; +return &intel_state->base;
Could use a bit of cleanup on the variable names, but let's do that later.
Quoted 50 lines
drivers/gpu/drm/i915/display/intel_atomic_plane.c +4
-2}/** @@ -110,9 +108,11 @@ void intel_plane_destroy_state(struct drm_plane *plane, struct drm_plane_state *state) { - WARN_ON(to_intel_plane_state(state)->vma); + struct intel_plane_state *plane_state = to_intel_plane_state(state); +WARN_ON (plane_state->vma); -drm_atomic_helper_plane_destroy_state (plane, state); +__drm_atomic_helper_plane_destroy_state (&plane_state->base); +kfree (plane_state); } unsigned int intel_plane_data_rate(const struct intel_crtc_state *crtc_state,drivers/gpu/drm/i915/display/intel_display_types.h +6
-2@@ -523,7 +523,11 @@ struct intel_atomic_state { };struct intel_plane_state { -struct drm_plane_state base; +union { +struct drm_plane_state base; +struct drm_plane_state uapi; +struct drm_plane_state hw; + };struct i915_ggtt_view view;struct i915_vma *vma;unsigned long flags;@@ -1143,7 +1147,7 @@ struct cxsr_latency {#define to_intel_encoder (x) container_of(x, struct intel_encoder, base)#define to_intel_framebuffer (x) container_of(x, struct intel_framebuffer, base)#define to_intel_plane (x) container_of(x, struct intel_plane, base) -#define to_intel_plane_state (x) container_of(x, struct intel_plane_state, base) +#define to_intel_plane_state (x) container_of(x, struct intel_plane_state, uapi)#define intel_fb_obj (x) ((x) ? to_intel_bo((x)->obj[0]) : NULL)struct intel_hdmi {Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 8/12 drm/i915: Perform manual conversions for plane uapi/hw split, v2.
In reply to Maarten Lankhorstget_crtc_from_states() is called before plane_state is copied to uapi, so use the uapi state there.
intel_legacy_cursor_update() could probably get away with looking at the hw state, but for clarity always look at the uapi state.
Changes since v1:
- Convert entirety of intel_legacy_cursor_update (Ville).
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 8 ++-- drivers/gpu/drm/i915/display/intel_display.c | 45 ++++++++++--------- 2 files changed, 27 insertions(+), 26 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +4 -4
@@ -225,11 +225,11 @@ static struct intel_crtc * get_crtc_from_states(const struct intel_plane_state *old_plane_state, const struct intel_plane_state *new_plane_state) { - if (new_plane_state->base.crtc) - return to_intel_crtc(new_plane_state->base.crtc); + if (new_plane_state->uapi.crtc) + return to_intel_crtc(new_plane_state->uapi.crtc); -if (old_plane_state->base.crtc) -return to_intel_crtc (old_plane_state->base.crtc); +if (old_plane_state->uapi.crtc) +return to_intel_crtc (old_plane_state->uapi.crtc);return NULL ; }
drivers/gpu/drm/i915/display/intel_display.c +23 -22
80 lines not on this page · raw message
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 9/12 drm/i915: Perform automated conversions for plane uapi/hw split, base -> hw.
In reply to Maarten LankhorstSplit up plane_state->base to hw. This is done using the following patch:
@@
struct intel_plane_state *T;
identifier x =~ "^(crtc|fb|alpha|pixel_blend_mode|rotation|color_encoding|color_range)$"; @@
-T->base.x
+T->hw.x
--- drivers/gpu/drm/i915/display/intel_atomic.c | 6 +- .../gpu/drm/i915/display/intel_atomic_plane.c | 8 +- drivers/gpu/drm/i915/display/intel_display.c | 126 +++++++++--------- drivers/gpu/drm/i915/display/intel_fbc.c | 8 +- drivers/gpu/drm/i915/display/intel_overlay.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite.c | 90 ++++++------- drivers/gpu/drm/i915/intel_pm.c | 32 ++--- 7 files changed, 136 insertions(+), 136 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic.c +3 -3
@@ -283,9 +283,9 @@ static void intel_atomic_setup_scaler(struct intel_crtc_scaler_state *scaler_stareturn ;/* set scaler mode */ -if (plane_state && plane_state->base.fb && - plane_state->base.fb->format->is_yuv && - plane_state->base.fb->format->num_planes >1 ) { +if (plane_state && plane_state->hw.fb && + plane_state->hw.fb->format->is_yuv && + plane_state->hw.fb->format->num_planes >1 ) {struct intel_plane *plane =to_intel_plane (plane_state->base.plane);if (IS_GEN (dev_priv,9 ) && !IS_GEMINILAKE (dev_priv)) {
drivers/gpu/drm/i915/display/intel_atomic_plane.c +4 -4
@@ -118,7 +118,7 @@ intel_plane_destroy_state(struct drm_plane *plane,unsigned int intel_plane_data_rate (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state) { -const struct drm_framebuffer *fb = plane_state->base.fb; +const struct drm_framebuffer *fb = plane_state->hw.fb;unsigned int cpp;if (!plane_state->base.visible)
@@ -144,7 +144,7 @@ bool intel_plane_calc_min_cdclk(struct intel_atomic_state *state,struct drm_i915_private *dev_priv =to_i915 (plane->base.dev);const struct intel_plane_state *plane_state =intel_atomic_get_new_plane_state (state, plane); -struct intel_crtc *crtc =to_intel_crtc (plane_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (plane_state->hw.crtc);struct intel_crtc_state *crtc_state;if (!plane_state->base.visible || !plane->min_cdclk)
@@ -182,7 +182,7 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_ struct intel_plane_state *new_plane_state) {struct intel_plane *plane =to_intel_plane (new_plane_state->base.plane); -const struct drm_framebuffer *fb = new_plane_state->base.fb; +const struct drm_framebuffer *fb = new_plane_state->hw.fb;int ret; new_crtc_state->active_planes &= ~BIT (plane->id);
@@ -192,7 +192,7 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_ new_crtc_state->min_cdclk[plane->id] =0 ; new_plane_state->base.visible = false; -if (!new_plane_state->base.crtc && !old_plane_state->base.crtc) +if (!new_plane_state->hw.crtc && !old_plane_state->hw.crtc)return 0 ; ret = plane->check_plane (new_crtc_state, new_plane_state);
drivers/gpu/drm/i915/display/intel_display.c +63 -63
404 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_fbc.c +4 -4
@@ -662,7 +662,7 @@ static void intel_fbc_update_state_cache(struct intel_crtc *crtc,struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_fbc *fbc = &dev_priv->fbc;struct intel_fbc_state_cache *cache = &fbc->state_cache; -struct drm_framebuffer *fb = plane_state->base.fb; +struct drm_framebuffer *fb = plane_state->hw.fb; cache->vma =NULL ; cache->flags =0 ;
@@ -671,7 +671,7 @@ static void intel_fbc_update_state_cache(struct intel_crtc *crtc,if (IS_HASWELL (dev_priv) ||IS_BROADWELL (dev_priv)) cache->crtc.hsw_bdw_pixel_rate = crtc_state->pixel_rate; - cache->plane.rotation = plane_state->base.rotation; + cache->plane.rotation = plane_state->hw.rotation;/* * Src coordinates are already rotated by 270 degrees for * the 90/270 degree plane rotation cases (to match the
@@ -684,7 +684,7 @@ static void intel_fbc_update_state_cache(struct intel_crtc *crtc, cache->plane.adjusted_y = plane_state->color_plane[0 ].y; cache->plane.y = plane_state->base.src.y1 >>16 ; - cache->plane.pixel_blend_mode = plane_state->base.pixel_blend_mode; + cache->plane.pixel_blend_mode = plane_state->hw.pixel_blend_mode;if (!cache->plane.visible)return ;
@@ -1047,7 +1047,7 @@ void intel_fbc_choose_crtc(struct drm_i915_private *dev_priv,* to pipe or plane A. */ for_each_new_intel_plane_in_state (state, plane, plane_state, i) {struct intel_crtc_state *crtc_state; -struct intel_crtc *crtc =to_intel_crtc (plane_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (plane_state->hw.crtc);if (!plane->has_fbc)continue ;
drivers/gpu/drm/i915/display/intel_overlay.c +1 -1
@@ -669,7 +669,7 @@ static void update_colorkey(struct intel_overlay *overlay, flags |=DST_KEY_ENABLE ;if (state->base.visible) - format = state->base.fb->format->format; + format = state->hw.fb->format->format;switch (format) {case DRM_FORMAT_C8 :
drivers/gpu/drm/i915/display/intel_sprite.c +45 -45
294 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.c +16 -16
@@ -801,7 +801,7 @@ static bool intel_wm_plane_visible(const struct intel_crtc_state *crtc_state,* around this problem with the watermark code. */ if (plane->id ==PLANE_CURSOR ) -return plane_state->base.fb !=NULL ; +return plane_state->hw.fb !=NULL ;else return plane_state->base.visible; }
@@ -1088,7 +1088,7 @@ static u16 g4x_compute_wm(const struct intel_crtc_state *crtc_state,if (!intel_wm_plane_visible (crtc_state, plane_state))return 0 ; - cpp = plane_state->base.fb->format->cpp[0 ]; + cpp = plane_state->hw.fb->format->cpp[0 ];/* * Not 100% sure which way ELK should go here as the
@@ -1308,8 +1308,8 @@ static int g4x_compute_pipe_wm(struct intel_crtc_state *crtc_state)for_each_oldnew_intel_plane_in_state (state, plane, old_plane_state, new_plane_state, i) { -if (new_plane_state->base.crtc != &crtc->base && - old_plane_state->base.crtc != &crtc->base) +if (new_plane_state->hw.crtc != &crtc->base && + old_plane_state->hw.crtc != &crtc->base)continue ;if (g4x_raw_plane_wm_compute (crtc_state, new_plane_state))
@@ -1593,7 +1593,7 @@ static u16 vlv_compute_wm_level(const struct intel_crtc_state *crtc_state,if (!intel_wm_plane_visible (crtc_state, plane_state))return 0 ; - cpp = plane_state->base.fb->format->cpp[0 ]; + cpp = plane_state->hw.fb->format->cpp[0 ]; clock = adjusted_mode->crtc_clock; htotal = adjusted_mode->crtc_htotal; width = crtc_state->pipe_src_w;
@@ -1829,8 +1829,8 @@ static int vlv_compute_pipe_wm(struct intel_crtc_state *crtc_state)for_each_oldnew_intel_plane_in_state (state, plane, old_plane_state, new_plane_state, i) { -if (new_plane_state->base.crtc != &crtc->base && - old_plane_state->base.crtc != &crtc->base) +if (new_plane_state->hw.crtc != &crtc->base && + old_plane_state->hw.crtc != &crtc->base)continue ;if (vlv_raw_plane_wm_compute (crtc_state, new_plane_state))
@@ -2475,7 +2475,7 @@ static u32 ilk_compute_pri_wm(const struct intel_crtc_state *crtc_state,if (!intel_wm_plane_visible (crtc_state, plane_state))return 0 ; - cpp = plane_state->base.fb->format->cpp[0 ]; + cpp = plane_state->hw.fb->format->cpp[0 ]; method1 =ilk_wm_method1 (crtc_state->pixel_rate, cpp, mem_value);
@@ -2507,7 +2507,7 @@ static u32 ilk_compute_spr_wm(const struct intel_crtc_state *crtc_state,if (!intel_wm_plane_visible (crtc_state, plane_state))return 0 ; - cpp = plane_state->base.fb->format->cpp[0 ]; + cpp = plane_state->hw.fb->format->cpp[0 ]; method1 =ilk_wm_method1 (crtc_state->pixel_rate, cpp, mem_value); method2 = ilk_wm_method2(crtc_state->pixel_rate,
@@ -2533,7 +2533,7 @@ static u32 ilk_compute_cur_wm(const struct intel_crtc_state *crtc_state,if (!intel_wm_plane_visible (crtc_state, plane_state))return 0 ; - cpp = plane_state->base.fb->format->cpp[0 ]; + cpp = plane_state->hw.fb->format->cpp[0 ]; return ilk_wm_method2(crtc_state->pixel_rate, crtc_state->hw.adjusted_mode.crtc_htotal,
@@ -2551,7 +2551,7 @@ static u32 ilk_compute_fbc_wm(const struct intel_crtc_state *crtc_state,if (!intel_wm_plane_visible (crtc_state, plane_state))return 0 ; - cpp = plane_state->base.fb->format->cpp[0 ]; + cpp = plane_state->hw.fb->format->cpp[0 ];return ilk_wm_fbc (pri_val,drm_rect_width (&plane_state->base.dst), cpp); }
@@ -4091,7 +4091,7 @@ skl_plane_relative_data_rate(const struct intel_crtc_state *crtc_state, int color_plane) {struct intel_plane *plane =to_intel_plane (plane_state->base.plane); -const struct drm_framebuffer *fb = plane_state->base.fb; +const struct drm_framebuffer *fb = plane_state->hw.fb;u32 data_rate;u32 width =0 , height =0 ;uint_fixed_16_16_t down_scale_amount;
@@ -4612,7 +4612,7 @@ skl_compute_plane_wm_params(const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state, struct skl_wm_params *wp, int color_plane) { - const struct drm_framebuffer *fb = plane_state->base.fb; + const struct drm_framebuffer *fb = plane_state->hw.fb;int width;/*
@@ -4624,7 +4624,7 @@ skl_compute_plane_wm_params(const struct intel_crtc_state *crtc_state,return skl_compute_wm_params (crtc_state, width, fb->format, fb->modifier, - plane_state->base.rotation, + plane_state->hw.rotation,skl_adjusted_plane_pixel_rate (crtc_state, plane_state), wp, color_plane); }
@@ -4903,7 +4903,7 @@ static int skl_build_plane_wm(struct intel_crtc_state *crtc_state, const struct intel_plane_state *plane_state) {struct intel_plane *plane =to_intel_plane (plane_state->base.plane); -const struct drm_framebuffer *fb = plane_state->base.fb; +const struct drm_framebuffer *fb = plane_state->hw.fb;enum plane_id plane_id = plane->id;int ret;
@@ -4936,7 +4936,7 @@ static int icl_build_plane_wm(struct intel_crtc_state *crtc_state,return 0 ;if (plane_state->planar_linked_plane) { -const struct drm_framebuffer *fb = plane_state->base.fb; +const struct drm_framebuffer *fb = plane_state->hw.fb;enum plane_id y_plane_id = plane_state->planar_linked_plane->id;WARN_ON (!intel_wm_plane_visible (crtc_state, plane_state));
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 09/12] drm/i915: Perform automated conversions for plane uapi/hw split, base -> hw.
Quoted 52 lines · Maarten Lankhorst
Split up
plane_state->baseto hw. This is done using the following patch:@@
structintel_plane_state*T;
identifier x =~ "^(crtc|fb|alpha|pixel_blend_mode|rotation|color_encoding|color_range)$"; @@(quoted diff) +1
-1-T->base.x +T->hw.xSigned-off-by Maarten Lankhorst <[email protected]>Reviewed-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_atomic.c | 6 +- .../gpu/drm/i915/display/intel_atomic_plane.c | 8 +- drivers/gpu/drm/i915/display/intel_display.c | 126 +++++++++--------- drivers/gpu/drm/i915/display/intel_fbc.c | 8 +- drivers/gpu/drm/i915/display/intel_overlay.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite.c | 90 ++++++------- drivers/gpu/drm/i915/intel_pm.c | 32 ++--- 7 files changed, 136 insertions(+), 136 deletions(-)drivers/gpu/drm/i915/display/intel_atomic.c +3
-3@@ -283,9 +283,9 @@ static void intel_atomic_setup_scaler(struct intel_crtc_scaler_state *scaler_stareturn ;/* set scaler mode */ -if (plane_state && plane_state->base.fb && - plane_state->base.fb->format->is_yuv && - plane_state->base.fb->format->num_planes >1 ) { +if (plane_state && plane_state->hw.fb && + plane_state->hw.fb->format->is_yuv && + plane_state->hw.fb->format->num_planes >1 ) {struct intel_plane *plane =to_intel_plane (plane_state->base.plane);if (IS_GEN (dev_priv,9 ) && !IS_GEMINILAKE (dev_priv)) {drivers/gpu/drm/i915/display/intel_atomic_plane.c +1
-1@@ -118,7 +118,7 @@ intel_plane_destroy_state(struct drm_plane *plane,unsigned int intel_plane_data_rate (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state) { -const struct drm_framebuffer *fb = plane_state->base.fb; +const struct drm_framebuffer *fb = plane_state->hw.fb;unsigned int cpp;if (!plane_state->base.visible)
drivers/gpu/drm/i915/display/intel_atomic_plane.c bool intel_plane_calc_min_cdclk(struct intel_atomic_state *state, · line 147
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_atomic_plane.c +1
-1@@ -144,7 +144,7 @@ bool intel_plane_calc_min_cdclk(struct intel_atomic_state *state,struct drm_i915_private *dev_priv =to_i915 (plane->base.dev);const struct intel_plane_state *plane_state =intel_atomic_get_new_plane_state (state, plane); -struct intel_crtc *crtc =to_intel_crtc (plane_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (plane_state->hw.crtc);
Good :)
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 10/12 drm/i915: Perform automated conversions for plane uapi/hw split, base -> uapi.
In reply to Maarten LankhorstSplit up plane_state->base to uapi. This is done using the following patch, ran after the previous commit that splits out any hw references:
@@
struct intel_plane_state *T;
identifier x;
@@
-T->base.x
+T->uapi.x
@@
struct intel_plane_state *T;
@@
-T->base
+T->uapi
--- drivers/gpu/drm/i915/display/intel_atomic.c | 2 +- .../gpu/drm/i915/display/intel_atomic_plane.c | 30 +- drivers/gpu/drm/i915/display/intel_display.c | 262 +++++++++--------- drivers/gpu/drm/i915/display/intel_fbc.c | 12 +- drivers/gpu/drm/i915/display/intel_overlay.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite.c | 136 ++++----- drivers/gpu/drm/i915/intel_pm.c | 57 ++-- 7 files changed, 251 insertions(+), 250 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic.c +1 -1
@@ -286,7 +286,7 @@ static void intel_atomic_setup_scaler(struct intel_crtc_scaler_state *scaler_staif (plane_state && plane_state->hw.fb && plane_state->hw.fb->format->is_yuv && plane_state->hw.fb->format->num_planes >1 ) { -struct intel_plane *plane =to_intel_plane (plane_state->base.plane); +struct intel_plane *plane =to_intel_plane (plane_state->uapi.plane);if (IS_GEN (dev_priv,9 ) && !IS_GEMINILAKE (dev_priv)) { mode =SKL_PS_SCALER_MODE_NV12 ;
drivers/gpu/drm/i915/display/intel_atomic_plane.c +15 -15
@@ -56,7 +56,7 @@ struct intel_plane *intel_plane_alloc(void)return ERR_PTR (-ENOMEM ); } -__drm_atomic_helper_plane_reset (&plane->base, &plane_state->base); +__drm_atomic_helper_plane_reset (&plane->base, &plane_state->uapi); plane_state->scaler_id =-1 ;return plane;
@@ -88,12 +88,12 @@ intel_plane_duplicate_state(struct drm_plane *plane)if (!intel_state)return NULL ; -__drm_atomic_helper_plane_duplicate_state (plane, &intel_state->base); +__drm_atomic_helper_plane_duplicate_state (plane, &intel_state->uapi); intel_state->vma =NULL ; intel_state->flags =0 ; -return &intel_state->base; +return &intel_state->uapi; }/**
@@ -111,7 +111,7 @@ intel_plane_destroy_state(struct drm_plane *plane,struct intel_plane_state *plane_state =to_intel_plane_state (state);WARN_ON (plane_state->vma); -__drm_atomic_helper_plane_destroy_state (&plane_state->base); +__drm_atomic_helper_plane_destroy_state (&plane_state->uapi);kfree (plane_state); }
@@ -121,7 +121,7 @@ unsigned int intel_plane_data_rate(const struct intel_crtc_state *crtc_state,const struct drm_framebuffer *fb = plane_state->hw.fb;unsigned int cpp; -if (!plane_state->base.visible) +if (!plane_state->uapi.visible)return 0 ; cpp = fb->format->cpp[0 ];
@@ -147,7 +147,7 @@ bool intel_plane_calc_min_cdclk(struct intel_atomic_state *state,struct intel_crtc *crtc =to_intel_crtc (plane_state->hw.crtc);struct intel_crtc_state *crtc_state; -if (!plane_state->base.visible || !plane->min_cdclk) +if (!plane_state->uapi.visible || !plane->min_cdclk)return false; crtc_state =intel_atomic_get_new_crtc_state (state, crtc);
@@ -181,7 +181,7 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_const struct intel_plane_state *old_plane_state, struct intel_plane_state *new_plane_state) { - struct intel_plane *plane = to_intel_plane(new_plane_state->base.plane); + struct intel_plane *plane = to_intel_plane(new_plane_state->uapi.plane);const struct drm_framebuffer *fb = new_plane_state->hw.fb;int ret;
@@ -190,7 +190,7 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_ new_crtc_state->c8_planes &= ~BIT (plane->id); new_crtc_state->data_rate[plane->id] =0 ; new_crtc_state->min_cdclk[plane->id] =0 ; - new_plane_state->base.visible = false; + new_plane_state->uapi.visible = false;if (!new_plane_state->hw.crtc && !old_plane_state->hw.crtc)return 0 ;
@@ -200,18 +200,18 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_return ret;/* FIXME pre-g4x don't work like this */ -if (new_plane_state->base.visible) +if (new_plane_state->uapi.visible) new_crtc_state->active_planes |=BIT (plane->id); -if (new_plane_state->base.visible && +if (new_plane_state->uapi.visible &&drm_format_info_is_yuv_semiplanar (fb->format)) new_crtc_state->nv12_planes |=BIT (plane->id); -if (new_plane_state->base.visible && +if (new_plane_state->uapi.visible && fb->format->format ==DRM_FORMAT_C8 ) new_crtc_state->c8_planes |=BIT (plane->id); -if (new_plane_state->base.visible || old_plane_state->base.visible) +if (new_plane_state->uapi.visible || old_plane_state->uapi.visible) new_crtc_state->update_planes |=BIT (plane->id); new_crtc_state->data_rate[plane->id] =
@@ -246,7 +246,7 @@ int intel_plane_atomic_check(struct intel_atomic_state *state,const struct intel_crtc_state *old_crtc_state;struct intel_crtc_state *new_crtc_state; - new_plane_state->base.visible = false; + new_plane_state->uapi.visible = false;if (!crtc)return 0 ;
@@ -355,7 +355,7 @@ void skl_update_planes_on_crtc(struct intel_atomic_state *state,struct intel_plane_state *new_plane_state =intel_atomic_get_new_plane_state (state, plane); -if (new_plane_state->base.visible) { +if (new_plane_state->uapi.visible) {intel_update_plane (plane, new_crtc_state, new_plane_state); }else if (new_plane_state->planar_slave) { struct intel_plane *master =
@@ -395,7 +395,7 @@ void i9xx_update_planes_on_crtc(struct intel_atomic_state *state, !(update_mask & BIT(plane->id)))continue ; -if (new_plane_state->base.visible) +if (new_plane_state->uapi.visible)intel_update_plane (plane, new_crtc_state, new_plane_state);else intel_disable_plane (plane, new_crtc_state);
drivers/gpu/drm/i915/display/intel_display.c +131 -131
730 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_fbc.c +6 -6
@@ -430,7 +430,7 @@ static bool multiple_pipes_ok(struct intel_crtc *crtc,if (!no_fbc_on_multiple_pipes (dev_priv))return true; -if (plane_state->base.visible) +if (plane_state->uapi.visible) fbc->visible_pipes_mask |= (1 << pipe);else fbc->visible_pipes_mask &= ~(1 << pipe);
@@ -677,12 +677,12 @@ static void intel_fbc_update_state_cache(struct intel_crtc *crtc,* the 90/270 degree plane rotation cases (to match the * GTT mapping), hence no need to account for rotation here. */ - cache->plane.src_w =drm_rect_width (&plane_state->base.src) >>16 ; - cache->plane.src_h =drm_rect_height (&plane_state->base.src) >>16 ; - cache->plane.visible = plane_state->base.visible; + cache->plane.src_w =drm_rect_width (&plane_state->uapi.src) >>16 ; + cache->plane.src_h =drm_rect_height (&plane_state->uapi.src) >>16 ; + cache->plane.visible = plane_state->uapi.visible; cache->plane.adjusted_x = plane_state->color_plane[0 ].x; cache->plane.adjusted_y = plane_state->color_plane[0 ].y; - cache->plane.y = plane_state->base.src.y1 >>16 ; + cache->plane.y = plane_state->uapi.src.y1 >>16 ; cache->plane.pixel_blend_mode = plane_state->hw.pixel_blend_mode;
@@ -1052,7 +1052,7 @@ void intel_fbc_choose_crtc(struct drm_i915_private *dev_priv,if (!plane->has_fbc)continue ; -if (!plane_state->base.visible) +if (!plane_state->uapi.visible)continue ; crtc_state =intel_atomic_get_new_crtc_state (state, crtc);
drivers/gpu/drm/i915/display/intel_overlay.c +1 -1
@@ -668,7 +668,7 @@ static void update_colorkey(struct intel_overlay *overlay,if (overlay->color_key_enabled) flags |=DST_KEY_ENABLE ; -if (state->base.visible) +if (state->uapi.visible) format = state->hw.fb->format->format;switch (format) {
drivers/gpu/drm/i915/display/intel_sprite.c +68 -68
369 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.c +29 -28
183 lines not on this page · raw message
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 11/12 drm/i915: Complete plane hw and uapi split, v2.
In reply to Maarten LankhorstSplitting plane state is easier than splitting crtc_state, before plane check we copy the drm properties to hw so we can do the same in bigjoiner later on.
We copy the state after we did all the modeset handling, but fortunately i915 seems to be split correctly and nothing during modeset looks at plane_state.
Changes since v1:
- Do not clear hw state on duplication.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 37 ++++++++++++++++++- .../gpu/drm/i915/display/intel_atomic_plane.h | 2 + drivers/gpu/drm/i915/display/intel_display.c | 1 + .../drm/i915/display/intel_display_types.h | 23 +++++++++--- 4 files changed, 57 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +36 -1
@@ -93,6 +93,10 @@ intel_plane_duplicate_state(struct drm_plane *plane) intel_state->vma =NULL ; intel_state->flags =0 ; +/* add reference to fb */ +if (intel_state->hw.fb) +drm_framebuffer_get (intel_state->hw.fb); +return &intel_state->uapi; }
@@ -112,6 +116,8 @@ intel_plane_destroy_state(struct drm_plane *plane,WARN_ON (plane_state->vma);__drm_atomic_helper_plane_destroy_state (&plane_state->uapi); +if (plane_state->hw.fb) +drm_framebuffer_put (plane_state->hw.fb);kfree (plane_state); }
@@ -176,15 +182,44 @@ bool intel_plane_calc_min_cdclk(struct intel_atomic_state *state,return false; } +static void intel_plane_clear_hw_state (struct intel_plane_state *plane_state) +{ +if (plane_state->hw.fb) +drm_framebuffer_put (plane_state->hw.fb); + +memset (&plane_state->hw,0 ,sizeof (plane_state->hw)); +} + +void intel_plane_copy_uapi_to_hw_state (struct intel_plane_state *plane_state, +const struct intel_plane_state *from_plane_state) +{ +intel_plane_clear_hw_state (plane_state); + + plane_state->hw.crtc = from_plane_state->uapi.crtc; + plane_state->hw.fb = from_plane_state->uapi.fb; +if (plane_state->hw.fb) +drm_framebuffer_get (plane_state->hw.fb); + + plane_state->hw.alpha = from_plane_state->uapi.alpha; + plane_state->hw.pixel_blend_mode = + from_plane_state->uapi.pixel_blend_mode; + plane_state->hw.rotation = from_plane_state->uapi.rotation; + plane_state->hw.color_encoding = from_plane_state->uapi.color_encoding; + plane_state->hw.color_range = from_plane_state->uapi.color_range; +} +int intel_plane_atomic_check_with_state (const struct intel_crtc_state *old_crtc_state,struct intel_crtc_state *new_crtc_state,const struct intel_plane_state *old_plane_state,struct intel_plane_state *new_plane_state) {struct intel_plane *plane =to_intel_plane (new_plane_state->uapi.plane); -const struct drm_framebuffer *fb = new_plane_state->hw.fb; +const struct drm_framebuffer *fb;int ret; +intel_plane_copy_uapi_to_hw_state (new_plane_state, new_plane_state); + fb = new_plane_state->hw.fb; + new_crtc_state->active_planes &= ~BIT (plane->id); new_crtc_state->nv12_planes &= ~BIT (plane->id); new_crtc_state->c8_planes &= ~BIT (plane->id);
drivers/gpu/drm/i915/display/intel_atomic_plane.h +2 -0
@@ -20,6 +20,8 @@ extern const struct drm_plane_helper_funcs intel_plane_helper_funcs;unsigned int intel_plane_data_rate (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state); +void intel_plane_copy_uapi_to_hw_state (struct intel_plane_state *plane_state, +const struct intel_plane_state *from_plane_state);void intel_update_plane (struct intel_plane *plane,const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state);
drivers/gpu/drm/i915/display/intel_display.c +1 -0
@@ -3283,6 +3283,7 @@ intel_find_initial_plane_obj(struct intel_crtc *intel_crtc, plane_state->fb = fb; plane_state->crtc = &intel_crtc->base; +intel_plane_copy_uapi_to_hw_state (intel_state, intel_state);atomic_or (to_intel_plane (primary)->frontbuffer_bit, &to_intel_frontbuffer (fb)->bits);
drivers/gpu/drm/i915/display/intel_display_types.h +18 -5
@@ -523,11 +523,24 @@ struct intel_atomic_state { };struct intel_plane_state { -union { -struct drm_plane_state base; -struct drm_plane_state uapi; -struct drm_plane_state hw; - }; +struct drm_plane_state uapi; + +/* +* actual hardware state, the state we program to the hardware. +* The following members are used to verify the hardware state: +* During initial hw readout, they need to be copied from uapi. +*/ +struct { +struct drm_crtc *crtc; +struct drm_framebuffer *fb; + +u16 alpha; +uint16_t pixel_blend_mode; +unsigned int rotation; +enum drm_color_encoding color_encoding; +enum drm_color_range color_range; + } hw; +struct i915_ggtt_view view;struct i915_vma *vma;unsigned long flags;
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerPATCH 12/12 drm/i915: Remove special case slave handling during hw programming, v3.
In reply to Maarten LankhorstNow that we split plane_state which I didn't want to do yet, we can program the slave plane without requiring the master plane.
This is useful for programming bigjoiner slave planes as well. We will no longer need the master's plane_state.
Changes since v1:
- set src/dst rectangles after copy_uapi_to_hw_state.
Changes since v2:
- Use the correct color_plane for pre-gen11 by using planar_linked_plane != NULL.
- Use drm_format_info_is_yuv_semiplanar in skl_plane_check() to fix gen11+.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 30 +--------- .../gpu/drm/i915/display/intel_atomic_plane.h | 3 - drivers/gpu/drm/i915/display/intel_display.c | 18 ++++++ .../drm/i915/display/intel_display_types.h | 6 +- drivers/gpu/drm/i915/display/intel_sprite.c | 57 ++++++------------- 5 files changed, 40 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +2 -28
@@ -348,16 +348,6 @@ void intel_update_plane(struct intel_plane *plane, plane->update_plane (plane, crtc_state, plane_state); } -void intel_update_slave (struct intel_plane *plane, -const struct intel_crtc_state *crtc_state, -const struct intel_plane_state *plane_state) -{ -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); - -trace_intel_update_plane (&plane->base, crtc); - plane->update_slave (plane, crtc_state, plane_state); -} -void intel_disable_plane (struct intel_plane *plane,const struct intel_crtc_state *crtc_state) {
@@ -390,25 +380,9 @@ void skl_update_planes_on_crtc(struct intel_atomic_state *state,struct intel_plane_state *new_plane_state =intel_atomic_get_new_plane_state (state, plane); -if (new_plane_state->uapi.visible) { +if (new_plane_state->uapi.visible || + new_plane_state->planar_slave) {intel_update_plane (plane, new_crtc_state, new_plane_state); - }else if (new_plane_state->planar_slave) { -struct intel_plane *master = - new_plane_state->planar_linked_plane; - -/* -* We update the slave plane from this function because -* programming it from the master plane's update_plane -* callback runs into issues when the Y plane is -* reassigned, disabled or used by a different plane. -* -* The slave plane is updated with the master plane's -* plane_state. -*/ - new_plane_state = -intel_atomic_get_new_plane_state (state, master); - -intel_update_slave (plane, new_crtc_state, new_plane_state); }else {intel_disable_plane (plane, new_crtc_state); }
drivers/gpu/drm/i915/display/intel_atomic_plane.h +0 -3
@@ -25,9 +25,6 @@ void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state,void intel_update_plane (struct intel_plane *plane,const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state); -void intel_update_slave (struct intel_plane *plane, -const struct intel_crtc_state *crtc_state, -const struct intel_plane_state *plane_state);void intel_disable_plane (struct intel_plane *plane,const struct intel_crtc_state *crtc_state);struct intel_plane *intel_plane_alloc (void );
drivers/gpu/drm/i915/display/intel_display.c +18 -0
@@ -11985,6 +11985,24 @@ static int icl_check_nv12_planes(struct intel_crtc_state *crtc_state) crtc_state->active_planes |=BIT (linked->id); crtc_state->update_planes |=BIT (linked->id);DRM_DEBUG_KMS ("Using %s as Y plane for %s\n" , linked->base.name, plane->base.name); + +/* Copy parameters to slave plane */ + linked_state->ctl = plane_state->ctl |PLANE_CTL_YUV420_Y_PLANE ; + linked_state->color_ctl = plane_state->color_ctl; + linked_state->color_plane[0 ] = plane_state->color_plane[0 ]; + +intel_plane_copy_uapi_to_hw_state (linked_state, plane_state); + linked_state->uapi.src = plane_state->uapi.src; + linked_state->uapi.dst = plane_state->uapi.dst; + +if (icl_is_hdr_plane (dev_priv, plane->id)) { +if (linked->id ==PLANE_SPRITE5 ) + plane_state->cus_ctl |=PLANE_CUS_PLANE_7 ; +else if (linked->id ==PLANE_SPRITE4 ) + plane_state->cus_ctl |=PLANE_CUS_PLANE_6 ; +else +MISSING_CASE (linked->id); + } }return 0 ;
drivers/gpu/drm/i915/display/intel_display_types.h +3 -3
@@ -563,6 +563,9 @@ struct intel_plane_state {/* plane color control register */ u32 color_ctl; +/* chroma upsampler control register */ +u32 cus_ctl; +/* * scaler_id * = -1 : not using a scaler
@@ -1122,9 +1125,6 @@ struct intel_plane {void (*update_plane)(struct intel_plane *plane,const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state); -void (*update_slave)(struct intel_plane *plane, -const struct intel_crtc_state *crtc_state, -const struct intel_plane_state *plane_state);void (*disable_plane)(struct intel_plane *plane,const struct intel_crtc_state *crtc_state);bool (*get_hw_state)(struct intel_plane *plane,enum pipe *pipe);
drivers/gpu/drm/i915/display/intel_sprite.c +17 -40
107 lines not on this page · raw message
Signature · 6 lines
2.24.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for series starting with [01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
In reply to Maarten Lankhorst== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
URL : https://patchwork.freedesktop.org/series/68818/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 9b2cc20d8bdd drm/i915: Handle a few more cases for crtc hw/uapi split, v3. 78143d4c9617 drm/i915: Add aliases for uapi and hw to crtc_state -:67: WARNING:LONG_LINE: line over 100 characters #67: FILE: drivers/gpu/drm/i915/display/intel_display.h:453: + to_intel_plane_state(__drm_atomic_get_current_plane_state((crtc_state)->uapi.state, &plane->base))))
total: 0 errors, 1 warnings, 0 checks, 83 lines checkedeb466377bcbc drm/i915: Perform manual conversions for crtc uapi/hw split, v2.1fbed6b1a84d drm/i915: Perform automated conversions for crtc uapi/hw split, base -> hw. -:10: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #10:
Split up crtc_state->base to hw where appropriate. This is done using the following patch:
-:1414: CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided #1414: FILE: drivers/gpu/drm/i915/display/intel_display.c:17290:
+ crtc_state->hw.active = crtc_state->hw.enable =
total: 0 errors, 1 warnings, 1 checks, 2062 lines checkedf959eaf1a286 drm/i915: Perform automated conversions for crtc uapi/hw split, base -> uapi. -:2400: ERROR:CODE_INDENT: code indent should use tabs where possible #2400: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:211:
+^I^I^I^I new_crtc_state->uapi.event);$
-:2400: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2400: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:211:
+ drm_crtc_arm_vblank_event(&crtc->base,
+ new_crtc_state->uapi.event);
total: 1 errors, 0 warnings, 1 checks, 2552 lines checkedb358921c226b drm/i915: Complete crtc hw/uapi split, v6.
-:15: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #15:
- Clear crtc_state->hw on disable, instead of using clear_intel_crtc_state().
total: 0 errors, 1 warnings, 0 checks, 256 lines checked c676c7bb5999 drm/i915: Add aliases for uapi and hw to plane_state -:49: WARNING:LINE_SPACING: Missing a blank line after declarations #49: FILE: drivers/gpu/drm/i915/display/intel_atomic_plane.c:112:
+ struct intel_plane_state *plane_state = to_intel_plane_state(state);
+ WARN_ON(plane_state->vma);
total: 0 errors, 1 warnings, 0 checks, 59 lines checked0ecc60519b7c drm/i915: Perform manual conversions for plane uapi/hw split, v2.c2b6232f3d9c drm/i915: Perform automated conversions for plane uapi/hw split, base -> hw. -:14: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #14:
identifier x =~ "^(crtc|fb|alpha|pixel_blend_mode|rotation|color_encoding|color_range)$";
-:921: CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "plane_state->hw.fb" #921: FILE: drivers/gpu/drm/i915/intel_pm.c:804:
+ return plane_state->hw.fb != NULL;
total: 0 errors, 1 warnings, 1 checks, 898 lines checked55cbd4882027 drm/i915: Perform automated conversions for plane uapi/hw split, base -> uapi. -:745: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #745: FILE: drivers/gpu/drm/i915/display/intel_display.c:11181:
+ unsigned width = drm_rect_width(&plane_state->uapi.dst);
-:746: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #746: FILE: drivers/gpu/drm/i915/display/intel_display.c:11182:
+ unsigned height = drm_rect_height(&plane_state->uapi.dst);
-:814: CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided #814: FILE: drivers/gpu/drm/i915/display/intel_display.c:11781:
+ plane_state->uapi.visible = visible = false;
-:1541: WARNING:LONG_LINE: line over 100 characters #1541: FILE: drivers/gpu/drm/i915/intel_pm.c:3103:
+ (drm_rect_width(&sprstate->uapi.dst) != drm_rect_width(&sprstate->uapi.src) >> 16 ||
-:1542: WARNING:LONG_LINE: line over 100 characters #1542: FILE: drivers/gpu/drm/i915/intel_pm.c:3104:
+ drm_rect_height(&sprstate->uapi.dst) != drm_rect_height(&sprstate->uapi.src) >> 16);
total: 0 errors, 4 warnings, 1 checks, 1438 lines checked 8f679719a098 drm/i915: Complete plane hw and uapi split, v2. -:143: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t' #143: FILE: drivers/gpu/drm/i915/display/intel_display_types.h:538:
+ uint16_t pixel_blend_mode;
total: 0 errors, 0 warnings, 1 checks, 107 lines checked11fff1570363 drm/i915: Remove special case slave handling during hw programming, v3.
-:19: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #19:
- Use the correct color_plane for pre-gen11 by using planar_linked_plane != NULL.
total: 0 errors, 1 warnings, 0 checks, 201 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
In reply to Maarten Lankhorst== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
URL : https://patchwork.freedesktop.org/series/68818/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7228 -> Patchwork_15089
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/index.html
Known issues
------------
Here are the changes found in Patchwork_15089 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_chamelium@hdmi-crc-fast:
- fi-kbl-7500u: [PASS][1] -> [FAIL][2] ([fdo#109635 ])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-kbl-7500u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-kbl-7500u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][3] -> [DMESG-WARN][4] ([fdo#102614])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-hsw-peppy/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-hsw-peppy/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_create@basic-files:
- fi-icl-u3: [INCOMPLETE][5] ([fdo#107713] / [fdo#109100]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-icl-u3/igt@[email protected]
* igt@gem_exec_suspend@basic-s3:
- {fi-cml-s}: [DMESG-WARN][7] ([fdo#111764]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-cml-s/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-cml-s/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-bsw-n3050: [DMESG-FAIL][9] ([fdo#112176]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-bsw-n3050/igt@i915_selftest@live_blt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-bsw-n3050/igt@i915_selftest@live_blt.html
* igt@i915_selftest@live_hangcheck:
- {fi-icl-u4}: [INCOMPLETE][11] ([fdo#107713] / [fdo#108569]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-icl-u4/igt@i915_selftest@live_hangcheck.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-icl-u4/igt@i915_selftest@live_hangcheck.html
* igt@kms_chamelium@hdmi-edid-read:
- fi-kbl-7500u: [FAIL][13] ([fdo#109483]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-kbl-7500u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-kbl-7500u/igt@[email protected]
#### Warnings ####
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][15] ([fdo#111045] / [fdo#111096]) -> [FAIL][16] ([fdo#111407])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/fi-kbl-7500u/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/fi-kbl-7500u/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#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#111764]: https://bugs.freedesktop.org/show_bug.cgi?id=111764
[fdo#112176]: https://bugs.freedesktop.org/show_bug.cgi?id=112176
Participating hosts (50 -> 41)
------------------------------
Additional (1): fi-kbl-soraka
Missing (10): fi-ilk-m540 fi-tgl-u fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-bwr-2160 fi-gdg-551 fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7228 -> Patchwork_15089
CI-20190529: 20190529
CI_DRM_7228: 5efc505498d2612451f6230a6347f4e0e1960e50 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5253: d46ccb32cf693e8d8253543e9a4fbe5eaef4aa41 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15089: 11fff1570363ce0ec997d6655f410943f69ba036 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
11fff1570363 drm/i915: Remove special case slave handling during hw programming, v3. 8f679719a098 drm/i915: Complete plane hw and uapi split, v2.55cbd4882027 drm/i915: Perform automated conversions for plane uapi/hw split, base -> uapi. c2b6232f3d9c drm/i915: Perform automated conversions for plane uapi/hw split, base -> hw. 0ecc60519b7c drm/i915: Perform manual conversions for plane uapi/hw split, v2. c676c7bb5999 drm/i915: Add aliases for uapi and hw to plane_state b358921c226b drm/i915: Complete crtc hw/uapi split, v6.f959eaf1a286 drm/i915: Perform automated conversions for crtc uapi/hw split, base -> uapi. 1fbed6b1a84d drm/i915: Perform automated conversions for crtc uapi/hw split, base -> hw. eb466377bcbc drm/i915: Perform manual conversions for crtc uapi/hw split, v2. 78143d4c9617 drm/i915: Add aliases for uapi and hw to crtc_state 9b2cc20d8bdd drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
In reply to Maarten Lankhorst== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.
URL : https://patchwork.freedesktop.org/series/68818/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7228_full -> Patchwork_15089_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_15089_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- {shard-tglb}: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb2/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_15089_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@vcs1-s3:
- shard-iclb: [PASS][2] -> [SKIP][3] ([fdo#109276] / [fdo#112080])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb2/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb6/igt@[email protected]
* igt@gem_exec_parallel@vcs1-fds:
- shard-iclb: [PASS][4] -> [SKIP][5] ([fdo#112080]) +7 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb4/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb5/igt@[email protected]
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [PASS][6] -> [SKIP][7] ([fdo#112146]) +4 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb6/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb4/igt@[email protected]
* igt@gem_linear_blits@interruptible:
- shard-apl: [PASS][8] -> [INCOMPLETE][9] ([fdo#103927] / [fdo#112067])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-apl2/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-apl7/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-snb: [PASS][10] -> [DMESG-WARN][11] ([fdo#111870]) +1 similar issue
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-snb5/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-snb5/igt@[email protected]
* igt@gem_userptr_blits@sync-unmap:
- shard-hsw: [PASS][12] -> [DMESG-WARN][13] ([fdo#111870])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-hsw1/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-hsw5/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][14] -> [DMESG-WARN][15] ([fdo#108566]) +5 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-kbl2/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-kbl2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-glk: [PASS][16] -> [FAIL][17] ([fdo#105363])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-glk4/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-glk6/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: [PASS][18] -> [FAIL][19] ([fdo#105363])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-skl3/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-skl1/igt@[email protected]
* igt@kms_flip@flip-vs-panning-interruptible:
- shard-apl: [PASS][20] -> [INCOMPLETE][21] ([fdo#103927]) +2 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-apl3/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-apl7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [PASS][22] -> [FAIL][23] ([fdo#103167]) +7 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b:
- shard-snb: [PASS][24] -> [SKIP][25] ([fdo#109271]) +4 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-snb6/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-snb1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][26] -> [FAIL][27] ([fdo#108145] / [fdo#110403])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-skl5/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-skl10/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][28] -> [SKIP][29] ([fdo#109441]) +1 similar issue
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb6/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-iclb: [PASS][30] -> [FAIL][31] ([fdo#109016]) +2 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb2/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb1/igt@[email protected]
* igt@prime_busy@hang-bsd2:
- shard-iclb: [PASS][32] -> [SKIP][33] ([fdo#109276]) +13 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb1/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb8/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_exec@basic-invalid-context-vcs1:
- shard-iclb: [SKIP][34] ([fdo#112080]) -> [PASS][35] +5 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb5/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb4/igt@[email protected]
* {igt@gem_ctx_persistence@rcs0-queued}:
- shard-iclb: [FAIL][36] ([fdo#112180]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb1/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb8/igt@[email protected]
* {igt@gem_ctx_persistence@vcs1-queued}:
- {shard-tglb}: [FAIL][38] ([fdo#112180]) -> [PASS][39]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb8/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb1/igt@[email protected]
* igt@gem_exec_balancer@smoke:
- shard-iclb: [SKIP][40] ([fdo#110854]) -> [PASS][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb5/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb1/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-bsd1:
- shard-iclb: [SKIP][42] ([fdo#109276]) -> [PASS][43] +24 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb6/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb4/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-blt:
- {shard-tglb}: [INCOMPLETE][44] ([fdo#111747]) -> [PASS][45]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb2/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb5/igt@[email protected]
* igt@gem_exec_schedule@wide-bsd:
- shard-iclb: [SKIP][46] ([fdo#112146]) -> [PASS][47] +4 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb1/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb8/igt@[email protected]
* igt@gem_exec_suspend@basic-s3-devices:
- {shard-tglb}: [INCOMPLETE][48] ([fdo#111832] / [fdo#111850]) -> [PASS][49]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb5/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb2/igt@[email protected]
* igt@gem_mocs_settings@mocs-rc6-bsd2:
- {shard-tglb}: [TIMEOUT][50] ([fdo#112126]) -> [PASS][51]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb7/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb1/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-busy-gup:
- shard-hsw: [DMESG-WARN][52] ([fdo#111870]) -> [PASS][53]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-hsw8/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-hsw7/igt@[email protected]
* {igt@i915_pm_dc@dc6-psr}:
- shard-iclb: [FAIL][54] ([fdo#110548]) -> [PASS][55]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb8/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb5/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-apl: [DMESG-WARN][56] ([fdo#108566]) -> [PASS][57] +4 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-apl4/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-apl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x21-onscreen:
- shard-hsw: [INCOMPLETE][58] ([fdo#103540]) -> [PASS][59]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-hsw7/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-hsw8/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-b-64x64-bottom-edge:
- {shard-tglb}: [INCOMPLETE][60] ([fdo#112035 ]) -> [PASS][61]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb8/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb6/igt@[email protected]
* igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions:
- {shard-tglb}: [TIMEOUT][62] ([fdo#112168]) -> [PASS][63]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb7/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb1/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-skl: [INCOMPLETE][64] ([fdo#109507]) -> [PASS][65]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-skl4/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-skl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [DMESG-WARN][66] ([fdo#108566]) -> [PASS][67] +4 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-kbl2/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-kbl1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [FAIL][68] ([fdo#103167]) -> [PASS][69]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb8/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbcpsr-indfb-scaledprimary:
- {shard-tglb}: [FAIL][70] ([fdo#103167]) -> [PASS][71] +4 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb1/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb3/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-apl: [INCOMPLETE][72] ([fdo#103927]) -> [PASS][73] +1 similar issue
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-apl3/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-apl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- {shard-tglb}: [DMESG-WARN][74] ([fdo#111600]) -> [PASS][75]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-tglb1/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-tglb4/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][76] ([fdo#109642] / [fdo#111068]) -> [PASS][77]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb3/igt@kms_psr2_su@page_flip.html
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [SKIP][78] ([fdo#109441]) -> [PASS][79] +1 similar issue
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb7/igt@kms_psr@psr2_primary_page_flip.html
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_setmode@basic:
- shard-apl: [FAIL][80] ([fdo#99912]) -> [PASS][81]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-apl4/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-apl2/igt@[email protected]
#### Warnings ####
* igt@gem_mocs_settings@mocs-reset-bsd2:
- shard-iclb: [SKIP][82] ([fdo#109276]) -> [FAIL][83] ([fdo#111330])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb6/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb4/igt@[email protected]
* igt@gem_mocs_settings@mocs-settings-bsd2:
- shard-iclb: [FAIL][84] ([fdo#111330]) -> [SKIP][85] ([fdo#109276]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-iclb2/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-iclb8/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-kbl: [INCOMPLETE][86] ([fdo#103665]) -> [DMESG-WARN][87] ([fdo#108566])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7228/shard-kbl7/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/shard-kbl3/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# 112000 ]: https://bugs.freedesktop.org/show_bug.cgi?id= 112000 [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109507]: https://bugs.freedesktop.org/show_bug.cgi?id=109507
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110548]: https://bugs.freedesktop.org/show_bug.cgi?id=110548
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#111600]: https://bugs.freedesktop.org/show_bug.cgi?id=111600
[fdo#111606]: https://bugs.freedesktop.org/show_bug.cgi?id=111606
[fdo#111646]: https://bugs.freedesktop.org/show_bug.cgi?id=111646
[fdo#111671]: https://bugs.freedesktop.org/show_bug.cgi?id=111671
[fdo#111677]: https://bugs.freedesktop.org/show_bug.cgi?id=111677
[fdo#111703]: https://bugs.freedesktop.org/show_bug.cgi?id=111703
[fdo#111747]: https://bugs.freedesktop.org/show_bug.cgi?id=111747
[fdo#111781]: https://bugs.freedesktop.org/show_bug.cgi?id=111781
[fdo#111795 ]: https://bugs.freedesktop.org/show_bug.cgi?id=111795
[fdo#111832]: https://bugs.freedesktop.org/show_bug.cgi?id=111832
[fdo#111850]: https://bugs.freedesktop.org/show_bug.cgi?id=111850
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#111884]: https://bugs.freedesktop.org/show_bug.cgi?id=111884
[fdo#112035 ]: https://bugs.freedesktop.org/show_bug.cgi?id=112035
[fdo#112067]: https://bugs.freedesktop.org/show_bug.cgi?id=112067
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112126]: https://bugs.freedesktop.org/show_bug.cgi?id=112126
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[fdo#112168]: https://bugs.freedesktop.org/show_bug.cgi?id=112168
[fdo#112180]: https://bugs.freedesktop.org/show_bug.cgi?id=112180
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (11 -> 11)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7228 -> Patchwork_15089
CI-20190529: 20190529
CI_DRM_7228: 5efc505498d2612451f6230a6347f4e0e1960e50 @ git://anongit.freedesktop.or
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15089/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx