drm/i915: DRRS fixes/cleanups and start of static DRRS
Subsystems (3)
v2 cover drm/i915: DRRS fixes/cleanups and start of static DRRS
From: Ville Syrjälä <[email protected]>
Fix/clean up the DRRS code sufficiently that I feel comfortable enabling it on all ilk+ CPU eDP ports. PCH ports still need a bit of work.
The other thing I slapped on top is the beginnings of static DRRS support (ie. actually changing the refresh rate based on what the user asked). This initial version is still limited to just two refresh rates though. We'll have to expand on that further to also allow switching the other supported refresh rates.
For the moment the user initiated refresh rate change will cause a full modeset. But I think we should be able to skip that if the hardware supports seamless DRRS, at least on BDW+ with its double buffered M/N registers. Some extra work will likely be needed for the modeset sequence to make sure the DRRS frontbuffer stuff won't interfere with the fastset reprogramming, and to make sure the reprogrmming happens atomically with all the plane updates. The biggest sticking point will probably be the fastset state check/copy stuff. As is that is pretty much a big hack when it comes to anything dotclock related and so probably needs some real surgery.
v2: Lot more refactoring and a real fixed_modes list
Ville Syrjälä (16):
drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties() drm/i915/sdvo: Passt the requesed mode to
intel_sdvo_create_preferred_input_timing()
drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds() drm/i915: Simplify intel_panel_info()
drm/i915: Nuke dev_priv->drrs.type
drm/i915: Introduce intel_panel_{fixed,downclock}_mode() drm/i915: Introduce intel_panel_get_modes() drm/i915: Introduce intel_panel_preferred_fixed_mode() drm/i915: Introduce intel_panel_drrs_type() drm/i915: Introduce intel_drrs_type_str()
drm/i915: Eliminate the intel_dp dependency from DRRS drm/i915: Stash DRRS state under intel_crtc drm/i915: Move DRRS enable/disable higher up drm/i915: Enable eDP DRRS on ilk/snb port A drm/i915: Implement static DRRS
drm/i915: Convert fixed_mode/downclock_mode into a list
drivers/gpu/drm/i915/display/icl_dsi.c | 11 +- .../gpu/drm/i915/display/intel_connector.c | 2 + drivers/gpu/drm/i915/display/intel_crtc.c | 2 + drivers/gpu/drm/i915/display/intel_ddi.c | 7 +- drivers/gpu/drm/i915/display/intel_display.c | 6 +- .../drm/i915/display/intel_display_debugfs.c | 152 +++----- .../drm/i915/display/intel_display_types.h | 17 +- drivers/gpu/drm/i915/display/intel_dp.c | 27 +- drivers/gpu/drm/i915/display/intel_drrs.c | 329 ++++++++---------- drivers/gpu/drm/i915/display/intel_drrs.h | 20 +- drivers/gpu/drm/i915/display/intel_dsi.c | 24 +- drivers/gpu/drm/i915/display/intel_dvo.c | 20 +- drivers/gpu/drm/i915/display/intel_lvds.c | 19 +- drivers/gpu/drm/i915/display/intel_panel.c | 99 +++++- drivers/gpu/drm/i915/display/intel_panel.h | 13 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 40 +-- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +- drivers/gpu/drm/i915/i915_drv.h | 15 - 18 files changed, 370 insertions(+), 442 deletions(-)
Signature · 1 line
2.34.1
PATCH v2 1/16 drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
From: Ville Syrjälä <[email protected]>
We want to eventually get rid of the connector->panel.fixed_mode pointer so avoid using it during DSI property setup. Since this all happens during the encoder init we already have the fixed_mode around, just pass that in.
--- drivers/gpu/drm/i915/display/icl_dsi.c | 11 ++++++----- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +++++---- 2 files changed, 11 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/display/icl_dsi.c +6 -5
@@ -1965,7 +1965,8 @@ static void icl_dphy_param_init(struct intel_dsi *intel_dsi)intel_dsi_log_params (intel_dsi); } -static void icl_dsi_add_properties (struct intel_connector *connector) +static void icl_dsi_add_properties (struct intel_connector *connector, +const struct drm_display_mode *fixed_mode) {u32 allowed_scalers;
@@ -1979,9 +1980,9 @@ static void icl_dsi_add_properties(struct intel_connector *connector) connector->base.state->scaling_mode =DRM_MODE_SCALE_ASPECT ;drm_connector_set_panel_orientation_with_quirk (&connector->base, -intel_dsi_get_panel_orientation (connector), - connector->panel.fixed_mode->hdisplay, - connector->panel.fixed_mode->vdisplay); +intel_dsi_get_panel_orientation (connector), + fixed_mode->hdisplay, + fixed_mode->vdisplay); }void icl_dsi_init (struct drm_i915_private *dev_priv)
@@ -2084,7 +2085,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)icl_dphy_param_init (intel_dsi); -icl_dsi_add_properties (intel_connector); +icl_dsi_add_properties (intel_connector, fixed_mode);return ; err:
drivers/gpu/drm/i915/display/vlv_dsi.c +5 -4
@@ -1657,7 +1657,8 @@ static const struct drm_connector_funcs intel_dsi_connector_funcs = { .atomic_duplicate_state = intel_digital_connector_duplicate_state, }; -static void vlv_dsi_add_properties (struct intel_connector *connector) +static void vlv_dsi_add_properties (struct intel_connector *connector, +const struct drm_display_mode *fixed_mode) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);u32 allowed_scalers;
@@ -1673,8 +1674,8 @@ static void vlv_dsi_add_properties(struct intel_connector *connector)drm_connector_set_panel_orientation_with_quirk (&connector->base,intel_dsi_get_panel_orientation (connector), - connector->panel.fixed_mode->hdisplay, - connector->panel.fixed_mode->vdisplay); + fixed_mode->hdisplay, + fixed_mode->vdisplay); }#define NS_KHZ_RATIO 1000000
@@ -1989,7 +1990,7 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv)intel_panel_init (&intel_connector->panel, fixed_mode,NULL );intel_backlight_setup (intel_connector,INVALID_PIPE ); -vlv_dsi_add_properties (intel_connector); +vlv_dsi_add_properties (intel_connector, fixed_mode);return ;
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 01/16] drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We want to eventually get rid of the
connector->panel.fixed_modepointer so avoid using it during DSI property setup. Since this all happens during the encoder init we already have thefixed_modearound, just pass that in.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 74 lines
--- drivers/gpu/drm/i915/display/icl_dsi.c | 11 ++++++----- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +++++---- 2 files changed, 11 insertions(+), 9 deletions(-)drivers/gpu/drm/i915/display/icl_dsi.c +6
-5@@ -1965,7 +1965,8 @@ static void icl_dphy_param_init(struct intel_dsi *intel_dsi)intel_dsi_log_params (intel_dsi); } -static void icl_dsi_add_properties (struct intel_connector *connector) +static void icl_dsi_add_properties (struct intel_connector *connector, +const struct drm_display_mode *fixed_mode) {u32 allowed_scalers;@@ -1979,9 +1980,9 @@ static void icl_dsi_add_properties(struct intel_connector *connector) connector->base.state->scaling_mode =DRM_MODE_SCALE_ASPECT ;drm_connector_set_panel_orientation_with_quirk (&connector->base, -intel_dsi_get_panel_orientation (connector), - connector->panel.fixed_mode->hdisplay, - connector->panel.fixed_mode->vdisplay); +intel_dsi_get_panel_orientation (connector), + fixed_mode->hdisplay, + fixed_mode->vdisplay); }void icl_dsi_init (struct drm_i915_private *dev_priv)@@ -2084,7 +2085,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)icl_dphy_param_init (intel_dsi); -icl_dsi_add_properties (intel_connector); +icl_dsi_add_properties (intel_connector, fixed_mode);return ; err:drivers/gpu/drm/i915/display/vlv_dsi.c +5
-4@@ -1657,7 +1657,8 @@ static const struct drm_connector_funcs intel_dsi_connector_funcs = { .atomic_duplicate_state = intel_digital_connector_duplicate_state, }; -static void vlv_dsi_add_properties (struct intel_connector *connector) +static void vlv_dsi_add_properties (struct intel_connector *connector, +const struct drm_display_mode *fixed_mode) {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);u32 allowed_scalers;@@ -1673,8 +1674,8 @@ static void vlv_dsi_add_properties(struct intel_connector *connector)drm_connector_set_panel_orientation_with_quirk (&connector->base,intel_dsi_get_panel_orientation (connector), - connector->panel.fixed_mode->hdisplay, - connector->panel.fixed_mode->vdisplay); + fixed_mode->hdisplay, + fixed_mode->vdisplay); }#define NS_KHZ_RATIO 1000000@@ -1989,7 +1990,7 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv)intel_panel_init (&intel_connector->panel, fixed_mode,NULL );intel_backlight_setup (intel_connector,INVALID_PIPE ); -vlv_dsi_add_properties (intel_connector); +vlv_dsi_add_properties (intel_connector, fixed_mode);return ;
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 2/16 drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
We want to stop using connector->panel.fixed_mode directtly. In order to look it up in the future we'll need to have the requested mode around, so pass that in fully (instead of just passing bits of it).
--- drivers/gpu/drm/i915/display/intel_sdvo.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/display/intel_sdvo.c +7 -11
@@ -783,24 +783,22 @@ static bool intel_sdvo_get_input_timing(struct intel_sdvo *intel_sdvo,static bool intel_sdvo_create_preferred_input_timing (struct intel_sdvo *intel_sdvo,struct intel_sdvo_connector *intel_sdvo_connector, -u16 clock, -u16 width, -u16 height) +const struct drm_display_mode *mode) {struct intel_sdvo_preferred_input_timing_args args;memset (&args,0 ,sizeof (args)); - args.clock = clock; - args.width = width; - args.height = height; + args.clock = mode->clock /10 ; + args.width = mode->hdisplay; + args.height = mode->vdisplay; args.interlace =0 ;if (IS_LVDS (intel_sdvo_connector)) {const struct drm_display_mode *fixed_mode = intel_sdvo_connector->base.panel.fixed_mode; -if (fixed_mode->hdisplay != width || - fixed_mode->vdisplay != height) +if (fixed_mode->hdisplay != args.width || + fixed_mode->vdisplay != args.height) args.scaled =1 ; }
@@ -1236,9 +1234,7 @@ intel_sdvo_get_preferred_input_mode(struct intel_sdvo *intel_sdvo,if (!intel_sdvo_create_preferred_input_timing (intel_sdvo, intel_sdvo_connector, - mode->clock /10 , - mode->hdisplay, - mode->vdisplay)) + mode))return false; if (!intel_sdvo_get_preferred_input_timing(intel_sdvo,
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 02/16] drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing()
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We want to stop using
connector->panel.fixed_modedirecttly. In order to look it up in the future we'll need to have the requested mode around, so pass that in fully (instead of just passing bits of it).Signed-off-by Ville Syrjälä <[email protected]>
Typo in subject.
Quoted 17 lines
--- drivers/gpu/drm/i915/display/intel_sdvo.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-)drivers/gpu/drm/i915/display/intel_sdvo.c +1
-3@@ -783,24 +783,22 @@ static bool intel_sdvo_get_input_timing(struct intel_sdvo *intel_sdvo,static bool intel_sdvo_create_preferred_input_timing (struct intel_sdvo *intel_sdvo,struct intel_sdvo_connector *intel_sdvo_connector, -u16 clock, -u16 width, -u16 height) +const struct drm_display_mode *mode) {
drivers/gpu/drm/i915/display/intel_sdvo.c static bool intel_sdvo_get_input_timing(struct intel_sdvo *intel_sdvo, · line 794
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_sdvo.c +3
-3struct intel_sdvo_preferred_input_timing_args args;memset (&args,0 ,sizeof (args)); - args.clock = clock; - args.width = width; - args.height = height; + args.clock = mode->clock /10 ; + args.width = mode->hdisplay; + args.height = mode->vdisplay; args.interlace =0 ;
Nitpick, the memset + member init looks like it really wants to be a local variable init with designated initializers. But not really part of this set.
Quoted 23 lines
drivers/gpu/drm/i915/display/intel_sdvo.c +3
-5if (IS_LVDS (intel_sdvo_connector)) {const struct drm_display_mode *fixed_mode = intel_sdvo_connector->base.panel.fixed_mode; -if (fixed_mode->hdisplay != width || - fixed_mode->vdisplay != height) +if (fixed_mode->hdisplay != args.width || + fixed_mode->vdisplay != args.height) args.scaled =1 ; }@@ -1236,9 +1234,7 @@ intel_sdvo_get_preferred_input_mode(struct intel_sdvo *intel_sdvo,if (!intel_sdvo_create_preferred_input_timing (intel_sdvo, intel_sdvo_connector, - mode->clock /10 , - mode->hdisplay, - mode->vdisplay)) + mode))return false; if (!intel_sdvo_get_preferred_input_timing(intel_sdvo,
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 3/16 drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
We want to eventually get rid of the connector->panel.fixed_mode pointer so avoid using it during LVDS setup. Since this all happens during the encoder init we already have the fixed_mode around, just pass that in.
--- drivers/gpu/drm/i915/display/intel_lvds.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_lvds.c +4 -3
@@ -784,7 +784,8 @@ bool intel_is_dual_link_lvds(struct drm_i915_private *dev_priv)return encoder &&to_lvds_encoder (&encoder->base)->is_dual_link; } -static bool compute_is_dual_link_lvds (struct intel_lvds_encoder *lvds_encoder) +static bool compute_is_dual_link_lvds (struct intel_lvds_encoder *lvds_encoder, +const struct drm_display_mode *fixed_mode) {struct drm_device *dev = lvds_encoder->base.base.dev;unsigned int val;
@@ -795,7 +796,7 @@ static bool compute_is_dual_link_lvds(struct intel_lvds_encoder *lvds_encoder)return dev_priv->params.lvds_channel_mode ==2 ;/* single channel LVDS is limited to 112 MHz */ -if (lvds_encoder->attached_connector->panel.fixed_mode->clock >112999 ) +if (fixed_mode->clock >112999 )return true;if (dmi_check_system (intel_dual_link_lvds))
@@ -1004,7 +1005,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)intel_panel_init (&intel_connector->panel, fixed_mode, downclock_mode);intel_backlight_setup (intel_connector,INVALID_PIPE ); - lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder); + lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder, fixed_mode);drm_dbg_kms (&dev_priv->drm,"detected %s-link lvds configuration\n" , lvds_encoder->is_dual_link ?"dual" :"single" );
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 03/16] drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds()
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We want to eventually get rid of the
connector->panel.fixed_modepointer so avoid using it during LVDS setup. Since this all happens during the encoder init we already have thefixed_modearound, just pass that in.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 35 lines
--- drivers/gpu/drm/i915/display/intel_lvds.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/display/intel_lvds.c +4
-3@@ -784,7 +784,8 @@ bool intel_is_dual_link_lvds(struct drm_i915_private *dev_priv)return encoder &&to_lvds_encoder (&encoder->base)->is_dual_link; } -static bool compute_is_dual_link_lvds (struct intel_lvds_encoder *lvds_encoder) +static bool compute_is_dual_link_lvds (struct intel_lvds_encoder *lvds_encoder, +const struct drm_display_mode *fixed_mode) {struct drm_device *dev = lvds_encoder->base.base.dev;unsigned int val;@@ -795,7 +796,7 @@ static bool compute_is_dual_link_lvds(struct intel_lvds_encoder *lvds_encoder)return dev_priv->params.lvds_channel_mode ==2 ;/* single channel LVDS is limited to 112 MHz */ -if (lvds_encoder->attached_connector->panel.fixed_mode->clock >112999 ) +if (fixed_mode->clock >112999 )return true;if (dmi_check_system (intel_dual_link_lvds))@@ -1004,7 +1005,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)intel_panel_init (&intel_connector->panel, fixed_mode, downclock_mode);intel_backlight_setup (intel_connector,INVALID_PIPE ); - lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder); + lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder, fixed_mode);drm_dbg_kms (&dev_priv->drm,"detected %s-link lvds configuration\n" , lvds_encoder->is_dual_link ?"dual" :"single" );
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 4/16 drm/i915: Simplify intel_panel_info()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
No need for all this connector type special casing. If the connector has a fixed mode just print it, otherwise don't.
--- .../drm/i915/display/intel_display_debugfs.c | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9 -15
@@ -544,11 +544,15 @@ static void intel_encoder_info(struct seq_file *m,drm_connector_list_iter_end (&conn_iter); } -static void intel_panel_info (struct seq_file *m,struct intel_panel *panel) +static void intel_panel_info (struct seq_file *m, +struct intel_connector *connector) { -const struct drm_display_mode *mode = panel->fixed_mode; +const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; -seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (mode)); +if (!fixed_mode) +return ; + +seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (fixed_mode)); } static void intel_hdcp_info(struct seq_file *m,
@@ -586,8 +590,6 @@ static void intel_dp_info(struct seq_file *m,seq_printf (m,"\tDPCD rev: %x\n" , intel_dp->dpcd[DP_DPCD_REV ]);seq_printf (m,"\taudio support: %s\n" ,str_yes_no (intel_dp->has_audio)); -if (intel_connector->base.connector_type == DRM_MODE_CONNECTOR_eDP) -intel_panel_info (m, &intel_connector->panel);drm_dp_downstream_debug (m, intel_dp->dpcd, intel_dp->downstream_ports, edid ? edid->data :NULL , &intel_dp->aux);
@@ -611,12 +613,6 @@ static void intel_hdmi_info(struct seq_file *m, str_yes_no(intel_hdmi->has_audio)); } -static void intel_lvds_info (struct seq_file *m, -struct intel_connector *intel_connector) -{ -intel_panel_info (m, &intel_connector->panel); -} -static void intel_connector_info (struct seq_file *m,struct drm_connector *connector) {
@@ -651,10 +647,6 @@ static void intel_connector_info(struct seq_file *m,else intel_dp_info (m, intel_connector);break ; -case DRM_MODE_CONNECTOR_LVDS : -if (encoder->type ==INTEL_OUTPUT_LVDS ) -intel_lvds_info (m, intel_connector); -break ;case DRM_MODE_CONNECTOR_HDMIA :if (encoder->type ==INTEL_OUTPUT_HDMI || encoder->type ==INTEL_OUTPUT_DDI )
@@ -667,6 +659,8 @@ static void intel_connector_info(struct seq_file *m,seq_puts (m,"\tHDCP version: " );intel_hdcp_info (m, intel_connector); +intel_panel_info (m, intel_connector); +seq_printf (m,"\tmodes:\n" );list_for_each_entry (mode, &connector->modes, head)intel_seq_print_mode (m,2 , mode);
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 04/16] drm/i915: Simplify intel_panel_info()
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
No need for all this connector type special casing. If the connector has a fixed mode just print it, otherwise don't.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 69 lines
--- .../drm/i915/display/intel_display_debugfs.c | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-15@@ -544,11 +544,15 @@ static void intel_encoder_info(struct seq_file *m,drm_connector_list_iter_end (&conn_iter); } -static void intel_panel_info (struct seq_file *m,struct intel_panel *panel) +static void intel_panel_info (struct seq_file *m, +struct intel_connector *connector) { -const struct drm_display_mode *mode = panel->fixed_mode; +const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; -seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (mode)); +if (!fixed_mode) +return ; + +seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (fixed_mode)); } static void intel_hdcp_info(struct seq_file *m,@@ -586,8 +590,6 @@ static void intel_dp_info(struct seq_file *m,seq_printf (m,"\tDPCD rev: %x\n" , intel_dp->dpcd[DP_DPCD_REV ]);seq_printf (m,"\taudio support: %s\n" ,str_yes_no (intel_dp->has_audio)); -if (intel_connector->base.connector_type == DRM_MODE_CONNECTOR_eDP) -intel_panel_info (m, &intel_connector->panel);drm_dp_downstream_debug (m, intel_dp->dpcd, intel_dp->downstream_ports, edid ? edid->data :NULL , &intel_dp->aux);@@ -611,12 +613,6 @@ static void intel_hdmi_info(struct seq_file *m, str_yes_no(intel_hdmi->has_audio)); } -static void intel_lvds_info (struct seq_file *m, -struct intel_connector *intel_connector) -{ -intel_panel_info (m, &intel_connector->panel); -} -static void intel_connector_info (struct seq_file *m,struct drm_connector *connector) {@@ -651,10 +647,6 @@ static void intel_connector_info(struct seq_file *m,else intel_dp_info (m, intel_connector);break ; -case DRM_MODE_CONNECTOR_LVDS : -if (encoder->type ==INTEL_OUTPUT_LVDS ) -intel_lvds_info (m, intel_connector); -break ;case DRM_MODE_CONNECTOR_HDMIA :if (encoder->type ==INTEL_OUTPUT_HDMI || encoder->type ==INTEL_OUTPUT_DDI )@@ -667,6 +659,8 @@ static void intel_connector_info(struct seq_file *m,seq_puts (m,"\tHDCP version: " );intel_hdcp_info (m, intel_connector); +intel_panel_info (m, intel_connector); +seq_printf (m,"\tmodes:\n" );list_for_each_entry (mode, &connector->modes, head)intel_seq_print_mode (m,2 , mode);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 5/16 drm/i915: Nuke dev_priv->drrs.type
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
When we found a downclock mode dev_priv->drrs.type is just a straight copy of dev_priv->vbt.drrs_type. And in case we couldn't find a downclock mode can_enable_drrs() won't let us enable DRRS anyway so the minor distinction between the two is irrelevant. So let's just nuke dev_priv->drrs.type and consult the VBT version directly.
--- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 +- drivers/gpu/drm/i915/display/intel_drrs.c | 10 ++++------ drivers/gpu/drm/i915/i915_drv.h | 1 - 3 files changed, 5 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -1
@@ -1156,7 +1156,7 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_printf (m,"%s:\n" , connector->name);if (connector->connector_type == DRM_MODE_CONNECTOR_eDP && - drrs->type ==DRRS_TYPE_SEAMLESS ) + dev_priv->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ) supported = true;seq_printf (m,"\tDRRS Supported: %s\n" ,str_yes_no (supported));
drivers/gpu/drm/i915/display/intel_drrs.c +4 -6
@@ -65,7 +65,7 @@ static bool can_enable_drrs(struct intel_connector *connector,return false;return connector->panel.downclock_mode && - i915->drrs.type ==DRRS_TYPE_SEAMLESS ; + i915->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ; }void
@@ -154,7 +154,7 @@ static void intel_drrs_set_state(struct drm_i915_private *dev_priv,return ; } -if (dev_priv->drrs.type !=DRRS_TYPE_SEAMLESS ) { +if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS ) {drm_dbg_kms (&dev_priv->drm,"Only Seamless DRRS supported.\n" );return ; }
@@ -269,7 +269,7 @@ intel_drrs_update(struct intel_dp *intel_dp, {struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); -if (dev_priv->drrs.type !=DRRS_TYPE_SEAMLESS ) +if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;mutex_lock (&dev_priv->drrs.mutex);
@@ -325,7 +325,7 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,struct drm_crtc *crtc;enum pipe pipe; -if (dev_priv->drrs.type !=DRRS_TYPE_SEAMLESS ) +if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;cancel_delayed_work (&dev_priv->drrs.work);
@@ -460,8 +460,6 @@ intel_drrs_init(struct intel_connector *connector,return NULL ; } - dev_priv->drrs.type = dev_priv->vbt.drrs_type; - dev_priv->drrs.refresh_rate =DRRS_REFRESH_RATE_HIGH ; drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s] seamless DRRS supported\n",
drivers/gpu/drm/i915/i915_drv.h +0 -1
@@ -213,7 +213,6 @@ struct i915_drrs {struct intel_dp *dp;unsigned busy_frontbuffer_bits;enum drrs_refresh_rate refresh_rate; -enum drrs_type type; };#define QUIRK_LVDS_SSC_DISABLE (1<<1)
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 05/16] drm/i915: Nuke dev_priv->drrs.type
Quoted 10 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
When we found a downclock mode
dev_priv->drrs.typeis just a straight copy ofdev_priv->vbt.drrs_type. And in case we couldn't find a downclock modecan_enable_drrs()won't let us enable DRRS anyway so the minor distinction between the two is irrelevant. So let's just nukedev_priv->drrs.typeand consult the VBT version directly.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 80 lines
--- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 +- drivers/gpu/drm/i915/display/intel_drrs.c | 10 ++++------ drivers/gpu/drm/i915/i915_drv.h | 1 - 3 files changed, 5 insertions(+), 8 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +1
-1@@ -1156,7 +1156,7 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_printf (m,"%s:\n" , connector->name);if (connector->connector_type == DRM_MODE_CONNECTOR_eDP && - drrs->type ==DRRS_TYPE_SEAMLESS ) + dev_priv->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ) supported = true;seq_printf (m,"\tDRRS Supported: %s\n" ,str_yes_no (supported));drivers/gpu/drm/i915/display/intel_drrs.c +4
-6@@ -65,7 +65,7 @@ static bool can_enable_drrs(struct intel_connector *connector,return false;return connector->panel.downclock_mode && - i915->drrs.type ==DRRS_TYPE_SEAMLESS ; + i915->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ; }void @@ -154,7 +154,7 @@ static void intel_drrs_set_state(struct drm_i915_private *dev_priv,return ; } -if (dev_priv->drrs.type !=DRRS_TYPE_SEAMLESS ) { +if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS ) {drm_dbg_kms (&dev_priv->drm,"Only Seamless DRRS supported.\n" );return ; }@@ -269,7 +269,7 @@ intel_drrs_update(struct intel_dp *intel_dp, {struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); -if (dev_priv->drrs.type !=DRRS_TYPE_SEAMLESS ) +if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;mutex_lock (&dev_priv->drrs.mutex);@@ -325,7 +325,7 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,struct drm_crtc *crtc;enum pipe pipe; -if (dev_priv->drrs.type !=DRRS_TYPE_SEAMLESS ) +if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;cancel_delayed_work (&dev_priv->drrs.work);@@ -460,8 +460,6 @@ intel_drrs_init(struct intel_connector *connector,return NULL ; } - dev_priv->drrs.type = dev_priv->vbt.drrs_type; - dev_priv->drrs.refresh_rate =DRRS_REFRESH_RATE_HIGH ; drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s] seamless DRRS supported\n",drivers/gpu/drm/i915/i915_drv.h +0
-1@@ -213,7 +213,6 @@ struct i915_drrs {struct intel_dp *dp;unsigned busy_frontbuffer_bits;enum drrs_refresh_rate refresh_rate; -enum drrs_type type; };#define QUIRK_LVDS_SSC_DISABLE (1<<1)
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 6/16 drm/i915: Introduce intel_panel_{fixed, downclock}_mode()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Abstract away the details on where we store the fixed/downclock modes, and also how we select them. Will be useful for static DRRS (aka. allowing the user to select the refresh rate for the panel).
We pass in the user requested mode to intel_panel_fixed_mode() so that in the future it may try to match the refresh rate. And intel_panel_downclock_mode() gets passed the adjusted_mode we actually chose to use so that it may find a suitable lower resresh rate variant.
v2: Hook it up for all encoders
s/fixed_mode/adjusted_mode/ in intel_panel_downclock_mode() (Jani) Elaborate on the choice or arguments for the functions (Jani)
--- drivers/gpu/drm/i915/display/intel_dp.c | 7 +++++-- drivers/gpu/drm/i915/display/intel_drrs.c | 11 +++++++---- drivers/gpu/drm/i915/display/intel_dsi.c | 3 ++- drivers/gpu/drm/i915/display/intel_dvo.c | 6 +++--- drivers/gpu/drm/i915/display/intel_lvds.c | 3 ++- drivers/gpu/drm/i915/display/intel_panel.c | 20 ++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_panel.h | 8 ++++++-- drivers/gpu/drm/i915/display/intel_sdvo.c | 20 ++++++++++++-------- 8 files changed, 55 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +5 -2
@@ -918,8 +918,8 @@ intel_dp_mode_valid(struct drm_connector *connector, {struct intel_dp *intel_dp =intel_attached_dp (to_intel_connector (connector));struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;struct drm_i915_private *dev_priv =to_i915 (connector->dev); +const struct drm_display_mode *fixed_mode;int target_clock = mode->clock;int max_rate, mode_rate, max_lanes, max_link_clock;int max_dotclk = dev_priv->max_dotclk_freq;
@@ -934,6 +934,7 @@ intel_dp_mode_valid(struct drm_connector *connector,if (mode->flags &DRM_MODE_FLAG_DBLCLK )return MODE_H_ILLEGAL ; + fixed_mode =intel_panel_fixed_mode (intel_connector, mode);if (intel_dp_is_edp (intel_dp) && fixed_mode) { status =intel_panel_mode_valid (intel_connector, mode);if (status !=MODE_OK )
@@ -1797,6 +1798,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct intel_dp *intel_dp =enc_to_intel_dp (encoder); +const struct drm_display_mode *fixed_mode;enum port port = encoder->port;struct intel_connector *intel_connector = intel_dp->attached_connector; struct intel_digital_connector_state *intel_conn_state =
@@ -1823,7 +1825,8 @@ intel_dp_compute_config(struct intel_encoder *encoder,else pipe_config->has_audio = intel_conn_state->force_audio ==HDMI_AUDIO_ON ; -if (intel_dp_is_edp (intel_dp) && intel_connector->panel.fixed_mode) { + fixed_mode =intel_panel_fixed_mode (intel_connector, adjusted_mode); +if (intel_dp_is_edp (intel_dp) && fixed_mode) { ret =intel_panel_compute_config (intel_connector, adjusted_mode);if (ret)return ret;
drivers/gpu/drm/i915/display/intel_drrs.c +7 -4
@@ -48,7 +48,8 @@*/ static bool can_enable_drrs (struct intel_connector *connector, -const struct intel_crtc_state *pipe_config) +const struct intel_crtc_state *pipe_config, +const struct drm_display_mode *downclock_mode) {const struct drm_i915_private *i915 =to_i915 (connector->base.dev);
@@ -64,7 +65,7 @@ static bool can_enable_drrs(struct intel_connector *connector,if (pipe_config->has_psr)return false; -return connector->panel.downclock_mode && +return downclock_mode && i915->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ; }
@@ -75,9 +76,11 @@ intel_drrs_compute_config(struct intel_dp *intel_dp, {struct intel_connector *connector = intel_dp->attached_connector;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)) { +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 ;
@@ -88,7 +91,7 @@ intel_drrs_compute_config(struct intel_dp *intel_dp, pipe_config->has_drrs = true; - pixel_clock = connector->panel.downclock_mode->clock; + pixel_clock = downclock_mode->clock;if (pipe_config->splitter.enable) pixel_clock /= pipe_config->splitter.link_count;
drivers/gpu/drm/i915/display/intel_dsi.c +2 -1
@@ -61,7 +61,8 @@ enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector, {struct drm_i915_private *dev_priv =to_i915 (connector->dev);struct intel_connector *intel_connector =to_intel_connector (connector); -const struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (intel_connector, mode);int max_dotclk =to_i915 (connector->dev)->max_dotclk_freq;enum drm_mode_status status;
drivers/gpu/drm/i915/display/intel_dvo.c +3 -3
@@ -226,7 +226,7 @@ intel_dvo_mode_valid(struct drm_connector *connector,struct intel_connector *intel_connector =to_intel_connector (connector);struct intel_dvo *intel_dvo =intel_attached_dvo (intel_connector);const struct drm_display_mode *fixed_mode = - intel_connector->panel.fixed_mode; +intel_panel_fixed_mode (intel_connector, mode);int max_dotclk =to_i915 (connector->dev)->max_dotclk_freq;int target_clock = mode->clock;
@@ -257,9 +257,9 @@ static int intel_dvo_compute_config(struct intel_encoder *encoder, {struct intel_dvo *intel_dvo =enc_to_dvo (encoder);struct intel_connector *connector =to_intel_connector (conn_state->connector); -const struct drm_display_mode *fixed_mode = - intel_dvo->attached_connector->panel.fixed_mode;struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (intel_dvo->attached_connector, adjusted_mode);/* * If we have timings from the BIOS for the panel, put them in
drivers/gpu/drm/i915/display/intel_lvds.c +2 -1
@@ -389,7 +389,8 @@ intel_lvds_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) {struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (intel_connector, mode);int max_pixclk =to_i915 (connector->dev)->max_dotclk_freq;enum drm_mode_status status;
drivers/gpu/drm/i915/display/intel_panel.c +18 -2
@@ -45,10 +45,25 @@ bool intel_panel_use_ssc(struct drm_i915_private *i915) && !(i915->quirks &QUIRK_LVDS_SSC_DISABLE ); } +const struct drm_display_mode * +intel_panel_fixed_mode (struct intel_connector *connector, +const struct drm_display_mode *mode) +{ +return connector->panel.fixed_mode; +} + +const struct drm_display_mode * +intel_panel_downclock_mode (struct intel_connector *connector, +const struct drm_display_mode *adjusted_mode) +{ +return connector->panel.downclock_mode; +} +int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode) { -const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (connector, adjusted_mode);if (!fixed_mode)return 0 ;
@@ -508,7 +523,8 @@ enum drm_mode_status intel_panel_mode_valid(struct intel_connector *connector, const struct drm_display_mode *mode) { - const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; + const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (connector, mode);if (!fixed_mode)return MODE_OK ;
drivers/gpu/drm/i915/display/intel_panel.h +6 -2
@@ -24,8 +24,12 @@ void intel_panel_fini(struct intel_panel *panel);enum drm_connector_status intel_panel_detect (struct drm_connector *connector,bool force);bool intel_panel_use_ssc (struct drm_i915_private *i915); -void intel_panel_fixed_mode (const struct drm_display_mode *fixed_mode, -struct drm_display_mode *adjusted_mode); +const struct drm_display_mode * +intel_panel_fixed_mode (struct intel_connector *connector, +const struct drm_display_mode *mode); +const struct drm_display_mode * +intel_panel_downclock_mode (struct intel_connector *connector, +const struct drm_display_mode *adjusted_mode);enum drm_mode_status intel_panel_mode_valid (struct intel_connector *connector,const struct drm_display_mode *mode);
drivers/gpu/drm/i915/display/intel_sdvo.c +12 -8
@@ -795,7 +795,7 @@ intel_sdvo_create_preferred_input_timing(struct intel_sdvo *intel_sdvo,if (IS_LVDS (intel_sdvo_connector)) {const struct drm_display_mode *fixed_mode = - intel_sdvo_connector->base.panel.fixed_mode; +intel_panel_fixed_mode (&intel_sdvo_connector->base, mode);if (fixed_mode->hdisplay != args.width || fixed_mode->vdisplay != args.height)
@@ -1331,6 +1331,8 @@ static int intel_sdvo_compute_config(struct intel_encoder *encoder, adjusted_mode); pipe_config->sdvo_tv_clock = true; }else if (IS_LVDS (intel_sdvo_connector)) { +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (&intel_sdvo_connector->base, mode);int ret; ret = intel_panel_compute_config(&intel_sdvo_connector->base,
@@ -1338,8 +1340,7 @@ static int intel_sdvo_compute_config(struct intel_encoder *encoder,if (ret)return ret; -if (!intel_sdvo_set_output_timings_from_mode (intel_sdvo, - intel_sdvo_connector->base.panel.fixed_mode)) +if (!intel_sdvo_set_output_timings_from_mode (intel_sdvo, fixed_mode))return -EINVAL ; (void) intel_sdvo_get_preferred_input_mode(intel_sdvo,
@@ -1461,7 +1462,7 @@ static void intel_sdvo_pre_enable(struct intel_atomic_state *state,const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;const struct intel_sdvo_connector_state *sdvo_state =to_intel_sdvo_connector_state (conn_state); -const struct intel_sdvo_connector *intel_sdvo_connector = +struct intel_sdvo_connector *intel_sdvo_connector =to_intel_sdvo_connector (conn_state->connector);const struct drm_display_mode *mode = &crtc_state->hw.mode;struct intel_sdvo *intel_sdvo =to_sdvo (intel_encoder);
@@ -1492,11 +1493,14 @@ static void intel_sdvo_pre_enable(struct intel_atomic_state *state,return ;/* lvds has a special fixed output timing. */ -if (IS_LVDS (intel_sdvo_connector)) -intel_sdvo_get_dtd_from_mode (&output_dtd, - intel_sdvo_connector->base.panel.fixed_mode); -else +if (IS_LVDS (intel_sdvo_connector)) { +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (&intel_sdvo_connector->base, mode); + +intel_sdvo_get_dtd_from_mode (&output_dtd, fixed_mode); + }else {intel_sdvo_get_dtd_from_mode (&output_dtd, mode); + }if (!intel_sdvo_set_output_timing (intel_sdvo, &output_dtd)) drm_info(&dev_priv->drm, "Setting output timings on %s failed\n",
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 06/16] drm/i915: Introduce intel_panel_{fixed, downclock}_mode()
Quoted 13 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Abstract away the details on where we store the fixed/downclock modes, and also how we select them. Will be useful for static DRRS (aka. allowing the user to select the refresh rate for the panel).
We pass in the user requested mode to
intel_panel_fixed_mode()so that in the future it may try to match the refresh rate. Andintel_panel_downclock_mode()gets passed theadjusted_modewe actually chose to use so that it may find a suitable lower resresh rate variant.
Quoted 5 lines
v2: Hook it up for all encoders
s/fixed_mode/adjusted_mode/ inintel_panel_downclock_mode()(Jani) Elaborate on the choice or arguments for the functions (Jani)Signed-off-by Ville Syrjälä <[email protected]>
Quoted 269 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 7 +++++-- drivers/gpu/drm/i915/display/intel_drrs.c | 11 +++++++---- drivers/gpu/drm/i915/display/intel_dsi.c | 3 ++- drivers/gpu/drm/i915/display/intel_dvo.c | 6 +++--- drivers/gpu/drm/i915/display/intel_lvds.c | 3 ++- drivers/gpu/drm/i915/display/intel_panel.c | 20 ++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_panel.h | 8 ++++++-- drivers/gpu/drm/i915/display/intel_sdvo.c | 20 ++++++++++++-------- 8 files changed, 55 insertions(+), 23 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +5
-2@@ -918,8 +918,8 @@ intel_dp_mode_valid(struct drm_connector *connector, {struct intel_dp *intel_dp =intel_attached_dp (to_intel_connector (connector));struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;struct drm_i915_private *dev_priv =to_i915 (connector->dev); +const struct drm_display_mode *fixed_mode;int target_clock = mode->clock;int max_rate, mode_rate, max_lanes, max_link_clock;int max_dotclk = dev_priv->max_dotclk_freq;@@ -934,6 +934,7 @@ intel_dp_mode_valid(struct drm_connector *connector,if (mode->flags &DRM_MODE_FLAG_DBLCLK )return MODE_H_ILLEGAL ; + fixed_mode =intel_panel_fixed_mode (intel_connector, mode);if (intel_dp_is_edp (intel_dp) && fixed_mode) { status =intel_panel_mode_valid (intel_connector, mode);if (status !=MODE_OK )@@ -1797,6 +1798,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode;struct intel_dp *intel_dp =enc_to_intel_dp (encoder); +const struct drm_display_mode *fixed_mode;enum port port = encoder->port;struct intel_connector *intel_connector = intel_dp->attached_connector; struct intel_digital_connector_state *intel_conn_state =@@ -1823,7 +1825,8 @@ intel_dp_compute_config(struct intel_encoder *encoder,else pipe_config->has_audio = intel_conn_state->force_audio ==HDMI_AUDIO_ON ; -if (intel_dp_is_edp (intel_dp) && intel_connector->panel.fixed_mode) { + fixed_mode =intel_panel_fixed_mode (intel_connector, adjusted_mode); +if (intel_dp_is_edp (intel_dp) && fixed_mode) { ret =intel_panel_compute_config (intel_connector, adjusted_mode);if (ret)return ret;drivers/gpu/drm/i915/display/intel_drrs.c +7
-4@@ -48,7 +48,8 @@*/ static bool can_enable_drrs (struct intel_connector *connector, -const struct intel_crtc_state *pipe_config) +const struct intel_crtc_state *pipe_config, +const struct drm_display_mode *downclock_mode) {const struct drm_i915_private *i915 =to_i915 (connector->base.dev);@@ -64,7 +65,7 @@ static bool can_enable_drrs(struct intel_connector *connector,if (pipe_config->has_psr)return false; -return connector->panel.downclock_mode && +return downclock_mode && i915->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ; }@@ -75,9 +76,11 @@ intel_drrs_compute_config(struct intel_dp *intel_dp, {struct intel_connector *connector = intel_dp->attached_connector;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)) { +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 ;@@ -88,7 +91,7 @@ intel_drrs_compute_config(struct intel_dp *intel_dp, pipe_config->has_drrs = true; - pixel_clock = connector->panel.downclock_mode->clock; + pixel_clock = downclock_mode->clock;if (pipe_config->splitter.enable) pixel_clock /= pipe_config->splitter.link_count;drivers/gpu/drm/i915/display/intel_dsi.c +2
-1@@ -61,7 +61,8 @@ enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector, {struct drm_i915_private *dev_priv =to_i915 (connector->dev);struct intel_connector *intel_connector =to_intel_connector (connector); -const struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (intel_connector, mode);int max_dotclk =to_i915 (connector->dev)->max_dotclk_freq;enum drm_mode_status status;drivers/gpu/drm/i915/display/intel_dvo.c +3
-3@@ -226,7 +226,7 @@ intel_dvo_mode_valid(struct drm_connector *connector,struct intel_connector *intel_connector =to_intel_connector (connector);struct intel_dvo *intel_dvo =intel_attached_dvo (intel_connector);const struct drm_display_mode *fixed_mode = - intel_connector->panel.fixed_mode; +intel_panel_fixed_mode (intel_connector, mode);int max_dotclk =to_i915 (connector->dev)->max_dotclk_freq;int target_clock = mode->clock;@@ -257,9 +257,9 @@ static int intel_dvo_compute_config(struct intel_encoder *encoder, {struct intel_dvo *intel_dvo =enc_to_dvo (encoder);struct intel_connector *connector =to_intel_connector (conn_state->connector); -const struct drm_display_mode *fixed_mode = - intel_dvo->attached_connector->panel.fixed_mode;struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (intel_dvo->attached_connector, adjusted_mode);/* * If we have timings from the BIOS for the panel, put them in drivers/gpu/drm/i915/display/intel_lvds.c +2
-1@@ -389,7 +389,8 @@ intel_lvds_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) {struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (intel_connector, mode);int max_pixclk =to_i915 (connector->dev)->max_dotclk_freq;enum drm_mode_status status;drivers/gpu/drm/i915/display/intel_panel.c +18
-2@@ -45,10 +45,25 @@ bool intel_panel_use_ssc(struct drm_i915_private *i915) && !(i915->quirks &QUIRK_LVDS_SSC_DISABLE ); } +const struct drm_display_mode * +intel_panel_fixed_mode (struct intel_connector *connector, +const struct drm_display_mode *mode) +{ +return connector->panel.fixed_mode; +} + +const struct drm_display_mode * +intel_panel_downclock_mode (struct intel_connector *connector, +const struct drm_display_mode *adjusted_mode) +{ +return connector->panel.downclock_mode; +} +int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode) { -const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (connector, adjusted_mode);if (!fixed_mode)return 0 ;@@ -508,7 +523,8 @@ enum drm_mode_status intel_panel_mode_valid(struct intel_connector *connector, const struct drm_display_mode *mode) { - const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; + const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (connector, mode);if (!fixed_mode)return MODE_OK ;drivers/gpu/drm/i915/display/intel_panel.h +6
-2@@ -24,8 +24,12 @@ void intel_panel_fini(struct intel_panel *panel);enum drm_connector_status intel_panel_detect (struct drm_connector *connector,bool force);bool intel_panel_use_ssc (struct drm_i915_private *i915); -void intel_panel_fixed_mode (const struct drm_display_mode *fixed_mode, -struct drm_display_mode *adjusted_mode); +const struct drm_display_mode * +intel_panel_fixed_mode (struct intel_connector *connector, +const struct drm_display_mode *mode); +const struct drm_display_mode * +intel_panel_downclock_mode (struct intel_connector *connector, +const struct drm_display_mode *adjusted_mode);enum drm_mode_status intel_panel_mode_valid (struct intel_connector *connector,const struct drm_display_mode *mode);drivers/gpu/drm/i915/display/intel_sdvo.c +12
-8@@ -795,7 +795,7 @@ intel_sdvo_create_preferred_input_timing(struct intel_sdvo *intel_sdvo,if (IS_LVDS (intel_sdvo_connector)) {const struct drm_display_mode *fixed_mode = - intel_sdvo_connector->base.panel.fixed_mode; +intel_panel_fixed_mode (&intel_sdvo_connector->base, mode);if (fixed_mode->hdisplay != args.width || fixed_mode->vdisplay != args.height)@@ -1331,6 +1331,8 @@ static int intel_sdvo_compute_config(struct intel_encoder *encoder, adjusted_mode); pipe_config->sdvo_tv_clock = true; }else if (IS_LVDS (intel_sdvo_connector)) { +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (&intel_sdvo_connector->base, mode);int ret; ret = intel_panel_compute_config(&intel_sdvo_connector->base,@@ -1338,8 +1340,7 @@ static int intel_sdvo_compute_config(struct intel_encoder *encoder,if (ret)return ret; -if (!intel_sdvo_set_output_timings_from_mode (intel_sdvo, - intel_sdvo_connector->base.panel.fixed_mode)) +if (!intel_sdvo_set_output_timings_from_mode (intel_sdvo, fixed_mode))return -EINVAL ; (void) intel_sdvo_get_preferred_input_mode(intel_sdvo,@@ -1461,7 +1462,7 @@ static void intel_sdvo_pre_enable(struct intel_atomic_state *state,const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;const struct intel_sdvo_connector_state *sdvo_state =to_intel_sdvo_connector_state (conn_state); -const struct intel_sdvo_connector *intel_sdvo_connector = +struct intel_sdvo_connector *intel_sdvo_connector =to_intel_sdvo_connector (conn_state->connector);const struct drm_display_mode *mode = &crtc_state->hw.mode;struct intel_sdvo *intel_sdvo =to_sdvo (intel_encoder);@@ -1492,11 +1493,14 @@ static void intel_sdvo_pre_enable(struct intel_atomic_state *state,return ;/* lvds has a special fixed output timing. */ -if (IS_LVDS (intel_sdvo_connector)) -intel_sdvo_get_dtd_from_mode (&output_dtd, - intel_sdvo_connector->base.panel.fixed_mode); -else +if (IS_LVDS (intel_sdvo_connector)) { +const struct drm_display_mode *fixed_mode = +intel_panel_fixed_mode (&intel_sdvo_connector->base, mode); + +intel_sdvo_get_dtd_from_mode (&output_dtd, fixed_mode); + }else {intel_sdvo_get_dtd_from_mode (&output_dtd, mode); + }if (!intel_sdvo_set_output_timing (intel_sdvo, &output_dtd)) drm_info(&dev_priv->drm, "Setting output timings on %s failed\n",
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 7/16 drm/i915: Introduce intel_panel_get_modes()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Several connectors want to return the fixed_mode from .get_modes(), add a helper to do that (and hide the details inside intel_panel.c).
--- drivers/gpu/drm/i915/display/intel_dp.c | 13 ++----------- drivers/gpu/drm/i915/display/intel_dsi.c | 21 +-------------------- drivers/gpu/drm/i915/display/intel_dvo.c | 14 +------------- drivers/gpu/drm/i915/display/intel_lvds.c | 9 +-------- drivers/gpu/drm/i915/display/intel_panel.c | 18 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_panel.h | 1 + 6 files changed, 24 insertions(+), 52 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +2 -11
@@ -4588,17 +4588,8 @@ static int intel_dp_get_modes(struct drm_connector *connector) }/* Also add fixed mode, which may or may not be present in EDID */ -if (intel_dp_is_edp (intel_attached_dp (intel_connector)) && - intel_connector->panel.fixed_mode) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->dev, - intel_connector->panel.fixed_mode); -if (mode) { -drm_mode_probed_add (connector, mode); - num_modes++; - } - } +if (intel_dp_is_edp (intel_attached_dp (intel_connector))) + num_modes +=intel_panel_get_modes (intel_connector);if (num_modes)return num_modes;
drivers/gpu/drm/i915/display/intel_dsi.c +1 -20
@@ -34,26 +34,7 @@ int intel_dsi_tlpx_ns(const struct intel_dsi *intel_dsi)int intel_dsi_get_modes (struct drm_connector *connector) { -struct drm_i915_private *i915 =to_i915 (connector->dev); -struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_display_mode *mode; - -drm_dbg_kms (&i915->drm,"\n" ); - -if (!intel_connector->panel.fixed_mode) { -drm_dbg_kms (&i915->drm,"no fixed mode\n" ); -return 0 ; - } - - mode =drm_mode_duplicate (connector->dev, - intel_connector->panel.fixed_mode); -if (!mode) { -drm_dbg_kms (&i915->drm,"drm_mode_duplicate failed\n" ); -return 0 ; - } - -drm_mode_probed_add (connector, mode); -return 1 ; +return intel_panel_get_modes (to_intel_connector (connector)); } enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector,
drivers/gpu/drm/i915/display/intel_dvo.c +1 -13
@@ -333,8 +333,6 @@ intel_dvo_detect(struct drm_connector *connector, bool force)static int intel_dvo_get_modes (struct drm_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->dev); -const struct drm_display_mode *fixed_mode = -to_intel_connector (connector)->panel.fixed_mode;int num_modes;/*
@@ -348,17 +346,7 @@ static int intel_dvo_get_modes(struct drm_connector *connector)if (num_modes)return num_modes; -if (fixed_mode) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->dev, fixed_mode); -if (mode) { -drm_mode_probed_add (connector, mode); - num_modes++; - } - } - -return num_modes; +return intel_panel_get_modes (to_intel_connector (connector)); }static const struct drm_connector_funcs intel_dvo_connector_funcs = {
drivers/gpu/drm/i915/display/intel_lvds.c +1 -8
@@ -476,19 +476,12 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder,static int intel_lvds_get_modes (struct drm_connector *connector) {struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_device *dev = connector->dev; -struct drm_display_mode *mode;/* use cached edid if we have one */ if (!IS_ERR_OR_NULL (intel_connector->edid))return drm_add_edid_modes (connector, intel_connector->edid); - mode =drm_mode_duplicate (dev, intel_connector->panel.fixed_mode); -if (mode ==NULL ) -return 0 ; - -drm_mode_probed_add (connector, mode); -return 1 ; +return intel_panel_get_modes (intel_connector); }static const struct drm_connector_helper_funcs intel_lvds_connector_helper_funcs = {
drivers/gpu/drm/i915/display/intel_panel.c +18 -0
@@ -59,6 +59,24 @@ intel_panel_downclock_mode(struct intel_connector *connector,return connector->panel.downclock_mode; } +int intel_panel_get_modes (struct intel_connector *connector) +{ +int num_modes =0 ; + +if (connector->panel.fixed_mode) { +struct drm_display_mode *mode; + + mode =drm_mode_duplicate (connector->base.dev, + connector->panel.fixed_mode); +if (mode) { +drm_mode_probed_add (&connector->base, mode); + num_modes++; + } + } + +return num_modes; +} +int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode) {
drivers/gpu/drm/i915/display/intel_panel.h +1 -0
@@ -30,6 +30,7 @@ intel_panel_fixed_mode(struct intel_connector *connector,const struct drm_display_mode *intel_panel_downclock_mode (struct intel_connector *connector,const struct drm_display_mode *adjusted_mode); +int intel_panel_get_modes (struct intel_connector *connector);enum drm_mode_status intel_panel_mode_valid (struct intel_connector *connector,const struct drm_display_mode *mode);
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 07/16] drm/i915: Introduce intel_panel_get_modes()
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Several connectors want to return the
fixed_modefrom .get_modes(), add a helper to do that (and hide the details insideintel_panel.c).Signed-off-by Ville Syrjälä <[email protected]>
Nice!
One note below.
Quoted 20 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 13 ++----------- drivers/gpu/drm/i915/display/intel_dsi.c | 21 +-------------------- drivers/gpu/drm/i915/display/intel_dvo.c | 14 +------------- drivers/gpu/drm/i915/display/intel_lvds.c | 9 +-------- drivers/gpu/drm/i915/display/intel_panel.c | 18 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_panel.h | 1 + 6 files changed, 24 insertions(+), 52 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +0
-3@@ -4588,17 +4588,8 @@ static int intel_dp_get_modes(struct drm_connector *connector) }/* Also add fixed mode, which may or may not be present in EDID */ -if (intel_dp_is_edp (intel_attached_dp (intel_connector)) && - intel_connector->panel.fixed_mode) { -struct drm_display_mode *mode;
drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_get_modes(struct drm_connector *connector) · line 4592
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dp.c +2
-8- - mode =drm_mode_duplicate (connector->dev, - intel_connector->panel.fixed_mode); -if (mode) { -drm_mode_probed_add (connector, mode); - num_modes++; - } - } +if (intel_dp_is_edp (intel_attached_dp (intel_connector))) + num_modes +=intel_panel_get_modes (intel_connector);
Maybe we could even remove the intel_dp_is_edp() check in the future. It's basically redundant.
Quoted 133 lines
drivers/gpu/drm/i915/display/intel_dp.c +0
-0if (num_modes)return num_modes;drivers/gpu/drm/i915/display/intel_dsi.c +1
-20@@ -34,26 +34,7 @@ int intel_dsi_tlpx_ns(const struct intel_dsi *intel_dsi)int intel_dsi_get_modes (struct drm_connector *connector) { -struct drm_i915_private *i915 =to_i915 (connector->dev); -struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_display_mode *mode; - -drm_dbg_kms (&i915->drm,"\n" ); - -if (!intel_connector->panel.fixed_mode) { -drm_dbg_kms (&i915->drm,"no fixed mode\n" ); -return 0 ; - } - - mode =drm_mode_duplicate (connector->dev, - intel_connector->panel.fixed_mode); -if (!mode) { -drm_dbg_kms (&i915->drm,"drm_mode_duplicate failed\n" ); -return 0 ; - } - -drm_mode_probed_add (connector, mode); -return 1 ; +return intel_panel_get_modes (to_intel_connector (connector)); } enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector,drivers/gpu/drm/i915/display/intel_dvo.c +1
-13@@ -333,8 +333,6 @@ intel_dvo_detect(struct drm_connector *connector, bool force)static int intel_dvo_get_modes (struct drm_connector *connector) {struct drm_i915_private *dev_priv =to_i915 (connector->dev); -const struct drm_display_mode *fixed_mode = -to_intel_connector (connector)->panel.fixed_mode;int num_modes;/* @@ -348,17 +346,7 @@ static int intel_dvo_get_modes(struct drm_connector *connector)if (num_modes)return num_modes; -if (fixed_mode) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->dev, fixed_mode); -if (mode) { -drm_mode_probed_add (connector, mode); - num_modes++; - } - } - -return num_modes; +return intel_panel_get_modes (to_intel_connector (connector)); }static const struct drm_connector_funcs intel_dvo_connector_funcs = {drivers/gpu/drm/i915/display/intel_lvds.c +1
-8@@ -476,19 +476,12 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder,static int intel_lvds_get_modes (struct drm_connector *connector) {struct intel_connector *intel_connector =to_intel_connector (connector); -struct drm_device *dev = connector->dev; -struct drm_display_mode *mode;/* use cached edid if we have one */ if (!IS_ERR_OR_NULL (intel_connector->edid))return drm_add_edid_modes (connector, intel_connector->edid); - mode =drm_mode_duplicate (dev, intel_connector->panel.fixed_mode); -if (mode ==NULL ) -return 0 ; - -drm_mode_probed_add (connector, mode); -return 1 ; +return intel_panel_get_modes (intel_connector); }static const struct drm_connector_helper_funcs intel_lvds_connector_helper_funcs = {drivers/gpu/drm/i915/display/intel_panel.c +18
-0@@ -59,6 +59,24 @@ intel_panel_downclock_mode(struct intel_connector *connector,return connector->panel.downclock_mode; } +int intel_panel_get_modes (struct intel_connector *connector) +{ +int num_modes =0 ; + +if (connector->panel.fixed_mode) { +struct drm_display_mode *mode; + + mode =drm_mode_duplicate (connector->base.dev, + connector->panel.fixed_mode); +if (mode) { +drm_mode_probed_add (&connector->base, mode); + num_modes++; + } + } + +return num_modes; +} +int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode) {drivers/gpu/drm/i915/display/intel_panel.h +1
-0@@ -30,6 +30,7 @@ intel_panel_fixed_mode(struct intel_connector *connector,const struct drm_display_mode *intel_panel_downclock_mode (struct intel_connector *connector,const struct drm_display_mode *adjusted_mode); +int intel_panel_get_modes (struct intel_connector *connector);enum drm_mode_status intel_panel_mode_valid (struct intel_connector *connector,const struct drm_display_mode *mode);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 8/16 drm/i915: Introduce intel_panel_preferred_fixed_mode()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
There are a couple of cases where we essentially just want to get/check the preferred fixed mode of the panel. Add a small helper for that to abstract away the direct pointer lookup.
--- drivers/gpu/drm/i915/display/intel_dp.c | 3 ++- drivers/gpu/drm/i915/display/intel_panel.c | 6 ++++++ drivers/gpu/drm/i915/display/intel_panel.h | 2 ++ drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +2 -1
@@ -582,8 +582,9 @@ static bool intel_dp_can_link_train_fallback_for_edp(struct intel_dp *intel_dp, int link_rate, u8 lane_count) { +/* FIXME figure out what we actually want here */ const struct drm_display_mode *fixed_mode = - intel_dp->attached_connector->panel.fixed_mode; +intel_panel_preferred_fixed_mode (intel_dp->attached_connector);int mode_rate, max_rate; mode_rate =intel_dp_link_required (fixed_mode->clock,18 );
drivers/gpu/drm/i915/display/intel_panel.c +6 -0
@@ -45,6 +45,12 @@ bool intel_panel_use_ssc(struct drm_i915_private *i915) && !(i915->quirks &QUIRK_LVDS_SSC_DISABLE ); } +const struct drm_display_mode * +intel_panel_preferred_fixed_mode (struct intel_connector *connector) +{ +return connector->panel.fixed_mode; +} +const struct drm_display_mode *intel_panel_fixed_mode (struct intel_connector *connector,const struct drm_display_mode *mode)
drivers/gpu/drm/i915/display/intel_panel.h +2 -0
@@ -25,6 +25,8 @@ enum drm_connector_status intel_panel_detect(struct drm_connector *connector, bool force);bool intel_panel_use_ssc (struct drm_i915_private *i915);const struct drm_display_mode * +intel_panel_preferred_fixed_mode (struct intel_connector *connector); +const struct drm_display_mode *intel_panel_fixed_mode (struct intel_connector *connector,const struct drm_display_mode *mode); const struct drm_display_mode *
drivers/gpu/drm/i915/display/intel_sdvo.c +1 -1
@@ -2932,7 +2932,7 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device) } } -if (!intel_connector->panel.fixed_mode) +if (!intel_panel_preferred_fixed_mode (intel_connector)) goto err;return true;
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 08/16] drm/i915: Introduce intel_panel_preferred_fixed_mode()
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
There are a couple of cases where we essentially just want to get/check the preferred fixed mode of the panel. Add a small helper for that to abstract away the direct pointer lookup.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 65 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 3 ++- drivers/gpu/drm/i915/display/intel_panel.c | 6 ++++++ drivers/gpu/drm/i915/display/intel_panel.h | 2 ++ drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_dp.c +2
-1@@ -582,8 +582,9 @@ static bool intel_dp_can_link_train_fallback_for_edp(struct intel_dp *intel_dp, int link_rate, u8 lane_count) { +/* FIXME figure out what we actually want here */ const struct drm_display_mode *fixed_mode = - intel_dp->attached_connector->panel.fixed_mode; +intel_panel_preferred_fixed_mode (intel_dp->attached_connector);int mode_rate, max_rate; mode_rate =intel_dp_link_required (fixed_mode->clock,18 );drivers/gpu/drm/i915/display/intel_panel.c +6
-0@@ -45,6 +45,12 @@ bool intel_panel_use_ssc(struct drm_i915_private *i915) && !(i915->quirks &QUIRK_LVDS_SSC_DISABLE ); } +const struct drm_display_mode * +intel_panel_preferred_fixed_mode (struct intel_connector *connector) +{ +return connector->panel.fixed_mode; +} +const struct drm_display_mode *intel_panel_fixed_mode (struct intel_connector *connector,const struct drm_display_mode *mode)drivers/gpu/drm/i915/display/intel_panel.h +2
-0@@ -25,6 +25,8 @@ enum drm_connector_status intel_panel_detect(struct drm_connector *connector, bool force);bool intel_panel_use_ssc (struct drm_i915_private *i915);const struct drm_display_mode * +intel_panel_preferred_fixed_mode (struct intel_connector *connector); +const struct drm_display_mode *intel_panel_fixed_mode (struct intel_connector *connector,const struct drm_display_mode *mode); const struct drm_display_mode *drivers/gpu/drm/i915/display/intel_sdvo.c +1
-1@@ -2932,7 +2932,7 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device) } } -if (!intel_connector->panel.fixed_mode) +if (!intel_panel_preferred_fixed_mode (intel_connector)) goto err;return true;
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 9/16 drm/i915: Introduce intel_panel_drrs_type()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Add a helper to determine which type of DRRS the panel supports.
--- drivers/gpu/drm/i915/display/intel_drrs.c | 10 +++------- drivers/gpu/drm/i915/display/intel_panel.c | 10 ++++++++++ drivers/gpu/drm/i915/display/intel_panel.h | 2 ++ 3 files changed, 15 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_drrs.c +3 -7
@@ -48,11 +48,8 @@*/ static bool can_enable_drrs (struct intel_connector *connector, -const struct intel_crtc_state *pipe_config, -const struct drm_display_mode *downclock_mode) +const struct intel_crtc_state *pipe_config) { -const struct drm_i915_private *i915 =to_i915 (connector->base.dev); -if (pipe_config->vrr.enable)return false;
@@ -65,8 +62,7 @@ static bool can_enable_drrs(struct intel_connector *connector,if (pipe_config->has_psr)return false; -return downclock_mode && - i915->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ; +return intel_panel_drrs_type (connector) ==DRRS_TYPE_SEAMLESS ; }void
@@ -80,7 +76,7 @@ intel_drrs_compute_config(struct intel_dp *intel_dp,intel_panel_downclock_mode (connector, &pipe_config->hw.adjusted_mode);int pixel_clock; -if (!can_enable_drrs (connector, pipe_config, downclock_mode)) { +if (!can_enable_drrs (connector, pipe_config)) {if (intel_cpu_transcoder_has_m2_n2 (i915, pipe_config->cpu_transcoder))intel_zero_m_n (&pipe_config->dp_m2_n2);return ;
drivers/gpu/drm/i915/display/intel_panel.c +10 -0
@@ -83,6 +83,16 @@ int intel_panel_get_modes(struct intel_connector *connector)return num_modes; } +enum drrs_type intel_panel_drrs_type (struct intel_connector *connector) +{ +struct drm_i915_private *i915 =to_i915 (connector->base.dev); + +if (!connector->panel.downclock_mode) +return DRRS_TYPE_NONE ; + +return i915->vbt.drrs_type; +} +int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode) {
drivers/gpu/drm/i915/display/intel_panel.h +2 -0
@@ -9,6 +9,7 @@#include <linux/types.h> enum drm_connector_status ; +enum drrs_type ;struct drm_connector ;struct drm_connector_state ;struct drm_display_mode ;
@@ -33,6 +34,7 @@ const struct drm_display_mode * intel_panel_downclock_mode(struct intel_connector *connector, const struct drm_display_mode *adjusted_mode);int intel_panel_get_modes (struct intel_connector *connector); +enum drrs_type intel_panel_drrs_type (struct intel_connector *connector);enum drm_mode_status intel_panel_mode_valid (struct intel_connector *connector,const struct drm_display_mode *mode);
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 09/16] drm/i915: Introduce intel_panel_drrs_type()
Quoted 5 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Add a helper to determine which type of DRRS the panel supports.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 83 lines
--- drivers/gpu/drm/i915/display/intel_drrs.c | 10 +++------- drivers/gpu/drm/i915/display/intel_panel.c | 10 ++++++++++ drivers/gpu/drm/i915/display/intel_panel.h | 2 ++ 3 files changed, 15 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/display/intel_drrs.c +3
-7@@ -48,11 +48,8 @@*/ static bool can_enable_drrs (struct intel_connector *connector, -const struct intel_crtc_state *pipe_config, -const struct drm_display_mode *downclock_mode) +const struct intel_crtc_state *pipe_config) { -const struct drm_i915_private *i915 =to_i915 (connector->base.dev); -if (pipe_config->vrr.enable)return false;@@ -65,8 +62,7 @@ static bool can_enable_drrs(struct intel_connector *connector,if (pipe_config->has_psr)return false; -return downclock_mode && - i915->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ; +return intel_panel_drrs_type (connector) ==DRRS_TYPE_SEAMLESS ; }void @@ -80,7 +76,7 @@ intel_drrs_compute_config(struct intel_dp *intel_dp,intel_panel_downclock_mode (connector, &pipe_config->hw.adjusted_mode);int pixel_clock; -if (!can_enable_drrs (connector, pipe_config, downclock_mode)) { +if (!can_enable_drrs (connector, pipe_config)) {if (intel_cpu_transcoder_has_m2_n2 (i915, pipe_config->cpu_transcoder))intel_zero_m_n (&pipe_config->dp_m2_n2);return ;drivers/gpu/drm/i915/display/intel_panel.c +10
-0@@ -83,6 +83,16 @@ int intel_panel_get_modes(struct intel_connector *connector)return num_modes; } +enum drrs_type intel_panel_drrs_type (struct intel_connector *connector) +{ +struct drm_i915_private *i915 =to_i915 (connector->base.dev); + +if (!connector->panel.downclock_mode) +return DRRS_TYPE_NONE ; + +return i915->vbt.drrs_type; +} +int intel_panel_compute_config (struct intel_connector *connector,struct drm_display_mode *adjusted_mode) {drivers/gpu/drm/i915/display/intel_panel.h +2
-0@@ -9,6 +9,7 @@#include <linux/types.h> enum drm_connector_status ; +enum drrs_type ;struct drm_connector ;struct drm_connector_state ;struct drm_display_mode ;@@ -33,6 +34,7 @@ const struct drm_display_mode * intel_panel_downclock_mode(struct intel_connector *connector, const struct drm_display_mode *adjusted_mode);int intel_panel_get_modes (struct intel_connector *connector); +enum drrs_type intel_panel_drrs_type (struct intel_connector *connector);enum drm_mode_status intel_panel_mode_valid (struct intel_connector *connector,const struct drm_display_mode *mode);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 10/16 drm/i915: Introduce intel_drrs_type_str()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Add helper to get the drrs type as a string, and use it in a couple of places. Also pimp the debugfs output a bit while at it.
--- .../drm/i915/display/intel_display_debugfs.c | 19 +++++++------------ drivers/gpu/drm/i915/display/intel_drrs.c | 19 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_drrs.h | 2 ++ 3 files changed, 26 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +7 -12
@@ -22,6 +22,7 @@#include "intel_fbdev.h" #include "intel_hdcp.h" #include "intel_hdmi.h" +#include "intel_panel.h" #include "intel_pm.h" #include "intel_psr.h" #include "intel_sprite.h"
@@ -1143,23 +1144,17 @@ static void drrs_status_per_crtc(struct seq_file *m, {struct drm_i915_private *dev_priv =to_i915 (dev);struct i915_drrs *drrs = &dev_priv->drrs; -struct drm_connector *connector; +struct intel_connector *connector;struct drm_connector_list_iter conn_iter;drm_connector_list_iter_begin (dev, &conn_iter); -drm_for_each_connector_iter (connector, &conn_iter) { -bool supported = false; - -if (connector->state->crtc != &crtc->base) +for_each_intel_connector_iter (connector, &conn_iter) { +if (connector->base.state->crtc != &crtc->base)continue ; -seq_printf (m,"%s:\n" , connector->name); - -if (connector->connector_type == DRM_MODE_CONNECTOR_eDP && - dev_priv->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ) - supported = true; - -seq_printf (m,"\tDRRS Supported: %s\n" ,str_yes_no (supported)); +seq_printf (m,"[CONNECTOR:%d:%s] DRRS type: %s\n" , + connector->base.base.id, connector->base.name, +intel_drrs_type_str (intel_panel_drrs_type (connector))); }drm_connector_list_iter_end (&conn_iter);
drivers/gpu/drm/i915/display/intel_drrs.c +17 -2
@@ -47,6 +47,20 @@* requested by userspace. */ +const char *intel_drrs_type_str (enum drrs_type drrs_type) +{ +static const char *const str[] = { + [DRRS_TYPE_NONE ] ="none" , + [DRRS_TYPE_STATIC ] ="static" , + [DRRS_TYPE_SEAMLESS ] ="seamless" , + }; + +if (drrs_type >=ARRAY_SIZE (str)) +return "<invalid>" ; + +return str[drrs_type]; +} +static bool can_enable_drrs (struct intel_connector *connector,const struct intel_crtc_state *pipe_config) {
@@ -461,8 +475,9 @@ intel_drrs_init(struct intel_connector *connector, dev_priv->drrs.refresh_rate =DRRS_REFRESH_RATE_HIGH ;drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] seamless DRRS supported\n" , - connector->base.base.id, connector->base.name); +"[CONNECTOR:%d:%s] %s DRRS supported\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 +2 -0
@@ -8,6 +8,7 @@#include <linux/types.h> +enum drrs_type ;struct drm_i915_private ;struct intel_atomic_state ;struct intel_crtc ;
@@ -15,6 +16,7 @@ struct intel_crtc_state;struct intel_connector ;struct intel_dp ; +const char *intel_drrs_type_str (enum drrs_type drrs_type);void intel_drrs_enable (struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state); void intel_drrs_disable(struct intel_dp *intel_dp,
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 10/16] drm/i915: Introduce intel_drrs_type_str()
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Add helper to get the drrs type as a string, and use it in a couple of places. Also pimp the debugfs output a bit while at it.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 105 lines
--- .../drm/i915/display/intel_display_debugfs.c | 19 +++++++------------ drivers/gpu/drm/i915/display/intel_drrs.c | 19 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_drrs.h | 2 ++ 3 files changed, 26 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +7
-12@@ -22,6 +22,7 @@#include "intel_fbdev.h" #include "intel_hdcp.h" #include "intel_hdmi.h" +#include "intel_panel.h" #include "intel_pm.h" #include "intel_psr.h" #include "intel_sprite.h" @@ -1143,23 +1144,17 @@ static void drrs_status_per_crtc(struct seq_file *m, {struct drm_i915_private *dev_priv =to_i915 (dev);struct i915_drrs *drrs = &dev_priv->drrs; -struct drm_connector *connector; +struct intel_connector *connector;struct drm_connector_list_iter conn_iter;drm_connector_list_iter_begin (dev, &conn_iter); -drm_for_each_connector_iter (connector, &conn_iter) { -bool supported = false; - -if (connector->state->crtc != &crtc->base) +for_each_intel_connector_iter (connector, &conn_iter) { +if (connector->base.state->crtc != &crtc->base)continue ; -seq_printf (m,"%s:\n" , connector->name); - -if (connector->connector_type == DRM_MODE_CONNECTOR_eDP && - dev_priv->vbt.drrs_type ==DRRS_TYPE_SEAMLESS ) - supported = true; - -seq_printf (m,"\tDRRS Supported: %s\n" ,str_yes_no (supported)); +seq_printf (m,"[CONNECTOR:%d:%s] DRRS type: %s\n" , + connector->base.base.id, connector->base.name, +intel_drrs_type_str (intel_panel_drrs_type (connector))); }drm_connector_list_iter_end (&conn_iter);drivers/gpu/drm/i915/display/intel_drrs.c +17
-2@@ -47,6 +47,20 @@* requested by userspace. */ +const char *intel_drrs_type_str (enum drrs_type drrs_type) +{ +static const char *const str[] = { + [DRRS_TYPE_NONE ] ="none" , + [DRRS_TYPE_STATIC ] ="static" , + [DRRS_TYPE_SEAMLESS ] ="seamless" , + }; + +if (drrs_type >=ARRAY_SIZE (str)) +return "<invalid>" ; + +return str[drrs_type]; +} +static bool can_enable_drrs (struct intel_connector *connector,const struct intel_crtc_state *pipe_config) {@@ -461,8 +475,9 @@ intel_drrs_init(struct intel_connector *connector, dev_priv->drrs.refresh_rate =DRRS_REFRESH_RATE_HIGH ;drm_dbg_kms (&dev_priv->drm, -"[CONNECTOR:%d:%s] seamless DRRS supported\n" , - connector->base.base.id, connector->base.name); +"[CONNECTOR:%d:%s] %s DRRS supported\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 +2
-0@@ -8,6 +8,7 @@#include <linux/types.h> +enum drrs_type ;struct drm_i915_private ;struct intel_atomic_state ;struct intel_crtc ;@@ -15,6 +16,7 @@ struct intel_crtc_state;struct intel_connector ;struct intel_dp ; +const char *intel_drrs_type_str (enum drrs_type drrs_type);void intel_drrs_enable (struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state); void intel_drrs_disable(struct intel_dp *intel_dp,
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 11/16 drm/i915: Eliminate the intel_dp dependency from DRRS
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
The DRRS code has no use for the intel_dp, replace it with just a crtc pointer. This is just an intermediate step towards making DRRS truly per-crtc.
--- drivers/gpu/drm/i915/display/intel_ddi.c | 8 +- .../drm/i915/display/intel_display_debugfs.c | 39 +++------ drivers/gpu/drm/i915/display/intel_dp.c | 4 +- drivers/gpu/drm/i915/display/intel_drrs.c | 80 ++++++++----------- drivers/gpu/drm/i915/display/intel_drrs.h | 12 +-- drivers/gpu/drm/i915/i915_drv.h | 2 +- 6 files changed, 51 insertions(+), 94 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +3 -5
@@ -2820,7 +2820,7 @@ static void intel_enable_ddi_dp(struct intel_atomic_state *state,if (!dig_port->lspcon.active || dig_port->dp.has_hdmi_sink)intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_enable (intel_dp, crtc_state); +intel_drrs_enable (crtc_state);if (crtc_state->has_audio)intel_audio_codec_enable (encoder, crtc_state, conn_state);
@@ -2963,7 +2963,7 @@ static void intel_disable_ddi_dp(struct intel_atomic_state *state,intel_audio_codec_disable (encoder, old_crtc_state, old_conn_state); -intel_drrs_disable (intel_dp, old_crtc_state); +intel_drrs_disable (old_crtc_state);intel_psr_disable (intel_dp, old_crtc_state);intel_edp_backlight_off (old_conn_state);/* Disable the decompression in DP Sink */
@@ -3013,12 +3013,10 @@ static void intel_ddi_update_pipe_dp(struct intel_atomic_state *state,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { - struct intel_dp *intel_dp = enc_to_intel_dp(encoder); -intel_ddi_set_dp_msa (crtc_state ,conn_state );intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_update (intel_dp, crtc_state); +intel_drrs_update (crtc_state);intel_backlight_update (state, encoder, crtc_state, conn_state);drm_connector_update_privacy_screen (conn_state);
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9 -30
@@ -1161,20 +1161,17 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_puts (m,"\n" );if (to_intel_crtc_state (crtc->base.state)->has_drrs) { -struct intel_panel *panel; -mutex_lock (&drrs->mutex);/* DRRS Supported */ seq_puts (m,"\tDRRS Enabled: Yes\n" );/* disable_drrs() will make drrs->dp NULL */ -if (!drrs->dp) { +if (!drrs->crtc) {seq_puts (m,"Idleness DRRS: Disabled\n" );mutex_unlock (&drrs->mutex);return ; } - panel = &drrs->dp->attached_connector->panel;seq_printf (m,"\t\tBusy_frontbuffer_bits: 0x%X" , drrs->busy_frontbuffer_bits);
@@ -1881,9 +1878,7 @@ static int i915_drrs_ctl_set(void *data, u64 val)return -ENODEV ;for_each_intel_crtc (dev, crtc) { -struct drm_connector_list_iter conn_iter;struct intel_crtc_state *crtc_state; -struct drm_connector *connector;struct drm_crtc_commit *commit;int ret;
@@ -1904,30 +1899,14 @@ static int i915_drrs_ctl_set(void *data, u64 val) goto out; } -drm_connector_list_iter_begin (dev, &conn_iter); -drm_for_each_connector_iter (connector, &conn_iter) { -struct intel_encoder *encoder; -struct intel_dp *intel_dp; - -if (!(crtc_state->uapi.connector_mask & -drm_connector_mask (connector))) -continue ; - - encoder =intel_attached_encoder (to_intel_connector (connector)); -if (encoder->type !=INTEL_OUTPUT_EDP ) -continue ; - -drm_dbg (&dev_priv->drm, -"Manually %sabling DRRS. %llu\n" , - val ?"en" :"dis" , val); - - intel_dp =enc_to_intel_dp (encoder); -if (val) -intel_drrs_enable (intel_dp, crtc_state); -else -intel_drrs_disable (intel_dp, crtc_state); - } -drm_connector_list_iter_end (&conn_iter); +drm_dbg (&dev_priv->drm, +"Manually %sabling DRRS. %llu\n" , + val ?"en" :"dis" , val); + +if (val) +intel_drrs_enable (crtc_state); +else +intel_drrs_disable (crtc_state); out:drm_modeset_unlock (&crtc->base.mutex);
drivers/gpu/drm/i915/display/intel_dp.c +2 -2
@@ -1899,8 +1899,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_dp, pipe_config, output_bpp, - constant_n); +intel_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 +32 -48
210 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_drrs.h +4 -8
@@ -14,22 +14,18 @@ struct intel_atomic_state;struct intel_crtc ;struct intel_crtc_state ;struct intel_connector ; -struct intel_dp ;const char *intel_drrs_type_str (enum drrs_type drrs_type); -void intel_drrs_enable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -void intel_drrs_disable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -void intel_drrs_update (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); +void intel_drrs_enable (const struct intel_crtc_state *crtc_state); +void intel_drrs_disable (const struct intel_crtc_state *crtc_state); +void intel_drrs_update (const struct intel_crtc_state *crtc_state);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_page_flip (struct intel_atomic_state *state,struct intel_crtc *crtc); -void intel_drrs_compute_config (struct intel_dp *intel_dp, +void intel_drrs_compute_config (struct intel_connector *connector,struct intel_crtc_state *pipe_config,int output_bpp,bool constant_n); struct drm_display_mode *intel_drrs_init(struct intel_connector *connector,
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -210,7 +210,7 @@ enum drrs_type {struct i915_drrs {struct mutex mutex;struct delayed_work work; -struct intel_dp *dp; +struct intel_crtc *crtc;unsigned busy_frontbuffer_bits;enum drrs_refresh_rate refresh_rate; };
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 11/16] drm/i915: Eliminate the intel_dp dependency from DRRS
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
The DRRS code has no use for the
intel_dp, replace it with just a crtc pointer. This is just an intermediate step towards making DRRS truly per-crtc.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 405 lines
--- drivers/gpu/drm/i915/display/intel_ddi.c | 8 +- .../drm/i915/display/intel_display_debugfs.c | 39 +++------ drivers/gpu/drm/i915/display/intel_dp.c | 4 +- drivers/gpu/drm/i915/display/intel_drrs.c | 80 ++++++++----------- drivers/gpu/drm/i915/display/intel_drrs.h | 12 +-- drivers/gpu/drm/i915/i915_drv.h | 2 +- 6 files changed, 51 insertions(+), 94 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +3
-5@@ -2820,7 +2820,7 @@ static void intel_enable_ddi_dp(struct intel_atomic_state *state,if (!dig_port->lspcon.active || dig_port->dp.has_hdmi_sink)intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_enable (intel_dp, crtc_state); +intel_drrs_enable (crtc_state);if (crtc_state->has_audio)intel_audio_codec_enable (encoder, crtc_state, conn_state);@@ -2963,7 +2963,7 @@ static void intel_disable_ddi_dp(struct intel_atomic_state *state,intel_audio_codec_disable (encoder, old_crtc_state, old_conn_state); -intel_drrs_disable (intel_dp, old_crtc_state); +intel_drrs_disable (old_crtc_state);intel_psr_disable (intel_dp, old_crtc_state);intel_edp_backlight_off (old_conn_state);/* Disable the decompression in DP Sink */ @@ -3013,12 +3013,10 @@ static void intel_ddi_update_pipe_dp(struct intel_atomic_state *state,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { - struct intel_dp *intel_dp = enc_to_intel_dp(encoder); -intel_ddi_set_dp_msa (crtc_state ,conn_state );intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_update (intel_dp, crtc_state); +intel_drrs_update (crtc_state);intel_backlight_update (state, encoder, crtc_state, conn_state);drm_connector_update_privacy_screen (conn_state);drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-30@@ -1161,20 +1161,17 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_puts (m,"\n" );if (to_intel_crtc_state (crtc->base.state)->has_drrs) { -struct intel_panel *panel; -mutex_lock (&drrs->mutex);/* DRRS Supported */ seq_puts (m,"\tDRRS Enabled: Yes\n" );/* disable_drrs() will make drrs->dp NULL */ -if (!drrs->dp) { +if (!drrs->crtc) {seq_puts (m,"Idleness DRRS: Disabled\n" );mutex_unlock (&drrs->mutex);return ; } - panel = &drrs->dp->attached_connector->panel;seq_printf (m,"\t\tBusy_frontbuffer_bits: 0x%X" , drrs->busy_frontbuffer_bits);@@ -1881,9 +1878,7 @@ static int i915_drrs_ctl_set(void *data, u64 val)return -ENODEV ;for_each_intel_crtc (dev, crtc) { -struct drm_connector_list_iter conn_iter;struct intel_crtc_state *crtc_state; -struct drm_connector *connector;struct drm_crtc_commit *commit;int ret;@@ -1904,30 +1899,14 @@ static int i915_drrs_ctl_set(void *data, u64 val) goto out; } -drm_connector_list_iter_begin (dev, &conn_iter); -drm_for_each_connector_iter (connector, &conn_iter) { -struct intel_encoder *encoder; -struct intel_dp *intel_dp; - -if (!(crtc_state->uapi.connector_mask & -drm_connector_mask (connector))) -continue ; - - encoder =intel_attached_encoder (to_intel_connector (connector)); -if (encoder->type !=INTEL_OUTPUT_EDP ) -continue ; - -drm_dbg (&dev_priv->drm, -"Manually %sabling DRRS. %llu\n" , - val ?"en" :"dis" , val); - - intel_dp =enc_to_intel_dp (encoder); -if (val) -intel_drrs_enable (intel_dp, crtc_state); -else -intel_drrs_disable (intel_dp, crtc_state); - } -drm_connector_list_iter_end (&conn_iter); +drm_dbg (&dev_priv->drm, +"Manually %sabling DRRS. %llu\n" , + val ?"en" :"dis" , val); + +if (val) +intel_drrs_enable (crtc_state); +else +intel_drrs_disable (crtc_state); out:drm_modeset_unlock (&crtc->base.mutex);drivers/gpu/drm/i915/display/intel_dp.c +2
-2@@ -1899,8 +1899,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_dp, pipe_config, output_bpp, - constant_n); +intel_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 +32
-48@@ -80,11 +80,10 @@ static bool can_enable_drrs(struct intel_connector *connector, }void -intel_drrs_compute_config (struct intel_dp *intel_dp, +intel_drrs_compute_config (struct intel_connector *connector,struct intel_crtc_state *pipe_config,int output_bpp,bool constant_n) { -struct intel_connector *connector = intel_dp->attached_connector;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);@@ -153,10 +152,9 @@ static void intel_drrs_set_state(struct drm_i915_private *dev_priv,const struct intel_crtc_state *crtc_state, enum drrs_refresh_rate refresh_rate) { - struct intel_dp *intel_dp = dev_priv->drrs.dp; struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); -if (!intel_dp) { +if (!dev_priv->drrs.crtc) {drm_dbg_kms (&dev_priv->drm,"DRRS not supported.\n" );return ; }@@ -193,25 +191,24 @@ static void intel_drrs_set_state(struct drm_i915_private *dev_priv, }static void -intel_drrs_enable_locked (struct intel_dp *intel_dp) +intel_drrs_enable_locked (struct intel_crtc *crtc) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); dev_priv->drrs.busy_frontbuffer_bits =0 ; - dev_priv->drrs.dp = intel_dp; + dev_priv->drrs.crtc = crtc; }/** * intel_drrs_enable - init drrs struct if supported -* @intel_dp: DP struct * @crtc_state: A pointer to the active crtc state. * * Initializes frontbuffer_bits and drrs.dp */ -void intel_drrs_enable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state) +void intel_drrs_enable (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);if (!crtc_state->has_drrs)return ;@@ -220,48 +217,45 @@ void intel_drrs_enable(struct intel_dp *intel_dp,mutex_lock (&dev_priv->drrs.mutex); -if (dev_priv->drrs.dp) { +if (dev_priv->drrs.crtc) {drm_warn (&dev_priv->drm,"DRRS already enabled\n" ); goto unlock; } -intel_drrs_enable_locked (intel_dp); +intel_drrs_enable_locked (crtc); unlock:mutex_unlock (&dev_priv->drrs.mutex); }static void -intel_drrs_disable_locked (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state) +intel_drrs_disable_locked (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);intel_drrs_set_state (dev_priv, crtc_state,DRRS_REFRESH_RATE_HIGH ); - dev_priv->drrs.dp =NULL ; + dev_priv->drrs.crtc =NULL ; }/** * intel_drrs_disable - Disable DRRS -* @intel_dp: DP struct * @old_crtc_state: Pointer to old crtc_state. -* */ -void intel_drrs_disable (struct intel_dp *intel_dp, -const struct intel_crtc_state *old_crtc_state) +void intel_drrs_disable (const struct intel_crtc_state *old_crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);if (!old_crtc_state->has_drrs)return ;mutex_lock (&dev_priv->drrs.mutex); -if (!dev_priv->drrs.dp) { +if (dev_priv->drrs.crtc != crtc) {mutex_unlock (&dev_priv->drrs.mutex);return ; } -intel_drrs_disable_locked (intel_dp, old_crtc_state); +intel_drrs_disable_locked (old_crtc_state);mutex_unlock (&dev_priv->drrs.mutex);cancel_delayed_work_sync (&dev_priv->drrs.work);@@ -269,7 +263,6 @@ void intel_drrs_disable(struct intel_dp *intel_dp,/** * intel_drrs_update - Update DRRS state -* @intel_dp: Intel DP * @crtc_state: new CRTC state * * This function will update DRRS states, disabling or enabling DRRS when @@ -277,10 +270,10 @@ void intel_drrs_disable(struct intel_dp *intel_dp,* intel_drrs_enable() should be called instead. */ void -intel_drrs_update (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state) +intel_drrs_update (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;@@ -288,13 +281,13 @@ intel_drrs_update(struct intel_dp *intel_dp,mutex_lock (&dev_priv->drrs.mutex);/* New state matches current one? */ -if (crtc_state->has_drrs == !!dev_priv->drrs.dp) +if (crtc_state->has_drrs == !!dev_priv->drrs.crtc) goto unlock;if (crtc_state->has_drrs) -intel_drrs_enable_locked (intel_dp); +intel_drrs_enable_locked (crtc);else -intel_drrs_disable_locked (intel_dp, crtc_state); +intel_drrs_disable_locked (crtc_state); unlock:mutex_unlock (&dev_priv->drrs.mutex);@@ -304,13 +297,12 @@ static void intel_drrs_downclock_work(struct work_struct *work) {struct drm_i915_private *dev_priv =container_of (work,typeof (*dev_priv), drrs.work.work); -struct intel_dp *intel_dp; +struct intel_crtc *crtc;mutex_lock (&dev_priv->drrs.mutex); - intel_dp = dev_priv->drrs.dp; - -if (!intel_dp) + crtc = dev_priv->drrs.crtc; +if (!crtc) goto unlock;/* @@ -319,9 +311,6 @@ static void intel_drrs_downclock_work(struct work_struct *work)*/ if (!dev_priv->drrs.busy_frontbuffer_bits) { -struct intel_crtc *crtc = -to_intel_crtc (dp_to_dig_port (intel_dp)->base.base.crtc); -intel_drrs_set_state (dev_priv, crtc->config,DRRS_REFRESH_RATE_LOW ); }@@ -334,9 +323,7 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv, unsigned int frontbuffer_bits, bool invalidate) { -struct intel_dp *intel_dp; -struct drm_crtc *crtc; -enum pipe pipe; +struct intel_crtc *crtc;if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;@@ -345,16 +332,13 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,mutex_lock (&dev_priv->drrs.mutex); - intel_dp = dev_priv->drrs.dp; -if (!intel_dp) { + crtc = dev_priv->drrs.crtc; +if (!crtc) {mutex_unlock (&dev_priv->drrs.mutex);return ; } - crtc =dp_to_dig_port (intel_dp)->base.base.crtc; - pipe =to_intel_crtc (crtc)->pipe; - - frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (pipe); + frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe);if (invalidate) dev_priv->drrs.busy_frontbuffer_bits |= frontbuffer_bits;else @@ -362,7 +346,7 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,/* flush/invalidate means busy screen hence upclock */ if (frontbuffer_bits) -intel_drrs_set_state (dev_priv,to_intel_crtc (crtc)->config, +intel_drrs_set_state (dev_priv, crtc->config,DRRS_REFRESH_RATE_HIGH );/* drivers/gpu/drm/i915/display/intel_drrs.h +4
-8@@ -14,22 +14,18 @@ struct intel_atomic_state;struct intel_crtc ;struct intel_crtc_state ;struct intel_connector ; -struct intel_dp ;const char *intel_drrs_type_str (enum drrs_type drrs_type); -void intel_drrs_enable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -void intel_drrs_disable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -void intel_drrs_update (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); +void intel_drrs_enable (const struct intel_crtc_state *crtc_state); +void intel_drrs_disable (const struct intel_crtc_state *crtc_state); +void intel_drrs_update (const struct intel_crtc_state *crtc_state);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_page_flip (struct intel_atomic_state *state,struct intel_crtc *crtc); -void intel_drrs_compute_config (struct intel_dp *intel_dp, +void intel_drrs_compute_config (struct intel_connector *connector,struct intel_crtc_state *pipe_config,int output_bpp,bool constant_n); struct drm_display_mode *intel_drrs_init(struct intel_connector *connector,drivers/gpu/drm/i915/i915_drv.h +1
-1@@ -210,7 +210,7 @@ enum drrs_type {struct i915_drrs {struct mutex mutex;struct delayed_work work; -struct intel_dp *dp; +struct intel_crtc *crtc;unsigned busy_frontbuffer_bits;enum drrs_refresh_rate refresh_rate; };
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH v2 11/16] drm/i915: Eliminate the intel_dp dependency from DRRS
In reply to Ville SyrjalaQuoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
The DRRS code has no use for the
intel_dp, replace it with just a crtc pointer. This is just an intermediate step towards making DRRS truly per-crtc.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 405 lines
--- drivers/gpu/drm/i915/display/intel_ddi.c | 8 +- .../drm/i915/display/intel_display_debugfs.c | 39 +++------ drivers/gpu/drm/i915/display/intel_dp.c | 4 +- drivers/gpu/drm/i915/display/intel_drrs.c | 80 ++++++++----------- drivers/gpu/drm/i915/display/intel_drrs.h | 12 +-- drivers/gpu/drm/i915/i915_drv.h | 2 +- 6 files changed, 51 insertions(+), 94 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +3
-5@@ -2820,7 +2820,7 @@ static void intel_enable_ddi_dp(struct intel_atomic_state *state,if (!dig_port->lspcon.active || dig_port->dp.has_hdmi_sink)intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_enable (intel_dp, crtc_state); +intel_drrs_enable (crtc_state);if (crtc_state->has_audio)intel_audio_codec_enable (encoder, crtc_state, conn_state);@@ -2963,7 +2963,7 @@ static void intel_disable_ddi_dp(struct intel_atomic_state *state,intel_audio_codec_disable (encoder, old_crtc_state, old_conn_state); -intel_drrs_disable (intel_dp, old_crtc_state); +intel_drrs_disable (old_crtc_state);intel_psr_disable (intel_dp, old_crtc_state);intel_edp_backlight_off (old_conn_state);/* Disable the decompression in DP Sink */ @@ -3013,12 +3013,10 @@ static void intel_ddi_update_pipe_dp(struct intel_atomic_state *state,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { - struct intel_dp *intel_dp = enc_to_intel_dp(encoder); -intel_ddi_set_dp_msa (crtc_state ,conn_state );intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_update (intel_dp, crtc_state); +intel_drrs_update (crtc_state);intel_backlight_update (state, encoder, crtc_state, conn_state);drm_connector_update_privacy_screen (conn_state);drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-30@@ -1161,20 +1161,17 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_puts (m,"\n" );if (to_intel_crtc_state (crtc->base.state)->has_drrs) { -struct intel_panel *panel; -mutex_lock (&drrs->mutex);/* DRRS Supported */ seq_puts (m,"\tDRRS Enabled: Yes\n" );/* disable_drrs() will make drrs->dp NULL */ -if (!drrs->dp) { +if (!drrs->crtc) {seq_puts (m,"Idleness DRRS: Disabled\n" );mutex_unlock (&drrs->mutex);return ; } - panel = &drrs->dp->attached_connector->panel;seq_printf (m,"\t\tBusy_frontbuffer_bits: 0x%X" , drrs->busy_frontbuffer_bits);@@ -1881,9 +1878,7 @@ static int i915_drrs_ctl_set(void *data, u64 val)return -ENODEV ;for_each_intel_crtc (dev, crtc) { -struct drm_connector_list_iter conn_iter;struct intel_crtc_state *crtc_state; -struct drm_connector *connector;struct drm_crtc_commit *commit;int ret;@@ -1904,30 +1899,14 @@ static int i915_drrs_ctl_set(void *data, u64 val) goto out; } -drm_connector_list_iter_begin (dev, &conn_iter); -drm_for_each_connector_iter (connector, &conn_iter) { -struct intel_encoder *encoder; -struct intel_dp *intel_dp; - -if (!(crtc_state->uapi.connector_mask & -drm_connector_mask (connector))) -continue ; - - encoder =intel_attached_encoder (to_intel_connector (connector)); -if (encoder->type !=INTEL_OUTPUT_EDP ) -continue ; - -drm_dbg (&dev_priv->drm, -"Manually %sabling DRRS. %llu\n" , - val ?"en" :"dis" , val); - - intel_dp =enc_to_intel_dp (encoder); -if (val) -intel_drrs_enable (intel_dp, crtc_state); -else -intel_drrs_disable (intel_dp, crtc_state); - } -drm_connector_list_iter_end (&conn_iter); +drm_dbg (&dev_priv->drm, +"Manually %sabling DRRS. %llu\n" , + val ?"en" :"dis" , val); + +if (val) +intel_drrs_enable (crtc_state); +else +intel_drrs_disable (crtc_state); out:drm_modeset_unlock (&crtc->base.mutex);drivers/gpu/drm/i915/display/intel_dp.c +2
-2@@ -1899,8 +1899,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_dp, pipe_config, output_bpp, - constant_n); +intel_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 +32
-48@@ -80,11 +80,10 @@ static bool can_enable_drrs(struct intel_connector *connector, }void -intel_drrs_compute_config (struct intel_dp *intel_dp, +intel_drrs_compute_config (struct intel_connector *connector,struct intel_crtc_state *pipe_config,int output_bpp,bool constant_n) { -struct intel_connector *connector = intel_dp->attached_connector;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);@@ -153,10 +152,9 @@ static void intel_drrs_set_state(struct drm_i915_private *dev_priv,const struct intel_crtc_state *crtc_state, enum drrs_refresh_rate refresh_rate) { - struct intel_dp *intel_dp = dev_priv->drrs.dp; struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); -if (!intel_dp) { +if (!dev_priv->drrs.crtc) {drm_dbg_kms (&dev_priv->drm,"DRRS not supported.\n" );return ; }@@ -193,25 +191,24 @@ static void intel_drrs_set_state(struct drm_i915_private *dev_priv, }static void -intel_drrs_enable_locked (struct intel_dp *intel_dp) +intel_drrs_enable_locked (struct intel_crtc *crtc) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); dev_priv->drrs.busy_frontbuffer_bits =0 ; - dev_priv->drrs.dp = intel_dp; + dev_priv->drrs.crtc = crtc; }/** * intel_drrs_enable - init drrs struct if supported -* @intel_dp: DP struct * @crtc_state: A pointer to the active crtc state. * * Initializes frontbuffer_bits and drrs.dp */ -void intel_drrs_enable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state) +void intel_drrs_enable (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);if (!crtc_state->has_drrs)return ;@@ -220,48 +217,45 @@ void intel_drrs_enable(struct intel_dp *intel_dp,mutex_lock (&dev_priv->drrs.mutex); -if (dev_priv->drrs.dp) { +if (dev_priv->drrs.crtc) {drm_warn (&dev_priv->drm,"DRRS already enabled\n" ); goto unlock; } -intel_drrs_enable_locked (intel_dp); +intel_drrs_enable_locked (crtc); unlock:mutex_unlock (&dev_priv->drrs.mutex); }static void -intel_drrs_disable_locked (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state) +intel_drrs_disable_locked (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev);intel_drrs_set_state (dev_priv, crtc_state,DRRS_REFRESH_RATE_HIGH ); - dev_priv->drrs.dp =NULL ; + dev_priv->drrs.crtc =NULL ; }/** * intel_drrs_disable - Disable DRRS -* @intel_dp: DP struct * @old_crtc_state: Pointer to old crtc_state. -* */ -void intel_drrs_disable (struct intel_dp *intel_dp, -const struct intel_crtc_state *old_crtc_state) +void intel_drrs_disable (const struct intel_crtc_state *old_crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct intel_crtc *crtc =to_intel_crtc (old_crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);if (!old_crtc_state->has_drrs)return ;mutex_lock (&dev_priv->drrs.mutex); -if (!dev_priv->drrs.dp) { +if (dev_priv->drrs.crtc != crtc) {mutex_unlock (&dev_priv->drrs.mutex);return ; } -intel_drrs_disable_locked (intel_dp, old_crtc_state); +intel_drrs_disable_locked (old_crtc_state);mutex_unlock (&dev_priv->drrs.mutex);cancel_delayed_work_sync (&dev_priv->drrs.work);@@ -269,7 +263,6 @@ void intel_drrs_disable(struct intel_dp *intel_dp,/** * intel_drrs_update - Update DRRS state -* @intel_dp: Intel DP * @crtc_state: new CRTC state * * This function will update DRRS states, disabling or enabling DRRS when @@ -277,10 +270,10 @@ void intel_drrs_disable(struct intel_dp *intel_dp,* intel_drrs_enable() should be called instead. */ void -intel_drrs_update (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state) +intel_drrs_update (const struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv =dp_to_i915 (intel_dp); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;@@ -288,13 +281,13 @@ intel_drrs_update(struct intel_dp *intel_dp,mutex_lock (&dev_priv->drrs.mutex);/* New state matches current one? */ -if (crtc_state->has_drrs == !!dev_priv->drrs.dp) +if (crtc_state->has_drrs == !!dev_priv->drrs.crtc) goto unlock;if (crtc_state->has_drrs) -intel_drrs_enable_locked (intel_dp); +intel_drrs_enable_locked (crtc);else -intel_drrs_disable_locked (intel_dp, crtc_state); +intel_drrs_disable_locked (crtc_state); unlock:mutex_unlock (&dev_priv->drrs.mutex);@@ -304,13 +297,12 @@ static void intel_drrs_downclock_work(struct work_struct *work) {struct drm_i915_private *dev_priv =container_of (work,typeof (*dev_priv), drrs.work.work); -struct intel_dp *intel_dp; +struct intel_crtc *crtc;mutex_lock (&dev_priv->drrs.mutex); - intel_dp = dev_priv->drrs.dp; - -if (!intel_dp) + crtc = dev_priv->drrs.crtc; +if (!crtc) goto unlock;/* @@ -319,9 +311,6 @@ static void intel_drrs_downclock_work(struct work_struct *work)*/ if (!dev_priv->drrs.busy_frontbuffer_bits) { -struct intel_crtc *crtc = -to_intel_crtc (dp_to_dig_port (intel_dp)->base.base.crtc); -intel_drrs_set_state (dev_priv, crtc->config,DRRS_REFRESH_RATE_LOW ); }@@ -334,9 +323,7 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv, unsigned int frontbuffer_bits, bool invalidate) { -struct intel_dp *intel_dp; -struct drm_crtc *crtc; -enum pipe pipe; +struct intel_crtc *crtc;if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ;@@ -345,16 +332,13 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,mutex_lock (&dev_priv->drrs.mutex); - intel_dp = dev_priv->drrs.dp; -if (!intel_dp) { + crtc = dev_priv->drrs.crtc; +if (!crtc) {mutex_unlock (&dev_priv->drrs.mutex);return ; } - crtc =dp_to_dig_port (intel_dp)->base.base.crtc; - pipe =to_intel_crtc (crtc)->pipe; - - frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (pipe); + frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe);if (invalidate) dev_priv->drrs.busy_frontbuffer_bits |= frontbuffer_bits;else @@ -362,7 +346,7 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,/* flush/invalidate means busy screen hence upclock */ if (frontbuffer_bits) -intel_drrs_set_state (dev_priv,to_intel_crtc (crtc)->config, +intel_drrs_set_state (dev_priv, crtc->config,DRRS_REFRESH_RATE_HIGH );/* drivers/gpu/drm/i915/display/intel_drrs.h +4
-8@@ -14,22 +14,18 @@ struct intel_atomic_state;struct intel_crtc ;struct intel_crtc_state ;struct intel_connector ; -struct intel_dp ;const char *intel_drrs_type_str (enum drrs_type drrs_type); -void intel_drrs_enable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -void intel_drrs_disable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -void intel_drrs_update (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); +void intel_drrs_enable (const struct intel_crtc_state *crtc_state); +void intel_drrs_disable (const struct intel_crtc_state *crtc_state); +void intel_drrs_update (const struct intel_crtc_state *crtc_state);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_page_flip (struct intel_atomic_state *state,struct intel_crtc *crtc); -void intel_drrs_compute_config (struct intel_dp *intel_dp, +void intel_drrs_compute_config (struct intel_connector *connector,struct intel_crtc_state *pipe_config,int output_bpp,bool constant_n); struct drm_display_mode *intel_drrs_init(struct intel_connector *connector,drivers/gpu/drm/i915/i915_drv.h +1
-1@@ -210,7 +210,7 @@ enum drrs_type {struct i915_drrs {struct mutex mutex;struct delayed_work work; -struct intel_dp *dp; +struct intel_crtc *crtc;unsigned busy_frontbuffer_bits;enum drrs_refresh_rate refresh_rate; };
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v2 12/16 drm/i915: Stash DRRS state under intel_crtc
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Ger rid of one more ugly crtc->config usage by storing the DRRS state under intel_crtc. intel_drrs_enable() copies what it needs from the crtc state, after which DRRS can be blissfully ignorant of anything going on around it.
This also lets multiple pipes do DRRS simultanously and entirely independently.
v2: Split out some stuff (Jani)
--- drivers/gpu/drm/i915/display/intel_crtc.c | 2 + drivers/gpu/drm/i915/display/intel_ddi.c | 4 +- drivers/gpu/drm/i915/display/intel_display.c | 2 +- .../drm/i915/display/intel_display_debugfs.c | 70 ++--- .../drm/i915/display/intel_display_types.h | 14 + drivers/gpu/drm/i915/display/intel_drrs.c | 257 +++++++----------- drivers/gpu/drm/i915/display/intel_drrs.h | 8 +- drivers/gpu/drm/i915/i915_drv.h | 14 - 8 files changed, 144 insertions(+), 227 deletions(-)
drivers/gpu/drm/i915/display/intel_crtc.c +2 -0
@@ -24,6 +24,7 @@#include "intel_display_debugfs.h" #include "intel_display_trace.h" #include "intel_display_types.h" +#include "intel_drrs.h" #include "intel_dsi.h" #include "intel_pipe_crc.h" #include "intel_psr.h"
@@ -367,6 +368,7 @@ int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe)intel_color_init (crtc); +intel_crtc_drrs_init (crtc);intel_crtc_crc_init (crtc);cpu_latency_qos_add_request (&crtc->vblank_pm_qos,PM_QOS_DEFAULT_VALUE );
drivers/gpu/drm/i915/display/intel_ddi.c +3 -1
@@ -3013,10 +3013,12 @@ static void intel_ddi_update_pipe_dp(struct intel_atomic_state *state,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); +intel_ddi_set_dp_msa (crtc_state, conn_state);intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_update (crtc_state); +intel_drrs_update (state, crtc);intel_backlight_update (state, encoder, crtc_state, conn_state);drm_connector_update_privacy_screen (conn_state);
drivers/gpu/drm/i915/display/intel_display.c +1 -1
@@ -1229,7 +1229,7 @@ static void intel_post_plane_update(struct intel_atomic_state *state,hsw_ips_post_update (state, crtc);intel_fbc_post_update (state, crtc); -intel_drrs_page_flip (state, crtc); +intel_drrs_page_flip (crtc);if (needs_async_flip_vtd_wa (old_crtc_state) && !needs_async_flip_vtd_wa (new_crtc_state))
drivers/gpu/drm/i915/display/intel_display_debugfs.c +17 -53
93 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display_types.h +14 -0
@@ -1252,6 +1252,11 @@ enum intel_pipe_crc_source { INTEL_PIPE_CRC_SOURCE_MAX, }; +enum drrs_refresh_rate { +DRRS_REFRESH_RATE_HIGH , +DRRS_REFRESH_RATE_LOW , +}; +#define INTEL_PIPE_CRC_ENTRIES_NR 128struct intel_pipe_crc {spinlock_t lock;
@@ -1294,6 +1299,15 @@ struct intel_crtc { } active; } wm; +struct { +struct mutex mutex; +struct delayed_work work; +enum drrs_refresh_rate refresh_rate; +unsigned int busy_frontbuffer_bits; +enum transcoder cpu_transcoder; +struct intel_link_m_n m_n, m2_n2; + } drrs; +int scanline_offset;struct {
drivers/gpu/drm/i915/display/intel_drrs.c +102 -155
355 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_drrs.h +5 -3
@@ -16,18 +16,20 @@ struct intel_crtc_state;struct intel_connector ;const char *intel_drrs_type_str (enum drrs_type drrs_type); +bool intel_drrs_is_enabled (struct intel_crtc *crtc);void intel_drrs_enable (const struct intel_crtc_state *crtc_state);void intel_drrs_disable (const struct intel_crtc_state *crtc_state); -void intel_drrs_update (const struct intel_crtc_state *crtc_state); +void intel_drrs_update (struct intel_atomic_state *state, +struct intel_crtc *crtc);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_page_flip (struct intel_atomic_state *state, -struct intel_crtc *crtc); +void intel_drrs_page_flip (struct intel_crtc *crtc);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);
drivers/gpu/drm/i915/i915_drv.h +0 -14
@@ -196,25 +196,12 @@ struct drm_i915_display_funcs {#define I915_COLOR_UNEVICTABLE (-1)/* a non-vma sharing the address space */ -enum drrs_refresh_rate { -DRRS_REFRESH_RATE_HIGH , -DRRS_REFRESH_RATE_LOW , -}; -enum drrs_type {DRRS_TYPE_NONE ,DRRS_TYPE_STATIC ,DRRS_TYPE_SEAMLESS , }; -struct i915_drrs { -struct mutex mutex; -struct delayed_work work; -struct intel_crtc *crtc; -unsigned busy_frontbuffer_bits; -enum drrs_refresh_rate refresh_rate; -}; -#define QUIRK_LVDS_SSC_DISABLE (1<<1)#define QUIRK_INVERT_BRIGHTNESS (1<<2)#define QUIRK_BACKLIGHT_PRESENT (1<<3)
@@ -536,7 +523,6 @@ struct drm_i915_private {struct i915_hotplug hotplug;struct intel_fbc *fbc[I915_MAX_FBCS ]; -struct i915_drrs drrs;struct intel_opregion opregion;struct intel_vbt_data vbt;
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v2 12/16] drm/i915: Stash DRRS state under intel_crtc
Quoted 9 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Ger rid of one more ugly
crtc->configusage by storing the DRRS state underintel_crtc.intel_drrs_enable()copies what it needs from the crtc state, after which DRRS can be blissfully ignorant of anything going on around it.This also lets multiple pipes do DRRS simultanously and entirely independently.
One related concern for the future, do you think we might actually want to sync DRRS between multiple panels, at least in some cases? What if you have two panels, and they get refreshed at different rates, depending on the updates?
We'll need the plumbing from this patch no matter what, so probably just better to tackle that problem later.
Quoted 4 lines
v2: Split out some stuff (Jani)
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 625 lines
--- drivers/gpu/drm/i915/display/intel_crtc.c | 2 + drivers/gpu/drm/i915/display/intel_ddi.c | 4 +- drivers/gpu/drm/i915/display/intel_display.c | 2 +- .../drm/i915/display/intel_display_debugfs.c | 70 ++--- .../drm/i915/display/intel_display_types.h | 14 + drivers/gpu/drm/i915/display/intel_drrs.c | 257 +++++++----------- drivers/gpu/drm/i915/display/intel_drrs.h | 8 +- drivers/gpu/drm/i915/i915_drv.h | 14 - 8 files changed, 144 insertions(+), 227 deletions(-)drivers/gpu/drm/i915/display/intel_crtc.c +2
-0@@ -24,6 +24,7 @@#include "intel_display_debugfs.h" #include "intel_display_trace.h" #include "intel_display_types.h" +#include "intel_drrs.h" #include "intel_dsi.h" #include "intel_pipe_crc.h" #include "intel_psr.h" @@ -367,6 +368,7 @@ int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe)intel_color_init (crtc); +intel_crtc_drrs_init (crtc);intel_crtc_crc_init (crtc);cpu_latency_qos_add_request (&crtc->vblank_pm_qos,PM_QOS_DEFAULT_VALUE );drivers/gpu/drm/i915/display/intel_ddi.c +3
-1@@ -3013,10 +3013,12 @@ static void intel_ddi_update_pipe_dp(struct intel_atomic_state *state,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); +intel_ddi_set_dp_msa (crtc_state, conn_state);intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_update (crtc_state); +intel_drrs_update (state, crtc);intel_backlight_update (state, encoder, crtc_state, conn_state);drm_connector_update_privacy_screen (conn_state);drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -1229,7 +1229,7 @@ static void intel_post_plane_update(struct intel_atomic_state *state,hsw_ips_post_update (state, crtc);intel_fbc_post_update (state, crtc); -intel_drrs_page_flip (state, crtc); +intel_drrs_page_flip (crtc);if (needs_async_flip_vtd_wa (old_crtc_state) && !needs_async_flip_vtd_wa (new_crtc_state))drivers/gpu/drm/i915/display/intel_display_debugfs.c +17
-53@@ -1138,20 +1138,15 @@ static int i915_ddb_info(struct seq_file *m, void *unused)return 0 ; } -static void drrs_status_per_crtc (struct seq_file *m, -struct drm_device *dev, -struct intel_crtc *crtc) +static int i915_drrs_status (struct seq_file *m,void *unused) { -struct drm_i915_private *dev_priv =to_i915 (dev); -struct i915_drrs *drrs = &dev_priv->drrs; +struct drm_i915_private *dev_priv =node_to_i915 (m->private); +struct drm_connector_list_iter conn_iter;struct intel_connector *connector; -struct drm_connector_list_iter conn_iter; +struct intel_crtc *crtc; -drm_connector_list_iter_begin (dev, &conn_iter); +drm_connector_list_iter_begin (&dev_priv->drm, &conn_iter);for_each_intel_connector_iter (connector, &conn_iter) { -if (connector->base.state->crtc != &crtc->base) -continue ; -seq_printf (m,"[CONNECTOR:%d:%s] DRRS type: %s\n" , connector->base.base.id, connector->base.name,intel_drrs_type_str (intel_panel_drrs_type (connector)));@@ -1160,56 +1155,25 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_puts (m,"\n" ); -if (to_intel_crtc_state (crtc->base.state)->has_drrs) { -mutex_lock (&drrs->mutex); +for_each_intel_crtc (&dev_priv->drm, crtc) { +seq_printf (m,"[CRTC:%d:%s]:\n" , + crtc->base.base.id, crtc->base.name); + +mutex_lock (&crtc->drrs.mutex); +/* DRRS Supported */ -seq_puts (m,"\tDRRS Enabled: Yes\n" ); +seq_printf (m,"\tDRRS Enabled: %s\n" , +str_yes_no (intel_drrs_is_enabled (crtc))); -/* disable_drrs() will make drrs->dp NULL */ -if (!drrs->crtc) { -seq_puts (m,"Idleness DRRS: Disabled\n" ); -mutex_unlock (&drrs->mutex); -return ; - } - -seq_printf (m,"\t\tBusy_frontbuffer_bits: 0x%X" , - drrs->busy_frontbuffer_bits); - -seq_puts (m,"\n\t\t" ); +seq_printf (m,"\tBusy_frontbuffer_bits: 0x%X\n" , + crtc->drrs.busy_frontbuffer_bits);seq_printf (m,"DRRS refresh rate: %s\n" , - drrs->refresh_rate ==DRRS_REFRESH_RATE_LOW ? + crtc->drrs.refresh_rate ==DRRS_REFRESH_RATE_LOW ?"low" :"high" ); -seq_puts (m,"\n\t\t" ); -mutex_unlock (&drrs->mutex); - }else { -/* DRRS not supported. Print the VBT parameter*/ -seq_puts (m,"\tDRRS Enabled : No" ); +mutex_unlock (&crtc->drrs.mutex); } -seq_puts (m,"\n" ); -} - -static int i915_drrs_status (struct seq_file *m,void *unused) -{ -struct drm_i915_private *dev_priv =node_to_i915 (m->private); -struct drm_device *dev = &dev_priv->drm; -struct intel_crtc *crtc; -int active_crtc_cnt =0 ; - -drm_modeset_lock_all (dev); -for_each_intel_crtc (dev, crtc) { -if (crtc->base.state->active) { - active_crtc_cnt++; -seq_printf (m,"\nCRTC %d: " , active_crtc_cnt); - -drrs_status_per_crtc (m, dev, crtc); - } - } -drm_modeset_unlock_all (dev); - -if (!active_crtc_cnt) -seq_puts (m,"No active crtc found\n" );return 0 ; }drivers/gpu/drm/i915/display/intel_display_types.h +14
-0@@ -1252,6 +1252,11 @@ enum intel_pipe_crc_source { INTEL_PIPE_CRC_SOURCE_MAX, }; +enum drrs_refresh_rate { +DRRS_REFRESH_RATE_HIGH , +DRRS_REFRESH_RATE_LOW , +}; +#define INTEL_PIPE_CRC_ENTRIES_NR 128struct intel_pipe_crc {spinlock_t lock;@@ -1294,6 +1299,15 @@ struct intel_crtc { } active; } wm; +struct { +struct mutex mutex; +struct delayed_work work; +enum drrs_refresh_rate refresh_rate; +unsigned int busy_frontbuffer_bits; +enum transcoder cpu_transcoder; +struct intel_link_m_n m_n, m2_n2; + } drrs; +int scanline_offset;struct {drivers/gpu/drm/i915/display/intel_drrs.c +102
-155@@ -114,12 +114,11 @@ intel_drrs_compute_config(struct intel_connector *connector, }static void -intel_drrs_set_refresh_rate_pipeconf (const struct intel_crtc_state *crtc_state, +intel_drrs_set_refresh_rate_pipeconf (struct intel_crtc *crtc,enum drrs_refresh_rate refresh_rate) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -enum transcoder cpu_transcoder = crtc_state->cpu_transcoder; +enum transcoder cpu_transcoder = crtc->drrs.cpu_transcoder;u32 val, bit;if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv))@@ -138,65 +137,33 @@ intel_drrs_set_refresh_rate_pipeconf(const struct intel_crtc_state *crtc_state, }static void -intel_drrs_set_refresh_rate_m_n (const struct intel_crtc_state *crtc_state, +intel_drrs_set_refresh_rate_m_n (struct intel_crtc *crtc,enum drrs_refresh_rate refresh_rate) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); - -intel_cpu_transcoder_set_m1_n1 (crtc, crtc_state->cpu_transcoder, +intel_cpu_transcoder_set_m1_n1 (crtc, crtc->drrs.cpu_transcoder, refresh_rate ==DRRS_REFRESH_RATE_LOW ? - &crtc_state->dp_m2_n2 : &crtc_state->dp_m_n); + &crtc->drrs.m2_n2 : &crtc->drrs.m_n); } -static void intel_drrs_set_state (struct drm_i915_private *dev_priv, -const struct intel_crtc_state *crtc_state, +bool intel_drrs_is_enabled (struct intel_crtc *crtc) +{ +return crtc->drrs.cpu_transcoder !=INVALID_TRANSCODER ; +} + +static void intel_drrs_set_state (struct intel_crtc *crtc,enum drrs_refresh_rate refresh_rate) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -if (!dev_priv->drrs.crtc) { -drm_dbg_kms (&dev_priv->drm,"DRRS not supported.\n" ); +if (refresh_rate == crtc->drrs.refresh_rate)return ; - } - -if (!crtc) { -drm_dbg_kms (&dev_priv->drm, -"DRRS: intel_crtc not initialized\n" ); -return ; - } - -if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS ) { -drm_dbg_kms (&dev_priv->drm,"Only Seamless DRRS supported.\n" ); -return ; - } - -if (refresh_rate == dev_priv->drrs.refresh_rate) -return ; - -if (!crtc_state->hw.active) { -drm_dbg_kms (&dev_priv->drm, -"eDP encoder disabled. CRTC not Active\n" ); -return ; - }if (DISPLAY_VER (dev_priv) >=8 && !IS_CHERRYVIEW (dev_priv)) -intel_drrs_set_refresh_rate_m_n (crtc_state, refresh_rate); +intel_drrs_set_refresh_rate_m_n (crtc, refresh_rate);else if (DISPLAY_VER (dev_priv) >6 ) -intel_drrs_set_refresh_rate_pipeconf (crtc_state, refresh_rate); +intel_drrs_set_refresh_rate_pipeconf (crtc, refresh_rate); - dev_priv->drrs.refresh_rate = refresh_rate; - -drm_dbg_kms (&dev_priv->drm,"eDP Refresh Rate set to : %s\n" , - refresh_rate ==DRRS_REFRESH_RATE_LOW ?"low" :"high" ); -} - -static void -intel_drrs_enable_locked (struct intel_crtc *crtc) -{ -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); - - dev_priv->drrs.busy_frontbuffer_bits =0 ; - dev_priv->drrs.crtc = crtc; + crtc->drrs.refresh_rate = refresh_rate; }/** @@ -213,28 +180,17 @@ void intel_drrs_enable(const struct intel_crtc_state *crtc_state)if (!crtc_state->has_drrs)return ; -drm_dbg_kms (&dev_priv->drm,"Enabling DRRS\n" ); +drm_dbg_kms (&dev_priv->drm,"[CRTC:%d:%s] Enabling DRRS\n" , + crtc->base.base.id, crtc->base.name); -mutex_lock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); -if (dev_priv->drrs.crtc) { -drm_warn (&dev_priv->drm,"DRRS already enabled\n" ); - goto unlock; - } + crtc->drrs.cpu_transcoder = crtc_state->cpu_transcoder; + crtc->drrs.m_n = crtc_state->dp_m_n; + crtc->drrs.m2_n2 = crtc_state->dp_m2_n2; + crtc->drrs.busy_frontbuffer_bits =0 ; -intel_drrs_enable_locked (crtc); - -unlock: -mutex_unlock (&dev_priv->drrs.mutex); -} - -static void -intel_drrs_disable_locked (const struct intel_crtc_state *crtc_state) -{ -struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev); - -intel_drrs_set_state (dev_priv, crtc_state,DRRS_REFRESH_RATE_HIGH ); - dev_priv->drrs.crtc =NULL ; +mutex_unlock (&crtc->drrs.mutex); }/** @@ -249,74 +205,54 @@ void intel_drrs_disable(const struct intel_crtc_state *old_crtc_state)if (!old_crtc_state->has_drrs)return ; -mutex_lock (&dev_priv->drrs.mutex); -if (dev_priv->drrs.crtc != crtc) { -mutex_unlock (&dev_priv->drrs.mutex); -return ; - } +drm_dbg_kms (&dev_priv->drm,"[CRTC:%d:%s] Disabling DRRS\n" , + crtc->base.base.id, crtc->base.name); -intel_drrs_disable_locked (old_crtc_state); -mutex_unlock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); -cancel_delayed_work_sync (&dev_priv->drrs.work); +if (intel_drrs_is_enabled (crtc)) +intel_drrs_set_state (crtc,DRRS_REFRESH_RATE_HIGH ); + + crtc->drrs.cpu_transcoder =INVALID_TRANSCODER ; + crtc->drrs.busy_frontbuffer_bits =0 ; + +mutex_unlock (&crtc->drrs.mutex); + +cancel_delayed_work_sync (&crtc->drrs.work); }/** -* intel_drrs_update - Update DRRS state -* @crtc_state: new CRTC state -* -* This function will update DRRS states, disabling or enabling DRRS when -* executing fastsets. For full modeset, intel_drrs_disable() and -* intel_drrs_enable() should be called instead. +* intel_drrs_update - Update DRRS during fastset +* @state: atomic state +* @crtc: crtc */ -void -intel_drrs_update (const struct intel_crtc_state *crtc_state) +void intel_drrs_update (struct intel_atomic_state *state, +struct intel_crtc *crtc) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +const struct intel_crtc_state *old_crtc_state = +intel_atomic_get_old_crtc_state (state, crtc); +const struct intel_crtc_state *new_crtc_state = +intel_atomic_get_new_crtc_state (state, crtc); -if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS ) +if (old_crtc_state->has_drrs == new_crtc_state->has_drrs)return ; -mutex_lock (&dev_priv->drrs.mutex); - -/* New state matches current one? */ -if (crtc_state->has_drrs == !!dev_priv->drrs.crtc) - goto unlock; - -if (crtc_state->has_drrs) -intel_drrs_enable_locked (crtc); +if (new_crtc_state->has_drrs) +intel_drrs_enable (new_crtc_state);else -intel_drrs_disable_locked (crtc_state); - -unlock: -mutex_unlock (&dev_priv->drrs.mutex); +intel_drrs_disable (old_crtc_state); }static void intel_drrs_downclock_work (struct work_struct *work) { -struct drm_i915_private *dev_priv = -container_of (work,typeof (*dev_priv), drrs.work.work); -struct intel_crtc *crtc; +struct intel_crtc *crtc =container_of (work,typeof (*crtc), drrs.work.work); -mutex_lock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); - crtc = dev_priv->drrs.crtc; -if (!crtc) - goto unlock; +if (intel_drrs_is_enabled (crtc) && !crtc->drrs.busy_frontbuffer_bits) +intel_drrs_set_state (crtc,DRRS_REFRESH_RATE_LOW ); -/* -* The delayed work can race with an invalidate hence we need to -* recheck. -*/ - -if (!dev_priv->drrs.busy_frontbuffer_bits) { -intel_drrs_set_state (dev_priv, crtc->config, -DRRS_REFRESH_RATE_LOW ); - } - -unlock: -mutex_unlock (&dev_priv->drrs.mutex); +mutex_unlock (&crtc->drrs.mutex); } static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,@@ -328,35 +264,36 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ; -cancel_delayed_work (&dev_priv->drrs.work); +for_each_intel_crtc (&dev_priv->drm, crtc) { +cancel_delayed_work (&crtc->drrs.work); -mutex_lock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); - crtc = dev_priv->drrs.crtc; -if (!crtc) { -mutex_unlock (&dev_priv->drrs.mutex); -return ; +if (!intel_drrs_is_enabled (crtc)) { +mutex_unlock (&crtc->drrs.mutex); +continue ; + } + + frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe); +if (invalidate) + crtc->drrs.busy_frontbuffer_bits |= frontbuffer_bits; +else + crtc->drrs.busy_frontbuffer_bits &= ~frontbuffer_bits; + +/* flush/invalidate means busy screen hence upclock */ +if (frontbuffer_bits) +intel_drrs_set_state (crtc,DRRS_REFRESH_RATE_HIGH ); + +/* +* flush also means no more activity hence schedule downclock, if all +* other fbs are quiescent too +*/ +if (!invalidate && !crtc->drrs.busy_frontbuffer_bits) +schedule_delayed_work (&crtc->drrs.work, +msecs_to_jiffies (1000 )); + +mutex_unlock (&crtc->drrs.mutex); } - - frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe); -if (invalidate) - dev_priv->drrs.busy_frontbuffer_bits |= frontbuffer_bits; -else - dev_priv->drrs.busy_frontbuffer_bits &= ~frontbuffer_bits; - -/* flush/invalidate means busy screen hence upclock */ -if (frontbuffer_bits) -intel_drrs_set_state (dev_priv, crtc->config, -DRRS_REFRESH_RATE_HIGH ); - -/* -* flush also means no more activity hence schedule downclock, if all -* other fbs are quiescent too -*/ -if (!invalidate && !dev_priv->drrs.busy_frontbuffer_bits) -schedule_delayed_work (&dev_priv->drrs.work, -msecs_to_jiffies (1000 )); -mutex_unlock (&dev_priv->drrs.mutex); }/** @@ -393,22 +330,36 @@ void intel_drrs_flush(struct drm_i915_private *dev_priv,intel_drrs_frontbuffer_update (dev_priv, frontbuffer_bits, false); } -void intel_drrs_page_flip (struct intel_atomic_state *state, -struct intel_crtc *crtc) +void intel_drrs_page_flip (struct intel_crtc *crtc) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);unsigned int frontbuffer_bits =INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe);intel_drrs_frontbuffer_update (dev_priv, frontbuffer_bits, false); }/** -* intel_drrs_init - Init basic DRRS work and mutex. +* intel_crtc_drrs_init - Init DRRS for CRTC +* @crtc: crtc +* +* This function is called only once at driver load to initialize basic +* DRRS stuff. +* +*/ +void intel_crtc_drrs_init (struct intel_crtc *crtc) +{ +INIT_DELAYED_WORK (&crtc->drrs.work, intel_drrs_downclock_work); +mutex_init (&crtc->drrs.mutex); + crtc->drrs.cpu_transcoder =INVALID_TRANSCODER ; +} + +/** +* 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 basic -* DRRS stuff. +* 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. @@ -421,10 +372,7 @@ intel_drrs_init(struct intel_connector *connector, {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct intel_encoder *encoder = connector->encoder; -struct drm_display_mode *downclock_mode =NULL ; - -INIT_DELAYED_WORK (&dev_priv->drrs.work, intel_drrs_downclock_work); -mutex_init (&dev_priv->drrs.mutex); +struct drm_display_mode *downclock_mode;if (DISPLAY_VER (dev_priv) <=6 ) { drm_dbg_kms(&dev_priv->drm,@@ -457,7 +405,6 @@ intel_drrs_init(struct intel_connector *connector,return NULL ; } - dev_priv->drrs.refresh_rate =DRRS_REFRESH_RATE_HIGH ; drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s] %s DRRS supported\n", connector->base.base.id, connector->base.name,drivers/gpu/drm/i915/display/intel_drrs.h +5
-3@@ -16,18 +16,20 @@ struct intel_crtc_state;struct intel_connector ;const char *intel_drrs_type_str (enum drrs_type drrs_type); +bool intel_drrs_is_enabled (struct intel_crtc *crtc);void intel_drrs_enable (const struct intel_crtc_state *crtc_state);void intel_drrs_disable (const struct intel_crtc_state *crtc_state); -void intel_drrs_update (const struct intel_crtc_state *crtc_state); +void intel_drrs_update (struct intel_atomic_state *state, +struct intel_crtc *crtc);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_page_flip (struct intel_atomic_state *state, -struct intel_crtc *crtc); +void intel_drrs_page_flip (struct intel_crtc *crtc);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);drivers/gpu/drm/i915/i915_drv.h +0
-14@@ -196,25 +196,12 @@ struct drm_i915_display_funcs {#define I915_COLOR_UNEVICTABLE (-1)/* a non-vma sharing the address space */ -enum drrs_refresh_rate { -DRRS_REFRESH_RATE_HIGH , -DRRS_REFRESH_RATE_LOW , -}; -enum drrs_type {DRRS_TYPE_NONE ,DRRS_TYPE_STATIC ,DRRS_TYPE_SEAMLESS , }; -struct i915_drrs { -struct mutex mutex; -struct delayed_work work; -struct intel_crtc *crtc; -unsigned busy_frontbuffer_bits; -enum drrs_refresh_rate refresh_rate; -}; -#define QUIRK_LVDS_SSC_DISABLE (1<<1)#define QUIRK_INVERT_BRIGHTNESS (1<<2)#define QUIRK_BACKLIGHT_PRESENT (1<<3)@@ -536,7 +523,6 @@ struct drm_i915_private {struct i915_hotplug hotplug;struct intel_fbc *fbc[I915_MAX_FBCS ]; -struct i915_drrs drrs;struct intel_opregion opregion;struct intel_vbt_data vbt;
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH v2 12/16] drm/i915: Stash DRRS state under intel_crtc
Quoted 8 lines · Jani Nikula
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Ger rid of one more ugly
crtc->configusage by storing the DRRS state underintel_crtc.intel_drrs_enable()copies what it needs from the crtc state, after which DRRS can be blissfully ignorant of anything going on around it.
Quoted 7 lines
Quoted 2 lines
This also lets multiple pipes do DRRS simultanously and entirely independently.
One related concern for the future, do you think we might actually want to sync DRRS between multiple panels, at least in some cases? What if you have two panels, and they get refreshed at different rates, depending on the updates?
I think the two cases where keeping things in sync would really matter are bigjoiner and port sync.
In the case of bigjoiner we need to change the DDRS code to only operate on the master crtc since the refresh rate control is handled by the single transcoder. I actually have this already typed up.
For port sync I think we just have to disable DRRS since we can't really guarantee that the refresh rate change happens atomically on all the transcoders. I suspect messing that up would not end well.
That does present a bit of a chicken vs. egg situation though since currently we don't know that we're about to do port sync until .compute_config_late(), but intel_drrs_compute_config() gets called already during .compute_config(). Need to ponder a bit how to do handle this in sensible manner.
But this port sync stuff doesn't seem super important right now as we only enable it on tiled displays, and I suspect tiled eDP panels aren't really a thing currently.
I suppose if we at some point extend our port sync stuff to also work without the actual hardware port sync feature (ie. just try to make sure the identically timed transcoders start up apporoximately at the same time) we also want to disable DRRS for them due to the refresh rate change atomicity concerns.
Quoted 639 lines
We'll need the plumbing from this patch no matter what, so probably just better to tackle that problem later.
Quoted 4 lines
v2: Split out some stuff (Jani)
Signed-off-by Ville Syrjälä <[email protected]>Reviewed-by Jani Nikula <[email protected]>Quoted 625 lines
--- drivers/gpu/drm/i915/display/intel_crtc.c | 2 + drivers/gpu/drm/i915/display/intel_ddi.c | 4 +- drivers/gpu/drm/i915/display/intel_display.c | 2 +- .../drm/i915/display/intel_display_debugfs.c | 70 ++--- .../drm/i915/display/intel_display_types.h | 14 + drivers/gpu/drm/i915/display/intel_drrs.c | 257 +++++++----------- drivers/gpu/drm/i915/display/intel_drrs.h | 8 +- drivers/gpu/drm/i915/i915_drv.h | 14 - 8 files changed, 144 insertions(+), 227 deletions(-)drivers/gpu/drm/i915/display/intel_crtc.c +2
-0@@ -24,6 +24,7 @@#include "intel_display_debugfs.h" #include "intel_display_trace.h" #include "intel_display_types.h" +#include "intel_drrs.h" #include "intel_dsi.h" #include "intel_pipe_crc.h" #include "intel_psr.h" @@ -367,6 +368,7 @@ int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe)intel_color_init (crtc); +intel_crtc_drrs_init (crtc);intel_crtc_crc_init (crtc);cpu_latency_qos_add_request (&crtc->vblank_pm_qos,PM_QOS_DEFAULT_VALUE );drivers/gpu/drm/i915/display/intel_ddi.c +3
-1@@ -3013,10 +3013,12 @@ static void intel_ddi_update_pipe_dp(struct intel_atomic_state *state,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { + struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); +intel_ddi_set_dp_msa (crtc_state, conn_state);intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_update (crtc_state); +intel_drrs_update (state, crtc);intel_backlight_update (state, encoder, crtc_state, conn_state);drm_connector_update_privacy_screen (conn_state);drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -1229,7 +1229,7 @@ static void intel_post_plane_update(struct intel_atomic_state *state,hsw_ips_post_update (state, crtc);intel_fbc_post_update (state, crtc); -intel_drrs_page_flip (state, crtc); +intel_drrs_page_flip (crtc);if (needs_async_flip_vtd_wa (old_crtc_state) && !needs_async_flip_vtd_wa (new_crtc_state))drivers/gpu/drm/i915/display/intel_display_debugfs.c +17
-53@@ -1138,20 +1138,15 @@ static int i915_ddb_info(struct seq_file *m, void *unused)return 0 ; } -static void drrs_status_per_crtc (struct seq_file *m, -struct drm_device *dev, -struct intel_crtc *crtc) +static int i915_drrs_status (struct seq_file *m,void *unused) { -struct drm_i915_private *dev_priv =to_i915 (dev); -struct i915_drrs *drrs = &dev_priv->drrs; +struct drm_i915_private *dev_priv =node_to_i915 (m->private); +struct drm_connector_list_iter conn_iter;struct intel_connector *connector; -struct drm_connector_list_iter conn_iter; +struct intel_crtc *crtc; -drm_connector_list_iter_begin (dev, &conn_iter); +drm_connector_list_iter_begin (&dev_priv->drm, &conn_iter);for_each_intel_connector_iter (connector, &conn_iter) { -if (connector->base.state->crtc != &crtc->base) -continue ; -seq_printf (m,"[CONNECTOR:%d:%s] DRRS type: %s\n" , connector->base.base.id, connector->base.name,intel_drrs_type_str (intel_panel_drrs_type (connector)));@@ -1160,56 +1155,25 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_puts (m,"\n" ); -if (to_intel_crtc_state (crtc->base.state)->has_drrs) { -mutex_lock (&drrs->mutex); +for_each_intel_crtc (&dev_priv->drm, crtc) { +seq_printf (m,"[CRTC:%d:%s]:\n" , + crtc->base.base.id, crtc->base.name); + +mutex_lock (&crtc->drrs.mutex); +/* DRRS Supported */ -seq_puts (m,"\tDRRS Enabled: Yes\n" ); +seq_printf (m,"\tDRRS Enabled: %s\n" , +str_yes_no (intel_drrs_is_enabled (crtc))); -/* disable_drrs() will make drrs->dp NULL */ -if (!drrs->crtc) { -seq_puts (m,"Idleness DRRS: Disabled\n" ); -mutex_unlock (&drrs->mutex); -return ; - } - -seq_printf (m,"\t\tBusy_frontbuffer_bits: 0x%X" , - drrs->busy_frontbuffer_bits); - -seq_puts (m,"\n\t\t" ); +seq_printf (m,"\tBusy_frontbuffer_bits: 0x%X\n" , + crtc->drrs.busy_frontbuffer_bits);seq_printf (m,"DRRS refresh rate: %s\n" , - drrs->refresh_rate ==DRRS_REFRESH_RATE_LOW ? + crtc->drrs.refresh_rate ==DRRS_REFRESH_RATE_LOW ?"low" :"high" ); -seq_puts (m,"\n\t\t" ); -mutex_unlock (&drrs->mutex); - }else { -/* DRRS not supported. Print the VBT parameter*/ -seq_puts (m,"\tDRRS Enabled : No" ); +mutex_unlock (&crtc->drrs.mutex); } -seq_puts (m,"\n" ); -} - -static int i915_drrs_status (struct seq_file *m,void *unused) -{ -struct drm_i915_private *dev_priv =node_to_i915 (m->private); -struct drm_device *dev = &dev_priv->drm; -struct intel_crtc *crtc; -int active_crtc_cnt =0 ; - -drm_modeset_lock_all (dev); -for_each_intel_crtc (dev, crtc) { -if (crtc->base.state->active) { - active_crtc_cnt++; -seq_printf (m,"\nCRTC %d: " , active_crtc_cnt); - -drrs_status_per_crtc (m, dev, crtc); - } - } -drm_modeset_unlock_all (dev); - -if (!active_crtc_cnt) -seq_puts (m,"No active crtc found\n" );return 0 ; }drivers/gpu/drm/i915/display/intel_display_types.h +14
-0@@ -1252,6 +1252,11 @@ enum intel_pipe_crc_source { INTEL_PIPE_CRC_SOURCE_MAX, }; +enum drrs_refresh_rate { +DRRS_REFRESH_RATE_HIGH , +DRRS_REFRESH_RATE_LOW , +}; +#define INTEL_PIPE_CRC_ENTRIES_NR 128struct intel_pipe_crc {spinlock_t lock;@@ -1294,6 +1299,15 @@ struct intel_crtc { } active; } wm; +struct { +struct mutex mutex; +struct delayed_work work; +enum drrs_refresh_rate refresh_rate; +unsigned int busy_frontbuffer_bits; +enum transcoder cpu_transcoder; +struct intel_link_m_n m_n, m2_n2; + } drrs; +int scanline_offset;struct {drivers/gpu/drm/i915/display/intel_drrs.c +102
-155@@ -114,12 +114,11 @@ intel_drrs_compute_config(struct intel_connector *connector, }static void -intel_drrs_set_refresh_rate_pipeconf (const struct intel_crtc_state *crtc_state, +intel_drrs_set_refresh_rate_pipeconf (struct intel_crtc *crtc,enum drrs_refresh_rate refresh_rate) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -enum transcoder cpu_transcoder = crtc_state->cpu_transcoder; +enum transcoder cpu_transcoder = crtc->drrs.cpu_transcoder;u32 val, bit;if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv))@@ -138,65 +137,33 @@ intel_drrs_set_refresh_rate_pipeconf(const struct intel_crtc_state *crtc_state, }static void -intel_drrs_set_refresh_rate_m_n (const struct intel_crtc_state *crtc_state, +intel_drrs_set_refresh_rate_m_n (struct intel_crtc *crtc,enum drrs_refresh_rate refresh_rate) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); - -intel_cpu_transcoder_set_m1_n1 (crtc, crtc_state->cpu_transcoder, +intel_cpu_transcoder_set_m1_n1 (crtc, crtc->drrs.cpu_transcoder, refresh_rate ==DRRS_REFRESH_RATE_LOW ? - &crtc_state->dp_m2_n2 : &crtc_state->dp_m_n); + &crtc->drrs.m2_n2 : &crtc->drrs.m_n); } -static void intel_drrs_set_state (struct drm_i915_private *dev_priv, -const struct intel_crtc_state *crtc_state, +bool intel_drrs_is_enabled (struct intel_crtc *crtc) +{ +return crtc->drrs.cpu_transcoder !=INVALID_TRANSCODER ; +} + +static void intel_drrs_set_state (struct intel_crtc *crtc,enum drrs_refresh_rate refresh_rate) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -if (!dev_priv->drrs.crtc) { -drm_dbg_kms (&dev_priv->drm,"DRRS not supported.\n" ); +if (refresh_rate == crtc->drrs.refresh_rate)return ; - } - -if (!crtc) { -drm_dbg_kms (&dev_priv->drm, -"DRRS: intel_crtc not initialized\n" ); -return ; - } - -if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS ) { -drm_dbg_kms (&dev_priv->drm,"Only Seamless DRRS supported.\n" ); -return ; - } - -if (refresh_rate == dev_priv->drrs.refresh_rate) -return ; - -if (!crtc_state->hw.active) { -drm_dbg_kms (&dev_priv->drm, -"eDP encoder disabled. CRTC not Active\n" ); -return ; - }if (DISPLAY_VER (dev_priv) >=8 && !IS_CHERRYVIEW (dev_priv)) -intel_drrs_set_refresh_rate_m_n (crtc_state, refresh_rate); +intel_drrs_set_refresh_rate_m_n (crtc, refresh_rate);else if (DISPLAY_VER (dev_priv) >6 ) -intel_drrs_set_refresh_rate_pipeconf (crtc_state, refresh_rate); +intel_drrs_set_refresh_rate_pipeconf (crtc, refresh_rate); - dev_priv->drrs.refresh_rate = refresh_rate; - -drm_dbg_kms (&dev_priv->drm,"eDP Refresh Rate set to : %s\n" , - refresh_rate ==DRRS_REFRESH_RATE_LOW ?"low" :"high" ); -} - -static void -intel_drrs_enable_locked (struct intel_crtc *crtc) -{ -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); - - dev_priv->drrs.busy_frontbuffer_bits =0 ; - dev_priv->drrs.crtc = crtc; + crtc->drrs.refresh_rate = refresh_rate; }/** @@ -213,28 +180,17 @@ void intel_drrs_enable(const struct intel_crtc_state *crtc_state)if (!crtc_state->has_drrs)return ; -drm_dbg_kms (&dev_priv->drm,"Enabling DRRS\n" ); +drm_dbg_kms (&dev_priv->drm,"[CRTC:%d:%s] Enabling DRRS\n" , + crtc->base.base.id, crtc->base.name); -mutex_lock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); -if (dev_priv->drrs.crtc) { -drm_warn (&dev_priv->drm,"DRRS already enabled\n" ); - goto unlock; - } + crtc->drrs.cpu_transcoder = crtc_state->cpu_transcoder; + crtc->drrs.m_n = crtc_state->dp_m_n; + crtc->drrs.m2_n2 = crtc_state->dp_m2_n2; + crtc->drrs.busy_frontbuffer_bits =0 ; -intel_drrs_enable_locked (crtc); - -unlock: -mutex_unlock (&dev_priv->drrs.mutex); -} - -static void -intel_drrs_disable_locked (const struct intel_crtc_state *crtc_state) -{ -struct drm_i915_private *dev_priv =to_i915 (crtc_state->uapi.crtc->dev); - -intel_drrs_set_state (dev_priv, crtc_state,DRRS_REFRESH_RATE_HIGH ); - dev_priv->drrs.crtc =NULL ; +mutex_unlock (&crtc->drrs.mutex); }/** @@ -249,74 +205,54 @@ void intel_drrs_disable(const struct intel_crtc_state *old_crtc_state)if (!old_crtc_state->has_drrs)return ; -mutex_lock (&dev_priv->drrs.mutex); -if (dev_priv->drrs.crtc != crtc) { -mutex_unlock (&dev_priv->drrs.mutex); -return ; - } +drm_dbg_kms (&dev_priv->drm,"[CRTC:%d:%s] Disabling DRRS\n" , + crtc->base.base.id, crtc->base.name); -intel_drrs_disable_locked (old_crtc_state); -mutex_unlock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); -cancel_delayed_work_sync (&dev_priv->drrs.work); +if (intel_drrs_is_enabled (crtc)) +intel_drrs_set_state (crtc,DRRS_REFRESH_RATE_HIGH ); + + crtc->drrs.cpu_transcoder =INVALID_TRANSCODER ; + crtc->drrs.busy_frontbuffer_bits =0 ; + +mutex_unlock (&crtc->drrs.mutex); + +cancel_delayed_work_sync (&crtc->drrs.work); }/** -* intel_drrs_update - Update DRRS state -* @crtc_state: new CRTC state -* -* This function will update DRRS states, disabling or enabling DRRS when -* executing fastsets. For full modeset, intel_drrs_disable() and -* intel_drrs_enable() should be called instead. +* intel_drrs_update - Update DRRS during fastset +* @state: atomic state +* @crtc: crtc */ -void -intel_drrs_update (const struct intel_crtc_state *crtc_state) +void intel_drrs_update (struct intel_atomic_state *state, +struct intel_crtc *crtc) { -struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +const struct intel_crtc_state *old_crtc_state = +intel_atomic_get_old_crtc_state (state, crtc); +const struct intel_crtc_state *new_crtc_state = +intel_atomic_get_new_crtc_state (state, crtc); -if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS ) +if (old_crtc_state->has_drrs == new_crtc_state->has_drrs)return ; -mutex_lock (&dev_priv->drrs.mutex); - -/* New state matches current one? */ -if (crtc_state->has_drrs == !!dev_priv->drrs.crtc) - goto unlock; - -if (crtc_state->has_drrs) -intel_drrs_enable_locked (crtc); +if (new_crtc_state->has_drrs) +intel_drrs_enable (new_crtc_state);else -intel_drrs_disable_locked (crtc_state); - -unlock: -mutex_unlock (&dev_priv->drrs.mutex); +intel_drrs_disable (old_crtc_state); }static void intel_drrs_downclock_work (struct work_struct *work) { -struct drm_i915_private *dev_priv = -container_of (work,typeof (*dev_priv), drrs.work.work); -struct intel_crtc *crtc; +struct intel_crtc *crtc =container_of (work,typeof (*crtc), drrs.work.work); -mutex_lock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); - crtc = dev_priv->drrs.crtc; -if (!crtc) - goto unlock; +if (intel_drrs_is_enabled (crtc) && !crtc->drrs.busy_frontbuffer_bits) +intel_drrs_set_state (crtc,DRRS_REFRESH_RATE_LOW ); -/* -* The delayed work can race with an invalidate hence we need to -* recheck. -*/ - -if (!dev_priv->drrs.busy_frontbuffer_bits) { -intel_drrs_set_state (dev_priv, crtc->config, -DRRS_REFRESH_RATE_LOW ); - } - -unlock: -mutex_unlock (&dev_priv->drrs.mutex); +mutex_unlock (&crtc->drrs.mutex); } static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,@@ -328,35 +264,36 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS )return ; -cancel_delayed_work (&dev_priv->drrs.work); +for_each_intel_crtc (&dev_priv->drm, crtc) { +cancel_delayed_work (&crtc->drrs.work); -mutex_lock (&dev_priv->drrs.mutex); +mutex_lock (&crtc->drrs.mutex); - crtc = dev_priv->drrs.crtc; -if (!crtc) { -mutex_unlock (&dev_priv->drrs.mutex); -return ; +if (!intel_drrs_is_enabled (crtc)) { +mutex_unlock (&crtc->drrs.mutex); +continue ; + } + + frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe); +if (invalidate) + crtc->drrs.busy_frontbuffer_bits |= frontbuffer_bits; +else + crtc->drrs.busy_frontbuffer_bits &= ~frontbuffer_bits; + +/* flush/invalidate means busy screen hence upclock */ +if (frontbuffer_bits) +intel_drrs_set_state (crtc,DRRS_REFRESH_RATE_HIGH ); + +/* +* flush also means no more activity hence schedule downclock, if all +* other fbs are quiescent too +*/ +if (!invalidate && !crtc->drrs.busy_frontbuffer_bits) +schedule_delayed_work (&crtc->drrs.work, +msecs_to_jiffies (1000 )); + +mutex_unlock (&crtc->drrs.mutex); } - - frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe); -if (invalidate) - dev_priv->drrs.busy_frontbuffer_bits |= frontbuffer_bits; -else - dev_priv->drrs.busy_frontbuffer_bits &= ~frontbuffer_bits; - -/* flush/invalidate means busy screen hence upclock */ -if (frontbuffer_bits) -intel_drrs_set_state (dev_priv, crtc->config, -DRRS_REFRESH_RATE_HIGH ); - -/* -* flush also means no more activity hence schedule downclock, if all -* other fbs are quiescent too -*/ -if (!invalidate && !dev_priv->drrs.busy_frontbuffer_bits) -schedule_delayed_work (&dev_priv->drrs.work, -msecs_to_jiffies (1000 )); -mutex_unlock (&dev_priv->drrs.mutex); }/** @@ -393,22 +330,36 @@ void intel_drrs_flush(struct drm_i915_private *dev_priv,intel_drrs_frontbuffer_update (dev_priv, frontbuffer_bits, false); } -void intel_drrs_page_flip (struct intel_atomic_state *state, -struct intel_crtc *crtc) +void intel_drrs_page_flip (struct intel_crtc *crtc) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);unsigned int frontbuffer_bits =INTEL_FRONTBUFFER_ALL_MASK (crtc->pipe);intel_drrs_frontbuffer_update (dev_priv, frontbuffer_bits, false); }/** -* intel_drrs_init - Init basic DRRS work and mutex. +* intel_crtc_drrs_init - Init DRRS for CRTC +* @crtc: crtc +* +* This function is called only once at driver load to initialize basic +* DRRS stuff. +* +*/ +void intel_crtc_drrs_init (struct intel_crtc *crtc) +{ +INIT_DELAYED_WORK (&crtc->drrs.work, intel_drrs_downclock_work); +mutex_init (&crtc->drrs.mutex); + crtc->drrs.cpu_transcoder =INVALID_TRANSCODER ; +} + +/** +* 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 basic -* DRRS stuff. +* 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. @@ -421,10 +372,7 @@ intel_drrs_init(struct intel_connector *connector, {struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct intel_encoder *encoder = connector->encoder; -struct drm_display_mode *downclock_mode =NULL ; - -INIT_DELAYED_WORK (&dev_priv->drrs.work, intel_drrs_downclock_work); -mutex_init (&dev_priv->drrs.mutex); +struct drm_display_mode *downclock_mode;if (DISPLAY_VER (dev_priv) <=6 ) { drm_dbg_kms(&dev_priv->drm,@@ -457,7 +405,6 @@ intel_drrs_init(struct intel_connector *connector,return NULL ; } - dev_priv->drrs.refresh_rate =DRRS_REFRESH_RATE_HIGH ; drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s] %s DRRS supported\n", connector->base.base.id, connector->base.name,drivers/gpu/drm/i915/display/intel_drrs.h +5
-3@@ -16,18 +16,20 @@ struct intel_crtc_state;struct intel_connector ;const char *intel_drrs_type_str (enum drrs_type drrs_type); +bool intel_drrs_is_enabled (struct intel_crtc *crtc);void intel_drrs_enable (const struct intel_crtc_state *crtc_state);void intel_drrs_disable (const struct intel_crtc_state *crtc_state); -void intel_drrs_update (const struct intel_crtc_state *crtc_state); +void intel_drrs_update (struct intel_atomic_state *state, +struct intel_crtc *crtc);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_page_flip (struct intel_atomic_state *state, -struct intel_crtc *crtc); +void intel_drrs_page_flip (struct intel_crtc *crtc);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);drivers/gpu/drm/i915/i915_drv.h +0
-14@@ -196,25 +196,12 @@ struct drm_i915_display_funcs {#define I915_COLOR_UNEVICTABLE (-1)/* a non-vma sharing the address space */ -enum drrs_refresh_rate { -DRRS_REFRESH_RATE_HIGH , -DRRS_REFRESH_RATE_LOW , -}; -enum drrs_type {DRRS_TYPE_NONE ,DRRS_TYPE_STATIC ,DRRS_TYPE_SEAMLESS , }; -struct i915_drrs { -struct mutex mutex; -struct delayed_work work; -struct intel_crtc *crtc; -unsigned busy_frontbuffer_bits; -enum drrs_refresh_rate refresh_rate; -}; -#define QUIRK_LVDS_SSC_DISABLE (1<<1)#define QUIRK_INVERT_BRIGHTNESS (1<<2)#define QUIRK_BACKLIGHT_PRESENT (1<<3)@@ -536,7 +523,6 @@ struct drm_i915_private {struct i915_hotplug hotplug;struct intel_fbc *fbc[I915_MAX_FBCS ]; -struct i915_drrs drrs;struct intel_opregion opregion;struct intel_vbt_data vbt;Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Signature · 2 lines
Ville Syrjälä Intel
PATCH v2 13/16 drm/i915: Move DRRS enable/disable higher up
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
No reason to keep the DRRS enable/disable hidden insider the encoder hooks. Let's just move them all the way up into platform independent code so that all platforms get to use them. These are nops when the state computation doesn't think DRRS is possible.
--- drivers/gpu/drm/i915/display/intel_ddi.c | 3 --- drivers/gpu/drm/i915/display/intel_display.c | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +0 -3
@@ -2820,8 +2820,6 @@ static void intel_enable_ddi_dp(struct intel_atomic_state *state,if (!dig_port->lspcon.active || dig_port->dp.has_hdmi_sink)intel_dp_set_infoframes (encoder, true, crtc_state, conn_state); -intel_drrs_enable (crtc_state); -if (crtc_state->has_audio)intel_audio_codec_enable (encoder, crtc_state, conn_state);
@@ -2963,7 +2961,6 @@ static void intel_disable_ddi_dp(struct intel_atomic_state *state,intel_audio_codec_disable (encoder, old_crtc_state, old_conn_state); -intel_drrs_disable (old_crtc_state);intel_psr_disable (intel_dp, old_crtc_state);intel_edp_backlight_off (old_conn_state);/* Disable the decompression in DP Sink */
drivers/gpu/drm/i915/display/intel_display.c +4 -0
@@ -8127,6 +8127,8 @@ static void intel_enable_crtc(struct intel_atomic_state *state,if (intel_crtc_is_bigjoiner_slave (new_crtc_state))return ; +intel_drrs_enable (new_crtc_state); +/* vblanks work again, re-enable pipe CRC. */ intel_crtc_enable_pipe_crc (crtc); }
@@ -8196,6 +8198,8 @@ static void intel_old_crtc_state_disables(struct intel_atomic_state *state,*/ intel_crtc_disable_pipe_crc (crtc); +intel_drrs_disable (old_crtc_state); + dev_priv->display->crtc_disable (state, crtc); crtc->active = false;intel_fbc_disable (crtc);
Signature · 1 line
2.34.1
PATCH v2 14/16 drm/i915: Enable eDP DRRS on ilk/snb port A
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Nothing special about ivb+ here, if DRRS works on ivb+ port A it should work just as well on ilk/snb. So let's enable that.
--- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 3 --- drivers/gpu/drm/i915/display/intel_drrs.c | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +0 -3
@@ -1838,9 +1838,6 @@ static int i915_drrs_ctl_set(void *data, u64 val)struct drm_device *dev = &dev_priv->drm;struct intel_crtc *crtc; -if (DISPLAY_VER (dev_priv) <7 ) -return -ENODEV ; -for_each_intel_crtc (dev, crtc) {struct intel_crtc_state *crtc_state;struct drm_crtc_commit *commit;
drivers/gpu/drm/i915/display/intel_drrs.c +4 -4
@@ -158,10 +158,10 @@ static void intel_drrs_set_state(struct intel_crtc *crtc,if (refresh_rate == crtc->drrs.refresh_rate)return ; -if (DISPLAY_VER (dev_priv) >=8 && !IS_CHERRYVIEW (dev_priv)) -intel_drrs_set_refresh_rate_m_n (crtc, refresh_rate); -else if (DISPLAY_VER (dev_priv) >6 ) +if (intel_cpu_transcoder_has_m2_n2 (dev_priv, crtc->drrs.cpu_transcoder))intel_drrs_set_refresh_rate_pipeconf (crtc, refresh_rate); +else +intel_drrs_set_refresh_rate_m_n (crtc, refresh_rate); crtc->drrs.refresh_rate = refresh_rate; }
@@ -374,7 +374,7 @@ intel_drrs_init(struct intel_connector *connector,struct intel_encoder *encoder = connector->encoder;struct drm_display_mode *downclock_mode; -if (DISPLAY_VER (dev_priv) <=6 ) { +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);
Signature · 1 line
2.34.1
PATCH v2 15/16 drm/i915: Implement static DRRS
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Let's start supporting static DRRS by trying to match the refresh rate the user has requested, assuming the panel supports suitable timings.
For now we stick to just our current two timings:
- fixed_mode: the panel's preferred mode
- downclock_mode: the lowest refresh rate mode we found Some panels may support more timings than that, but we'll have to convert our fixed_mode/downclock_mode pointers into a full list before we can handle that.
v2: Rebase due to intel_panel_get_modes()
--- drivers/gpu/drm/i915/display/intel_drrs.c | 2 +- drivers/gpu/drm/i915/display/intel_panel.c | 31 ++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_drrs.c +1 -1
@@ -390,7 +390,7 @@ intel_drrs_init(struct intel_connector *connector,return NULL ; } -if (dev_priv->vbt.drrs_type !=DRRS_TYPE_SEAMLESS ) { +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);
drivers/gpu/drm/i915/display/intel_panel.c +29 -2
@@ -55,14 +55,30 @@ const struct drm_display_mode * intel_panel_fixed_mode(struct intel_connector *connector, const struct drm_display_mode *mode) { - return connector->panel.fixed_mode; + const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; +const struct drm_display_mode *downclock_mode = connector->panel.downclock_mode; + +/* pick the one that is closer in terms of vrefresh */ +/* FIXME make this a a list of modes so we can have more than two */ +if (fixed_mode && downclock_mode && +abs (drm_mode_vrefresh (downclock_mode) -drm_mode_vrefresh (mode)) < +abs (drm_mode_vrefresh (fixed_mode) -drm_mode_vrefresh (mode))) +return downclock_mode; +else +return fixed_mode; }const struct drm_display_mode *intel_panel_downclock_mode (struct intel_connector *connector,const struct drm_display_mode *adjusted_mode) { -return connector->panel.downclock_mode; +const struct drm_display_mode *downclock_mode = connector->panel.downclock_mode; + +if (downclock_mode && +drm_mode_vrefresh (downclock_mode) <drm_mode_vrefresh (adjusted_mode)) +return downclock_mode; +else +return NULL ; }int intel_panel_get_modes (struct intel_connector *connector)
@@ -80,6 +96,17 @@ int intel_panel_get_modes(struct intel_connector *connector) } } +if (connector->panel.downclock_mode) { +struct drm_display_mode *mode; + + mode =drm_mode_duplicate (connector->base.dev, + connector->panel.downclock_mode); +if (mode) { +drm_mode_probed_add (&connector->base, mode); + num_modes++; + } + } +return num_modes; }
Signature · 1 line
2.34.1
PATCH v2 16/16 drm/i915: Convert fixed_mode/downclock_mode into a list
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Store the fixed_mode and downclock_mode as a real list, in preparation for exposing other supported modes as well.
--- .../gpu/drm/i915/display/intel_connector.c | 2 + .../drm/i915/display/intel_display_debugfs.c | 9 +- .../drm/i915/display/intel_display_types.h | 3 +- drivers/gpu/drm/i915/display/intel_panel.c | 82 ++++++++++--------- 4 files changed, 51 insertions(+), 45 deletions(-)
drivers/gpu/drm/i915/display/intel_connector.c +2 -0
@@ -54,6 +54,8 @@ int intel_connector_init(struct intel_connector *connector)__drm_atomic_helper_connector_reset (&connector->base, &conn_state->base); +INIT_LIST_HEAD (&connector->panel.fixed_modes); +return 0 ; }
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6 -3
@@ -548,12 +548,15 @@ static void intel_encoder_info(struct seq_file *m,static void intel_panel_info (struct seq_file *m,struct intel_connector *connector) { -const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode; -if (!fixed_mode) +if (list_empty (&connector->panel.fixed_modes))return ; -seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (fixed_mode)); +seq_puts (m,"\tfixed modes:\n" ); + +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) +intel_seq_print_mode (m,2 , fixed_mode); } static void intel_hdcp_info(struct seq_file *m,
drivers/gpu/drm/i915/display/intel_display_types.h +1 -2
@@ -280,8 +280,7 @@ struct intel_panel_bl_funcs { };struct intel_panel { -struct drm_display_mode *fixed_mode; -struct drm_display_mode *downclock_mode; +struct list_head fixed_modes;/* backlight */ struct {
drivers/gpu/drm/i915/display/intel_panel.c +42 -40
129 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v3 16/16 drm/i915: Convert fixed_mode/downclock_mode into a list
From: Ville Syrjälä <[email protected]>
Store the fixed_mode and downclock_mode as a real list, in preparation for exposing other supported modes as well.
v2: Init the list in intel_sdvo_connector_alloc() too
--- .../gpu/drm/i915/display/intel_connector.c | 2 + .../drm/i915/display/intel_display_debugfs.c | 9 +- .../drm/i915/display/intel_display_types.h | 3 +- drivers/gpu/drm/i915/display/intel_panel.c | 82 ++++++++++--------- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 + 5 files changed, 53 insertions(+), 45 deletions(-)
drivers/gpu/drm/i915/display/intel_connector.c +2 -0
@@ -54,6 +54,8 @@ int intel_connector_init(struct intel_connector *connector)__drm_atomic_helper_connector_reset (&connector->base, &conn_state->base); +INIT_LIST_HEAD (&connector->panel.fixed_modes); +return 0 ; }
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6 -3
@@ -548,12 +548,15 @@ static void intel_encoder_info(struct seq_file *m,static void intel_panel_info (struct seq_file *m,struct intel_connector *connector) { -const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode; -if (!fixed_mode) +if (list_empty (&connector->panel.fixed_modes))return ; -seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (fixed_mode)); +seq_puts (m,"\tfixed modes:\n" ); + +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) +intel_seq_print_mode (m,2 , fixed_mode); } static void intel_hdcp_info(struct seq_file *m,
drivers/gpu/drm/i915/display/intel_display_types.h +1 -2
@@ -280,8 +280,7 @@ struct intel_panel_bl_funcs { };struct intel_panel { -struct drm_display_mode *fixed_mode; -struct drm_display_mode *downclock_mode; +struct list_head fixed_modes;/* backlight */ struct {
drivers/gpu/drm/i915/display/intel_panel.c +42 -40
129 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_sdvo.c +2 -0
@@ -2747,6 +2747,8 @@ static struct intel_sdvo_connector *intel_sdvo_connector_alloc(void)__drm_atomic_helper_connector_reset (&sdvo_connector->base.base, &conn_state->base.base); +INIT_LIST_HEAD (&sdvo_connector->base.panel.fixed_modes); +return sdvo_connector; }
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v3 16/16] drm/i915: Convert fixed_mode/downclock_mode into a list
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Store the
fixed_modeanddownclock_modeas a real list, in preparation for exposing other supported modes as well.v2: Init the list in
intel_sdvo_connector_alloc()tooSigned-off-by Ville Syrjälä <[email protected]>
Even for the two mode case this makes stuff cleaner!
One nitpick below, regardless,
Quoted 63 lines
--- .../gpu/drm/i915/display/intel_connector.c | 2 + .../drm/i915/display/intel_display_debugfs.c | 9 +- .../drm/i915/display/intel_display_types.h | 3 +- drivers/gpu/drm/i915/display/intel_panel.c | 82 ++++++++++--------- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 + 5 files changed, 53 insertions(+), 45 deletions(-)drivers/gpu/drm/i915/display/intel_connector.c +2
-0@@ -54,6 +54,8 @@ int intel_connector_init(struct intel_connector *connector)__drm_atomic_helper_connector_reset (&connector->base, &conn_state->base); +INIT_LIST_HEAD (&connector->panel.fixed_modes); +return 0 ; }drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-3@@ -548,12 +548,15 @@ static void intel_encoder_info(struct seq_file *m,static void intel_panel_info (struct seq_file *m,struct intel_connector *connector) { -const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode; -if (!fixed_mode) +if (list_empty (&connector->panel.fixed_modes))return ; -seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (fixed_mode)); +seq_puts (m,"\tfixed modes:\n" ); + +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) +intel_seq_print_mode (m,2 , fixed_mode); } static void intel_hdcp_info(struct seq_file *m,drivers/gpu/drm/i915/display/intel_display_types.h +1
-2@@ -280,8 +280,7 @@ struct intel_panel_bl_funcs { };struct intel_panel { -struct drm_display_mode *fixed_mode; -struct drm_display_mode *downclock_mode; +struct list_head fixed_modes;/* backlight */ struct {drivers/gpu/drm/i915/display/intel_panel.c +0
-0
drivers/gpu/drm/i915/display/intel_panel.c bool intel_panel_use_ssc(struct drm_i915_private *i915) · line 56
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_panel.c +6
-1@@ -48,59 +48,59 @@ bool intel_panel_use_ssc(struct drm_i915_private *i915)const struct drm_display_mode *intel_panel_preferred_fixed_mode (struct intel_connector *connector) { -return connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode; + +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) +return fixed_mode; + +return NULL ;
Nitpick, a bit verbose but self-documenting alternative:
return list_first_entry_or_null(&connector->panel.fixed_modes, struct drm_display_mode, head);
Quoted 134 lines
drivers/gpu/drm/i915/display/intel_panel.c +36
-39}const struct drm_display_mode *intel_panel_fixed_mode (struct intel_connector *connector,const struct drm_display_mode *mode) { -const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; -const struct drm_display_mode *downclock_mode = connector->panel.downclock_mode; +const struct drm_display_mode *fixed_mode, *best_mode =NULL ; +int vrefresh =drm_mode_vrefresh (mode); -/* pick the one that is closer in terms of vrefresh */ -/* FIXME make this a a list of modes so we can have more than two */ -if (fixed_mode && downclock_mode && -abs (drm_mode_vrefresh (downclock_mode) -drm_mode_vrefresh (mode)) < -abs (drm_mode_vrefresh (fixed_mode) -drm_mode_vrefresh (mode))) -return downclock_mode; -else -return fixed_mode; +/* pick the fixed_mode that is closest in terms of vrefresh */ +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) { +if (!best_mode || +abs (drm_mode_vrefresh (fixed_mode) - vrefresh) < +abs (drm_mode_vrefresh (best_mode) - vrefresh)) + best_mode = fixed_mode; + } + +return best_mode; }const struct drm_display_mode *intel_panel_downclock_mode (struct intel_connector *connector,const struct drm_display_mode *adjusted_mode) { -const struct drm_display_mode *downclock_mode = connector->panel.downclock_mode; +const struct drm_display_mode *fixed_mode, *best_mode =NULL ; +int vrefresh =drm_mode_vrefresh (adjusted_mode); -if (downclock_mode && -drm_mode_vrefresh (downclock_mode) <drm_mode_vrefresh (adjusted_mode)) -return downclock_mode; -else -return NULL ; +/* pick the fixed_mode with the lowest refresh rate */ +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) { +if (drm_mode_vrefresh (fixed_mode) < vrefresh) { + vrefresh =drm_mode_vrefresh (fixed_mode); + best_mode = fixed_mode; + } + } + +return best_mode; }int intel_panel_get_modes (struct intel_connector *connector) { +const struct drm_display_mode *fixed_mode;int num_modes =0 ; -if (connector->panel.fixed_mode) { +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) {struct drm_display_mode *mode; - mode =drm_mode_duplicate (connector->base.dev, - connector->panel.fixed_mode); -if (mode) { -drm_mode_probed_add (&connector->base, mode); - num_modes++; - } - } - -if (connector->panel.downclock_mode) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->base.dev, - connector->panel.downclock_mode); + mode =drm_mode_duplicate (connector->base.dev, fixed_mode);if (mode) {drm_mode_probed_add (&connector->base, mode); num_modes++;@@ -114,7 +114,8 @@ enum drrs_type intel_panel_drrs_type(struct intel_connector *connector) {struct drm_i915_private *i915 =to_i915 (connector->base.dev); -if (!connector->panel.downclock_mode) +if (list_empty (&connector->panel.fixed_modes) || +list_is_singular (&connector->panel.fixed_modes))return DRRS_TYPE_NONE ;return i915->vbt.drrs_type;@@ -608,8 +609,10 @@ int intel_panel_init(struct intel_panel *panel, {intel_backlight_init_funcs (panel); - panel->fixed_mode = fixed_mode; - panel->downclock_mode = downclock_mode; +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 ; }@@ -618,13 +621,12 @@ void intel_panel_fini(struct intel_panel *panel) {struct intel_connector *intel_connector = container_of(panel, struct intel_connector, panel); +struct drm_display_mode *fixed_mode, *next;intel_backlight_destroy (panel); -if (panel->fixed_mode) -drm_mode_destroy (intel_connector->base.dev, panel->fixed_mode); - -if (panel->downclock_mode) -drm_mode_destroy (intel_connector->base.dev, - panel->downclock_mode); +list_for_each_entry_safe (fixed_mode, next, &panel->fixed_modes, head) { +list_del (&fixed_mode->head); +drm_mode_destroy (intel_connector->base.dev, fixed_mode); + } }drivers/gpu/drm/i915/display/intel_sdvo.c +2
-0@@ -2747,6 +2747,8 @@ static struct intel_sdvo_connector *intel_sdvo_connector_alloc(void)__drm_atomic_helper_connector_reset (&sdvo_connector->base.base, &conn_state->base.base); +INIT_LIST_HEAD (&sdvo_connector->base.panel.fixed_modes); +return sdvo_connector; }
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v4 16/16 drm/i915: Convert fixed_mode/downclock_mode into a list
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Store the fixed_mode and downclock_mode as a real list, in preparation for exposing other supported modes as well.
v2: Init the list in intel_sdvo_connector_alloc() too
v3: Use list_first_entry_or_null() (Jani)
--- .../gpu/drm/i915/display/intel_connector.c | 2 + .../drm/i915/display/intel_display_debugfs.c | 9 ++- .../drm/i915/display/intel_display_types.h | 3 +- drivers/gpu/drm/i915/display/intel_panel.c | 78 +++++++++---------- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 + 5 files changed, 49 insertions(+), 45 deletions(-)
drivers/gpu/drm/i915/display/intel_connector.c +2 -0
@@ -54,6 +54,8 @@ int intel_connector_init(struct intel_connector *connector)__drm_atomic_helper_connector_reset (&connector->base, &conn_state->base); +INIT_LIST_HEAD (&connector->panel.fixed_modes); +return 0 ; }
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6 -3
@@ -548,12 +548,15 @@ static void intel_encoder_info(struct seq_file *m,static void intel_panel_info (struct seq_file *m,struct intel_connector *connector) { -const struct drm_display_mode *fixed_mode = connector->panel.fixed_mode; +const struct drm_display_mode *fixed_mode; -if (!fixed_mode) +if (list_empty (&connector->panel.fixed_modes))return ; -seq_printf (m,"\tfixed mode: " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (fixed_mode)); +seq_puts (m,"\tfixed modes:\n" ); + +list_for_each_entry (fixed_mode, &connector->panel.fixed_modes, head) +intel_seq_print_mode (m,2 , fixed_mode); } static void intel_hdcp_info(struct seq_file *m,
drivers/gpu/drm/i915/display/intel_display_types.h +1 -2
@@ -280,8 +280,7 @@ struct intel_panel_bl_funcs { };struct intel_panel { -struct drm_display_mode *fixed_mode; -struct drm_display_mode *downclock_mode; +struct list_head fixed_modes;/* backlight */ struct {
drivers/gpu/drm/i915/display/intel_panel.c +38 -40
125 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_sdvo.c +2 -0
@@ -2747,6 +2747,8 @@ static struct intel_sdvo_connector *intel_sdvo_connector_alloc(void)__drm_atomic_helper_connector_reset (&sdvo_connector->base.base, &conn_state->base.base); +INIT_LIST_HEAD (&sdvo_connector->base.panel.fixed_modes); +return sdvo_connector; }
Signature · 1 line
2.34.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev2)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev2)
URL : https://patchwork.freedesktop.org/series/101222/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
dda13ef0a9df drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
e17b931fdd3c drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing()
bdc82c0b879a drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds()
81362947328f drm/i915: Simplify intel_panel_info()
6d8a7101ac57 drm/i915: Nuke dev_priv->drrs.type
c2c0474c1e8d drm/i915: Introduce intel_panel_{fixed, downclock}_mode()
c979129053ad drm/i915: Introduce intel_panel_get_modes()
6b25a4dacf26 drm/i915: Introduce intel_panel_preferred_fixed_mode()
9d175b312730 drm/i915: Introduce intel_panel_drrs_type()
1345c858db5e drm/i915: Introduce intel_drrs_type_str()
bb15348a55b1 drm/i915: Eliminate the intel_dp dependency from DRRS
ca1a8eb54646 drm/i915: Stash DRRS state under intel_crtc
-:191: CHECK:UNCOMMENTED_DEFINITION: struct mutex definition without comment
#191: FILE: drivers/gpu/drm/i915/display/intel_display_types.h:1303:
+ struct mutex mutex;total: 0 errors, 0 warnings, 1 checks, 561 lines checked 66669c163c68 drm/i915: Move DRRS enable/disable higher up ad6c9abe5c1d drm/i915: Enable eDP DRRS on ilk/snb port A 03d2ad9160a3 drm/i915: Implement static DRRSf06124f63b7a drm/i915: Convert fixed_mode/downclock_mode into a list
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev2)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev2)
URL : https://patchwork.freedesktop.org/series/101222/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev2)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev2)
URL : https://patchwork.freedesktop.org/series/101222/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_11352 -> Patchwork_22544
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_22544 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_22544, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/index.html
Participating hosts (42 -> 38)
------------------------------
Additional (1): bat-dg2-9
Missing (5): fi-bxt-dsi fi-rkl-guc shard-tglu fi-bsw-cyan fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22544:
### IGT changes ###
#### Possible regressions ####
* igt@core_hotunplug@unbind-rebind:
- fi-bwr-2160: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11352/fi-bwr-2160/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/fi-bwr-2160/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- fi-kbl-soraka: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11352/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@reset:
- {fi-jsl-1}: [PASS][5] -> [INCOMPLETE][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11352/fi-jsl-1/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/fi-jsl-1/igt@i915_selftest@[email protected]
* igt@kms_busy@basic@flip:
- {bat-adlp-6}: [PASS][7] -> [DMESG-WARN][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11352/bat-adlp-6/igt@kms_busy@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/bat-adlp-6/igt@kms_busy@[email protected]
Known issues
------------
Here are the changes found in Patchwork_22544 that come from known issues:
### IGT changes ###
#### Issues hit ####
* 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_11352/fi-snb-2600/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@runner@aborted:
- fi-bwr-2160: NOTRUN -> [FAIL][11] ([i915#2722] / [i915#4312])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/fi-bwr-2160/igt@[email protected]
- fi-kbl-soraka: NOTRUN -> [FAIL][12] ([i915#1436] / [i915#2426] / [i915#4312])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/fi-kbl-soraka/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@requests:
- {bat-rpls-2}: [INCOMPLETE][13] ([i915#4983]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11352/bat-rpls-2/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/bat-rpls-2/igt@i915_selftest@[email protected]
#### Warnings ####
* igt@i915_pm_rpm@basic-rte:
- fi-kbl-guc: [FAIL][15] ([i915#3049]) -> [SKIP][16] ([fdo#109271])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11352/fi-kbl-guc/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/fi-kbl-guc/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2722]: https://gitlab.freedesktop.org/drm/intel/issues/2722
[i915#3049]: https://gitlab.freedesktop.org/drm/intel/issues/3049
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[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#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4936]: https://gitlab.freedesktop.org/drm/intel/issues/4936
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5192]: https://gitlab.freedesktop.org/drm/intel/issues/5192
[i915#5193]: https://gitlab.freedesktop.org/drm/intel/issues/5193
[i915#5291]: https://gitlab.freedesktop.org/drm/intel/issues/5291
Build changes
-------------
* Linux: CI_DRM_11352 -> Patchwork_22544
CI-20190529: 20190529
CI_DRM_11352: 45e9e5b3112ebf7c3bed118a1f10526bc95ca973 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6378: 9c79047f49acdb6450368ee13fd8b6d28f3fb8e1 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22544: f06124f63b7aa22dee57cc4fcf02751793dbfeee @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
f06124f63b7a drm/i915: Convert fixed_mode/downclock_mode into a list03d2ad9160a3 drm/i915: Implement static DRRSad6c9abe5c1d drm/i915: Enable eDP DRRS on ilk/snb port A66669c163c68 drm/i915: Move DRRS enable/disable higher upca1a8eb54646 drm/i915: Stash DRRS state under intel_crtcbb15348a55b1 drm/i915: Eliminate the intel_dp dependency from DRRS1345c858db5e drm/i915: Introduce intel_drrs_type_str()9d175b312730 drm/i915: Introduce intel_panel_drrs_type()6b25a4dacf26 drm/i915: Introduce intel_panel_preferred_fixed_mode()c979129053ad drm/i915: Introduce intel_panel_get_modes()c2c0474c1e8d drm/i915: Introduce intel_panel_{fixed, downclock}_mode() 6d8a7101ac57 drm/i915: Nuke dev_priv->drrs.type81362947328f drm/i915: Simplify intel_panel_info()bdc82c0b879a drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds() e17b931fdd3c drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing() dda13ef0a9df drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22544/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
URL : https://patchwork.freedesktop.org/series/101222/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
9d0ea3d28235 drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
1c936de54ac4 drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing()
7b4599fa0f72 drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds()
71486ec158b5 drm/i915: Simplify intel_panel_info()
a09635426235 drm/i915: Nuke dev_priv->drrs.type
635266e02bf4 drm/i915: Introduce intel_panel_{fixed, downclock}_mode()
b02295ca2d91 drm/i915: Introduce intel_panel_get_modes()
201ac802dc08 drm/i915: Introduce intel_panel_preferred_fixed_mode()
fac32624a89b drm/i915: Introduce intel_panel_drrs_type()
152e512e8006 drm/i915: Introduce intel_drrs_type_str()
e0baa980781d drm/i915: Eliminate the intel_dp dependency from DRRS
4a3306046902 drm/i915: Stash DRRS state under intel_crtc
-:191: CHECK:UNCOMMENTED_DEFINITION: struct mutex definition without comment
#191: FILE: drivers/gpu/drm/i915/display/intel_display_types.h:1303:
+ struct mutex mutex;total: 0 errors, 0 warnings, 1 checks, 561 lines checked a616c41d7276 drm/i915: Move DRRS enable/disable higher up 3426023c889f drm/i915: Enable eDP DRRS on ilk/snb port A bcbcb792b6f3 drm/i915: Implement static DRRS564a0df92dfe drm/i915: Convert fixed_mode/downclock_mode into a list
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
URL : https://patchwork.freedesktop.org/series/101222/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
URL : https://patchwork.freedesktop.org/series/101222/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11353 -> Patchwork_22547
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/index.html
Participating hosts (41 -> 37)
------------------------------
Additional (2): fi-kbl-soraka fi-bwr-2160
Missing (6): shard-tglu fi-bsw-cyan fi-ilk-650 fi-pnv-d510 bat-rpls-2 fi-bdw-samus
Known issues
------------
Here are the changes found in Patchwork_22547 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@sync-gfx0:
- fi-bsw-n3050: NOTRUN -> [SKIP][1] ([fdo#109271]) +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-bsw-n3050/igt@amdgpu/[email protected]
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][2] ([fdo#109271]) +9 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-kbl-soraka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_suspend@basic-s3:
- fi-bwr-2160: NOTRUN -> [SKIP][3] ([fdo#109271]) +66 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-bwr-2160/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#2190])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-kbl-soraka/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#4613]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][6] ([i915#1886])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][7] -> [INCOMPLETE][8] ([i915#3921])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/fi-snb-2600/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][9] ([fdo#109271] / [fdo#111827]) +8 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][10] ([fdo#109271] / [i915#533])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-kbl-soraka/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gt_mocs:
- fi-tgl-1115g4: [DMESG-WARN][11] ([i915#2867]) -> [PASS][12] +20 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/fi-tgl-1115g4/igt@i915_selftest@live@gt_mocs.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-tgl-1115g4/igt@i915_selftest@live@gt_mocs.html
* igt@i915_selftest@live@late_gt_pm:
- fi-bsw-n3050: [DMESG-FAIL][13] ([i915#2927] / [i915#3428]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html
* igt@kms_busy@basic@modeset:
- {bat-adlp-6}: [DMESG-WARN][15] -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/bat-adlp-6/igt@kms_busy@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/bat-adlp-6/igt@kms_busy@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-b:
- fi-cfl-8109u: [DMESG-WARN][17] ([i915#295]) -> [PASS][18] +11 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/fi-cfl-8109u/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/fi-cfl-8109u/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#2927]: https://gitlab.freedesktop.org/drm/intel/issues/2927
[i915#295]: https://gitlab.freedesktop.org/drm/intel/issues/295
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5195]: https://gitlab.freedesktop.org/drm/intel/issues/5195
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Build changes
-------------
* Linux: CI_DRM_11353 -> Patchwork_22547
CI-20190529: 20190529
CI_DRM_11353: 3b3183b6f5343a9e149ff1f6656b131d72445adc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6378: 9c79047f49acdb6450368ee13fd8b6d28f3fb8e1 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22547: 564a0df92dfe28f1eab2d5a05696c5d78dba4d41 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
564a0df92dfe drm/i915: Convert fixed_mode/downclock_mode into a listbcbcb792b6f3 drm/i915: Implement static DRRS3426023c889f drm/i915: Enable eDP DRRS on ilk/snb port Aa616c41d7276 drm/i915: Move DRRS enable/disable higher up4a3306046902 drm/i915: Stash DRRS state under intel_crtce0baa980781d drm/i915: Eliminate the intel_dp dependency from DRRS152e512e8006 drm/i915: Introduce intel_drrs_type_str()fac32624a89b drm/i915: Introduce intel_panel_drrs_type()201ac802dc08 drm/i915: Introduce intel_panel_preferred_fixed_mode()b02295ca2d91 drm/i915: Introduce intel_panel_get_modes()635266e02bf4 drm/i915: Introduce intel_panel_{fixed, downclock}_mode() a09635426235 drm/i915: Nuke dev_priv->drrs.type71486ec158b5 drm/i915: Simplify intel_panel_info()7b4599fa0f72 drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds() 1c936de54ac4 drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing() 9d0ea3d28235 drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev3)
URL : https://patchwork.freedesktop.org/series/101222/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11353_full -> Patchwork_22547_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (11 -> 10)
------------------------------
Missing (1): shard-tglu
Known issues
------------
Here are the changes found in Patchwork_22547_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_create@create-massive:
- shard-kbl: NOTRUN -> [DMESG-WARN][1] ([i915#4991])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl7/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@rcs0:
- shard-kbl: [PASS][2] -> [INCOMPLETE][3] ([i915#794])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-kbl3/igt@gem_ctx_isolation@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl4/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_persistence@processes:
- shard-snb: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#1099]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-snb5/igt@[email protected]
* igt@gem_exec_balancer@parallel:
- shard-tglb: NOTRUN -> [DMESG-WARN][5] ([i915#5076])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb1/igt@[email protected]
* igt@gem_exec_balancer@parallel-keep-in-fence:
- shard-kbl: NOTRUN -> [DMESG-WARN][6] ([i915#5076])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl6/igt@[email protected]
* igt@gem_exec_capture@pi@bcs0:
- shard-iclb: [PASS][7] -> [INCOMPLETE][8] ([i915#3371])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb6/igt@gem_exec_capture@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb1/igt@gem_exec_capture@[email protected]
- shard-tglb: [PASS][9] -> [INCOMPLETE][10] ([i915#3371] / [i915#3731])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-tglb3/igt@gem_exec_capture@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb6/igt@gem_exec_capture@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-glk: [PASS][11] -> [FAIL][12] ([i915#2842])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-glk2/igt@gem_exec_fair@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-kbl: [PASS][13] -> [FAIL][14] ([i915#2842]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-kbl6/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [PASS][15] -> [SKIP][16] ([i915#2190])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-tglb1/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb7/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][17] ([fdo#109271] / [i915#2190])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl4/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][18] ([fdo#109271] / [i915#2190])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl6/igt@[email protected]
* igt@gem_lmem_swapping@heavy-verify-multi:
- shard-kbl: NOTRUN -> [SKIP][19] ([fdo#109271] / [i915#4613]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl3/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#4613])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl7/igt@[email protected]
* igt@gem_lmem_swapping@random:
- shard-skl: NOTRUN -> [SKIP][21] ([fdo#109271] / [i915#4613])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl6/igt@[email protected]
* igt@gem_pxp@verify-pxp-key-change-after-suspend-resume:
- shard-iclb: NOTRUN -> [SKIP][22] ([i915#4270])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@gem_render_copy@y-tiled-mc-ccs-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][23] ([i915#768])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@gem_softpin@allocator-evict-all-engines:
- shard-glk: [PASS][24] -> [FAIL][25] ([i915#4171])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-glk1/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-glk8/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-kbl: NOTRUN -> [FAIL][26] ([i915#3318])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl7/igt@[email protected]
* igt@gen7_exec_parse@oacontrol-tracking:
- shard-iclb: NOTRUN -> [SKIP][27] ([fdo#109289]) +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-apl: [PASS][28] -> [DMESG-WARN][29] ([i915#1436] / [i915#716])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-apl7/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl8/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress-no-wait:
- shard-kbl: NOTRUN -> [SKIP][30] ([fdo#109271]) +96 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl3/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp-stress:
- shard-iclb: NOTRUN -> [SKIP][31] ([fdo#110892])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- shard-glk: [PASS][32] -> [DMESG-WARN][33] ([i915#118])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-glk7/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-glk9/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-apl: NOTRUN -> [SKIP][34] ([fdo#109271] / [i915#3777])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl4/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip:
- shard-skl: NOTRUN -> [FAIL][35] ([i915#3763])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl6/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-async-flip:
- shard-tglb: NOTRUN -> [SKIP][36] ([fdo#111615])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb5/igt@[email protected]
* igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][37] ([i915#3689] / [i915#3886])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb3/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][38] ([fdo#109271] / [i915#3886]) +1 similar issue
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl6/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_mc_ccs.html
- shard-apl: NOTRUN -> [SKIP][39] ([fdo#109271] / [i915#3886])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl4/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_rc_ccs_cc:
- shard-iclb: NOTRUN -> [SKIP][40] ([fdo#109278] / [i915#3886]) +2 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][41] ([fdo#109271] / [i915#3886])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl6/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-missing-ccs-buffer-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][42] ([fdo#111615] / [i915#3689]) +1 similar issue
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb3/igt@kms_ccs@pipe-c-missing-ccs-buffer-yf_tiled_ccs.html
* igt@kms_ccs@pipe-d-missing-ccs-buffer-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][43] ([i915#3689])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb3/igt@kms_ccs@pipe-d-missing-ccs-buffer-y_tiled_gen12_mc_ccs.html
* igt@kms_chamelium@dp-audio-edid:
- shard-tglb: NOTRUN -> [SKIP][44] ([fdo#109284] / [fdo#111827]) +2 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb1/igt@[email protected]
* igt@kms_chamelium@dp-mode-timings:
- shard-apl: NOTRUN -> [SKIP][45] ([fdo#109271] / [fdo#111827]) +5 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl7/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-enable-disable-mode:
- shard-iclb: NOTRUN -> [SKIP][46] ([fdo#109284] / [fdo#111827]) +2 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-degamma:
- shard-skl: NOTRUN -> [SKIP][47] ([fdo#109271] / [fdo#111827]) +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-0-25:
- shard-kbl: NOTRUN -> [SKIP][48] ([fdo#109271] / [fdo#111827]) +6 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl3/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:
- shard-snb: NOTRUN -> [SKIP][49] ([fdo#109271] / [fdo#111827]) +3 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-snb5/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-1:
- shard-tglb: NOTRUN -> [SKIP][50] ([i915#3116] / [i915#3299])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb5/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][51] ([i915#1319])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl7/igt@[email protected]
- shard-kbl: NOTRUN -> [TIMEOUT][52] ([i915#1319])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-512x512-offscreen:
- shard-iclb: NOTRUN -> [SKIP][53] ([fdo#109278] / [fdo#109279])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-32x32-offscreen:
- shard-tglb: NOTRUN -> [SKIP][54] ([i915#3319]) +1 similar issue
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-64x64-sliding:
- shard-iclb: NOTRUN -> [SKIP][55] ([fdo#109278]) +4 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-128x128-right-edge:
- shard-snb: NOTRUN -> [SKIP][56] ([fdo#109271]) +65 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-snb5/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic:
- shard-iclb: NOTRUN -> [SKIP][57] ([fdo#109274] / [fdo#109278])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic.html
* igt@kms_draw_crc@draw-method-rgb565-render-4tiled:
- shard-tglb: NOTRUN -> [SKIP][58] ([i915#5287])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb5/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank:
- shard-iclb: NOTRUN -> [SKIP][59] ([fdo#109274])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@kms_flip@2x-flip-vs-modeset-vs-hang:
- shard-tglb: NOTRUN -> [SKIP][60] ([fdo#109274] / [fdo#111825])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb3/igt@[email protected]
* igt@kms_flip@plain-flip-ts-check@c-edp1:
- shard-skl: [PASS][61] -> [FAIL][62] ([i915#2122]) +2 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl9/igt@kms_flip@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl1/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-downscaling:
- shard-iclb: [PASS][63] -> [SKIP][64] ([i915#3701])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb8/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-downscaling.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-downscaling.html
* igt@kms_force_connector_basic@force-load-detect:
- shard-tglb: NOTRUN -> [SKIP][65] ([fdo#109285])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite:
- shard-skl: NOTRUN -> [SKIP][66] ([fdo#109271]) +42 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl7/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite.html
- shard-tglb: NOTRUN -> [SKIP][67] ([fdo#109280] / [fdo#111825]) +3 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb3/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-blt:
- shard-skl: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#1888])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-cpu:
- shard-iclb: NOTRUN -> [SKIP][69] ([fdo#109280]) +2 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-cpu.html
* igt@kms_hdr@bpc-switch@bpc-switch-edp-1-pipe-a:
- shard-skl: [PASS][70] -> [FAIL][71] ([i915#1188])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl4/igt@kms_hdr@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl3/igt@kms_hdr@[email protected]
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][72] ([fdo#109271] / [i915#533])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl4/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d-frame-sequence:
- shard-skl: NOTRUN -> [SKIP][73] ([fdo#109271] / [i915#533])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl6/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
- shard-kbl: [PASS][74] -> [DMESG-WARN][75] ([i915#180]) +1 similar issue
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-kbl7/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][76] ([fdo#108145] / [i915#265])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl4/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][77] ([fdo#108145] / [i915#265])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][78] -> [FAIL][79] ([fdo#108145] / [i915#265])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl8/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl1/igt@[email protected]
* igt@kms_plane_cursor@pipe-d-viewport-size-128:
- shard-apl: NOTRUN -> [SKIP][80] ([fdo#109271]) +78 similar issues
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl7/igt@[email protected]
* igt@kms_plane_lowres@pipe-c-tiling-yf:
- shard-iclb: NOTRUN -> [SKIP][81] ([i915#3536])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-a-tiling-4:
- shard-tglb: NOTRUN -> [SKIP][82] ([i915#5288])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb5/igt@[email protected]
* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-a-edp-1-scaler-with-clipping-clamping:
- shard-iclb: [PASS][83] -> [SKIP][84] ([i915#5176])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb2/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-a-edp-1-scaler-with-clipping-clamping.html
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb3/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-a-edp-1-scaler-with-clipping-clamping.html
* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-iclb: [PASS][85] -> [SKIP][86] ([fdo#109642] / [fdo#111068] / [i915#658])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb2/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb3/igt@[email protected]
* igt@kms_psr2_su@page_flip-nv12:
- shard-apl: NOTRUN -> [SKIP][87] ([fdo#109271] / [i915#658])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl7/igt@kms_psr2_su@page_flip-nv12.html
- shard-kbl: NOTRUN -> [SKIP][88] ([fdo#109271] / [i915#658])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl3/igt@kms_psr2_su@page_flip-nv12.html
* igt@kms_psr@psr2_basic:
- shard-iclb: NOTRUN -> [SKIP][89] ([fdo#109441])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@kms_psr@psr2_basic.html
* igt@kms_psr@psr2_suspend:
- shard-iclb: [PASS][90] -> [SKIP][91] ([fdo#109441]) +1 similar issue
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb2/igt@kms_psr@psr2_suspend.html
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb5/igt@kms_psr@psr2_suspend.html
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-apl: [PASS][92] -> [DMESG-WARN][93] ([i915#180]) +3 similar issues
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-apl2/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl1/igt@[email protected]
* igt@nouveau_crc@pipe-c-ctx-flip-detection:
- shard-iclb: NOTRUN -> [SKIP][94] ([i915#2530])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb8/igt@[email protected]
* igt@perf@short-reads:
- shard-skl: [PASS][95] -> [FAIL][96] ([i915#51])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl9/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl4/igt@[email protected]
* igt@syncobj_timeline@invalid-transfer-non-existent-point:
- shard-apl: NOTRUN -> [DMESG-WARN][97] ([i915#5098])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl7/igt@[email protected]
- shard-kbl: NOTRUN -> [DMESG-WARN][98] ([i915#5098])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl3/igt@[email protected]
* igt@sysfs_clients@pidname:
- shard-skl: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#2994])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl6/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_isolation@preservation-s3@rcs0:
- shard-apl: [DMESG-WARN][100] ([i915#180]) -> [PASS][101] +2 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-apl8/igt@gem_ctx_isolation@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl6/igt@gem_ctx_isolation@[email protected]
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-kbl: [FAIL][102] ([i915#2842]) -> [PASS][103] +1 similar issue
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-kbl6/igt@gem_exec_fair@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [FAIL][104] ([i915#2842]) -> [PASS][105]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-tglb5/igt@gem_exec_fair@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_whisper@basic-fds-forked-all:
- shard-apl: [INCOMPLETE][106] -> [PASS][107]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-apl6/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl4/igt@[email protected]
* igt@gem_mmap_gtt@fault-concurrent-x:
- shard-snb: [INCOMPLETE][108] ([i915#5161]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-snb7/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-snb5/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [FAIL][110] ([i915#454]) -> [PASS][111] +1 similar issue
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb3/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb6/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-skl: [INCOMPLETE][112] ([i915#4939]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl10/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl6/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1:
- shard-skl: [FAIL][114] ([i915#79]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl9/igt@kms_flip@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a1:
- shard-glk: [FAIL][116] ([i915#79]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-glk7/igt@kms_flip@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-glk7/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@a-edp1:
- shard-skl: [FAIL][118] ([i915#2122]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl7/igt@kms_flip@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-move:
- shard-glk: [DMESG-FAIL][120] ([i915#118]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-glk8/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-glk2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-render:
- shard-tglb: [INCOMPLETE][122] -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-tglb8/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-tglb5/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: [DMESG-WARN][124] ([i915#180]) -> [PASS][125] +4 similar issues
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-kbl7/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-kbl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [FAIL][126] ([fdo#108145] / [i915#265]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-skl3/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-skl9/igt@[email protected]
* {igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-edp-1-downscale-with-pixel-format}:
- shard-iclb: [SKIP][128] ([i915#5176]) -> [PASS][129] +2 similar issues
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb2/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-edp-1-downscale-with-pixel-format.html
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb3/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-edp-1-downscale-with-pixel-format.html
* {igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1-planes-upscale-downscale}:
- shard-iclb: [SKIP][130] ([i915#5235]) -> [PASS][131] +2 similar issues
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb2/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1-planes-upscale-downscale.html
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb5/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1-planes-upscale-downscale.html
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][132] ([fdo#109441]) -> [PASS][133] +3 similar issues
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb7/igt@kms_psr@psr2_no_drrs.html
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [DMESG-WARN][134] ([i915#180] / [i915#295]) -> [PASS][135]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-apl7/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/shard-apl4/igt@[email protected]
#### Warnings ####
* igt@gem_exec_balancer@parallel:
- shard-iclb: [SKIP][136] ([i915#4525]) -> [DMESG-WARN][137] ([i915#5076])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11353/shard-iclb5/igt@[email protected]
[137]: https:
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22547/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
URL : https://patchwork.freedesktop.org/series/101222/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
d81ae837b734 drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
f3f40125db96 drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing()
c0d54ff91d82 drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds()
df61e86adabf drm/i915: Simplify intel_panel_info()
4655c23aed38 drm/i915: Nuke dev_priv->drrs.type
a5be67652ad2 drm/i915: Introduce intel_panel_{fixed, downclock}_mode()
104c974e62b6 drm/i915: Introduce intel_panel_get_modes()
97b2209e3211 drm/i915: Introduce intel_panel_preferred_fixed_mode()
dd1f2c954174 drm/i915: Introduce intel_panel_drrs_type()
24f76aed4e8b drm/i915: Introduce intel_drrs_type_str()
7f7cb9202f42 drm/i915: Eliminate the intel_dp dependency from DRRS
-:15: WARNING:BAD_SIGN_OFF: Duplicate signature
#15:
Reviewed-by: Jani Nikula <[email protected]>total: 0 errors, 1 warnings, 0 checks, 350 lines checked 9f61fbde6a08 drm/i915: Stash DRRS state under intel_crtc
-:192: CHECK:UNCOMMENTED_DEFINITION: struct mutex definition without comment #192: FILE: drivers/gpu/drm/i915/display/intel_display_types.h:1303:
+ struct mutex mutex;
total: 0 errors, 0 warnings, 1 checks, 561 lines checked 414a8ca23235 drm/i915: Move DRRS enable/disable higher up 492ca039f4d2 drm/i915: Enable eDP DRRS on ilk/snb port A 99f028609a17 drm/i915: Implement static DRRS37a65319fc22 drm/i915: Convert fixed_mode/downclock_mode into a list
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
URL : https://patchwork.freedesktop.org/series/101222/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
URL : https://patchwork.freedesktop.org/series/101222/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11358 -> Patchwork_22558
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/index.html
Participating hosts (40 -> 45)
------------------------------
Additional (13): fi-cml-u2 fi-bxt-dsi bat-dg1-6 bat-dg2-8 fi-skl-guc bat-adlm-1 fi-icl-u2 fi-cfl-guc fi-kbl-8809g fi-pnv-d510 bat-rpls-1 fi-blb-e6850 fi-snb-2600
Missing (8): fi-rkl-guc shard-tglu fi-bsw-cyan bat-adlp-4 shard-rkl shard-dg1 bat-jsl-2 fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22558:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@kms_frontbuffer_tracking@basic:
- {bat-adlm-1}: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-adlm-1/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_22558 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> [SKIP][2] ([fdo#109315]) +17 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@amdgpu/[email protected]
* igt@amdgpu/amd_cs_nop@sync-compute0:
- fi-cml-u2: NOTRUN -> [SKIP][3] ([fdo#109315]) +17 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@amdgpu/[email protected]
* igt@amdgpu/amd_cs_nop@sync-gfx0:
- fi-cfl-guc: NOTRUN -> [SKIP][4] ([fdo#109271]) +29 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cfl-guc/igt@amdgpu/[email protected]
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-cml-u2: NOTRUN -> [SKIP][5] ([i915#1208]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@gem_exec_fence@[email protected]
* igt@gem_exec_gttfill@basic:
- bat-dg1-6: NOTRUN -> [SKIP][6] ([i915#4086])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@gem_exec_suspend@basic-s0@smem:
- fi-kbl-8809g: NOTRUN -> [DMESG-WARN][7] ([i915#4962]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-kbl-8809g/igt@gem_exec_suspend@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-pnv-d510: NOTRUN -> [SKIP][8] ([fdo#109271]) +58 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-pnv-d510/igt@[email protected]
- fi-kbl-8809g: NOTRUN -> [SKIP][9] ([fdo#109271] / [i915#2190])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-kbl-8809g/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [SKIP][10] ([fdo#109271] / [i915#2190])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-bxt-dsi/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][11] ([i915#2190])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][12] ([i915#2190])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-cfl-guc: NOTRUN -> [SKIP][13] ([fdo#109271] / [i915#4613]) +3 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cfl-guc/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][14] ([i915#4613]) +3 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][15] ([i915#4613]) +3 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#4613]) +3 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-bxt-dsi/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- fi-skl-guc: NOTRUN -> [SKIP][17] ([fdo#109271] / [i915#4613]) +3 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-skl-guc/igt@[email protected]
- fi-kbl-8809g: NOTRUN -> [SKIP][18] ([fdo#109271] / [i915#4613]) +3 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-kbl-8809g/igt@[email protected]
* igt@gem_mmap@basic:
- bat-dg1-6: NOTRUN -> [SKIP][19] ([i915#4083])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@gem_tiled_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][20] ([i915#4077]) +2 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@gem_tiled_pread_basic:
- bat-dg1-6: NOTRUN -> [SKIP][21] ([i915#4079]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@gem_tiled_pread_basic.html
* igt@i915_pm_backlight@basic-brightness:
- bat-dg1-6: NOTRUN -> [SKIP][22] ([i915#1155])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@i915_pm_rpm@basic-rte:
- fi-kbl-8809g: NOTRUN -> [SKIP][23] ([fdo#109271]) +55 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-kbl-8809g/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-dg1-6: NOTRUN -> [FAIL][24] ([i915#4032])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- bat-dg1-6: NOTRUN -> [DMESG-FAIL][25] ([i915#4494] / [i915#4957])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@addfb25-x-tiled-legacy:
- bat-dg1-6: NOTRUN -> [SKIP][26] ([i915#4212]) +7 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- fi-snb-2600: NOTRUN -> [SKIP][27] ([fdo#109271]) +41 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-snb-2600/igt@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg1-6: NOTRUN -> [SKIP][28] ([i915#4215])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-skl-guc: NOTRUN -> [SKIP][29] ([fdo#109271] / [fdo#111827]) +8 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-skl-guc/igt@[email protected]
* igt@kms_chamelium@dp-edid-read:
- fi-cfl-guc: NOTRUN -> [SKIP][30] ([fdo#109271] / [fdo#111827]) +8 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cfl-guc/igt@[email protected]
* igt@kms_chamelium@dp-hpd-fast:
- fi-cml-u2: NOTRUN -> [SKIP][31] ([fdo#109284] / [fdo#111827]) +8 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [SKIP][32] ([fdo#109271] / [fdo#111827]) +8 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-bxt-dsi/igt@[email protected]
* igt@kms_chamelium@hdmi-crc-fast:
- fi-snb-2600: NOTRUN -> [SKIP][33] ([fdo#109271] / [fdo#111827]) +8 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-snb-2600/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-read:
- fi-kbl-8809g: NOTRUN -> [SKIP][34] ([fdo#109271] / [fdo#111827]) +8 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-kbl-8809g/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][35] ([fdo#111827]) +8 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: NOTRUN -> [SKIP][36] ([fdo#111827]) +8 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-icl-u2: NOTRUN -> [SKIP][37] ([fdo#109278]) +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][38] ([i915#4103] / [i915#4213]) +1 similar issue
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-cml-u2: NOTRUN -> [SKIP][39] ([fdo#109278]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-bxt-dsi: NOTRUN -> [SKIP][40] ([fdo#109271]) +31 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-bxt-dsi/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][41] ([fdo#109285])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][42] ([fdo#109285])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][43] ([fdo#109285])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u2: NOTRUN -> [DMESG-WARN][44] ([i915#4269])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-blb-e6850: NOTRUN -> [SKIP][45] ([fdo#109271]) +58 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-blb-e6850/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][46] ([fdo#109278] / [i915#533])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [SKIP][47] ([fdo#109271] / [i915#533])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-bxt-dsi/igt@[email protected]
- fi-skl-guc: NOTRUN -> [SKIP][48] ([fdo#109271] / [i915#533])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-skl-guc/igt@[email protected]
- fi-cfl-guc: NOTRUN -> [SKIP][49] ([fdo#109271] / [i915#533])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cfl-guc/igt@[email protected]
- fi-kbl-8809g: NOTRUN -> [SKIP][50] ([fdo#109271] / [i915#533])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-kbl-8809g/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-b:
- fi-cfl-8109u: [PASS][51] -> [DMESG-WARN][52] ([i915#295]) +12 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/fi-cfl-8109u/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cfl-8109u/igt@[email protected]
* igt@kms_psr@cursor_plane_move:
- bat-dg1-6: NOTRUN -> [SKIP][53] ([i915#1072] / [i915#4078]) +3 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@kms_psr@cursor_plane_move.html
* igt@kms_psr@primary_mmap_gtt:
- fi-skl-guc: NOTRUN -> [SKIP][54] ([fdo#109271]) +29 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-skl-guc/igt@kms_psr@primary_mmap_gtt.html
* igt@kms_setmode@basic-clone-single-crtc:
- fi-icl-u2: NOTRUN -> [SKIP][55] ([i915#3555])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][56] ([i915#3555])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][57] ([i915#3555])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- bat-dg1-6: NOTRUN -> [SKIP][58] ([i915#3708]) +3 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@prime_vgem@basic-gtt:
- bat-dg1-6: NOTRUN -> [SKIP][59] ([i915#3708] / [i915#4077]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-cml-u2: NOTRUN -> [SKIP][60] ([i915#3301])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-cml-u2/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][61] ([i915#3301])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-icl-u2/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][62] ([i915#3708] / [i915#4873])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-dg1-6/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@info:
- {bat-rpls-2}: [SKIP][63] ([i915#2582]) -> [PASS][64] +4 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-rpls-2/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-rpls-2/igt@[email protected]
* igt@gem_exec_suspend@basic-s3@smem:
- {fi-rkl-11600}: [INCOMPLETE][65] ([i915#5127]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/fi-rkl-11600/igt@gem_exec_suspend@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/fi-rkl-11600/igt@gem_exec_suspend@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- {bat-rpls-2}: [SKIP][67] ([fdo#109308]) -> [PASS][68] +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-rpls-2/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-rpls-2/igt@[email protected]
* igt@i915_selftest@live@gtt:
- {bat-rpls-2}: [INCOMPLETE][69] -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-rpls-2/igt@i915_selftest@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-rpls-2/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@migrate:
- {bat-rpls-2}: [DMESG-WARN][71] ([i915#4391]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-rpls-2/igt@i915_selftest@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-rpls-2/igt@i915_selftest@[email protected]
* igt@kms_busy@basic@modeset:
- {bat-adlp-6}: [DMESG-WARN][73] -> [PASS][74] +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-adlp-6/igt@kms_busy@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-adlp-6/igt@kms_busy@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- {bat-rpls-2}: [SKIP][75] ([fdo#111825]) -> [PASS][76] +5 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-rpls-2/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-rpls-2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- {bat-rpls-2}: [SKIP][77] ([i915#1849]) -> [PASS][78] +12 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-rpls-2/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-rpls-2/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- {bat-rpls-2}: [SKIP][79] ([i915#1845] / [i915#3708]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/bat-rpls-2/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/bat-rpls-2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[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#1208]: https://gitlab.freedesktop.org/drm/intel/issues/1208
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#295]: https://gitlab.freedesktop.org/drm/intel/issues/295
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[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#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4032]: https://gitlab.freedesktop.org/drm/intel/issues/4032
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4086]: https://gitlab.freedesktop.org/drm/intel/issues/4086
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[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#4269]: https://gitlab.freedesktop.org/drm/intel/issues/4269
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4494]: https://gitlab.freedesktop.org/drm/intel/issues/4494
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4957]: https://gitlab.freedesktop.org/drm/intel/issues/4957
[i915#4962]: https://gitlab.freedesktop.org/drm/intel/issues/4962
[i915#5087]: https://gitlab.freedesktop.org/drm/intel/issues/5087
[i915#5127]: https://gitlab.freedesktop.org/drm/intel/issues/5127
[i915#5171]: https://gitlab.freedesktop.org/drm/intel/issues/5171
[i915#5173]: https://gitlab.freedesktop.org/drm/intel/issues/5173
[i915#5174]: https://gitlab.freedesktop.org/drm/intel/issues/5174
[i915#5180]: https://gitlab.freedesktop.org/drm/intel/issues/5180
[i915#5181]: https://gitlab.freedesktop.org/drm/intel/issues/5181
[i915#5323]: https://gitlab.freedesktop.org/drm/intel/issues/5323
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Build changes
-------------
* Linux: CI_DRM_11358 -> Patchwork_22558
CI-20190529: 20190529
CI_DRM_11358: 478c7a5a20f2c2a0e694418a6c0d3f412db97837 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6380: 5d9ef79ab61fc4e9abc8b565f298e0515265e616 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22558: 37a65319fc229a82682e1961d5071ed80bf052ca @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
37a65319fc22 drm/i915: Convert fixed_mode/downclock_mode into a list99f028609a17 drm/i915: Implement static DRRS492ca039f4d2 drm/i915: Enable eDP DRRS on ilk/snb port A414a8ca23235 drm/i915: Move DRRS enable/disable higher up9f61fbde6a08 drm/i915: Stash DRRS state under intel_crtc7f7cb9202f42 drm/i915: Eliminate the intel_dp dependency from DRRS24f76aed4e8b drm/i915: Introduce intel_drrs_type_str()dd1f2c954174 drm/i915: Introduce intel_panel_drrs_type()97b2209e3211 drm/i915: Introduce intel_panel_preferred_fixed_mode()104c974e62b6 drm/i915: Introduce intel_panel_get_modes()a5be67652ad2 drm/i915: Introduce intel_panel_{fixed, downclock}_mode() 4655c23aed38 drm/i915: Nuke dev_priv->drrs.typedf61e86adabf drm/i915: Simplify intel_panel_info()c0d54ff91d82 drm/i915/lvds: Pass fixed_mode to compute_is_dual_link_lvds() f3f40125db96 drm/i915/sdvo: Passt the requesed mode to intel_sdvo_create_preferred_input_timing() d81ae837b734 drm/i915/dsi: Pass fixed_mode to *_dsi_add_properties()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: DRRS fixes/cleanups and start of static DRRS (rev4)
URL : https://patchwork.freedesktop.org/series/101222/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11358_full -> Patchwork_22558_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (12 -> 13)
------------------------------
Additional (1): pig-kbl-iris
Known issues
------------
Here are the changes found in Patchwork_22558_full that come from known issues:
### CI changes ###
#### Possible fixes ####
* boot:
- shard-glk: ([PASS][1], [PASS][2], [PASS][3], [PASS][4], [PASS][5], [PASS][6], [FAIL][7], [PASS][8], [PASS][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]) ([i915#4392]) -> ([PASS][26], [PASS][27], [PASS][28], [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])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk3/boot.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk2/boot.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk2/boot.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk3/boot.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk2/boot.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk4/boot.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk4/boot.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk4/boot.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk4/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk5/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk5/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk6/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk6/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk6/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk7/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk7/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk7/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk1/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk8/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk1/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk8/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk8/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk9/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk9/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk3/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk4/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk9/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk9/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk8/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk8/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk8/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk7/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk7/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk7/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk6/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk6/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk6/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk5/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk5/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk5/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk4/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk2/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk4/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk2/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk2/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk3/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk3/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk3/boot.html
- {shard-rkl}: ([PASS][51], [PASS][52], [FAIL][53], [PASS][54], [PASS][55], [PASS][56], [PASS][57], [PASS][58], [PASS][59], [PASS][60], [PASS][61], [PASS][62], [PASS][63], [PASS][64], [PASS][65], [PASS][66], [PASS][67], [PASS][68], [PASS][69], [PASS][70], [PASS][71]) ([i915#5131]) -> ([PASS][72], [PASS][73], [PASS][74], [PASS][75], [PASS][76], [PASS][77], [PASS][78], [PASS][79], [PASS][80], [PASS][81], [PASS][82], [PASS][83], [PASS][84], [PASS][85], [PASS][86], [PASS][87], [PASS][88], [PASS][89], [PASS][90], [PASS][91])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-6/boot.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-6/boot.html
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-5/boot.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-5/boot.html
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-5/boot.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-5/boot.html
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-5/boot.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-5/boot.html
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-4/boot.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-4/boot.html
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-4/boot.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-2/boot.html
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-2/boot.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-2/boot.html
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-2/boot.html
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-2/boot.html
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-2/boot.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-1/boot.html
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-1/boot.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-1/boot.html
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-rkl-1/boot.html
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-6/boot.html
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-6/boot.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-6/boot.html
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-5/boot.html
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-5/boot.html
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-5/boot.html
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-5/boot.html
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-4/boot.html
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-4/boot.html
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-4/boot.html
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-4/boot.html
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-4/boot.html
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-2/boot.html
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-2/boot.html
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-2/boot.html
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-2/boot.html
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-1/boot.html
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-1/boot.html
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-1/boot.html
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-rkl-1/boot.html
### IGT changes ###
#### Issues hit ####
* igt@gem_ccs@block-copy-compressed:
- shard-tglb: NOTRUN -> [SKIP][92] ([i915#5325])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][93] ([i915#5327])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@gem_create@create-massive:
- shard-iclb: NOTRUN -> [DMESG-WARN][94] ([i915#4991])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb2/igt@[email protected]
* igt@gem_exec_balancer@parallel-contexts:
- shard-kbl: NOTRUN -> [DMESG-WARN][95] ([i915#5076])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-kbl4/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [PASS][96] -> [FAIL][97] ([i915#2842])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-iclb5/igt@gem_exec_fair@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-apl: [PASS][98] -> [FAIL][99] ([i915#2842])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-apl2/igt@gem_exec_fair@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][100] ([i915#2842])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-kbl: [PASS][101] -> [FAIL][102] ([i915#2842]) +2 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-kbl4/igt@gem_exec_fair@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_whisper@basic-forked:
- shard-glk: [PASS][103] -> [DMESG-WARN][104] ([i915#118])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk3/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk3/igt@[email protected]
* igt@gem_lmem_swapping@heavy-random:
- shard-apl: NOTRUN -> [SKIP][105] ([fdo#109271] / [i915#4613])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl7/igt@[email protected]
* igt@gem_lmem_swapping@heavy-verify-multi:
- shard-kbl: NOTRUN -> [SKIP][106] ([fdo#109271] / [i915#4613])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-kbl4/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][107] ([fdo#109271] / [i915#4613])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl8/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- shard-iclb: NOTRUN -> [SKIP][108] ([i915#4613])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb2/igt@[email protected]
* igt@gem_pxp@create-protected-buffer:
- shard-iclb: NOTRUN -> [SKIP][109] ([i915#4270]) +1 similar issue
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@gem_pxp@verify-pxp-stale-ctx-execution:
- shard-tglb: NOTRUN -> [SKIP][110] ([i915#4270])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@[email protected]
* igt@gem_render_copy@y-tiled-mc-ccs-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][111] ([i915#768]) +3 similar issues
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb8/igt@[email protected]
* igt@gem_userptr_blits@unsync-overlap:
- shard-iclb: NOTRUN -> [SKIP][112] ([i915#3297]) +1 similar issue
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@gen7_exec_parse@basic-offset:
- shard-tglb: NOTRUN -> [SKIP][113] ([fdo#109289])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@[email protected]
* igt@gen7_exec_parse@oacontrol-tracking:
- shard-iclb: NOTRUN -> [SKIP][114] ([fdo#109289]) +4 similar issues
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb8/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-skl: [PASS][115] -> [DMESG-WARN][116] ([i915#1436] / [i915#716])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-skl6/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl5/igt@[email protected]
* igt@gen9_exec_parse@batch-without-end:
- shard-iclb: NOTRUN -> [SKIP][117] ([i915#2856]) +1 similar issue
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-iclb: NOTRUN -> [SKIP][118] ([fdo#110892])
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@i915_selftest@perf@region:
- shard-iclb: [PASS][119] -> [DMESG-WARN][120] ([i915#2867])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-iclb3/igt@i915_selftest@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb3/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@invalid-smem-bo-on-discrete:
- shard-iclb: NOTRUN -> [SKIP][121] ([i915#3826])
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@kms_big_fb@4-tiled-32bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][122] ([i915#5286]) +3 similar issues
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@kms_big_fb@4-tiled-8bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][123] ([i915#5286])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@[email protected]
* igt@kms_big_fb@x-tiled-16bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][124] ([fdo#110725] / [fdo#111614]) +1 similar issue
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-kbl: NOTRUN -> [SKIP][125] ([fdo#109271] / [i915#3777])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-kbl3/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][126] ([fdo#109271] / [i915#3777])
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl8/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-skl: NOTRUN -> [SKIP][127] ([fdo#109271] / [i915#3777])
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl7/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-glk: NOTRUN -> [SKIP][128] ([fdo#109271] / [i915#3777])
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/igt@[email protected]
* igt@kms_big_fb@yf-tiled-64bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][129] ([fdo#110723])
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb8/igt@[email protected]
* igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-glk: NOTRUN -> [SKIP][130] ([fdo#109271] / [i915#3886]) +1 similar issue
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-crc-primary-basic-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][131] ([fdo#111615] / [i915#3689])
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@kms_ccs@pipe-a-crc-primary-basic-yf_tiled_ccs.html
* igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][132] ([fdo#109271] / [i915#3886]) +2 similar issues
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-kbl3/igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs:
- shard-skl: NOTRUN -> [SKIP][133] ([fdo#109271] / [i915#3886]) +4 similar issues
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl7/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][134] ([fdo#109271] / [i915#3886]) +4 similar issues
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl8/igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- shard-iclb: NOTRUN -> [SKIP][135] ([fdo#109278] / [i915#3886]) +5 similar issues
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][136] ([i915#3689])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_chamelium@dp-hpd-storm-disable:
- shard-glk: NOTRUN -> [SKIP][137] ([fdo#109271] / [fdo#111827]) +2 similar issues
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/igt@[email protected]
* igt@kms_chamelium@hdmi-audio:
- shard-iclb: NOTRUN -> [SKIP][138] ([fdo#109284] / [fdo#111827]) +3 similar issues
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@kms_chamelium@vga-edid-read:
- shard-apl: NOTRUN -> [SKIP][139] ([fdo#109271] / [fdo#111827]) +5 similar issues
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl7/igt@[email protected]
* igt@kms_chamelium@vga-hpd:
- shard-skl: NOTRUN -> [SKIP][140] ([fdo#109271] / [fdo#111827]) +6 similar issues
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl8/igt@[email protected]
* igt@kms_chamelium@vga-hpd-for-each-pipe:
- shard-kbl: NOTRUN -> [SKIP][141] ([fdo#109271] / [fdo#111827]) +2 similar issues
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-kbl3/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-blue-to-red:
- shard-iclb: NOTRUN -> [SKIP][142] ([fdo#109278] / [fdo#109284] / [fdo#111827])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-max-size-random:
- shard-tglb: NOTRUN -> [SKIP][143] ([i915#3359])
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-512x512-sliding:
- shard-tglb: NOTRUN -> [SKIP][144] ([fdo#109279] / [i915#3359])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: NOTRUN -> [DMESG-WARN][145] ([i915#180]) +1 similar issue
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-256x85-rapid-movement:
- shard-glk: NOTRUN -> [SKIP][146] ([fdo#109271]) +45 similar issues
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-256x256-left-edge:
- shard-iclb: NOTRUN -> [SKIP][147] ([fdo#109278]) +28 similar issues
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size:
- shard-iclb: NOTRUN -> [SKIP][148] ([fdo#109274] / [fdo#109278]) +1 similar issue
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb8/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-skl: [PASS][149] -> [FAIL][150] ([i915#2346])
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-skl1/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl3/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: NOTRUN -> [FAIL][151] ([i915#2346] / [i915#533])
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl8/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@pipe-d-torture-bo:
- shard-apl: NOTRUN -> [SKIP][152] ([fdo#109271] / [i915#533])
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl6/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][153] ([fdo#109271] / [i915#533])
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/igt@[email protected]
* igt@kms_dp_tiled_display@basic-test-pattern:
- shard-iclb: NOTRUN -> [SKIP][154] ([i915#426])
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-wc-4tiled:
- shard-iclb: NOTRUN -> [SKIP][155] ([i915#5287]) +2 similar issues
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@kms_dsc@basic-dsc-enable:
- shard-iclb: NOTRUN -> [SKIP][156] ([i915#3840])
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb8/igt@[email protected]
* igt@kms_flip@2x-blocking-wf_vblank:
- shard-iclb: NOTRUN -> [SKIP][157] ([fdo#109274]) +5 similar issues
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@kms_flip@2x-blocking-wf_vblank.html
* igt@kms_flip@2x-flip-vs-fences-interruptible:
- shard-tglb: NOTRUN -> [SKIP][158] ([fdo#109274] / [fdo#111825]) +2 similar issues
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb6/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-apl: [PASS][159] -> [DMESG-WARN][160] ([i915#180]) +2 similar issues
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-apl1/igt@kms_flip@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl1/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling:
- shard-iclb: NOTRUN -> [SKIP][161] ([i915#3701])
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling:
- shard-glk: [PASS][162] -> [FAIL][163] ([i915#4911])
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11358/shard-glk5/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling.html
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk8/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling.html
* igt@kms_frontbuffer_tracking@fbc-2p-shrfb-fliptrack-mmap-gtt:
- shard-iclb: NOTRUN -> [SKIP][164] ([fdo#109280]) +23 similar issues
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt:
- shard-apl: NOTRUN -> [SKIP][165] ([fdo#109271]) +117 similar issues
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-render:
- shard-tglb: NOTRUN -> [SKIP][166] ([fdo#109280] / [fdo#111825]) +1 similar issue
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-render.html
* igt@kms_hdr@static-toggle-suspend:
- shard-iclb: NOTRUN -> [SKIP][167] ([i915#3555])
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
- shard-kbl: NOTRUN -> [DMESG-WARN][168] ([i915#180])
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-skl: NOTRUN -> [FAIL][169] ([fdo#108145] / [i915#265])
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-skl: NOTRUN -> [FAIL][170] ([i915#265])
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-skl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-glk: NOTRUN -> [FAIL][171] ([fdo#108145] / [i915#265])
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-glk1/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][172] ([fdo#108145] / [i915#265])
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-apl6/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-4:
- shard-tglb: NOTRUN -> [SKIP][173] ([i915#5288])
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-tglb5/igt@[email protected]
* igt@kms_plane_lowres@pipe-b-tiling-x:
- shard-iclb: NOTRUN -> [SKIP][174] ([i915#3536])
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb7/igt@[email protected]
* igt@kms_plane_scaling@scaler-with-rotation-unity-scaling@pipe-b-edp-1-scaler-with-rotation:
- shard-iclb: NOTRUN -> [SKIP][175] ([i915#5176]) +2 similar issues
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb8/igt@kms_plane_scaling@scaler-with-rotation-unity-scaling@pipe-b-edp-1-scaler-with-rotation.html
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area:
- shard-iclb: NOTRUN -> [SKIP][176] ([fdo#111068] / [i915#658])
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/shard-iclb5/igt@[email protected]
* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-skl:
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22558/index.html