drm/i915: Finish off static DRRS
Subsystems (3)
v2 cover drm/i915: Finish off static DRRS
From: Ville Syrjälä <[email protected]>
(Hopefully) finish the static DRRS work:
- Finish off a bunch of fixed mode refactoring
- Allow fixed modes with any refresh rate, including ones that exceed the panel's preferred mode. Useful for laptops with high refresh rate panels (120-300Hz seen in the wild so far)
- Allow static DRRS on all eDP ports and the LVDS port since static DRRS is just a normal modeset and thus no special hardware support is required for it
v2: just a rebase
Ville Syrjälä (11):
drm/i915: Extract intel_edp_has_drrs()
drm/i915: Put fixed modes directly onto the panel's fixed_modes list drm/i915: Refactor non-EDID fixed mode duplication drm/i915: Nuke intel_drrs_init()
drm/i915: Combine the EDID fixed_mode+downclock_mode lookup into one drm/i915: Stop duplicating the EDID fixed/downclock modes drm/i915: Allow an arbitrary number of downclock modes drm/i915: Allow higher refresh rate alternate fixed modes drm/i915: Move intel_drrs_compute_config() into intel_dp.c drm/i915: Allow static DRRS on all eDP ports
drm/i915: Allow static DRRS on LVDS
drivers/gpu/drm/i915/display/icl_dsi.c | 8 +- drivers/gpu/drm/i915/display/intel_dp.c | 98 ++++++++-- drivers/gpu/drm/i915/display/intel_drrs.c | 114 ----------- drivers/gpu/drm/i915/display/intel_drrs.h | 5 - drivers/gpu/drm/i915/display/intel_dvo.c | 9 +- drivers/gpu/drm/i915/display/intel_lvds.c | 32 ++-- drivers/gpu/drm/i915/display/intel_panel.c | 209 +++++++++------------ drivers/gpu/drm/i915/display/intel_panel.h | 21 +-- drivers/gpu/drm/i915/display/intel_sdvo.c | 10 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +- 10 files changed, 214 insertions(+), 301 deletions(-)
Signature · 1 line
2.34.1
PATCH v2 1/11 drm/i915: Extract intel_edp_has_drrs()
From: Ville Syrjälä <[email protected]>
Pull all the eDP specific platform/port checks out from intel_drrs_init() into intel_edp_has_drrs().
--- drivers/gpu/drm/i915/display/intel_dp.c | 35 ++++++++++++++++++++++- drivers/gpu/drm/i915/display/intel_drrs.c | 24 ---------------- 2 files changed, 34 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +34 -1
@@ -4976,6 +4976,39 @@ intel_edp_add_properties(struct intel_dp *intel_dp) fixed_mode->vdisplay); } +static bool +intel_edp_has_drrs (struct intel_dp *intel_dp) +{ +struct intel_connector *connector = intel_dp->attached_connector; +struct intel_encoder *encoder = &dp_to_dig_port (intel_dp)->base; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); + +if (DISPLAY_VER (i915) <5 ) { +drm_dbg_kms (&i915->drm, +"[CONNECTOR:%d:%s] DRRS not supported on platform\n" , + connector->base.base.id, connector->base.name); +return false; + } + +if ((DISPLAY_VER (i915) <8 && !HAS_GMCH (i915)) && + encoder->port !=PORT_A ) { +drm_dbg_kms (&i915->drm, +"[CONNECTOR:%d:%s] DRRS not supported on [ENCODER:%d:%s]\n" , + connector->base.base.id, connector->base.name, + encoder->base.base.id, encoder->base.name); +return false; + } + +if (i915->vbt.drrs_type ==DRRS_TYPE_NONE ) { +drm_dbg_kms (&i915->drm, +"[CONNECTOR:%d:%s] DRRS not supported according to VBT\n" , + connector->base.base.id, connector->base.name); +return false; + } + +return true; +} +static bool intel_edp_init_connector (struct intel_dp *intel_dp,struct intel_connector *intel_connector) {
@@ -5041,7 +5074,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, intel_connector->edid = edid; fixed_mode =intel_panel_edid_fixed_mode (intel_connector); -if (fixed_mode) +if (fixed_mode &&intel_edp_has_drrs (intel_dp)) downclock_mode =intel_drrs_init (intel_connector, fixed_mode);/* MSO requires information from the EDID */
drivers/gpu/drm/i915/display/intel_drrs.c +0 -24
@@ -373,32 +373,8 @@ intel_drrs_init(struct intel_connector *connector, const struct drm_display_mode *fixed_mode) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -struct intel_encoder *encoder = connector->encoder;struct drm_display_mode *downclock_mode; -if (DISPLAY_VER (dev_priv) <5 ) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported on platform\n" , - connector->base.base.id, connector->base.name); -return NULL ; - } - -if ((DISPLAY_VER (dev_priv) <8 && !HAS_GMCH (dev_priv)) && - encoder->port !=PORT_A ) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported on [ENCODER:%d:%s]\n" , - connector->base.base.id, connector->base.name, - encoder->base.base.id, encoder->base.name); -return NULL ; - } - -if (dev_priv->vbt.drrs_type ==DRRS_TYPE_NONE ) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported according to VBT\n" , - connector->base.base.id, connector->base.name); -return NULL ; - } - downclock_mode =intel_panel_edid_downclock_mode (connector, fixed_mode);if (!downclock_mode) { drm_dbg_kms(&dev_priv->drm,
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 01/11] drm/i915: Extract intel_edp_has_drrs()
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Pull all the eDP specific platform/port checks out from
intel_drrs_init()intointel_edp_has_drrs().Signed-off-by Ville Syrjälä <[email protected]>
Whoops, forgot to reply to this one,
Quoted 95 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 35 ++++++++++++++++++++++- drivers/gpu/drm/i915/display/intel_drrs.c | 24 ---------------- 2 files changed, 34 insertions(+), 25 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +34
-1@@ -4976,6 +4976,39 @@ intel_edp_add_properties(struct intel_dp *intel_dp) fixed_mode->vdisplay); } +static bool +intel_edp_has_drrs (struct intel_dp *intel_dp) +{ +struct intel_connector *connector = intel_dp->attached_connector; +struct intel_encoder *encoder = &dp_to_dig_port (intel_dp)->base; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); + +if (DISPLAY_VER (i915) <5 ) { +drm_dbg_kms (&i915->drm, +"[CONNECTOR:%d:%s] DRRS not supported on platform\n" , + connector->base.base.id, connector->base.name); +return false; + } + +if ((DISPLAY_VER (i915) <8 && !HAS_GMCH (i915)) && + encoder->port !=PORT_A ) { +drm_dbg_kms (&i915->drm, +"[CONNECTOR:%d:%s] DRRS not supported on [ENCODER:%d:%s]\n" , + connector->base.base.id, connector->base.name, + encoder->base.base.id, encoder->base.name); +return false; + } + +if (i915->vbt.drrs_type ==DRRS_TYPE_NONE ) { +drm_dbg_kms (&i915->drm, +"[CONNECTOR:%d:%s] DRRS not supported according to VBT\n" , + connector->base.base.id, connector->base.name); +return false; + } + +return true; +} +static bool intel_edp_init_connector (struct intel_dp *intel_dp,struct intel_connector *intel_connector) {@@ -5041,7 +5074,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, intel_connector->edid = edid; fixed_mode =intel_panel_edid_fixed_mode (intel_connector); -if (fixed_mode) +if (fixed_mode &&intel_edp_has_drrs (intel_dp)) downclock_mode =intel_drrs_init (intel_connector, fixed_mode);/* MSO requires information from the EDID */ drivers/gpu/drm/i915/display/intel_drrs.c +0
-24@@ -373,32 +373,8 @@ intel_drrs_init(struct intel_connector *connector, const struct drm_display_mode *fixed_mode) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -struct intel_encoder *encoder = connector->encoder;struct drm_display_mode *downclock_mode; -if (DISPLAY_VER (dev_priv) <5 ) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported on platform\n" , - connector->base.base.id, connector->base.name); -return NULL ; - } - -if ((DISPLAY_VER (dev_priv) <8 && !HAS_GMCH (dev_priv)) && - encoder->port !=PORT_A ) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported on [ENCODER:%d:%s]\n" , - connector->base.base.id, connector->base.name, - encoder->base.base.id, encoder->base.name); -return NULL ; - } - -if (dev_priv->vbt.drrs_type ==DRRS_TYPE_NONE ) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported according to VBT\n" , - connector->base.base.id, connector->base.name); -return NULL ; - } - downclock_mode =intel_panel_edid_downclock_mode (connector, fixed_mode);if (!downclock_mode) { drm_dbg_kms(&dev_priv->drm,
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 2/11 drm/i915: Put fixed modes directly onto the panel's fixed_modes list
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Rather than having the connector init get the fixed mode back from intel_panel and then feed it straight back into intel_panel_init() let's just make the fixed mode lookup put the mode directly onto the panel's fixed_modes list. Avoids the pointless round trip and opens the door for further enhancements to the fixed mode handling.
--- drivers/gpu/drm/i915/display/icl_dsi.c | 8 +-- drivers/gpu/drm/i915/display/intel_dp.c | 22 ++++---- drivers/gpu/drm/i915/display/intel_drrs.c | 20 ++----- drivers/gpu/drm/i915/display/intel_drrs.h | 3 +- drivers/gpu/drm/i915/display/intel_dvo.c | 9 ++- drivers/gpu/drm/i915/display/intel_lvds.c | 31 +++++------ drivers/gpu/drm/i915/display/intel_panel.c | 64 +++++++++------------- drivers/gpu/drm/i915/display/intel_panel.h | 22 +++----- drivers/gpu/drm/i915/display/intel_sdvo.c | 10 ++-- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +-- 10 files changed, 81 insertions(+), 117 deletions(-)
drivers/gpu/drm/i915/display/icl_dsi.c +4 -4
@@ -1993,7 +1993,6 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)struct intel_encoder *encoder;struct intel_connector *intel_connector;struct drm_connector *connector; -struct drm_display_mode *fixed_mode;enum port port;if (!intel_bios_is_dsi_present (dev_priv, &port))
@@ -2050,15 +2049,16 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)intel_connector_attach_encoder (intel_connector, encoder);mutex_lock (&dev->mode_config.mutex); - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +intel_panel_add_vbt_lfp_fixed_mode (intel_connector);mutex_unlock (&dev->mode_config.mutex); -if (!fixed_mode) { +if (!intel_panel_preferred_fixed_mode (intel_connector)) {drm_err (&dev_priv->drm,"DSI fixed mode info missing\n" ); goto err; } -intel_panel_init (intel_connector, fixed_mode,NULL ); +intel_panel_init (intel_connector); +intel_backlight_setup (intel_connector,INVALID_PIPE );if (dev_priv->vbt.dsi.config->dual_link)
drivers/gpu/drm/i915/display/intel_dp.c +12 -10
@@ -5015,8 +5015,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp);struct drm_device *dev = &dev_priv->drm;struct drm_connector *connector = &intel_connector->base; -struct drm_display_mode *fixed_mode =NULL ; -struct drm_display_mode *downclock_mode =NULL ; +struct drm_display_mode *fixed_mode;bool has_dpcd;enum pipe pipe =INVALID_PIPE ;struct edid *edid;
@@ -5073,20 +5072,22 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, } intel_connector->edid = edid; - fixed_mode =intel_panel_edid_fixed_mode (intel_connector); -if (fixed_mode &&intel_edp_has_drrs (intel_dp)) - downclock_mode =intel_drrs_init (intel_connector, fixed_mode); +intel_panel_add_edid_fixed_mode (intel_connector); +if (intel_panel_preferred_fixed_mode (intel_connector) && +intel_edp_has_drrs (intel_dp)) +intel_drrs_init (intel_connector);/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);/* multiply the mode clock and horizontal timings for MSO */ -intel_edp_mso_mode_fixup (intel_connector, fixed_mode); -intel_edp_mso_mode_fixup (intel_connector, downclock_mode); +list_for_each_entry (fixed_mode, &intel_connector->panel.fixed_modes, head) +intel_edp_mso_mode_fixup (intel_connector, fixed_mode);/* fallback to VBT if available for eDP */ -if (!fixed_mode) - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +if (!intel_panel_preferred_fixed_mode (intel_connector)) +intel_panel_add_vbt_lfp_fixed_mode (intel_connector); +mutex_unlock (&dev->mode_config.mutex);if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) {
@@ -5108,7 +5109,8 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, pipe_name(pipe)); } -intel_panel_init (intel_connector, fixed_mode, downclock_mode); +intel_panel_init (intel_connector); +if (!(dev_priv->quirks &QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK )) intel_connector->panel.backlight.power = intel_pps_backlight_power;intel_backlight_setup (intel_connector, pipe);
drivers/gpu/drm/i915/display/intel_drrs.c +4 -16
@@ -358,7 +358,6 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)/** * intel_drrs_init - Init DRRS for eDP connector * @connector: eDP connector -* @fixed_mode: preferred mode of panel * * This function is called only once at driver load to initialize * DRRS support for the connector.
@@ -368,25 +367,14 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)* DRRS support is determined by the presence of downclock mode (apart * from VBT setting). */ -struct drm_display_mode * -intel_drrs_init (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode) +void intel_drrs_init (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -struct drm_display_mode *downclock_mode; - - downclock_mode =intel_panel_edid_downclock_mode (connector, fixed_mode); -if (!downclock_mode) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported due to lack of downclock mode\n" , - connector->base.base.id, connector->base.name); -return NULL ; - } + +intel_panel_add_edid_downclock_mode (connector);drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] %s DRRS supported\n" , +"[CONNECTOR:%d:%s] DRRS type: %s\n" , connector->base.base.id, connector->base.name,intel_drrs_type_str (dev_priv->vbt.drrs_type)); - -return downclock_mode; }
drivers/gpu/drm/i915/display/intel_drrs.h +1 -2
@@ -27,7 +27,6 @@ void intel_drrs_compute_config(struct intel_connector *connector,struct intel_crtc_state *pipe_config, int output_bpp, bool constant_n);void intel_crtc_drrs_init (struct intel_crtc *crtc); -struct drm_display_mode *intel_drrs_init (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode); +void intel_drrs_init (struct intel_connector *connector);#endif /* __INTEL_DRRS_H__ */
drivers/gpu/drm/i915/display/intel_dvo.c +4 -5
@@ -520,8 +520,6 @@ void intel_dvo_init(struct drm_i915_private *dev_priv)intel_connector_attach_encoder (intel_connector, intel_encoder);if (dvo->type ==INTEL_DVO_CHIP_LVDS ) { -struct drm_display_mode *fixed_mode; -/* * For our LVDS chipsets, we should hopefully be able * to dig the fixed panel mode out of the BIOS data.
@@ -530,10 +528,11 @@ void intel_dvo_init(struct drm_i915_private *dev_priv)* headers, likely), so for now, just get the current * mode being output through DVO. */ - fixed_mode =intel_panel_encoder_fixed_mode (intel_connector, - intel_encoder); +intel_panel_add_encoder_fixed_mode (intel_connector, + intel_encoder); + +intel_panel_init (intel_connector); -intel_panel_init (intel_connector, fixed_mode,NULL ); intel_dvo->panel_wants_dither = true; }
drivers/gpu/drm/i915/display/intel_lvds.c +13 -18
@@ -829,8 +829,6 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)struct intel_connector *intel_connector;struct drm_connector *connector;struct drm_encoder *encoder; -struct drm_display_mode *fixed_mode =NULL ; -struct drm_display_mode *downclock_mode =NULL ;struct edid *edid;i915_reg_t lvds_reg;u32 lvds;
@@ -969,30 +967,29 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) } intel_connector->edid = edid; - fixed_mode =intel_panel_edid_fixed_mode (intel_connector); -if (fixed_mode) - goto out; +/* Try EDID first */ +intel_panel_add_edid_fixed_mode (intel_connector);/* Failed to get EDID, what about VBT? */ - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); -if (fixed_mode) - goto out; +if (!intel_panel_preferred_fixed_mode (intel_connector)) +intel_panel_add_vbt_lfp_fixed_mode (intel_connector);/* -* If we didn't get EDID, try checking if the panel is already turned -* on. If so, assume that whatever is currently programmed is the -* correct mode. +* If we didn't get a fixed mode from EDID or VBT, try checking +* if the panel is already turned on. If so, assume that +* whatever is currently programmed is the correct mode. */ - fixed_mode =intel_panel_encoder_fixed_mode (intel_connector, intel_encoder); +if (!intel_panel_preferred_fixed_mode (intel_connector)) +intel_panel_add_encoder_fixed_mode (intel_connector, intel_encoder); + +mutex_unlock (&dev->mode_config.mutex);/* If we still don't have a mode after all that, give up. */ -if (!fixed_mode) +if (!intel_panel_preferred_fixed_mode (intel_connector)) goto failed; -out: -mutex_unlock (&dev->mode_config.mutex); +intel_panel_init (intel_connector); -intel_panel_init (intel_connector, fixed_mode, downclock_mode);intel_backlight_setup (intel_connector,INVALID_PIPE ); lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder);
@@ -1004,8 +1001,6 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)return ; failed: -mutex_unlock (&dev->mode_config.mutex); -drm_dbg_kms (&dev_priv->drm,"No LVDS modes found, disabling.\n" );drm_connector_cleanup (connector);drm_encoder_cleanup (encoder);
drivers/gpu/drm/i915/display/intel_panel.c +26 -38
178 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_panel.h +7 -15
@@ -18,9 +18,7 @@ struct intel_connector;struct intel_crtc_state ;struct intel_encoder ; -int intel_panel_init (struct intel_connector *connector, -struct drm_display_mode *fixed_mode, -struct drm_display_mode *downclock_mode); +int intel_panel_init (struct intel_connector *connector);void intel_panel_fini (struct intel_connector *connector);enum drm_connector_status intel_panel_detect (struct drm_connector *connector,bool force);
@@ -42,17 +40,11 @@ int intel_panel_fitting(struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state);int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode); -struct drm_display_mode * -intel_panel_edid_downclock_mode (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode); -struct drm_display_mode * -intel_panel_edid_fixed_mode (struct intel_connector *connector); -struct drm_display_mode * -intel_panel_vbt_lfp_fixed_mode (struct intel_connector *connector); -struct drm_display_mode * -intel_panel_vbt_sdvo_fixed_mode (struct intel_connector *connector); -struct drm_display_mode * -intel_panel_encoder_fixed_mode (struct intel_connector *connector, -struct intel_encoder *encoder); +void intel_panel_add_edid_fixed_mode (struct intel_connector *connector); +void intel_panel_add_edid_downclock_mode (struct intel_connector *connector); +void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector); +void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector); +void intel_panel_add_encoder_fixed_mode (struct intel_connector *connector, +struct intel_encoder *encoder);#endif /* __INTEL_PANEL_H__ */
drivers/gpu/drm/i915/display/intel_sdvo.c +5 -5
@@ -2871,7 +2871,6 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)struct drm_connector *connector;struct intel_connector *intel_connector;struct intel_sdvo_connector *intel_sdvo_connector; -struct drm_display_mode *fixed_mode;DRM_DEBUG_KMS ("initialising LVDS device %d\n" , device);
@@ -2904,13 +2903,14 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)* Fetch modes from VBT. For SDVO prefer the VBT mode since some * SDVO->LVDS transcoders can't cope with the EDID mode. */ - fixed_mode =intel_panel_vbt_sdvo_fixed_mode (intel_connector); -if (!fixed_mode) { +intel_panel_add_vbt_sdvo_fixed_mode (intel_connector); + +if (!intel_panel_preferred_fixed_mode (intel_connector)) {intel_ddc_get_modes (connector, &intel_sdvo->ddc); - fixed_mode =intel_panel_edid_fixed_mode (intel_connector); +intel_panel_add_edid_fixed_mode (intel_connector); } -intel_panel_init (intel_connector, fixed_mode,NULL ); +intel_panel_init (intel_connector);if (!intel_panel_preferred_fixed_mode (intel_connector)) goto err;
drivers/gpu/drm/i915/display/vlv_dsi.c +5 -4
@@ -1859,7 +1859,7 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv)struct drm_encoder *encoder;struct intel_connector *intel_connector;struct drm_connector *connector; -struct drm_display_mode *current_mode, *fixed_mode; +struct drm_display_mode *current_mode;enum port port;enum pipe pipe;
@@ -1980,15 +1980,16 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv)intel_connector_attach_encoder (intel_connector, intel_encoder);mutex_lock (&dev->mode_config.mutex); - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +intel_panel_add_vbt_lfp_fixed_mode (intel_connector);mutex_unlock (&dev->mode_config.mutex); -if (!fixed_mode) { +if (!intel_panel_preferred_fixed_mode (intel_connector)) {drm_dbg_kms (&dev_priv->drm,"no fixed mode\n" ); goto err_cleanup_connector; } -intel_panel_init (intel_connector, fixed_mode,NULL ); +intel_panel_init (intel_connector); +intel_backlight_setup (intel_connector,INVALID_PIPE );vlv_dsi_add_properties (intel_connector);
Signature · 1 line
2.34.1
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH v2 02/11] drm/i915: Put fixed modes directly onto the panel's fixed_modes list
Quoted 131 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Rather than having the connector init get the fixed mode back from
intel_paneland then feed it straight back intointel_panel_init()let's just make the fixed mode lookup put the mode directly onto the panel'sfixed_modeslist. Avoids the pointless round trip and opens the door for further enhancements to the fixed mode handling.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/icl_dsi.c | 8 +-- drivers/gpu/drm/i915/display/intel_dp.c | 22 ++++---- drivers/gpu/drm/i915/display/intel_drrs.c | 20 ++----- drivers/gpu/drm/i915/display/intel_drrs.h | 3 +- drivers/gpu/drm/i915/display/intel_dvo.c | 9 ++- drivers/gpu/drm/i915/display/intel_lvds.c | 31 +++++------ drivers/gpu/drm/i915/display/intel_panel.c | 64 +++++++++------------- drivers/gpu/drm/i915/display/intel_panel.h | 22 +++----- drivers/gpu/drm/i915/display/intel_sdvo.c | 10 ++-- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +-- 10 files changed, 81 insertions(+), 117 deletions(-)drivers/gpu/drm/i915/display/icl_dsi.c +4
-4@@ -1993,7 +1993,6 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)struct intel_encoder *encoder;struct intel_connector *intel_connector;struct drm_connector *connector; -struct drm_display_mode *fixed_mode;enum port port;if (!intel_bios_is_dsi_present (dev_priv, &port))@@ -2050,15 +2049,16 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)intel_connector_attach_encoder (intel_connector, encoder);mutex_lock (&dev->mode_config.mutex); - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +intel_panel_add_vbt_lfp_fixed_mode (intel_connector);mutex_unlock (&dev->mode_config.mutex); -if (!fixed_mode) { +if (!intel_panel_preferred_fixed_mode (intel_connector)) {drm_err (&dev_priv->drm,"DSI fixed mode info missing\n" ); goto err; } -intel_panel_init (intel_connector, fixed_mode,NULL ); +intel_panel_init (intel_connector); +intel_backlight_setup (intel_connector,INVALID_PIPE );if (dev_priv->vbt.dsi.config->dual_link)drivers/gpu/drm/i915/display/intel_dp.c +12
-10@@ -5015,8 +5015,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp);struct drm_device *dev = &dev_priv->drm;struct drm_connector *connector = &intel_connector->base; -struct drm_display_mode *fixed_mode =NULL ; -struct drm_display_mode *downclock_mode =NULL ; +struct drm_display_mode *fixed_mode;bool has_dpcd;enum pipe pipe =INVALID_PIPE ;struct edid *edid;@@ -5073,20 +5072,22 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, } intel_connector->edid = edid; - fixed_mode =intel_panel_edid_fixed_mode (intel_connector); -if (fixed_mode &&intel_edp_has_drrs (intel_dp)) - downclock_mode =intel_drrs_init (intel_connector, fixed_mode); +intel_panel_add_edid_fixed_mode (intel_connector); +if (intel_panel_preferred_fixed_mode (intel_connector) && +intel_edp_has_drrs (intel_dp)) +intel_drrs_init (intel_connector);/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);/* multiply the mode clock and horizontal timings for MSO */ -intel_edp_mso_mode_fixup (intel_connector, fixed_mode); -intel_edp_mso_mode_fixup (intel_connector, downclock_mode); +list_for_each_entry (fixed_mode, &intel_connector->panel.fixed_modes, head) +intel_edp_mso_mode_fixup (intel_connector, fixed_mode);/* fallback to VBT if available for eDP */ -if (!fixed_mode) - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +if (!intel_panel_preferred_fixed_mode (intel_connector)) +intel_panel_add_vbt_lfp_fixed_mode (intel_connector); +mutex_unlock (&dev->mode_config.mutex);if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) {@@ -5108,7 +5109,8 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, pipe_name(pipe)); } -intel_panel_init (intel_connector, fixed_mode, downclock_mode); +intel_panel_init (intel_connector); +if (!(dev_priv->quirks &QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK )) intel_connector->panel.backlight.power = intel_pps_backlight_power;intel_backlight_setup (intel_connector, pipe);drivers/gpu/drm/i915/display/intel_drrs.c +1
-5@@ -358,7 +358,6 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)/** * intel_drrs_init - Init DRRS for eDP connector * @connector: eDP connector -* @fixed_mode: preferred mode of panel * * This function is called only once at driver load to initialize * DRRS support for the connector. @@ -368,25 +367,14 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)* DRRS support is determined by the presence of downclock mode (apart * from VBT setting). */ -struct drm_display_mode * -intel_drrs_init (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode) +void intel_drrs_init (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -struct drm_display_mode *downclock_mode;
drivers/gpu/drm/i915/display/intel_drrs.c void intel_crtc_drrs_init(struct intel_crtc *crtc) · line 374
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_drrs.c +2
-8- - downclock_mode =intel_panel_edid_downclock_mode (connector, fixed_mode); -if (!downclock_mode) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported due to lack of downclock mode\n" , - connector->base.base.id, connector->base.name); -return NULL ; - } + +intel_panel_add_edid_downclock_mode (connector);
What if there's no downclock mode, just one native mode with one vrefresh? We'll now now say drrs type is this or that below, but it'll never get enabled in compute config?
Should intel_panel_add_edid_downclock_mode() debug log when there's no downclock mode?
BR,
Jani.
Quoted 407 lines
drivers/gpu/drm/i915/display/intel_drrs.c +1
-3drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] %s DRRS supported\n" , +"[CONNECTOR:%d:%s] DRRS type: %s\n" , connector->base.base.id, connector->base.name,intel_drrs_type_str (dev_priv->vbt.drrs_type)); - -return downclock_mode; }drivers/gpu/drm/i915/display/intel_drrs.h +1
-2@@ -27,7 +27,6 @@ void intel_drrs_compute_config(struct intel_connector *connector,struct intel_crtc_state *pipe_config, int output_bpp, bool constant_n);void intel_crtc_drrs_init (struct intel_crtc *crtc); -struct drm_display_mode *intel_drrs_init (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode); +void intel_drrs_init (struct intel_connector *connector);#endif /* __INTEL_DRRS_H__ */ drivers/gpu/drm/i915/display/intel_dvo.c +4
-5@@ -520,8 +520,6 @@ void intel_dvo_init(struct drm_i915_private *dev_priv)intel_connector_attach_encoder (intel_connector, intel_encoder);if (dvo->type ==INTEL_DVO_CHIP_LVDS ) { -struct drm_display_mode *fixed_mode; -/* * For our LVDS chipsets, we should hopefully be able * to dig the fixed panel mode out of the BIOS data. @@ -530,10 +528,11 @@ void intel_dvo_init(struct drm_i915_private *dev_priv)* headers, likely), so for now, just get the current * mode being output through DVO. */ - fixed_mode =intel_panel_encoder_fixed_mode (intel_connector, - intel_encoder); +intel_panel_add_encoder_fixed_mode (intel_connector, + intel_encoder); + +intel_panel_init (intel_connector); -intel_panel_init (intel_connector, fixed_mode,NULL ); intel_dvo->panel_wants_dither = true; }drivers/gpu/drm/i915/display/intel_lvds.c +13
-18@@ -829,8 +829,6 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)struct intel_connector *intel_connector;struct drm_connector *connector;struct drm_encoder *encoder; -struct drm_display_mode *fixed_mode =NULL ; -struct drm_display_mode *downclock_mode =NULL ;struct edid *edid;i915_reg_t lvds_reg;u32 lvds;@@ -969,30 +967,29 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) } intel_connector->edid = edid; - fixed_mode =intel_panel_edid_fixed_mode (intel_connector); -if (fixed_mode) - goto out; +/* Try EDID first */ +intel_panel_add_edid_fixed_mode (intel_connector);/* Failed to get EDID, what about VBT? */ - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); -if (fixed_mode) - goto out; +if (!intel_panel_preferred_fixed_mode (intel_connector)) +intel_panel_add_vbt_lfp_fixed_mode (intel_connector);/* -* If we didn't get EDID, try checking if the panel is already turned -* on. If so, assume that whatever is currently programmed is the -* correct mode. +* If we didn't get a fixed mode from EDID or VBT, try checking +* if the panel is already turned on. If so, assume that +* whatever is currently programmed is the correct mode. */ - fixed_mode =intel_panel_encoder_fixed_mode (intel_connector, intel_encoder); +if (!intel_panel_preferred_fixed_mode (intel_connector)) +intel_panel_add_encoder_fixed_mode (intel_connector, intel_encoder); + +mutex_unlock (&dev->mode_config.mutex);/* If we still don't have a mode after all that, give up. */ -if (!fixed_mode) +if (!intel_panel_preferred_fixed_mode (intel_connector)) goto failed; -out: -mutex_unlock (&dev->mode_config.mutex); +intel_panel_init (intel_connector); -intel_panel_init (intel_connector, fixed_mode, downclock_mode);intel_backlight_setup (intel_connector,INVALID_PIPE ); lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder);@@ -1004,8 +1001,6 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)return ; failed: -mutex_unlock (&dev->mode_config.mutex); -drm_dbg_kms (&dev_priv->drm,"No LVDS modes found, disabling.\n" );drm_connector_cleanup (connector);drm_encoder_cleanup (encoder);drivers/gpu/drm/i915/display/intel_panel.c +26
-38@@ -158,11 +158,11 @@ static bool is_downclock_mode(const struct drm_display_mode *downclock_mode, downclock_mode->clock < fixed_mode->clock; } -struct drm_display_mode * -intel_panel_edid_downclock_mode (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode) +void intel_panel_add_edid_downclock_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); +const struct drm_display_mode *fixed_mode = +intel_panel_preferred_fixed_mode (connector);const struct drm_display_mode *scan, *best_mode =NULL ;struct drm_display_mode *downclock_mode;int best_clock = fixed_mode->clock;@@ -187,29 +187,28 @@ intel_panel_edid_downclock_mode(struct intel_connector *connector, }if (!best_mode) -return NULL ; +return ; downclock_mode =drm_mode_duplicate (&dev_priv->drm, best_mode);if (!downclock_mode) -return NULL ; +return ;drm_dbg_kms (&dev_priv->drm,"[CONNECTOR:%d:%s] using downclock mode from EDID: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name,DRM_MODE_ARG (downclock_mode)); -return downclock_mode; +list_add_tail (&downclock_mode->head, &connector->panel.fixed_modes); } -struct drm_display_mode * -intel_panel_edid_fixed_mode (struct intel_connector *connector) +void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);const struct drm_display_mode *scan;struct drm_display_mode *fixed_mode;if (list_empty (&connector->base.probed_modes)) -return NULL ; +return ;/* prefer fixed mode from EDID if available */ list_for_each_entry (scan, &connector->base.probed_modes, head) {@@ -218,47 +217,45 @@ intel_panel_edid_fixed_mode(struct intel_connector *connector) fixed_mode =drm_mode_duplicate (&dev_priv->drm, scan);if (!fixed_mode) -return NULL ; +return ;drm_dbg_kms (&dev_priv->drm,"[CONNECTOR:%d:%s] using preferred mode from EDID: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name,DRM_MODE_ARG (fixed_mode)); -return fixed_mode; +list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); +return ; } scan =list_first_entry (&connector->base.probed_modes,typeof (*scan), head); - fixed_mode =drm_mode_duplicate (&dev_priv->drm, scan);if (!fixed_mode) -return NULL ; +return ; fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; -drm_dbg_kms (&dev_priv->drm,"[CONNECTOR:%d:%s] using first mode from EDID: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name,DRM_MODE_ARG (fixed_mode)); -return fixed_mode; +list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } -struct drm_display_mode * -intel_panel_vbt_lfp_fixed_mode (struct intel_connector *connector) +void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct drm_display_info *info = &connector->base.display_info;struct drm_display_mode *fixed_mode;if (!dev_priv->vbt.lfp_lvds_vbt_mode) -return NULL ; +return ; fixed_mode =drm_mode_duplicate (&dev_priv->drm, dev_priv->vbt.lfp_lvds_vbt_mode);if (!fixed_mode) -return NULL ; +return ; fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ;@@ -269,39 +266,37 @@ intel_panel_vbt_lfp_fixed_mode(struct intel_connector *connector) info->width_mm = fixed_mode->width_mm; info->height_mm = fixed_mode->height_mm; -return fixed_mode; +list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } -struct drm_display_mode * -intel_panel_vbt_sdvo_fixed_mode (struct intel_connector *connector) +void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct drm_display_mode *fixed_mode;if (!i915->vbt.sdvo_lvds_vbt_mode) -return NULL ; +return ; fixed_mode =drm_mode_duplicate (&i915->drm, i915->vbt.sdvo_lvds_vbt_mode);if (!fixed_mode) -return NULL ; +return ;/* Guarantee the mode is preferred */ fixed_mode->type =DRM_MODE_TYPE_PREFERRED |DRM_MODE_TYPE_DRIVER ; -return fixed_mode; +list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } -struct drm_display_mode * -intel_panel_encoder_fixed_mode (struct intel_connector *connector, -struct intel_encoder *encoder) +void intel_panel_add_encoder_fixed_mode (struct intel_connector *connector, +struct intel_encoder *encoder) {struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct drm_display_mode *fixed_mode; fixed_mode =intel_encoder_current_mode (encoder);if (!fixed_mode) -return NULL ; +return ; drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] using current (BIOS) mode: " DRM_MODE_FMT "\n", connector->base.base.id, connector->base.name,@@ -309,7 +304,7 @@ intel_panel_encoder_fixed_mode(struct intel_connector *connector, fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; -return fixed_mode; +list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); }/* adjusted_mode has been preset to be the panel's fixed mode */ @@ -639,19 +634,12 @@ intel_panel_mode_valid(struct intel_connector *connector,return MODE_OK ; } -int intel_panel_init (struct intel_connector *connector, -struct drm_display_mode *fixed_mode, -struct drm_display_mode *downclock_mode) +int intel_panel_init (struct intel_connector *connector) {struct intel_panel *panel = &connector->panel;intel_backlight_init_funcs (panel); -if (fixed_mode) -list_add_tail (&fixed_mode->head, &panel->fixed_modes); -if (downclock_mode) -list_add_tail (&downclock_mode->head, &panel->fixed_modes); -return 0 ; }drivers/gpu/drm/i915/display/intel_panel.h +7
-15@@ -18,9 +18,7 @@ struct intel_connector;struct intel_crtc_state ;struct intel_encoder ; -int intel_panel_init (struct intel_connector *connector, -struct drm_display_mode *fixed_mode, -struct drm_display_mode *downclock_mode); +int intel_panel_init (struct intel_connector *connector);void intel_panel_fini (struct intel_connector *connector);enum drm_connector_status intel_panel_detect (struct drm_connector *connector,bool force);@@ -42,17 +40,11 @@ int intel_panel_fitting(struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state);int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode); -struct drm_display_mode * -intel_panel_edid_downclock_mode (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode); -struct drm_display_mode * -intel_panel_edid_fixed_mode (struct intel_connector *connector); -struct drm_display_mode * -intel_panel_vbt_lfp_fixed_mode (struct intel_connector *connector); -struct drm_display_mode * -intel_panel_vbt_sdvo_fixed_mode (struct intel_connector *connector); -struct drm_display_mode * -intel_panel_encoder_fixed_mode (struct intel_connector *connector, -struct intel_encoder *encoder); +void intel_panel_add_edid_fixed_mode (struct intel_connector *connector); +void intel_panel_add_edid_downclock_mode (struct intel_connector *connector); +void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector); +void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector); +void intel_panel_add_encoder_fixed_mode (struct intel_connector *connector, +struct intel_encoder *encoder);#endif /* __INTEL_PANEL_H__ */ drivers/gpu/drm/i915/display/intel_sdvo.c +5
-5@@ -2871,7 +2871,6 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)struct drm_connector *connector;struct intel_connector *intel_connector;struct intel_sdvo_connector *intel_sdvo_connector; -struct drm_display_mode *fixed_mode;DRM_DEBUG_KMS ("initialising LVDS device %d\n" , device);@@ -2904,13 +2903,14 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)* Fetch modes from VBT. For SDVO prefer the VBT mode since some * SDVO->LVDS transcoders can't cope with the EDID mode. */ - fixed_mode =intel_panel_vbt_sdvo_fixed_mode (intel_connector); -if (!fixed_mode) { +intel_panel_add_vbt_sdvo_fixed_mode (intel_connector); + +if (!intel_panel_preferred_fixed_mode (intel_connector)) {intel_ddc_get_modes (connector, &intel_sdvo->ddc); - fixed_mode =intel_panel_edid_fixed_mode (intel_connector); +intel_panel_add_edid_fixed_mode (intel_connector); } -intel_panel_init (intel_connector, fixed_mode,NULL ); +intel_panel_init (intel_connector);if (!intel_panel_preferred_fixed_mode (intel_connector)) goto err;drivers/gpu/drm/i915/display/vlv_dsi.c +5
-4@@ -1859,7 +1859,7 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv)struct drm_encoder *encoder;struct intel_connector *intel_connector;struct drm_connector *connector; -struct drm_display_mode *current_mode, *fixed_mode; +struct drm_display_mode *current_mode;enum port port;enum pipe pipe;@@ -1980,15 +1980,16 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv)intel_connector_attach_encoder (intel_connector, intel_encoder);mutex_lock (&dev->mode_config.mutex); - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +intel_panel_add_vbt_lfp_fixed_mode (intel_connector);mutex_unlock (&dev->mode_config.mutex); -if (!fixed_mode) { +if (!intel_panel_preferred_fixed_mode (intel_connector)) {drm_dbg_kms (&dev_priv->drm,"no fixed mode\n" ); goto err_cleanup_connector; } -intel_panel_init (intel_connector, fixed_mode,NULL ); +intel_panel_init (intel_connector); +intel_backlight_setup (intel_connector,INVALID_PIPE );vlv_dsi_add_properties (intel_connector);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH v2 02/11] drm/i915: Put fixed modes directly onto the panel's fixed_modes list
Quoted 39 lines · Jani Nikula
Quoted 23 lines · Ville Syrjala
drivers/gpu/drm/i915/display/intel_drrs.c +1
-5@@ -358,7 +358,6 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)/** * intel_drrs_init - Init DRRS for eDP connector * @connector: eDP connector -* @fixed_mode: preferred mode of panel * * This function is called only once at driver load to initialize * DRRS support for the connector. @@ -368,25 +367,14 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)* DRRS support is determined by the presence of downclock mode (apart * from VBT setting). */ -struct drm_display_mode * -intel_drrs_init (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode) +void intel_drrs_init (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -struct drm_display_mode *downclock_mode;drivers/gpu/drm/i915/display/intel_drrs.c void intel_crtc_drrs_init(struct intel_crtc *crtc) · line 374
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_drrs.c +2
-8- - downclock_mode =intel_panel_edid_downclock_mode (connector, fixed_mode); -if (!downclock_mode) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported due to lack of downclock mode\n" , - connector->base.base.id, connector->base.name); -return NULL ; - } + +intel_panel_add_edid_downclock_mode (connector);What if there's no downclock mode, just one native mode with one vrefresh? We'll now now say drrs type is this or that below, but it'll never get enabled in compute config?
Quoted 2 lines
Should
intel_panel_add_edid_downclock_mode()debug log when there's no downclock mode?
Other than that, nice cleanups all over the place,
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH v2 02/11] drm/i915: Put fixed modes directly onto the panel's fixed_modes list
In reply to Jani NikulaQuoted 138 lines · Jani Nikula
Quoted 137 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Rather than having the connector init get the fixed mode back from
intel_paneland then feed it straight back intointel_panel_init()let's just make the fixed mode lookup put the mode directly onto the panel'sfixed_modeslist. Avoids the pointless round trip and opens the door for further enhancements to the fixed mode handling.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/icl_dsi.c | 8 +-- drivers/gpu/drm/i915/display/intel_dp.c | 22 ++++---- drivers/gpu/drm/i915/display/intel_drrs.c | 20 ++----- drivers/gpu/drm/i915/display/intel_drrs.h | 3 +- drivers/gpu/drm/i915/display/intel_dvo.c | 9 ++- drivers/gpu/drm/i915/display/intel_lvds.c | 31 +++++------ drivers/gpu/drm/i915/display/intel_panel.c | 64 +++++++++------------- drivers/gpu/drm/i915/display/intel_panel.h | 22 +++----- drivers/gpu/drm/i915/display/intel_sdvo.c | 10 ++-- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +-- 10 files changed, 81 insertions(+), 117 deletions(-)drivers/gpu/drm/i915/display/icl_dsi.c +4
-4@@ -1993,7 +1993,6 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)struct intel_encoder *encoder;struct intel_connector *intel_connector;struct drm_connector *connector; -struct drm_display_mode *fixed_mode;enum port port;if (!intel_bios_is_dsi_present (dev_priv, &port))@@ -2050,15 +2049,16 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)intel_connector_attach_encoder (intel_connector, encoder);mutex_lock (&dev->mode_config.mutex); - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +intel_panel_add_vbt_lfp_fixed_mode (intel_connector);mutex_unlock (&dev->mode_config.mutex); -if (!fixed_mode) { +if (!intel_panel_preferred_fixed_mode (intel_connector)) {drm_err (&dev_priv->drm,"DSI fixed mode info missing\n" ); goto err; } -intel_panel_init (intel_connector, fixed_mode,NULL ); +intel_panel_init (intel_connector); +intel_backlight_setup (intel_connector,INVALID_PIPE );if (dev_priv->vbt.dsi.config->dual_link)drivers/gpu/drm/i915/display/intel_dp.c +12
-10@@ -5015,8 +5015,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp);struct drm_device *dev = &dev_priv->drm;struct drm_connector *connector = &intel_connector->base; -struct drm_display_mode *fixed_mode =NULL ; -struct drm_display_mode *downclock_mode =NULL ; +struct drm_display_mode *fixed_mode;bool has_dpcd;enum pipe pipe =INVALID_PIPE ;struct edid *edid;@@ -5073,20 +5072,22 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, } intel_connector->edid = edid; - fixed_mode =intel_panel_edid_fixed_mode (intel_connector); -if (fixed_mode &&intel_edp_has_drrs (intel_dp)) - downclock_mode =intel_drrs_init (intel_connector, fixed_mode); +intel_panel_add_edid_fixed_mode (intel_connector); +if (intel_panel_preferred_fixed_mode (intel_connector) && +intel_edp_has_drrs (intel_dp)) +intel_drrs_init (intel_connector);/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);/* multiply the mode clock and horizontal timings for MSO */ -intel_edp_mso_mode_fixup (intel_connector, fixed_mode); -intel_edp_mso_mode_fixup (intel_connector, downclock_mode); +list_for_each_entry (fixed_mode, &intel_connector->panel.fixed_modes, head) +intel_edp_mso_mode_fixup (intel_connector, fixed_mode);/* fallback to VBT if available for eDP */ -if (!fixed_mode) - fixed_mode =intel_panel_vbt_lfp_fixed_mode (intel_connector); +if (!intel_panel_preferred_fixed_mode (intel_connector)) +intel_panel_add_vbt_lfp_fixed_mode (intel_connector); +mutex_unlock (&dev->mode_config.mutex);if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) {@@ -5108,7 +5109,8 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, pipe_name(pipe)); } -intel_panel_init (intel_connector, fixed_mode, downclock_mode); +intel_panel_init (intel_connector); +if (!(dev_priv->quirks &QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK )) intel_connector->panel.backlight.power = intel_pps_backlight_power;intel_backlight_setup (intel_connector, pipe);drivers/gpu/drm/i915/display/intel_drrs.c +1
-11@@ -358,7 +358,6 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)/** * intel_drrs_init - Init DRRS for eDP connector * @connector: eDP connector -* @fixed_mode: preferred mode of panel * * This function is called only once at driver load to initialize * DRRS support for the connector. @@ -368,25 +367,14 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)* DRRS support is determined by the presence of downclock mode (apart * from VBT setting). */ -struct drm_display_mode * -intel_drrs_init (struct intel_connector *connector, -const struct drm_display_mode *fixed_mode) +void intel_drrs_init (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -struct drm_display_mode *downclock_mode; - - downclock_mode =intel_panel_edid_downclock_mode (connector, fixed_mode); -if (!downclock_mode) { -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS not supported due to lack of downclock mode\n" , - connector->base.base.id, connector->base.name);
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_drrs.c void intel_crtc_drrs_init(struct intel_crtc *crtc) · line 374
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_drrs.c +2
-2-return NULL ; - } + +intel_panel_add_edid_downclock_mode (connector);What if there's no downclock mode, just one native mode with one vrefresh? We'll now now say drrs type is this or that below, but it'll never get enabled in compute config?
I meant to use intel_panel_drrs_type() here. But looks like I fumbled that a bit and only did it in patch 4.
Quoted 3 lines
Should
intel_panel_add_edid_downclock_mode()debug log when there's no downclock mode?
Hmm. Maybe. currently we only log the modes we're going to use, not the ones we discard.
Signature · 2 lines
Ville Syrjälä Intel
PATCH v2 3/11 drm/i915: Refactor non-EDID fixed mode duplication
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
All the non-EDID fixed mode functions basically do the exact same thing. Let's refactor the common bits into a shared function.
There are minor differences on how the mode types are populated, whether the display info physical size is updated, and the debug print. The differences are purely accidental, so unifying them is actually a good thing.
--- drivers/gpu/drm/i915/display/intel_panel.c | 66 ++++++++++------------ 1 file changed, 30 insertions(+), 36 deletions(-)
drivers/gpu/drm/i915/display/intel_panel.c +30 -36
@@ -243,68 +243,62 @@ void intel_panel_add_edid_fixed_mode(struct intel_connector *connector)list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } -void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector) +static void intel_panel_add_fixed_mode (struct intel_connector *connector, +struct drm_display_mode *fixed_mode, +const char *type) { -struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); +struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct drm_display_info *info = &connector->base.display_info; -struct drm_display_mode *fixed_mode; -if (!dev_priv->vbt.lfp_lvds_vbt_mode) -return ; - - fixed_mode =drm_mode_duplicate (&dev_priv->drm, - dev_priv->vbt.lfp_lvds_vbt_mode);if (!fixed_mode)return ; - fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; - -drm_dbg_kms (&dev_priv->drm,"[CONNECTOR:%d:%s] using mode from VBT: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (fixed_mode)); + fixed_mode->type |=DRM_MODE_TYPE_PREFERRED |DRM_MODE_TYPE_DRIVER ; info->width_mm = fixed_mode->width_mm; info->height_mm = fixed_mode->height_mm; +drm_dbg_kms (&i915->drm,"[CONNECTOR:%d:%s] using %s fixed mode: " DRM_MODE_FMT "\n" , + connector->base.base.id, connector->base.name, type, +DRM_MODE_ARG (fixed_mode)); +list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } -void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector) +void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *i915 =to_i915 (connector->base.dev); -struct drm_display_mode *fixed_mode; - -if (!i915->vbt.sdvo_lvds_vbt_mode) -return ; +const struct drm_display_mode *mode; - fixed_mode =drm_mode_duplicate (&i915->drm, - i915->vbt.sdvo_lvds_vbt_mode); -if (!fixed_mode) + mode = i915->vbt.lfp_lvds_vbt_mode; +if (!mode)return ; -/* Guarantee the mode is preferred */ - fixed_mode->type =DRM_MODE_TYPE_PREFERRED |DRM_MODE_TYPE_DRIVER ; - -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); +intel_panel_add_fixed_mode (connector, +drm_mode_duplicate (&i915->drm, mode), +"VBT LFP" ); } -void intel_panel_add_encoder_fixed_mode (struct intel_connector *connector, -struct intel_encoder *encoder) +void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *i915 =to_i915 (connector->base.dev); -struct drm_display_mode *fixed_mode; +const struct drm_display_mode *mode; - fixed_mode =intel_encoder_current_mode (encoder); -if (!fixed_mode) + mode = i915->vbt.sdvo_lvds_vbt_mode; +if (!mode)return ; -drm_dbg_kms (&i915->drm,"[CONNECTOR:%d:%s] using current (BIOS) mode: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (fixed_mode)); - - fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; +intel_panel_add_fixed_mode (connector, +drm_mode_duplicate (&i915->drm, mode), +"VBT SDVO" ); +} -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); +void intel_panel_add_encoder_fixed_mode (struct intel_connector *connector, +struct intel_encoder *encoder) +{ +intel_panel_add_fixed_mode (connector, +intel_encoder_current_mode (encoder), +"current (BIOS)" ); }/* adjusted_mode has been preset to be the panel's fixed mode */
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 03/11] drm/i915: Refactor non-EDID fixed mode duplication
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
All the non-EDID fixed mode functions basically do the exact same thing. Let's refactor the common bits into a shared function.
Quoted 6 lines
There are minor differences on how the mode types are populated, whether the display info physical size is updated, and the debug print. The differences are purely accidental, so unifying them is actually a good thing.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 107 lines
--- drivers/gpu/drm/i915/display/intel_panel.c | 66 ++++++++++------------ 1 file changed, 30 insertions(+), 36 deletions(-)drivers/gpu/drm/i915/display/intel_panel.c +30
-36@@ -243,68 +243,62 @@ void intel_panel_add_edid_fixed_mode(struct intel_connector *connector)list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } -void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector) +static void intel_panel_add_fixed_mode (struct intel_connector *connector, +struct drm_display_mode *fixed_mode, +const char *type) { -struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); +struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct drm_display_info *info = &connector->base.display_info; -struct drm_display_mode *fixed_mode; -if (!dev_priv->vbt.lfp_lvds_vbt_mode) -return ; - - fixed_mode =drm_mode_duplicate (&dev_priv->drm, - dev_priv->vbt.lfp_lvds_vbt_mode);if (!fixed_mode)return ; - fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; - -drm_dbg_kms (&dev_priv->drm,"[CONNECTOR:%d:%s] using mode from VBT: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (fixed_mode)); + fixed_mode->type |=DRM_MODE_TYPE_PREFERRED |DRM_MODE_TYPE_DRIVER ; info->width_mm = fixed_mode->width_mm; info->height_mm = fixed_mode->height_mm; +drm_dbg_kms (&i915->drm,"[CONNECTOR:%d:%s] using %s fixed mode: " DRM_MODE_FMT "\n" , + connector->base.base.id, connector->base.name, type, +DRM_MODE_ARG (fixed_mode)); +list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } -void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector) +void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *i915 =to_i915 (connector->base.dev); -struct drm_display_mode *fixed_mode; - -if (!i915->vbt.sdvo_lvds_vbt_mode) -return ; +const struct drm_display_mode *mode; - fixed_mode =drm_mode_duplicate (&i915->drm, - i915->vbt.sdvo_lvds_vbt_mode); -if (!fixed_mode) + mode = i915->vbt.lfp_lvds_vbt_mode; +if (!mode)return ; -/* Guarantee the mode is preferred */ - fixed_mode->type =DRM_MODE_TYPE_PREFERRED |DRM_MODE_TYPE_DRIVER ; - -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); +intel_panel_add_fixed_mode (connector, +drm_mode_duplicate (&i915->drm, mode), +"VBT LFP" ); } -void intel_panel_add_encoder_fixed_mode (struct intel_connector *connector, -struct intel_encoder *encoder) +void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *i915 =to_i915 (connector->base.dev); -struct drm_display_mode *fixed_mode; +const struct drm_display_mode *mode; - fixed_mode =intel_encoder_current_mode (encoder); -if (!fixed_mode) + mode = i915->vbt.sdvo_lvds_vbt_mode; +if (!mode)return ; -drm_dbg_kms (&i915->drm,"[CONNECTOR:%d:%s] using current (BIOS) mode: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (fixed_mode)); - - fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; +intel_panel_add_fixed_mode (connector, +drm_mode_duplicate (&i915->drm, mode), +"VBT SDVO" ); +} -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); +void intel_panel_add_encoder_fixed_mode (struct intel_connector *connector, +struct intel_encoder *encoder) +{ +intel_panel_add_fixed_mode (connector, +intel_encoder_current_mode (encoder), +"current (BIOS)" ); }/* adjusted_mode has been preset to be the panel's fixed mode */
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 4/11 drm/i915: Nuke intel_drrs_init()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
intel_drrs_init() is a mostly pointless wrapper around intel_panel_add_edid_downclock_mode(), get rid of it.
The only really useful thing left in there is the debug print regarding the DRRS type supported by the connector. Let's just move that into intel_panel_init().
--- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_drrs.c | 24 ---------------------- drivers/gpu/drm/i915/display/intel_drrs.h | 1 - drivers/gpu/drm/i915/display/intel_panel.c | 6 ++++++ 4 files changed, 7 insertions(+), 26 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
@@ -5075,7 +5075,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,intel_panel_add_edid_fixed_mode (intel_connector);if (intel_panel_preferred_fixed_mode (intel_connector) &&intel_edp_has_drrs (intel_dp)) -intel_drrs_init (intel_connector); +intel_panel_add_edid_downclock_mode (intel_connector);/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);
drivers/gpu/drm/i915/display/intel_drrs.c +0 -24
@@ -354,27 +354,3 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)mutex_init (&crtc->drrs.mutex); crtc->drrs.cpu_transcoder =INVALID_TRANSCODER ; } - -/** -* intel_drrs_init - Init DRRS for eDP connector -* @connector: eDP connector -* -* This function is called only once at driver load to initialize -* DRRS support for the connector. -* -* Returns: -* Downclock mode if panel supports it, else return NULL. -* DRRS support is determined by the presence of downclock mode (apart -* from VBT setting). -*/ -void intel_drrs_init (struct intel_connector *connector) -{ -struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); - -intel_panel_add_edid_downclock_mode (connector); - -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS type: %s\n" , - connector->base.base.id, connector->base.name, -intel_drrs_type_str (dev_priv->vbt.drrs_type)); -}
drivers/gpu/drm/i915/display/intel_drrs.h +0 -1
@@ -27,6 +27,5 @@ void intel_drrs_compute_config(struct intel_connector *connector,struct intel_crtc_state *pipe_config, int output_bpp, bool constant_n);void intel_crtc_drrs_init (struct intel_crtc *crtc); -void intel_drrs_init (struct intel_connector *connector);#endif /* __INTEL_DRRS_H__ */
drivers/gpu/drm/i915/display/intel_panel.c +6 -0
@@ -35,6 +35,7 @@#include "intel_connector.h" #include "intel_de.h" #include "intel_display_types.h" +#include "intel_drrs.h" #include "intel_panel.h" bool intel_panel_use_ssc (struct drm_i915_private *i915)
@@ -634,6 +635,11 @@ int intel_panel_init(struct intel_connector *connector)intel_backlight_init_funcs (panel); +drm_dbg_kms (connector->base.dev, +"[CONNECTOR:%d:%s] DRRS type: %s\n" , + connector->base.base.id, connector->base.name, +intel_drrs_type_str (intel_panel_drrs_type (connector))); +return 0 ; }
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 04/11] drm/i915: Nuke intel_drrs_init()
Quoted 10 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
intel_drrs_init()is a mostly pointless wrapper aroundintel_panel_add_edid_downclock_mode(), get rid of it.The only really useful thing left in there is the debug print regarding the DRRS type supported by the connector. Let's just move that into
intel_panel_init().Signed-off-by Ville Syrjälä <[email protected]>
Quoted 86 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_drrs.c | 24 ---------------------- drivers/gpu/drm/i915/display/intel_drrs.h | 1 - drivers/gpu/drm/i915/display/intel_panel.c | 6 ++++++ 4 files changed, 7 insertions(+), 26 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +1
-1@@ -5075,7 +5075,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,intel_panel_add_edid_fixed_mode (intel_connector);if (intel_panel_preferred_fixed_mode (intel_connector) &&intel_edp_has_drrs (intel_dp)) -intel_drrs_init (intel_connector); +intel_panel_add_edid_downclock_mode (intel_connector);/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);drivers/gpu/drm/i915/display/intel_drrs.c +0
-24@@ -354,27 +354,3 @@ void intel_crtc_drrs_init(struct intel_crtc *crtc)mutex_init (&crtc->drrs.mutex); crtc->drrs.cpu_transcoder =INVALID_TRANSCODER ; } - -/** -* intel_drrs_init - Init DRRS for eDP connector -* @connector: eDP connector -* -* This function is called only once at driver load to initialize -* DRRS support for the connector. -* -* Returns: -* Downclock mode if panel supports it, else return NULL. -* DRRS support is determined by the presence of downclock mode (apart -* from VBT setting). -*/ -void intel_drrs_init (struct intel_connector *connector) -{ -struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); - -intel_panel_add_edid_downclock_mode (connector); - -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] DRRS type: %s\n" , - connector->base.base.id, connector->base.name, -intel_drrs_type_str (dev_priv->vbt.drrs_type)); -}drivers/gpu/drm/i915/display/intel_drrs.h +0
-1@@ -27,6 +27,5 @@ void intel_drrs_compute_config(struct intel_connector *connector,struct intel_crtc_state *pipe_config, int output_bpp, bool constant_n);void intel_crtc_drrs_init (struct intel_crtc *crtc); -void intel_drrs_init (struct intel_connector *connector);#endif /* __INTEL_DRRS_H__ */ drivers/gpu/drm/i915/display/intel_panel.c +6
-0@@ -35,6 +35,7 @@#include "intel_connector.h" #include "intel_de.h" #include "intel_display_types.h" +#include "intel_drrs.h" #include "intel_panel.h" bool intel_panel_use_ssc (struct drm_i915_private *i915)@@ -634,6 +635,11 @@ int intel_panel_init(struct intel_connector *connector)intel_backlight_init_funcs (panel); +drm_dbg_kms (connector->base.dev, +"[CONNECTOR:%d:%s] DRRS type: %s\n" , + connector->base.base.id, connector->base.name, +intel_drrs_type_str (intel_panel_drrs_type (connector))); +return 0 ; }
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 5/11 drm/i915: Combine the EDID fixed_mode+downclock_mode lookup into one
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
The intel_panel_add_edid_fixed_mode() vs. intel_panel_add_edid_downclock_mode() split is not really helpful. Let's just roll those into a single function so that the connector init code doesn't have to care too much about this. All we need to know is whether DRRS should be allowed or not.
--- drivers/gpu/drm/i915/display/intel_dp.c | 6 ++---- drivers/gpu/drm/i915/display/intel_lvds.c | 2 +- drivers/gpu/drm/i915/display/intel_panel.c | 11 +++++++++-- drivers/gpu/drm/i915/display/intel_panel.h | 3 +-- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +2 -4
@@ -5072,10 +5072,8 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, } intel_connector->edid = edid; -intel_panel_add_edid_fixed_mode (intel_connector); -if (intel_panel_preferred_fixed_mode (intel_connector) && -intel_edp_has_drrs (intel_dp)) -intel_panel_add_edid_downclock_mode (intel_connector); +intel_panel_add_edid_fixed_modes (intel_connector, +intel_edp_has_drrs (intel_dp));/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);
drivers/gpu/drm/i915/display/intel_lvds.c +1 -1
@@ -968,7 +968,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) intel_connector->edid = edid;/* Try EDID first */ -intel_panel_add_edid_fixed_mode (intel_connector); +intel_panel_add_edid_fixed_modes (intel_connector, false);/* Failed to get EDID, what about VBT? */ if (!intel_panel_preferred_fixed_mode (intel_connector))
drivers/gpu/drm/i915/display/intel_panel.c +9 -2
@@ -159,7 +159,7 @@ static bool is_downclock_mode(const struct drm_display_mode *downclock_mode, downclock_mode->clock < fixed_mode->clock; } -void intel_panel_add_edid_downclock_mode (struct intel_connector *connector) +static void intel_panel_add_edid_downclock_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); const struct drm_display_mode *fixed_mode =
@@ -202,7 +202,7 @@ void intel_panel_add_edid_downclock_mode(struct intel_connector *connector)list_add_tail (&downclock_mode->head, &connector->panel.fixed_modes); } -void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) +static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);const struct drm_display_mode *scan;
@@ -244,6 +244,13 @@ void intel_panel_add_edid_fixed_mode(struct intel_connector *connector)list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } +void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs) +{ +intel_panel_add_edid_fixed_mode (connector); +if (intel_panel_preferred_fixed_mode (connector) && has_drrs) +intel_panel_add_edid_downclock_mode (connector); +} +static void intel_panel_add_fixed_mode (struct intel_connector *connector,struct drm_display_mode *fixed_mode,const char *type)
drivers/gpu/drm/i915/display/intel_panel.h +1 -2
@@ -40,8 +40,7 @@ int intel_panel_fitting(struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state);int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode); -void intel_panel_add_edid_fixed_mode (struct intel_connector *connector); -void intel_panel_add_edid_downclock_mode (struct intel_connector *connector); +void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs);void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector);void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector); void intel_panel_add_encoder_fixed_mode(struct intel_connector *connector,
drivers/gpu/drm/i915/display/intel_sdvo.c +1 -1
@@ -2907,7 +2907,7 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)if (!intel_panel_preferred_fixed_mode (intel_connector)) {intel_ddc_get_modes (connector, &intel_sdvo->ddc); -intel_panel_add_edid_fixed_mode (intel_connector); +intel_panel_add_edid_fixed_modes (intel_connector, false); }intel_panel_init (intel_connector);
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 05/11] drm/i915: Combine the EDID fixed_mode+downclock_mode lookup into one
Quoted 10 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
The
intel_panel_add_edid_fixed_mode()vs.intel_panel_add_edid_downclock_mode()split is not really helpful. Let's just roll those into a single function so that the connector init code doesn't have to care too much about this. All we need to know is whether DRRS should be allowed or not.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 101 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 6 ++---- drivers/gpu/drm/i915/display/intel_lvds.c | 2 +- drivers/gpu/drm/i915/display/intel_panel.c | 11 +++++++++-- drivers/gpu/drm/i915/display/intel_panel.h | 3 +-- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +2
-4@@ -5072,10 +5072,8 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, } intel_connector->edid = edid; -intel_panel_add_edid_fixed_mode (intel_connector); -if (intel_panel_preferred_fixed_mode (intel_connector) && -intel_edp_has_drrs (intel_dp)) -intel_panel_add_edid_downclock_mode (intel_connector); +intel_panel_add_edid_fixed_modes (intel_connector, +intel_edp_has_drrs (intel_dp));/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);drivers/gpu/drm/i915/display/intel_lvds.c +1
-1@@ -968,7 +968,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) intel_connector->edid = edid;/* Try EDID first */ -intel_panel_add_edid_fixed_mode (intel_connector); +intel_panel_add_edid_fixed_modes (intel_connector, false);/* Failed to get EDID, what about VBT? */ if (!intel_panel_preferred_fixed_mode (intel_connector))drivers/gpu/drm/i915/display/intel_panel.c +9
-2@@ -159,7 +159,7 @@ static bool is_downclock_mode(const struct drm_display_mode *downclock_mode, downclock_mode->clock < fixed_mode->clock; } -void intel_panel_add_edid_downclock_mode (struct intel_connector *connector) +static void intel_panel_add_edid_downclock_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); const struct drm_display_mode *fixed_mode =@@ -202,7 +202,7 @@ void intel_panel_add_edid_downclock_mode(struct intel_connector *connector)list_add_tail (&downclock_mode->head, &connector->panel.fixed_modes); } -void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) +static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);const struct drm_display_mode *scan;@@ -244,6 +244,13 @@ void intel_panel_add_edid_fixed_mode(struct intel_connector *connector)list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); } +void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs) +{ +intel_panel_add_edid_fixed_mode (connector); +if (intel_panel_preferred_fixed_mode (connector) && has_drrs) +intel_panel_add_edid_downclock_mode (connector); +} +static void intel_panel_add_fixed_mode (struct intel_connector *connector,struct drm_display_mode *fixed_mode,const char *type)drivers/gpu/drm/i915/display/intel_panel.h +1
-2@@ -40,8 +40,7 @@ int intel_panel_fitting(struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state);int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode); -void intel_panel_add_edid_fixed_mode (struct intel_connector *connector); -void intel_panel_add_edid_downclock_mode (struct intel_connector *connector); +void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs);void intel_panel_add_vbt_lfp_fixed_mode (struct intel_connector *connector);void intel_panel_add_vbt_sdvo_fixed_mode (struct intel_connector *connector); void intel_panel_add_encoder_fixed_mode(struct intel_connector *connector,drivers/gpu/drm/i915/display/intel_sdvo.c +1
-1@@ -2907,7 +2907,7 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)if (!intel_panel_preferred_fixed_mode (intel_connector)) {intel_ddc_get_modes (connector, &intel_sdvo->ddc); -intel_panel_add_edid_fixed_mode (intel_connector); +intel_panel_add_edid_fixed_modes (intel_connector, false); }intel_panel_init (intel_connector);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 6/11 drm/i915: Stop duplicating the EDID fixed/downclock modes
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Instead of duplicating the fixed/downclock modes we can just grab the originals straight from the probed_modes list and keep them. The next .get_modes() is going to repopulate the probed_modes list anyway so whatever we leave there is just going to sit around until that time wasting memory. In fact let's clear out the probed modes list entirely to make sure we get 100% consistent behaviour starting already from the very first real .get_modes().
--- drivers/gpu/drm/i915/display/intel_panel.c | 62 ++++++++++------------ 1 file changed, 29 insertions(+), 33 deletions(-)
drivers/gpu/drm/i915/display/intel_panel.c +29 -33
@@ -164,8 +164,7 @@ static void intel_panel_add_edid_downclock_mode(struct intel_connector *connectostruct drm_i915_private *dev_priv =to_i915 (connector->base.dev);const struct drm_display_mode *fixed_mode =intel_panel_preferred_fixed_mode (connector); -const struct drm_display_mode *scan, *best_mode =NULL ; -struct drm_display_mode *downclock_mode; +struct drm_display_mode *scan, *best_mode =NULL ;int best_clock = fixed_mode->clock;list_for_each_entry (scan, &connector->base.probed_modes, head) {
@@ -190,58 +189,54 @@ static void intel_panel_add_edid_downclock_mode(struct intel_connector *connectoif (!best_mode)return ; - downclock_mode =drm_mode_duplicate (&dev_priv->drm, best_mode); -if (!downclock_mode) -return ; -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using downclock mode from EDID: " DRM_MODE_FMT "\n" , +"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name, -DRM_MODE_ARG (downclock_mode)); +DRM_MODE_ARG (best_mode)); -list_add_tail (&downclock_mode->head, &connector->panel.fixed_modes); +list_move_tail (&best_mode->head, &connector->panel.fixed_modes); }static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -const struct drm_display_mode *scan; -struct drm_display_mode *fixed_mode; +struct drm_display_mode *scan, *fixed_mode =NULL ;if (list_empty (&connector->base.probed_modes))return ; -/* prefer fixed mode from EDID if available */ +/* make sure the preferred mode is first */ list_for_each_entry (scan, &connector->base.probed_modes, head) { -if ((scan->type &DRM_MODE_TYPE_PREFERRED ) ==0 ) -continue ; - - fixed_mode =drm_mode_duplicate (&dev_priv->drm, scan); -if (!fixed_mode) -return ; - -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using preferred mode from EDID: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (fixed_mode)); - -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); -return ; +if (scan->type &DRM_MODE_TYPE_PREFERRED ) { + fixed_mode = scan; +break ; + } } - scan =list_first_entry (&connector->base.probed_modes, -typeof (*scan), head); - fixed_mode =drm_mode_duplicate (&dev_priv->drm, scan);if (!fixed_mode) -return ; + fixed_mode =list_first_entry (&connector->base.probed_modes, +typeof (*fixed_mode), head); - fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ;drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using first mode from EDID: " DRM_MODE_FMT "\n" , +"[CONNECTOR:%d:%s] using %s EDID fixed mode: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name, + fixed_mode->type &DRM_MODE_TYPE_PREFERRED ?"preferred" :"first" ,DRM_MODE_ARG (fixed_mode)); -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); + fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; + +list_move_tail (&fixed_mode->head, &connector->panel.fixed_modes); +} + +static void intel_panel_destroy_probed_modes (struct intel_connector *connector) +{ +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +struct drm_display_mode *mode, *next; + +list_for_each_entry_safe (mode, next, &connector->base.probed_modes, head) { +list_del (&mode->head); +drm_mode_destroy (&i915->drm, mode); + } }void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs)
@@ -249,6 +244,7 @@ void intel_panel_add_edid_fixed_modes(struct intel_connector *connector, bool haintel_panel_add_edid_fixed_mode (connector);if (intel_panel_preferred_fixed_mode (connector) && has_drrs)intel_panel_add_edid_downclock_mode (connector); +intel_panel_destroy_probed_modes (connector); } static void intel_panel_add_fixed_mode(struct intel_connector *connector,
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 06/11] drm/i915: Stop duplicating the EDID fixed/downclock modes
Quoted 11 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Instead of duplicating the fixed/downclock modes we can just grab the originals straight from the
probed_modeslist and keep them. The next .get_modes() is going to repopulate theprobed_modeslist anyway so whatever we leave there is just going to sit around until that time wasting memory. In fact let's clear out the probed modes list entirely to make sure we get 100% consistent behaviour starting already from the very first real .get_modes().Signed-off-by Ville Syrjälä <[email protected]>
Quoted 112 lines
--- drivers/gpu/drm/i915/display/intel_panel.c | 62 ++++++++++------------ 1 file changed, 29 insertions(+), 33 deletions(-)drivers/gpu/drm/i915/display/intel_panel.c +29
-33@@ -164,8 +164,7 @@ static void intel_panel_add_edid_downclock_mode(struct intel_connector *connectostruct drm_i915_private *dev_priv =to_i915 (connector->base.dev);const struct drm_display_mode *fixed_mode =intel_panel_preferred_fixed_mode (connector); -const struct drm_display_mode *scan, *best_mode =NULL ; -struct drm_display_mode *downclock_mode; +struct drm_display_mode *scan, *best_mode =NULL ;int best_clock = fixed_mode->clock;list_for_each_entry (scan, &connector->base.probed_modes, head) {@@ -190,58 +189,54 @@ static void intel_panel_add_edid_downclock_mode(struct intel_connector *connectoif (!best_mode)return ; - downclock_mode =drm_mode_duplicate (&dev_priv->drm, best_mode); -if (!downclock_mode) -return ; -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using downclock mode from EDID: " DRM_MODE_FMT "\n" , +"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name, -DRM_MODE_ARG (downclock_mode)); +DRM_MODE_ARG (best_mode)); -list_add_tail (&downclock_mode->head, &connector->panel.fixed_modes); +list_move_tail (&best_mode->head, &connector->panel.fixed_modes); }static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -const struct drm_display_mode *scan; -struct drm_display_mode *fixed_mode; +struct drm_display_mode *scan, *fixed_mode =NULL ;if (list_empty (&connector->base.probed_modes))return ; -/* prefer fixed mode from EDID if available */ +/* make sure the preferred mode is first */ list_for_each_entry (scan, &connector->base.probed_modes, head) { -if ((scan->type &DRM_MODE_TYPE_PREFERRED ) ==0 ) -continue ; - - fixed_mode =drm_mode_duplicate (&dev_priv->drm, scan); -if (!fixed_mode) -return ; - -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using preferred mode from EDID: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (fixed_mode)); - -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); -return ; +if (scan->type &DRM_MODE_TYPE_PREFERRED ) { + fixed_mode = scan; +break ; + } } - scan =list_first_entry (&connector->base.probed_modes, -typeof (*scan), head); - fixed_mode =drm_mode_duplicate (&dev_priv->drm, scan);if (!fixed_mode) -return ; + fixed_mode =list_first_entry (&connector->base.probed_modes, +typeof (*fixed_mode), head); - fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ;drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using first mode from EDID: " DRM_MODE_FMT "\n" , +"[CONNECTOR:%d:%s] using %s EDID fixed mode: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name, + fixed_mode->type &DRM_MODE_TYPE_PREFERRED ?"preferred" :"first" ,DRM_MODE_ARG (fixed_mode)); -list_add_tail (&fixed_mode->head, &connector->panel.fixed_modes); + fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; + +list_move_tail (&fixed_mode->head, &connector->panel.fixed_modes); +} + +static void intel_panel_destroy_probed_modes (struct intel_connector *connector) +{ +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +struct drm_display_mode *mode, *next; + +list_for_each_entry_safe (mode, next, &connector->base.probed_modes, head) { +list_del (&mode->head); +drm_mode_destroy (&i915->drm, mode); + } }void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs)@@ -249,6 +244,7 @@ void intel_panel_add_edid_fixed_modes(struct intel_connector *connector, bool haintel_panel_add_edid_fixed_mode (connector);if (intel_panel_preferred_fixed_mode (connector) && has_drrs)intel_panel_add_edid_downclock_mode (connector); +intel_panel_destroy_probed_modes (connector); } static void intel_panel_add_fixed_mode(struct intel_connector *connector,
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 7/11 drm/i915: Allow an arbitrary number of downclock modes
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Remove the "two fixed modes only" limit and grab as many downclock modes from the EDID as we can find.
--- drivers/gpu/drm/i915/display/intel_panel.c | 42 +++++++--------------- 1 file changed, 12 insertions(+), 30 deletions(-)
drivers/gpu/drm/i915/display/intel_panel.c +12 -30
@@ -159,42 +159,24 @@ static bool is_downclock_mode(const struct drm_display_mode *downclock_mode, downclock_mode->clock < fixed_mode->clock; } -static void intel_panel_add_edid_downclock_mode (struct intel_connector *connector) +static void intel_panel_add_edid_downclock_modes (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);const struct drm_display_mode *fixed_mode =intel_panel_preferred_fixed_mode (connector); -struct drm_display_mode *scan, *best_mode =NULL ; -int best_clock = fixed_mode->clock; - -list_for_each_entry (scan, &connector->base.probed_modes, head) { -/* -* If one mode has the same resolution with the fixed_panel -* mode while they have the different refresh rate, it means -* that the reduced downclock is found. In such -* case we can set the different FPx0/1 to dynamically select -* between low and high frequency. -*/ -if (is_downclock_mode (scan, fixed_mode) && - scan->clock < best_clock) { -/* -* The downclock is already found. But we -* expect to find the lower downclock. -*/ - best_clock = scan->clock; - best_mode = scan; - } - } +struct drm_display_mode *mode, *next; -if (!best_mode) -return ; +list_for_each_entry_safe (mode, next, &connector->base.probed_modes, head) { +if (!is_downclock_mode (mode, fixed_mode)) +continue ; -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (best_mode)); +drm_dbg_kms (&dev_priv->drm, +"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , + connector->base.base.id, connector->base.name, +DRM_MODE_ARG (mode)); -list_move_tail (&best_mode->head, &connector->panel.fixed_modes); +list_move_tail (&mode->head, &connector->panel.fixed_modes); + } }static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector)
@@ -243,7 +225,7 @@ void intel_panel_add_edid_fixed_modes(struct intel_connector *connector, bool ha {intel_panel_add_edid_fixed_mode (connector);if (intel_panel_preferred_fixed_mode (connector) && has_drrs) -intel_panel_add_edid_downclock_mode (connector); +intel_panel_add_edid_downclock_modes (connector);intel_panel_destroy_probed_modes (connector); }
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 07/11] drm/i915: Allow an arbitrary number of downclock modes
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Remove the "two fixed modes only" limit and grab as many downclock modes from the EDID as we can find.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 70 lines
--- drivers/gpu/drm/i915/display/intel_panel.c | 42 +++++++--------------- 1 file changed, 12 insertions(+), 30 deletions(-)drivers/gpu/drm/i915/display/intel_panel.c +12
-30@@ -159,42 +159,24 @@ static bool is_downclock_mode(const struct drm_display_mode *downclock_mode, downclock_mode->clock < fixed_mode->clock; } -static void intel_panel_add_edid_downclock_mode (struct intel_connector *connector) +static void intel_panel_add_edid_downclock_modes (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);const struct drm_display_mode *fixed_mode =intel_panel_preferred_fixed_mode (connector); -struct drm_display_mode *scan, *best_mode =NULL ; -int best_clock = fixed_mode->clock; - -list_for_each_entry (scan, &connector->base.probed_modes, head) { -/* -* If one mode has the same resolution with the fixed_panel -* mode while they have the different refresh rate, it means -* that the reduced downclock is found. In such -* case we can set the different FPx0/1 to dynamically select -* between low and high frequency. -*/ -if (is_downclock_mode (scan, fixed_mode) && - scan->clock < best_clock) { -/* -* The downclock is already found. But we -* expect to find the lower downclock. -*/ - best_clock = scan->clock; - best_mode = scan; - } - } +struct drm_display_mode *mode, *next; -if (!best_mode) -return ; +list_for_each_entry_safe (mode, next, &connector->base.probed_modes, head) { +if (!is_downclock_mode (mode, fixed_mode)) +continue ; -drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , - connector->base.base.id, connector->base.name, -DRM_MODE_ARG (best_mode)); +drm_dbg_kms (&dev_priv->drm, +"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , + connector->base.base.id, connector->base.name, +DRM_MODE_ARG (mode)); -list_move_tail (&best_mode->head, &connector->panel.fixed_modes); +list_move_tail (&mode->head, &connector->panel.fixed_modes); + } }static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector)@@ -243,7 +225,7 @@ void intel_panel_add_edid_fixed_modes(struct intel_connector *connector, bool ha {intel_panel_add_edid_fixed_mode (connector);if (intel_panel_preferred_fixed_mode (connector) && has_drrs) -intel_panel_add_edid_downclock_mode (connector); +intel_panel_add_edid_downclock_modes (connector);intel_panel_destroy_probed_modes (connector); }
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 8/11 drm/i915: Allow higher refresh rate alternate fixed modes
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
We shouldn't restrict ourselves to just downclock modes with lower refresh rate than the preferred mode. Laptops these days can offer higher refresh rate modes as well.
Remove the arbitrary limit and allow all modes that, apart from the clock, match the preferred mode.
--- drivers/gpu/drm/i915/display/intel_panel.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/display/intel_panel.c +9 -9
@@ -149,29 +149,29 @@ int intel_panel_compute_config(struct intel_connector *connector,return 0 ; } -static bool is_downclock_mode (const struct drm_display_mode *downclock_mode, -const struct drm_display_mode *fixed_mode) +static bool is_alt_fixed_mode (const struct drm_display_mode *mode, +const struct drm_display_mode *preferred_mode) { -return drm_mode_match (downclock_mode, fixed_mode, +return drm_mode_match (mode, preferred_mode,DRM_MODE_MATCH_TIMINGS |DRM_MODE_MATCH_FLAGS |DRM_MODE_MATCH_3D_FLAGS ) && - downclock_mode->clock < fixed_mode->clock; + mode->clock != preferred_mode->clock; }static void intel_panel_add_edid_downclock_modes (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -const struct drm_display_mode *fixed_mode = +const struct drm_display_mode *preferred_mode =intel_panel_preferred_fixed_mode (connector);struct drm_display_mode *mode, *next;list_for_each_entry_safe (mode, next, &connector->base.probed_modes, head) { -if (!is_downclock_mode (mode, fixed_mode)) +if (!is_alt_fixed_mode (mode, preferred_mode))continue ;drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , +"[CONNECTOR:%d:%s] using alternate EDID fixed mode: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name,DRM_MODE_ARG (mode));
@@ -179,7 +179,7 @@ static void intel_panel_add_edid_downclock_modes(struct intel_connector *connect } } -static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) +static void intel_panel_add_edid_preferred_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct drm_display_mode *scan, *fixed_mode =NULL ;
@@ -223,7 +223,7 @@ static void intel_panel_destroy_probed_modes(struct intel_connector *connector)void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs) { -intel_panel_add_edid_fixed_mode (connector); +intel_panel_add_edid_preferred_mode (connector);if (intel_panel_preferred_fixed_mode (connector) && has_drrs)intel_panel_add_edid_downclock_modes (connector);intel_panel_destroy_probed_modes (connector);
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 08/11] drm/i915: Allow higher refresh rate alternate fixed modes
Quoted 28 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We shouldn't restrict ourselves to just downclock modes with lower refresh rate than the preferred mode. Laptops these days can offer higher refresh rate modes as well.
Remove the arbitrary limit and allow all modes that, apart from the clock, match the preferred mode.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_panel.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)drivers/gpu/drm/i915/display/intel_panel.c +2
-2@@ -149,29 +149,29 @@ int intel_panel_compute_config(struct intel_connector *connector,return 0 ; } -static bool is_downclock_mode (const struct drm_display_mode *downclock_mode, -const struct drm_display_mode *fixed_mode) +static bool is_alt_fixed_mode (const struct drm_display_mode *mode, +const struct drm_display_mode *preferred_mode) {
drivers/gpu/drm/i915/display/intel_panel.c int intel_panel_compute_config(struct intel_connector *connector, · line 162
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_panel.c +2
-2-return drm_mode_match (downclock_mode, fixed_mode, +return drm_mode_match (mode, preferred_mode,DRM_MODE_MATCH_TIMINGS |DRM_MODE_MATCH_FLAGS |DRM_MODE_MATCH_3D_FLAGS ) && - downclock_mode->clock < fixed_mode->clock; + mode->clock != preferred_mode->clock; }static void intel_panel_add_edid_downclock_modes (struct intel_connector *connector)
Nitpick, I guess this is now ill-named.
Quoted 28 lines
drivers/gpu/drm/i915/display/intel_panel.c +4
-4{struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -const struct drm_display_mode *fixed_mode = +const struct drm_display_mode *preferred_mode =intel_panel_preferred_fixed_mode (connector);struct drm_display_mode *mode, *next;list_for_each_entry_safe (mode, next, &connector->base.probed_modes, head) { -if (!is_downclock_mode (mode, fixed_mode)) +if (!is_alt_fixed_mode (mode, preferred_mode))continue ;drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , +"[CONNECTOR:%d:%s] using alternate EDID fixed mode: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name,DRM_MODE_ARG (mode));@@ -179,7 +179,7 @@ static void intel_panel_add_edid_downclock_modes(struct intel_connector *connect } } -static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) +static void intel_panel_add_edid_preferred_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct drm_display_mode *scan, *fixed_mode =NULL ;
drivers/gpu/drm/i915/display/intel_panel.c static void intel_panel_destroy_probed_modes(struct intel_connector *connector) · line 228
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_panel.c +1
-1@@ -223,7 +223,7 @@ static void intel_panel_destroy_probed_modes(struct intel_connector *connector)void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs) { -intel_panel_add_edid_fixed_mode (connector); +intel_panel_add_edid_preferred_mode (connector);if (intel_panel_preferred_fixed_mode (connector) && has_drrs)intel_panel_add_edid_downclock_modes (connector);
Nitpick, support for multiple fixed modes still depends on drrs support. I mean this patch is clearly forward progress, but I'm not sure if this fully closes the referenced issue. In practical terms it might, considering the machines with high refresh rate panels are probably fairly new.
Quoted 1 line
drivers/gpu/drm/i915/display/intel_panel.c +0
-0intel_panel_destroy_probed_modes (connector);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH v2 08/11] drm/i915: Allow higher refresh rate alternate fixed modes
Quoted 38 lines · Jani Nikula
Quoted 37 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We shouldn't restrict ourselves to just downclock modes with lower refresh rate than the preferred mode. Laptops these days can offer higher refresh rate modes as well.
Remove the arbitrary limit and allow all modes that, apart from the clock, match the preferred mode.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_panel.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)drivers/gpu/drm/i915/display/intel_panel.c +4
-4@@ -149,29 +149,29 @@ int intel_panel_compute_config(struct intel_connector *connector,return 0 ; } -static bool is_downclock_mode (const struct drm_display_mode *downclock_mode, -const struct drm_display_mode *fixed_mode) +static bool is_alt_fixed_mode (const struct drm_display_mode *mode, +const struct drm_display_mode *preferred_mode) { -return drm_mode_match (downclock_mode, fixed_mode, +return drm_mode_match (mode, preferred_mode,DRM_MODE_MATCH_TIMINGS |DRM_MODE_MATCH_FLAGS |DRM_MODE_MATCH_3D_FLAGS ) && - downclock_mode->clock < fixed_mode->clock; + mode->clock != preferred_mode->clock; }
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_panel.c int intel_panel_compute_config(struct intel_connector *connector, · line 162
Quoted 1 line
drivers/gpu/drm/i915/display/intel_panel.c +0
-0static void intel_panel_add_edid_downclock_modes (struct intel_connector *connector)Nitpick, I guess this is now ill-named.
Doh. Lost the rename when reordering the patches.
Quoted 50 lines
Quoted 29 lines
drivers/gpu/drm/i915/display/intel_panel.c +4
-4{struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -const struct drm_display_mode *fixed_mode = +const struct drm_display_mode *preferred_mode =intel_panel_preferred_fixed_mode (connector);struct drm_display_mode *mode, *next;list_for_each_entry_safe (mode, next, &connector->base.probed_modes, head) { -if (!is_downclock_mode (mode, fixed_mode)) +if (!is_alt_fixed_mode (mode, preferred_mode))continue ;drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] using EDID downclock mode: " DRM_MODE_FMT "\n" , +"[CONNECTOR:%d:%s] using alternate EDID fixed mode: " DRM_MODE_FMT "\n" , connector->base.base.id, connector->base.name,DRM_MODE_ARG (mode));@@ -179,7 +179,7 @@ static void intel_panel_add_edid_downclock_modes(struct intel_connector *connect } } -static void intel_panel_add_edid_fixed_mode (struct intel_connector *connector) +static void intel_panel_add_edid_preferred_mode (struct intel_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct drm_display_mode *scan, *fixed_mode =NULL ;drivers/gpu/drm/i915/display/intel_panel.c static void intel_panel_destroy_probed_modes(struct intel_connector *connector) · line 228
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_panel.c +1
-1@@ -223,7 +223,7 @@ static void intel_panel_destroy_probed_modes(struct intel_connector *connector)void intel_panel_add_edid_fixed_modes (struct intel_connector *connector,bool has_drrs) { -intel_panel_add_edid_fixed_mode (connector); +intel_panel_add_edid_preferred_mode (connector);if (intel_panel_preferred_fixed_mode (connector) && has_drrs)intel_panel_add_edid_downclock_modes (connector);Nitpick, support for multiple fixed modes still depends on drrs support. I mean this patch is clearly forward progress, but I'm not sure if this fully closes the referenced issue. In practical terms it might, considering the machines with high refresh rate panels are probably fairly new.
Reviewed-by Jani Nikula <[email protected]>Quoted 1 line
drivers/gpu/drm/i915/display/intel_panel.c +0
-0intel_panel_destroy_probed_modes (connector);Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Signature · 2 lines
Ville Syrjälä Intel
PATCH v2 9/11 drm/i915: Move intel_drrs_compute_config() into intel_dp.c
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
intel_drrs_compute_config() is 100% DP specific. DRRS on other types of encoders wouldn't do any of these M2/N2 calculations etc. So let's move this into intel_dp.c so all the DP state calculation is more concentrated into one place.
--- drivers/gpu/drm/i915/display/intel_dp.c | 59 +++++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_drrs.c | 54 --------------------- drivers/gpu/drm/i915/display/intel_drrs.h | 3 -- 3 files changed, 56 insertions(+), 60 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +56 -3
@@ -60,7 +60,6 @@#include "intel_dp_mst.h" #include "intel_dpio_phy.h" #include "intel_dpll.h" -#include "intel_drrs.h" #include "intel_fifo_underrun.h" #include "intel_hdcp.h" #include "intel_hdmi.h"
@@ -1770,6 +1769,60 @@ intel_dp_compute_hdr_metadata_infoframe_sdp(struct intel_dp *intel_dp,intel_hdmi_infoframe_enable (HDMI_PACKET_TYPE_GAMUT_METADATA ); } +static bool can_enable_drrs (struct intel_connector *connector, +const struct intel_crtc_state *pipe_config, +const struct drm_display_mode *downclock_mode) +{ +if (pipe_config->vrr.enable) +return false; + +/* +* DRRS and PSR can't be enable together, so giving preference to PSR +* as it allows more power-savings by complete shutting down display, +* so to guarantee this, intel_drrs_compute_config() must be called +* after intel_psr_compute_config(). +*/ +if (pipe_config->has_psr) +return false; + +return downclock_mode && +intel_panel_drrs_type (connector) ==DRRS_TYPE_SEAMLESS ; +} + +static void +intel_dp_drrs_compute_config (struct intel_connector *connector, +struct intel_crtc_state *pipe_config, +int output_bpp,bool constant_n) +{ +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +const struct drm_display_mode *downclock_mode = +intel_panel_downclock_mode (connector, &pipe_config->hw.adjusted_mode); +int pixel_clock; + +if (!can_enable_drrs (connector, pipe_config, downclock_mode)) { +if (intel_cpu_transcoder_has_m2_n2 (i915, pipe_config->cpu_transcoder)) +intel_zero_m_n (&pipe_config->dp_m2_n2); +return ; + } + +if (IS_IRONLAKE (i915) ||IS_SANDYBRIDGE (i915) ||IS_IVYBRIDGE (i915)) + pipe_config->msa_timing_delay = i915->vbt.edp.drrs_msa_timing_delay; + + pipe_config->has_drrs = true; + + pixel_clock = downclock_mode->clock; +if (pipe_config->splitter.enable) + pixel_clock /= pipe_config->splitter.link_count; + +intel_link_compute_m_n (output_bpp, pipe_config->lane_count, pixel_clock, + pipe_config->port_clock, &pipe_config->dp_m2_n2, + constant_n, pipe_config->fec_enable); + +/* FIXME: abstract this better */ +if (pipe_config->splitter.enable) + pipe_config->dp_m2_n2.data_m *= pipe_config->splitter.link_count; +} + int intel_dp_compute_config(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config,
@@ -1878,8 +1931,8 @@ intel_dp_compute_config(struct intel_encoder *encoder,intel_vrr_compute_config (pipe_config, conn_state);intel_psr_compute_config (intel_dp, pipe_config, conn_state); -intel_drrs_compute_config (intel_connector, pipe_config, - output_bpp, constant_n); +intel_dp_drrs_compute_config (intel_connector, pipe_config, + output_bpp, constant_n);intel_dp_compute_vsc_sdp (intel_dp, pipe_config, conn_state);intel_dp_compute_hdr_metadata_infoframe_sdp (intel_dp, pipe_config, conn_state);
drivers/gpu/drm/i915/display/intel_drrs.c +0 -54
60 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_drrs.h +0 -3
@@ -23,9 +23,6 @@ void intel_drrs_invalidate(struct drm_i915_private *dev_priv, unsigned int frontbuffer_bits);void intel_drrs_flush (struct drm_i915_private *dev_priv,unsigned int frontbuffer_bits); -void intel_drrs_compute_config (struct intel_connector *connector, -struct intel_crtc_state *pipe_config, -int output_bpp,bool constant_n);void intel_crtc_drrs_init (struct intel_crtc *crtc);#endif /* __INTEL_DRRS_H__ */
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 09/11] drm/i915: Move intel_drrs_compute_config() into intel_dp.c
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
intel_drrs_compute_config()is 100% DP specific. DRRS on other types of encoders wouldn't do any of these M2/N2 calculations etc. So let's move this intointel_dp.cso all the DP state calculation is more concentrated into one place.Signed-off-by Ville Syrjälä <[email protected]>
Sad trombone on increasing intel_dp.c size.
Quoted 169 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 59 +++++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_drrs.c | 54 --------------------- drivers/gpu/drm/i915/display/intel_drrs.h | 3 -- 3 files changed, 56 insertions(+), 60 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +56
-3@@ -60,7 +60,6 @@#include "intel_dp_mst.h" #include "intel_dpio_phy.h" #include "intel_dpll.h" -#include "intel_drrs.h" #include "intel_fifo_underrun.h" #include "intel_hdcp.h" #include "intel_hdmi.h" @@ -1770,6 +1769,60 @@ intel_dp_compute_hdr_metadata_infoframe_sdp(struct intel_dp *intel_dp,intel_hdmi_infoframe_enable (HDMI_PACKET_TYPE_GAMUT_METADATA ); } +static bool can_enable_drrs (struct intel_connector *connector, +const struct intel_crtc_state *pipe_config, +const struct drm_display_mode *downclock_mode) +{ +if (pipe_config->vrr.enable) +return false; + +/* +* DRRS and PSR can't be enable together, so giving preference to PSR +* as it allows more power-savings by complete shutting down display, +* so to guarantee this, intel_drrs_compute_config() must be called +* after intel_psr_compute_config(). +*/ +if (pipe_config->has_psr) +return false; + +return downclock_mode && +intel_panel_drrs_type (connector) ==DRRS_TYPE_SEAMLESS ; +} + +static void +intel_dp_drrs_compute_config (struct intel_connector *connector, +struct intel_crtc_state *pipe_config, +int output_bpp,bool constant_n) +{ +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +const struct drm_display_mode *downclock_mode = +intel_panel_downclock_mode (connector, &pipe_config->hw.adjusted_mode); +int pixel_clock; + +if (!can_enable_drrs (connector, pipe_config, downclock_mode)) { +if (intel_cpu_transcoder_has_m2_n2 (i915, pipe_config->cpu_transcoder)) +intel_zero_m_n (&pipe_config->dp_m2_n2); +return ; + } + +if (IS_IRONLAKE (i915) ||IS_SANDYBRIDGE (i915) ||IS_IVYBRIDGE (i915)) + pipe_config->msa_timing_delay = i915->vbt.edp.drrs_msa_timing_delay; + + pipe_config->has_drrs = true; + + pixel_clock = downclock_mode->clock; +if (pipe_config->splitter.enable) + pixel_clock /= pipe_config->splitter.link_count; + +intel_link_compute_m_n (output_bpp, pipe_config->lane_count, pixel_clock, + pipe_config->port_clock, &pipe_config->dp_m2_n2, + constant_n, pipe_config->fec_enable); + +/* FIXME: abstract this better */ +if (pipe_config->splitter.enable) + pipe_config->dp_m2_n2.data_m *= pipe_config->splitter.link_count; +} + int intel_dp_compute_config(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config,@@ -1878,8 +1931,8 @@ intel_dp_compute_config(struct intel_encoder *encoder,intel_vrr_compute_config (pipe_config, conn_state);intel_psr_compute_config (intel_dp, pipe_config, conn_state); -intel_drrs_compute_config (intel_connector, pipe_config, - output_bpp, constant_n); +intel_dp_drrs_compute_config (intel_connector, pipe_config, + output_bpp, constant_n);intel_dp_compute_vsc_sdp (intel_dp, pipe_config, conn_state);intel_dp_compute_hdr_metadata_infoframe_sdp (intel_dp, pipe_config, conn_state);drivers/gpu/drm/i915/display/intel_drrs.c +0
-54@@ -61,60 +61,6 @@ const char *intel_drrs_type_str(enum drrs_type drrs_type)return str[drrs_type]; } -static bool can_enable_drrs (struct intel_connector *connector, -const struct intel_crtc_state *pipe_config, -const struct drm_display_mode *downclock_mode) -{ -if (pipe_config->vrr.enable) -return false; - -/* -* DRRS and PSR can't be enable together, so giving preference to PSR -* as it allows more power-savings by complete shutting down display, -* so to guarantee this, intel_drrs_compute_config() must be called -* after intel_psr_compute_config(). -*/ -if (pipe_config->has_psr) -return false; - -return downclock_mode && -intel_panel_drrs_type (connector) ==DRRS_TYPE_SEAMLESS ; -} - -void -intel_drrs_compute_config (struct intel_connector *connector, -struct intel_crtc_state *pipe_config, -int output_bpp,bool constant_n) -{ -struct drm_i915_private *i915 =to_i915 (connector->base.dev); -const struct drm_display_mode *downclock_mode = -intel_panel_downclock_mode (connector, &pipe_config->hw.adjusted_mode); -int pixel_clock; - -if (!can_enable_drrs (connector, pipe_config, downclock_mode)) { -if (intel_cpu_transcoder_has_m2_n2 (i915, pipe_config->cpu_transcoder)) -intel_zero_m_n (&pipe_config->dp_m2_n2); -return ; - } - -if (IS_IRONLAKE (i915) ||IS_SANDYBRIDGE (i915) ||IS_IVYBRIDGE (i915)) - pipe_config->msa_timing_delay = i915->vbt.edp.drrs_msa_timing_delay; - - pipe_config->has_drrs = true; - - pixel_clock = downclock_mode->clock; -if (pipe_config->splitter.enable) - pixel_clock /= pipe_config->splitter.link_count; - -intel_link_compute_m_n (output_bpp, pipe_config->lane_count, pixel_clock, - pipe_config->port_clock, &pipe_config->dp_m2_n2, - constant_n, pipe_config->fec_enable); - -/* FIXME: abstract this better */ -if (pipe_config->splitter.enable) - pipe_config->dp_m2_n2.data_m *= pipe_config->splitter.link_count; -} -static void intel_drrs_set_refresh_rate_pipeconf (struct intel_crtc *crtc,enum drrs_refresh_rate refresh_rate)drivers/gpu/drm/i915/display/intel_drrs.h +0
-3@@ -23,9 +23,6 @@ void intel_drrs_invalidate(struct drm_i915_private *dev_priv, unsigned int frontbuffer_bits);void intel_drrs_flush (struct drm_i915_private *dev_priv,unsigned int frontbuffer_bits); -void intel_drrs_compute_config (struct intel_connector *connector, -struct intel_crtc_state *pipe_config, -int output_bpp,bool constant_n);void intel_crtc_drrs_init (struct intel_crtc *crtc);#endif /* __INTEL_DRRS_H__ */
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 10/11 drm/i915: Allow static DRRS on all eDP ports
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Only seamless DRRS has specific hardware requirements so we can allow static DRRS on any eDP port.
And we can replace these port checks and whatnot with a simple check to make sure the transcoder(s) we're about to use are capable of seamless DRRS.
--- drivers/gpu/drm/i915/display/intel_dp.c | 54 +++++++++---------------- 1 file changed, 20 insertions(+), 34 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +20 -34
@@ -1769,10 +1769,22 @@ intel_dp_compute_hdr_metadata_infoframe_sdp(struct intel_dp *intel_dp,intel_hdmi_infoframe_enable (HDMI_PACKET_TYPE_GAMUT_METADATA ); } +static bool cpu_transcoder_has_drrs (struct drm_i915_private *i915, +enum transcoder cpu_transcoder) +{ +/* M1/N1 is double buffered */ +if (DISPLAY_VER (i915) >=9 ||IS_BROADWELL (i915)) +return true; + +return intel_cpu_transcoder_has_m2_n2 (i915, cpu_transcoder); +} +static bool can_enable_drrs (struct intel_connector *connector,const struct intel_crtc_state *pipe_config,const struct drm_display_mode *downclock_mode) { +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +if (pipe_config->vrr.enable)return false;
@@ -1785,6 +1797,13 @@ static bool can_enable_drrs(struct intel_connector *connector,if (pipe_config->has_psr)return false; +/* FIXME missing FDI M2/N2 etc. */ +if (pipe_config->has_pch_encoder) +return false; + +if (!cpu_transcoder_has_drrs (i915, pipe_config->cpu_transcoder)) +return false; +return downclock_mode &&intel_panel_drrs_type (connector) ==DRRS_TYPE_SEAMLESS ; }
@@ -5029,39 +5048,6 @@ intel_edp_add_properties(struct intel_dp *intel_dp) fixed_mode->vdisplay); } -static bool -intel_edp_has_drrs (struct intel_dp *intel_dp) -{ -struct intel_connector *connector = intel_dp->attached_connector; -struct intel_encoder *encoder = &dp_to_dig_port (intel_dp)->base; -struct drm_i915_private *i915 =to_i915 (connector->base.dev); - -if (DISPLAY_VER (i915) <5 ) { -drm_dbg_kms (&i915->drm, -"[CONNECTOR:%d:%s] DRRS not supported on platform\n" , - connector->base.base.id, connector->base.name); -return false; - } - -if ((DISPLAY_VER (i915) <8 && !HAS_GMCH (i915)) && - encoder->port !=PORT_A ) { -drm_dbg_kms (&i915->drm, -"[CONNECTOR:%d:%s] DRRS not supported on [ENCODER:%d:%s]\n" , - connector->base.base.id, connector->base.name, - encoder->base.base.id, encoder->base.name); -return false; - } - -if (i915->vbt.drrs_type ==DRRS_TYPE_NONE ) { -drm_dbg_kms (&i915->drm, -"[CONNECTOR:%d:%s] DRRS not supported according to VBT\n" , - connector->base.base.id, connector->base.name); -return false; - } - -return true; -} -static bool intel_edp_init_connector (struct intel_dp *intel_dp,struct intel_connector *intel_connector) {
@@ -5126,7 +5112,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, intel_connector->edid = edid;intel_panel_add_edid_fixed_modes (intel_connector, -intel_edp_has_drrs (intel_dp)); + dev_priv->vbt.drrs_type !=DRRS_TYPE_NONE );/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 10/11] drm/i915: Allow static DRRS on all eDP ports
Quoted 10 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Only seamless DRRS has specific hardware requirements so we can allow static DRRS on any eDP port.
And we can replace these port checks and whatnot with a simple check to make sure the transcoder(s) we're about to use are capable of seamless DRRS.
Signed-off-by Ville Syrjälä <[email protected]>
I don't know why it's so hard for me to map the conditions. It all looks legit, but...
Let's say,
Quoted 94 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 54 +++++++++---------------- 1 file changed, 20 insertions(+), 34 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +20
-34@@ -1769,10 +1769,22 @@ intel_dp_compute_hdr_metadata_infoframe_sdp(struct intel_dp *intel_dp,intel_hdmi_infoframe_enable (HDMI_PACKET_TYPE_GAMUT_METADATA ); } +static bool cpu_transcoder_has_drrs (struct drm_i915_private *i915, +enum transcoder cpu_transcoder) +{ +/* M1/N1 is double buffered */ +if (DISPLAY_VER (i915) >=9 ||IS_BROADWELL (i915)) +return true; + +return intel_cpu_transcoder_has_m2_n2 (i915, cpu_transcoder); +} +static bool can_enable_drrs (struct intel_connector *connector,const struct intel_crtc_state *pipe_config,const struct drm_display_mode *downclock_mode) { +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +if (pipe_config->vrr.enable)return false;@@ -1785,6 +1797,13 @@ static bool can_enable_drrs(struct intel_connector *connector,if (pipe_config->has_psr)return false; +/* FIXME missing FDI M2/N2 etc. */ +if (pipe_config->has_pch_encoder) +return false; + +if (!cpu_transcoder_has_drrs (i915, pipe_config->cpu_transcoder)) +return false; +return downclock_mode &&intel_panel_drrs_type (connector) ==DRRS_TYPE_SEAMLESS ; }@@ -5029,39 +5048,6 @@ intel_edp_add_properties(struct intel_dp *intel_dp) fixed_mode->vdisplay); } -static bool -intel_edp_has_drrs (struct intel_dp *intel_dp) -{ -struct intel_connector *connector = intel_dp->attached_connector; -struct intel_encoder *encoder = &dp_to_dig_port (intel_dp)->base; -struct drm_i915_private *i915 =to_i915 (connector->base.dev); - -if (DISPLAY_VER (i915) <5 ) { -drm_dbg_kms (&i915->drm, -"[CONNECTOR:%d:%s] DRRS not supported on platform\n" , - connector->base.base.id, connector->base.name); -return false; - } - -if ((DISPLAY_VER (i915) <8 && !HAS_GMCH (i915)) && - encoder->port !=PORT_A ) { -drm_dbg_kms (&i915->drm, -"[CONNECTOR:%d:%s] DRRS not supported on [ENCODER:%d:%s]\n" , - connector->base.base.id, connector->base.name, - encoder->base.base.id, encoder->base.name); -return false; - } - -if (i915->vbt.drrs_type ==DRRS_TYPE_NONE ) { -drm_dbg_kms (&i915->drm, -"[CONNECTOR:%d:%s] DRRS not supported according to VBT\n" , - connector->base.base.id, connector->base.name); -return false; - } - -return true; -} -static bool intel_edp_init_connector (struct intel_dp *intel_dp,struct intel_connector *intel_connector) {@@ -5126,7 +5112,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, intel_connector->edid = edid;intel_panel_add_edid_fixed_modes (intel_connector, -intel_edp_has_drrs (intel_dp)); + dev_priv->vbt.drrs_type !=DRRS_TYPE_NONE );/* MSO requires information from the EDID */ intel_edp_mso_init (intel_dp);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 11/11 drm/i915: Allow static DRRS on LVDS
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Nothing special about static DRRS on LVDS, it's just your bog standard modeset. Let's allow it.
--- drivers/gpu/drm/i915/display/intel_lvds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_lvds.c +2 -1
@@ -968,7 +968,8 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) intel_connector->edid = edid;/* Try EDID first */ -intel_panel_add_edid_fixed_modes (intel_connector, false); +intel_panel_add_edid_fixed_modes (intel_connector, + dev_priv->vbt.drrs_type !=DRRS_TYPE_NONE );/* Failed to get EDID, what about VBT? */ if (!intel_panel_preferred_fixed_mode (intel_connector))
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 11/11] drm/i915: Allow static DRRS on LVDS
Quoted 15 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Nothing special about static DRRS on LVDS, it's just your bog standard modeset. Let's allow it.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_lvds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/display/intel_lvds.c +0
-0
drivers/gpu/drm/i915/display/intel_lvds.c void intel_lvds_init(struct drm_i915_private *dev_priv) · line 972
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_lvds.c +2
-1@@ -968,7 +968,8 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) intel_connector->edid = edid;/* Try EDID first */ -intel_panel_add_edid_fixed_modes (intel_connector, false); +intel_panel_add_edid_fixed_modes (intel_connector, + dev_priv->vbt.drrs_type !=DRRS_TYPE_NONE );
I guess the final question on this, and the previous patch for that matter, is why would the VBT block your regular modeset between two different refresh rates?
It does sound like the VBT setting is more about OEM decided policy than anything else.
Anyway,
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_lvds.c +0
-0/* Failed to get EDID, what about VBT? */ if (!intel_panel_preferred_fixed_mode (intel_connector))
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH v2 11/11] drm/i915: Allow static DRRS on LVDS
Quoted 27 lines · Jani Nikula
Quoted 15 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Nothing special about static DRRS on LVDS, it's just your bog standard modeset. Let's allow it.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_lvds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/display/intel_lvds.c +0
-0drivers/gpu/drm/i915/display/intel_lvds.c void intel_lvds_init(struct drm_i915_private *dev_priv) · line 972
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_lvds.c +2
-1@@ -968,7 +968,8 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) intel_connector->edid = edid;/* Try EDID first */ -intel_panel_add_edid_fixed_modes (intel_connector, false); +intel_panel_add_edid_fixed_modes (intel_connector, + dev_priv->vbt.drrs_type !=DRRS_TYPE_NONE );I guess the final question on this, and the previous patch for that matter, is why would the VBT block your regular modeset between two different refresh rates?
Quoted 2 lines
It does sound like the VBT setting is more about OEM decided policy than anything else.
Or just lack of validation.
Quoted 11 lines
Anyway,
Reviewed-by Jani Nikula <[email protected]>Quoted 3 lines
drivers/gpu/drm/i915/display/intel_lvds.c +0
-0/* Failed to get EDID, what about VBT? */ if (!intel_panel_preferred_fixed_mode (intel_connector))Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] [PATCH v2 11/11] drm/i915: Allow static DRRS on LVDS
Quoted 28 lines · Ville Syrjälä
Quoted 27 lines · Jani Nikula
Quoted 15 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Nothing special about static DRRS on LVDS, it's just your bog standard modeset. Let's allow it.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_lvds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/display/intel_lvds.c +0
-0drivers/gpu/drm/i915/display/intel_lvds.c void intel_lvds_init(struct drm_i915_private *dev_priv) · line 972
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_lvds.c +2
-1@@ -968,7 +968,8 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) intel_connector->edid = edid;/* Try EDID first */ -intel_panel_add_edid_fixed_modes (intel_connector, false); +intel_panel_add_edid_fixed_modes (intel_connector, + dev_priv->vbt.drrs_type !=DRRS_TYPE_NONE );I guess the final question on this, and the previous patch for that matter, is why would the VBT block your regular modeset between two different refresh rates?
Quoted 4 lines
Quoted 2 lines
It does sound like the VBT setting is more about OEM decided policy than anything else.
Or just lack of validation.
After staring at a bunch of VBTs from these laptops with high refresh rate panels it seems some of them do not declare DRRS support at all. So it looks like the other thing we need to consider here is VRR support. There's also a newish field in VBT for VRR which seems like something we need to start looking at (currently we only look at DPCD+EDID for that).
And the even bigger problem is that several of the VBTs have panel_type=0xff, so looks like we really need to make that PNPID matching stuff happen :/ Filed a bug to track that one separately
https://gitlab.freedesktop.org/drm/intel/-/issues/5545
Signature · 2 lines
Ville Syrjälä Intel
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Finish off static DRRS (rev2)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Finish off static DRRS (rev2)
URL : https://patchwork.freedesktop.org/series/101928/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11432 -> Patchwork_22748
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/index.html
Participating hosts (44 -> 41)
------------------------------
Additional (5): bat-dg2-8 bat-adlm-1 fi-icl-u2 fi-pnv-d510 bat-jsl-1
Missing (8): fi-kbl-soraka fi-cml-u2 shard-tglu bat-hsw-1 fi-kbl-8809g shard-rkl bat-jsl-2 fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22748:
### CI changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* boot:
- {bat-jsl-1}: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/bat-jsl-1/boot.html
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_pm_rpm@basic-rte:
- {bat-adlm-1}: NOTRUN -> [INCOMPLETE][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/bat-adlm-1/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_22748 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> [SKIP][3] ([fdo#109315]) +17 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@amdgpu/[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-pnv-d510: NOTRUN -> [SKIP][4] ([fdo#109271]) +57 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-pnv-d510/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][5] ([i915#2190])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][6] ([i915#4613]) +3 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@[email protected]
* igt@i915_selftest@live@gt_lrc:
- fi-bsw-n3050: [PASS][7] -> [DMESG-FAIL][8] ([i915#2373])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][9] -> [INCOMPLETE][10] ([i915#3921])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/fi-snb-2600/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: NOTRUN -> [SKIP][11] ([fdo#111827]) +8 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-icl-u2: NOTRUN -> [SKIP][12] ([fdo#109278]) +2 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@[email protected]
* igt@kms_flip@basic-flip-vs-dpms@a-edp1:
- fi-tgl-u2: [PASS][13] -> [DMESG-WARN][14] ([i915#402])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/fi-tgl-u2/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-tgl-u2/igt@kms_flip@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-u2: NOTRUN -> [SKIP][15] ([fdo#109285])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c:
- fi-pnv-d510: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#5341])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-pnv-d510/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- fi-icl-u2: NOTRUN -> [SKIP][17] ([i915#3555])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-icl-u2: NOTRUN -> [SKIP][18] ([i915#3301])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_gttfill@basic:
- {bat-dg2-9}: [DMESG-WARN][19] ([i915#5195]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/bat-dg2-9/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/bat-dg2-9/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- {fi-hsw-g3258}: [INCOMPLETE][21] ([i915#4785]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/fi-hsw-g3258/igt@i915_selftest@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-hsw-g3258/igt@i915_selftest@[email protected]
* igt@kms_busy@basic@flip:
- {bat-adlp-6}: [DMESG-WARN][23] ([i915#3576]) -> [PASS][24] +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/bat-adlp-6/igt@kms_busy@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/bat-adlp-6/igt@kms_busy@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@a-edp1:
- fi-tgl-u2: [DMESG-WARN][25] ([i915#402]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/fi-tgl-u2/igt@kms_flip@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/fi-tgl-u2/igt@kms_flip@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2373]: https://gitlab.freedesktop.org/drm/intel/issues/2373
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5193]: https://gitlab.freedesktop.org/drm/intel/issues/5193
[i915#5195]: https://gitlab.freedesktop.org/drm/intel/issues/5195
[i915#5270]: https://gitlab.freedesktop.org/drm/intel/issues/5270
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5275]: https://gitlab.freedesktop.org/drm/intel/issues/5275
[i915#5341]: https://gitlab.freedesktop.org/drm/intel/issues/5341
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5356]: https://gitlab.freedesktop.org/drm/intel/issues/5356
Build changes
-------------
* Linux: CI_DRM_11432 -> Patchwork_22748
CI-20190529: 20190529
CI_DRM_11432: 4ba74a937fb7f163e8c1a440f195ca80727a17e4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6402: cdac65fc2d88b506d0be71500845725ae46dbb64 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22748: 1b95ad609be8adc3469f3ea3d65d97c5627bcb74 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
1b95ad609be8 drm/i915: Allow static DRRS on LVDSc31db95238f9 drm/i915: Allow static DRRS on all eDP ports 33746d80cb94 drm/i915: Move intel_drrs_compute_config() into intel_dp.c 2a3b61b85e08 drm/i915: Allow higher refresh rate alternate fixed modes bc45fd4d118e drm/i915: Allow an arbitrary number of downclock modes f55e6f7b64e5 drm/i915: Stop duplicating the EDID fixed/downclock modes 1715121e780f drm/i915: Combine the EDID fixed_mode+downclock_mode lookup into one 9d008f7249ab drm/i915: Nuke intel_drrs_init()854723fbcafd drm/i915: Refactor non-EDID fixed mode duplication 00e821a9f8a6 drm/i915: Put fixed modes directly onto the panel's fixed_modes list 3b8a82acabed drm/i915: Extract intel_edp_has_drrs()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Finish off static DRRS (rev2)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Finish off static DRRS (rev2)
URL : https://patchwork.freedesktop.org/series/101928/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11432_full -> Patchwork_22748_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (13 -> 13)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22748_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@drm_import_export@import-close-race-flink:
- {shard-rkl}: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-5/igt@[email protected]
* igt@gem_exec_balancer@full-pulse:
- {shard-rkl}: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-5/igt@[email protected]
* igt@gem_exec_fence@syncobj-repeat:
- {shard-rkl}: [PASS][5] -> ([DMESG-WARN][6], [PASS][7])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-5/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-4/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_22748_full that come from known issues:
### CI changes ###
#### Possible fixes ####
* boot:
- shard-skl: ([FAIL][8], [FAIL][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [PASS][19], [PASS][20], [PASS][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25], [FAIL][26], [FAIL][27], [PASS][28]) ([i915#5032]) -> ([PASS][29], [PASS][30], [PASS][31], [PASS][32], [PASS][33], [PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [PASS][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50], [PASS][51])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl8/boot.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl8/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl9/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl9/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl7/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl6/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl6/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl6/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl4/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl4/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl2/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl2/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl1/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl1/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl1/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl10/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl10/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl10/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl8/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl8/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl7/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl8/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl7/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl7/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl7/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl6/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl6/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl6/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl3/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl3/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl3/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl9/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl9/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl8/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl8/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl2/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl1/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl1/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/boot.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/boot.html
### IGT changes ###
#### Issues hit ####
* igt@feature_discovery@psr2:
- shard-iclb: [PASS][52] -> [SKIP][53] ([i915#658])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-iclb2/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-iclb: [PASS][54] -> [TIMEOUT][55] ([i915#2481] / [i915#3070])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-iclb6/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb3/igt@[email protected]
* igt@gem_exec_capture@pi@bcs0:
- shard-skl: [PASS][56] -> [INCOMPLETE][57] ([i915#4547])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl9/igt@gem_exec_capture@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl9/igt@gem_exec_capture@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-tglb: [PASS][58] -> [FAIL][59] ([i915#2842])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-tglb2/igt@gem_exec_fair@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-tglb5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [PASS][60] -> [FAIL][61] ([i915#2842]) +2 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-kbl4/igt@gem_exec_fair@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-kbl4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-apl: [PASS][62] -> [FAIL][63] ([i915#2842])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-apl8/igt@gem_exec_fair@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-apl6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [PASS][64] -> [FAIL][65] ([i915#2842])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-glk5/igt@gem_exec_fair@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][66] -> [FAIL][67] ([i915#2842])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-iclb3/igt@gem_exec_fair@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [PASS][68] -> [SKIP][69] ([i915#2190])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-tglb1/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-tglb7/igt@[email protected]
* igt@gem_lmem_swapping@heavy-random:
- shard-skl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#4613]) +3 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/igt@[email protected]
* igt@gem_lmem_swapping@smem-oom:
- shard-iclb: NOTRUN -> [SKIP][71] ([i915#4613]) +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@gem_mmap_gtt@coherency:
- shard-iclb: NOTRUN -> [SKIP][72] ([fdo#109292])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-iclb: NOTRUN -> [WARN][73] ([i915#2658])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@gem_pxp@regular-baseline-src-copy-readible:
- shard-iclb: NOTRUN -> [SKIP][74] ([i915#4270]) +1 similar issue
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@gem_render_copy@y-tiled-to-vebox-yf-tiled:
- shard-kbl: NOTRUN -> [SKIP][75] ([fdo#109271]) +12 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-kbl3/igt@[email protected]
* igt@gem_userptr_blits@coherency-sync:
- shard-skl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#1888])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-iclb: NOTRUN -> [SKIP][77] ([i915#3297])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@gem_userptr_blits@input-checking:
- shard-skl: NOTRUN -> [DMESG-WARN][78] ([i915#4991]) +1 similar issue
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-iclb: NOTRUN -> [FAIL][79] ([i915#3318])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][80] ([i915#3318])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/igt@[email protected]
* igt@gen7_exec_parse@bitmasks:
- shard-iclb: NOTRUN -> [SKIP][81] ([fdo#109289]) +2 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb7/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-skl: [PASS][82] -> [DMESG-WARN][83] ([i915#1436] / [i915#716]) +1 similar issue
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl1/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl7/igt@[email protected]
* igt@gen9_exec_parse@basic-rejected:
- shard-iclb: NOTRUN -> [SKIP][84] ([i915#2856]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][85] -> [FAIL][86] ([i915#454])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-iclb7/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb7/igt@[email protected]
* igt@i915_pm_rpm@modeset-pc8-residency-stress:
- shard-iclb: NOTRUN -> [SKIP][87] ([fdo#109293] / [fdo#109506])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@i915_suspend@forcewake:
- shard-apl: [PASS][88] -> [DMESG-WARN][89] ([i915#180]) +1 similar issue
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-apl3/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-apl6/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- shard-iclb: NOTRUN -> [SKIP][90] ([i915#5286])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
* igt@kms_big_fb@linear-32bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][91] ([fdo#110725] / [fdo#111614]) +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-async-flip:
- shard-skl: NOTRUN -> [FAIL][92] ([i915#3743]) +1 similar issue
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl7/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-skl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#3777]) +6 similar issues
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl6/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_mc_ccs:
- shard-iclb: NOTRUN -> [SKIP][94] ([fdo#109278] / [i915#3886]) +3 similar issues
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb8/igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][95] ([fdo#109271] / [i915#3886])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-kbl7/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][96] ([fdo#109271] / [i915#3886]) +11 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_chamelium@dp-crc-multiple:
- shard-skl: NOTRUN -> [SKIP][97] ([fdo#109271] / [fdo#111827]) +21 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/igt@[email protected]
* igt@kms_color@pipe-a-deep-color:
- shard-iclb: NOTRUN -> [SKIP][98] ([fdo#109278] / [i915#3555])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-0-75:
- shard-kbl: NOTRUN -> [SKIP][99] ([fdo#109271] / [fdo#111827]) +2 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-kbl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-max:
- shard-iclb: NOTRUN -> [SKIP][100] ([fdo#109284] / [fdo#111827]) +4 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-max:
- shard-iclb: NOTRUN -> [SKIP][101] ([fdo#109278] / [fdo#109284] / [fdo#111827])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-256x85-rapid-movement:
- shard-glk: NOTRUN -> [SKIP][102] ([fdo#109271])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-glk9/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-toggle:
- shard-skl: [PASS][103] -> [FAIL][104] ([i915#2346])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl4/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl2/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-torture-bo:
- shard-skl: NOTRUN -> [SKIP][105] ([fdo#109271] / [i915#533]) +2 similar issues
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb8888-render-4tiled:
- shard-iclb: NOTRUN -> [SKIP][106] ([i915#5287])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_dsc@xrgb8888-dsc-compression:
- shard-iclb: NOTRUN -> [SKIP][107] ([i915#3828])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb7/igt@[email protected]
* igt@kms_flip@2x-flip-vs-wf_vblank-interruptible:
- shard-iclb: NOTRUN -> [SKIP][108] ([fdo#109274]) +3 similar issues
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@kms_flip@2x-flip-vs-wf_vblank-interruptible.html
* igt@kms_flip@plain-flip-fb-recreate-interruptible@c-edp1:
- shard-skl: [PASS][109] -> [FAIL][110] ([i915#2122]) +3 similar issues
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-skl7/igt@kms_flip@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl3/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling:
- shard-skl: NOTRUN -> [INCOMPLETE][111] ([i915#3701])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl7/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling.html
* igt@kms_frontbuffer_tracking@fbc-1p-shrfb-fliptrack-mmap-gtt:
- shard-skl: NOTRUN -> [SKIP][112] ([fdo#109271]) +334 similar issues
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-blt:
- shard-iclb: NOTRUN -> [SKIP][113] ([fdo#109280]) +12 similar issues
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-tiling-4:
- shard-iclb: NOTRUN -> [SKIP][114] ([i915#5438])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][115] ([fdo#109271] / [i915#533])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-kbl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: NOTRUN -> [FAIL][116] ([fdo#108145] / [i915#265]) +3 similar issues
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl4/igt@[email protected]
* igt@kms_plane_lowres@pipe-c-tiling-yf:
- shard-iclb: NOTRUN -> [SKIP][117] ([i915#3536])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb7/igt@[email protected]
* igt@kms_plane_scaling@upscale-with-rotation-factor-0-25@pipe-b-edp-1-upscale-with-rotation:
- shard-iclb: NOTRUN -> [SKIP][118] ([i915#5176]) +2 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@kms_plane_scaling@upscale-with-rotation-factor-0-25@pipe-b-edp-1-upscale-with-rotation.html
* igt@kms_psr2_sf@cursor-plane-update-sf:
- shard-skl: NOTRUN -> [SKIP][119] ([fdo#109271] / [i915#658]) +5 similar issues
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/igt@[email protected]
* igt@kms_psr@dpms:
- shard-apl: NOTRUN -> [SKIP][120] ([fdo#109271]) +2 similar issues
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-apl1/igt@[email protected]
* igt@kms_psr@psr2_dpms:
- shard-iclb: [PASS][121] -> [SKIP][122] ([fdo#109441]) +2 similar issues
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-iclb2/igt@kms_psr@psr2_dpms.html
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb8/igt@kms_psr@psr2_dpms.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [PASS][123] -> [DMESG-WARN][124] ([i915#180] / [i915#295])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-apl8/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-apl6/igt@[email protected]
* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-apl: NOTRUN -> [DMESG-WARN][125] ([i915#180])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-apl1/igt@[email protected]
* igt@kms_vblank@pipe-d-ts-continuation-idle-hang:
- shard-iclb: NOTRUN -> [SKIP][126] ([fdo#109278]) +14 similar issues
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
* igt@kms_writeback@writeback-pixel-formats:
- shard-skl: NOTRUN -> [SKIP][127] ([fdo#109271] / [i915#2437]) +1 similar issue
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl10/igt@[email protected]
* igt@prime_nv_api@nv_i915_reimport_twice_check_flink_name:
- shard-iclb: NOTRUN -> [SKIP][128] ([fdo#109291])
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb7/igt@prime_nv_api@nv_i915_reimport_twice_check_flink_name.html
* igt@sysfs_clients@create:
- shard-skl: NOTRUN -> [SKIP][129] ([fdo#109271] / [i915#2994]) +2 similar issues
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-skl6/igt@[email protected]
* igt@sysfs_clients@recycle-many:
- shard-iclb: NOTRUN -> [SKIP][130] ([i915#2994]) +1 similar issue
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb6/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@nullptr:
- {shard-rkl}: [SKIP][131] ([i915#2582]) -> [PASS][132]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-5/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-6/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@bcs0:
- {shard-rkl}: [FAIL][133] ([fdo#103375]) -> [PASS][134] +3 similar issues
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-4/igt@gem_ctx_isolation@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-2/igt@gem_ctx_isolation@[email protected]
* igt@gem_exec_fair@basic-deadline:
- {shard-rkl}: [FAIL][135] ([i915#2846]) -> [PASS][136]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-1/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-1/igt@[email protected]
- shard-glk: [FAIL][137] ([i915#2846]) -> [PASS][138]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-glk7/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-glk1/igt@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: [FAIL][139] ([i915#2842]) -> [PASS][140] +1 similar issue
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-tglb2/igt@gem_exec_fair@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-iclb: [FAIL][141] ([i915#2842]) -> [PASS][142]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-iclb1/igt@gem_exec_fair@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-iclb8/igt@gem_exec_fair@[email protected]
* igt@gem_softpin@allocator-evict-all-engines:
- shard-glk: [FAIL][143] ([i915#4171]) -> [PASS][144]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-glk8/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-glk5/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- {shard-tglu}: [SKIP][145] ([i915#4281]) -> [PASS][146]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-tglu-5/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-tglu-4/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a:
- {shard-dg1}: [SKIP][147] ([i915#1937]) -> [PASS][148]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-dg1-18/igt@i915_pm_lpsp@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-dg1-17/igt@i915_pm_lpsp@[email protected]
* igt@i915_pm_rpm@modeset-lpsp:
- {shard-rkl}: [SKIP][149] ([i915#1397]) -> [PASS][150]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-2/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-6/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait:
- {shard-dg1}: [SKIP][151] ([i915#1397]) -> [PASS][152] +1 similar issue
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-dg1-12/igt@[email protected]
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-dg1-18/igt@[email protected]
* igt@kms_color@pipe-a-ctm-0-75:
- {shard-rkl}: [SKIP][153] ([i915#1149] / [i915#1849] / [i915#4070] / [i915#4098]) -> [PASS][154] +1 similar issue
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-5/igt@[email protected]
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [DMESG-WARN][155] ([i915#180]) -> [PASS][156] +3 similar issues
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-kbl1/igt@[email protected]
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-kbl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x21-onscreen:
- {shard-rkl}: [SKIP][157] ([fdo#112022] / [i915#4070]) -> [PASS][158] +2 similar issues
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-5/igt@[email protected]
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-glk: [FAIL][159] ([i915#2346]) -> [PASS][160]
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-glk7/igt@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-glk1/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-legacy:
- {shard-rkl}: [SKIP][161] ([fdo#111825] / [i915#4070]) -> [PASS][162] +1 similar issue
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-2/igt@[email protected]
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@pipe-c-single-bo:
- {shard-rkl}: [SKIP][163] ([i915#4070]) -> ([PASS][164], [PASS][165])
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11432/shard-rkl-2/igt@[email protected]
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/shard-rkl-5/igt@kms_cursor_legac
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22748/index.html