drm/i915: split out new intel_backlight.[ch]
Subsystems (3)
cover drm/i915: split out new intel_backlight.[ch]
Long overdue refactoring.
This should not conflict with Lyude's dpcd backlight refactoring [1], but if it does, that series should have precedence.
BR,
Jani.
[1] https://patchwork.freedesktop.org/series/84754/
Jani Nikula (3):
drm/i915/backlight: extract backlight code to a separate file drm/i915/backlight: mass rename functions to have intel_backlight_
prefix
drm/i915/panel: mass rename functions to have intel_panel_ prefix
drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/g4x_dp.c | 4 +- drivers/gpu/drm/i915/display/icl_dsi.c | 13 +- .../gpu/drm/i915/display/intel_backlight.c | 1776 ++++++++++++++++ .../gpu/drm/i915/display/intel_backlight.h | 52 + .../gpu/drm/i915/display/intel_connector.c | 4 +- drivers/gpu/drm/i915/display/intel_ddi.c | 4 +- drivers/gpu/drm/i915/display/intel_dp.c | 16 +- .../drm/i915/display/intel_dp_aux_backlight.c | 12 +- drivers/gpu/drm/i915/display/intel_dvo.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- drivers/gpu/drm/i915/display/intel_lvds.c | 18 +- drivers/gpu/drm/i915/display/intel_opregion.c | 5 +- drivers/gpu/drm/i915/display/intel_panel.c | 1786 +---------------- drivers/gpu/drm/i915/display/intel_panel.h | 41 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 16 +- 16 files changed, 1894 insertions(+), 1858 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_backlight.c create mode 100644 drivers/gpu/drm/i915/display/intel_backlight.h
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/3 drm/i915/backlight: extract backlight code to a separate file
In a long overdue refactoring, split out backlight code to new intel_backlight.[ch]. Simple code movement, leave renames for follow-up work. No functional changes.
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/g4x_dp.c | 2 +- drivers/gpu/drm/i915/display/icl_dsi.c | 1 + .../gpu/drm/i915/display/intel_backlight.c | 1778 +++++++++++++++++ .../gpu/drm/i915/display/intel_backlight.h | 51 + .../gpu/drm/i915/display/intel_connector.c | 4 +- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 1 + .../drm/i915/display/intel_dp_aux_backlight.c | 2 +- drivers/gpu/drm/i915/display/intel_lvds.c | 1 + drivers/gpu/drm/i915/display/intel_opregion.c | 3 +- drivers/gpu/drm/i915/display/intel_panel.c | 1767 +--------------- drivers/gpu/drm/i915/display/intel_panel.h | 33 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 1 + 14 files changed, 1842 insertions(+), 1805 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_backlight.c create mode 100644 drivers/gpu/drm/i915/display/intel_backlight.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -244,6 +244,7 @@ i915-y += \ display/g4x_dp.o \ display/g4x_hdmi.o \ display/icl_dsi.o \ + display/intel_backlight.o \ display/intel_crt.o \ display/intel_ddi.o \ display/intel_ddi_buf_trans.o \
drivers/gpu/drm/i915/display/g4x_dp.c +1 -1
@@ -7,6 +7,7 @@#include "g4x_dp.h" #include "intel_audio.h" +#include "intel_backlight.h" #include "intel_connector.h" #include "intel_de.h" #include "intel_display_types.h"
@@ -16,7 +17,6 @@#include "intel_fifo_underrun.h" #include "intel_hdmi.h" #include "intel_hotplug.h" -#include "intel_panel.h" #include "intel_pps.h" #include "intel_sideband.h"
drivers/gpu/drm/i915/display/icl_dsi.c +1 -0
@@ -29,6 +29,7 @@#include <drm/drm_mipi_dsi.h> #include "intel_atomic.h" +#include "intel_backlight.h" #include "intel_combo_phy.h" #include "intel_connector.h" #include "intel_crtc.h"
drivers/gpu/drm/i915/display/intel_backlight.c new file +1778 -0
1,778 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_backlight.h new file +51 -0
51 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_connector.c +2 -2
@@ -29,13 +29,13 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_edid.h> -#include "display/intel_panel.h" -#include "i915_drv.h" +#include "intel_backlight.h" #include "intel_connector.h" #include "intel_display_debugfs.h" #include "intel_display_types.h" #include "intel_hdcp.h" +#include "intel_panel.h" int intel_connector_init (struct intel_connector *connector) {
drivers/gpu/drm/i915/display/intel_ddi.c +1 -1
@@ -29,6 +29,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_backlight.h" #include "intel_combo_phy.h" #include "intel_connector.h" #include "intel_crtc.h"
@@ -48,7 +49,6 @@#include "intel_hdmi.h" #include "intel_hotplug.h" #include "intel_lspcon.h" -#include "intel_panel.h" #include "intel_pps.h" #include "intel_psr.h" #include "intel_sprite.h"
drivers/gpu/drm/i915/display/intel_dp.c +1 -0
@@ -44,6 +44,7 @@#include "i915_drv.h" #include "intel_atomic.h" #include "intel_audio.h" +#include "intel_backlight.h" #include "intel_connector.h" #include "intel_ddi.h" #include "intel_de.h"
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c +1 -1
@@ -34,9 +34,9 @@* for some reason. */ +#include "intel_backlight.h" #include "intel_display_types.h" #include "intel_dp_aux_backlight.h" -#include "intel_panel.h" /* TODO: * Implement HDR, right now we just implement the bare minimum to bring us back into SDR mode so we
drivers/gpu/drm/i915/display/intel_lvds.c +1 -0
@@ -40,6 +40,7 @@#include "i915_drv.h" #include "intel_atomic.h" +#include "intel_backlight.h" #include "intel_connector.h" #include "intel_de.h" #include "intel_display_types.h"
drivers/gpu/drm/i915/display/intel_opregion.c +1 -2
@@ -30,10 +30,9 @@#include <linux/firmware.h> #include <acpi/video.h> -#include "display/intel_panel.h" -#include "i915_drv.h" #include "intel_acpi.h" +#include "intel_backlight.h" #include "intel_display_types.h" #include "intel_opregion.h"
drivers/gpu/drm/i915/display/intel_panel.c +1 -1766
1,079 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_panel.h +1 -32
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Part of the diff is not shown here. View the raw message.
PATCH 3/3 drm/i915/panel: mass rename functions to have intel_panel_ prefix
In reply to Jani NikulaFollow the usual naming conventions. Also pull HAS_GMCH() check to intel_panel_fitting(). No functional changes.
--- drivers/gpu/drm/i915/display/icl_dsi.c | 4 ++-- drivers/gpu/drm/i915/display/intel_dp.c | 9 +++----- drivers/gpu/drm/i915/display/intel_dvo.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- drivers/gpu/drm/i915/display/intel_lvds.c | 7 ++---- drivers/gpu/drm/i915/display/intel_panel.c | 25 ++++++++++++++++------ drivers/gpu/drm/i915/display/intel_panel.h | 8 +++---- drivers/gpu/drm/i915/display/vlv_dsi.c | 7 ++---- 8 files changed, 32 insertions(+), 32 deletions(-)
drivers/gpu/drm/i915/display/icl_dsi.c +2 -2
@@ -1594,9 +1594,9 @@ static int gen11_dsi_compute_config(struct intel_encoder *encoder,int ret; pipe_config->output_format =INTEL_OUTPUT_FORMAT_RGB ; -intel_fixed_panel_mode (fixed_mode, adjusted_mode); +intel_panel_fixed_mode (fixed_mode, adjusted_mode); - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret;
drivers/gpu/drm/i915/display/intel_dp.c +3 -6
@@ -1652,7 +1652,7 @@ intel_dp_compute_config(struct intel_encoder *encoder, adjusted_mode);if (pipe_config->output_format ==INTEL_OUTPUT_FORMAT_YCBCR420 ) { - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret; }
@@ -1665,13 +1665,10 @@ intel_dp_compute_config(struct intel_encoder *encoder, pipe_config->has_audio = intel_conn_state->force_audio ==HDMI_AUDIO_ON ;if (intel_dp_is_edp (intel_dp) && intel_connector->panel.fixed_mode) { -intel_fixed_panel_mode (intel_connector->panel.fixed_mode, +intel_panel_fixed_mode (intel_connector->panel.fixed_mode, adjusted_mode); -if (HAS_GMCH (dev_priv)) - ret =intel_gmch_panel_fitting (pipe_config, conn_state); -else - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret; }
drivers/gpu/drm/i915/display/intel_dvo.c +1 -1
@@ -265,7 +265,7 @@ static int intel_dvo_compute_config(struct intel_encoder *encoder,* of the original mode. */ if (fixed_mode) -intel_fixed_panel_mode (fixed_mode, adjusted_mode); +intel_panel_fixed_mode (fixed_mode, adjusted_mode);if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )return -EINVAL ;
drivers/gpu/drm/i915/display/intel_hdmi.c +1 -1
@@ -2189,7 +2189,7 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder,return ret;if (pipe_config->output_format ==INTEL_OUTPUT_FORMAT_YCBCR420 ) { - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret; }
drivers/gpu/drm/i915/display/intel_lvds.c +2 -5
@@ -442,7 +442,7 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder,* with the panel scaling set up to source from the H/VDisplay * of the original mode. */ -intel_fixed_panel_mode (intel_connector->panel.fixed_mode, +intel_panel_fixed_mode (intel_connector->panel.fixed_mode, adjusted_mode);if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )
@@ -451,10 +451,7 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder,if (HAS_PCH_SPLIT (dev_priv)) pipe_config->has_pch_encoder = true; -if (HAS_GMCH (dev_priv)) - ret =intel_gmch_panel_fitting (pipe_config, conn_state); -else - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret;
drivers/gpu/drm/i915/display/intel_panel.c +18 -7
@@ -37,9 +37,8 @@#include "intel_display_types.h" #include "intel_panel.h" -void -intel_fixed_panel_mode (const struct drm_display_mode *fixed_mode, -struct drm_display_mode *adjusted_mode) +void intel_panel_fixed_mode (const struct drm_display_mode *fixed_mode, +struct drm_display_mode *adjusted_mode) {drm_mode_copy (adjusted_mode, fixed_mode);
@@ -171,8 +170,8 @@ intel_panel_vbt_fixed_mode(struct intel_connector *connector) }/* adjusted_mode has been preset to be the panel's fixed mode */ -int intel_pch_panel_fitting (struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state) +static int pch_panel_fitting (struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state) {const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
@@ -377,8 +376,8 @@ static void i9xx_scale_aspect(struct intel_crtc_state *crtc_state, } } -int intel_gmch_panel_fitting (struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state) +static int gmch_panel_fitting (struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);
@@ -452,6 +451,18 @@ int intel_gmch_panel_fitting(struct intel_crtc_state *crtc_state,return 0 ; } +int intel_panel_fitting (struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct drm_i915_private *i915 =to_i915 (crtc->base.dev); + +if (HAS_GMCH (i915)) +return gmch_panel_fitting (crtc_state, conn_state); +else +return pch_panel_fitting (crtc_state, conn_state); +} +enum drm_connector_status intel_panel_detect (struct drm_connector *connector,bool force) {
drivers/gpu/drm/i915/display/intel_panel.h +3 -5
@@ -22,12 +22,10 @@ int intel_panel_init(struct intel_panel *panel,void intel_panel_fini (struct intel_panel *panel);enum drm_connector_status intel_panel_detect (struct drm_connector *connector,bool force); -void intel_fixed_panel_mode (const struct drm_display_mode *fixed_mode, +void intel_panel_fixed_mode (const struct drm_display_mode *fixed_mode,struct drm_display_mode *adjusted_mode); -int intel_pch_panel_fitting (struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state); -int intel_gmch_panel_fitting (struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state); +int intel_panel_fitting (struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state);struct drm_display_mode *intel_panel_edid_downclock_mode (struct intel_connector *connector,const struct drm_display_mode *fixed_mode);
drivers/gpu/drm/i915/display/vlv_dsi.c +2 -5
@@ -279,12 +279,9 @@ static int intel_dsi_compute_config(struct intel_encoder *encoder, pipe_config->output_format =INTEL_OUTPUT_FORMAT_RGB ;if (fixed_mode) { -intel_fixed_panel_mode (fixed_mode, adjusted_mode); +intel_panel_fixed_mode (fixed_mode, adjusted_mode); -if (HAS_GMCH (dev_priv)) - ret =intel_gmch_panel_fitting (pipe_config, conn_state); -else - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret; }
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/3 drm/i915/backlight: mass rename functions to have intel_backlight_ prefix
In reply to Jani NikulaFollow the usual naming conventions. As a drive-by cleanup, also pass intel_connector instead of drm_connector to intel_backlight_setup(). No functional changes.
--- drivers/gpu/drm/i915/display/g4x_dp.c | 2 +- drivers/gpu/drm/i915/display/icl_dsi.c | 8 +- .../gpu/drm/i915/display/intel_backlight.c | 94 +++++++++---------- .../gpu/drm/i915/display/intel_backlight.h | 37 ++++---- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 6 +- .../drm/i915/display/intel_dp_aux_backlight.c | 10 +- drivers/gpu/drm/i915/display/intel_lvds.c | 10 +- drivers/gpu/drm/i915/display/intel_opregion.c | 2 +- drivers/gpu/drm/i915/display/intel_panel.c | 4 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 8 +- 11 files changed, 91 insertions(+), 92 deletions(-)
drivers/gpu/drm/i915/display/g4x_dp.c +1 -1
@@ -1334,7 +1334,7 @@ bool g4x_dp_init(struct drm_i915_private *dev_priv, intel_encoder->get_config = intel_dp_get_config; intel_encoder->sync_state = intel_dp_sync_state; intel_encoder->initial_fastset_check = intel_dp_initial_fastset_check; - intel_encoder->update_pipe = intel_panel_update_backlight; + intel_encoder->update_pipe = intel_backlight_update; intel_encoder->suspend = intel_dp_encoder_suspend; intel_encoder->shutdown = intel_dp_encoder_shutdown;if (IS_CHERRYVIEW (dev_priv)) {
drivers/gpu/drm/i915/display/icl_dsi.c +4 -4
@@ -1250,7 +1250,7 @@ static void gen11_dsi_enable(struct intel_atomic_state *state,gen11_dsi_enable_transcoder (encoder);/* step7: enable backlight */ -intel_panel_enable_backlight (crtc_state, conn_state); +intel_backlight_enable (crtc_state, conn_state);intel_dsi_vbt_exec_sequence (intel_dsi,MIPI_SEQ_BACKLIGHT_ON );intel_crtc_vblank_on (crtc_state);
@@ -1402,7 +1402,7 @@ static void gen11_dsi_disable(struct intel_atomic_state *state,/* step1: turn off backlight */ intel_dsi_vbt_exec_sequence (intel_dsi,MIPI_SEQ_BACKLIGHT_OFF ); -intel_panel_disable_backlight (old_conn_state); +intel_backlight_disable (old_conn_state);/* step2d,e: disable transcoder and wait */ gen11_dsi_disable_transcoder (encoder);
@@ -1950,7 +1950,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv) encoder->post_disable = gen11_dsi_post_disable; encoder->port = port; encoder->get_config = gen11_dsi_get_config; - encoder->update_pipe = intel_panel_update_backlight; + encoder->update_pipe = intel_backlight_update; encoder->compute_config = gen11_dsi_compute_config; encoder->get_hw_state = gen11_dsi_get_hw_state; encoder->initial_fastset_check = gen11_dsi_initial_fastset_check;
@@ -1984,7 +1984,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv) }intel_panel_init (&intel_connector->panel, fixed_mode,NULL ); -intel_panel_setup_backlight (connector,INVALID_PIPE ); +intel_backlight_setup (intel_connector,INVALID_PIPE );if (dev_priv->vbt.dsi.config->dual_link) intel_dsi->ports =BIT (PORT_A ) |BIT (PORT_B );
drivers/gpu/drm/i915/display/intel_backlight.c +46 -48
316 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_backlight.h +19 -18
@@ -8,7 +8,6 @@#include <linux/types.h> -struct drm_connector ;struct drm_connector_state ;struct intel_atomic_state ;struct intel_connector ;
@@ -17,23 +16,25 @@ struct intel_encoder;struct intel_panel ;enum pipe ; -void intel_panel_init_backlight_funcs (struct intel_panel *panel); -void intel_panel_destroy_backlight (struct intel_panel *panel); -void intel_panel_set_backlight_acpi (const struct drm_connector_state *conn_state, -u32 level,u32 max); -int intel_panel_setup_backlight (struct drm_connector *connector, -enum pipe pipe); -void intel_panel_enable_backlight (const struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state); -void intel_panel_update_backlight (struct intel_atomic_state *state, -struct intel_encoder *encoder, -const struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state); -void intel_panel_disable_backlight (const struct drm_connector_state *old_conn_state); -void intel_panel_set_pwm_level (const struct drm_connector_state *conn_state,u32 level); -u32 intel_panel_invert_pwm_level (struct intel_connector *connector,u32 level); -u32 intel_panel_backlight_level_to_pwm (struct intel_connector *connector,u32 level); -u32 intel_panel_backlight_level_from_pwm (struct intel_connector *connector,u32 val); +void intel_backlight_init_funcs (struct intel_panel *panel); +int intel_backlight_setup (struct intel_connector *connector,enum pipe pipe); +void intel_backlight_destroy (struct intel_panel *panel); + +void intel_backlight_enable (const struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state); +void intel_backlight_update (struct intel_atomic_state *state, +struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state); +void intel_backlight_disable (const struct drm_connector_state *old_conn_state); + +void intel_backlight_set_acpi (const struct drm_connector_state *conn_state, +u32 level,u32 max); +void intel_backlight_set_pwm_level (const struct drm_connector_state *conn_state, +u32 level); +u32 intel_backlight_invert_pwm_level (struct intel_connector *connector,u32 level); +u32 intel_backlight_level_to_pwm (struct intel_connector *connector,u32 level); +u32 intel_backlight_level_from_pwm (struct intel_connector *connector,u32 val);#if IS_ENABLED (CONFIG_BACKLIGHT_CLASS_DEVICE )int intel_backlight_device_register (struct intel_connector *connector);
drivers/gpu/drm/i915/display/intel_ddi.c +1 -1
@@ -3256,7 +3256,7 @@ static void intel_ddi_update_pipe_dp(struct intel_atomic_state *state,intel_dp_set_infoframes (encoder, true, crtc_state, conn_state);intel_edp_drrs_update (intel_dp, crtc_state); -intel_panel_update_backlight (state, encoder, crtc_state, conn_state); +intel_backlight_update (state, encoder, crtc_state, conn_state); } void intel_ddi_update_pipe(struct intel_atomic_state *state,
drivers/gpu/drm/i915/display/intel_dp.c +3 -3
@@ -1766,7 +1766,7 @@ void intel_edp_backlight_on(const struct intel_crtc_state *crtc_state,drm_dbg_kms (&i915->drm,"\n" ); -intel_panel_enable_backlight (crtc_state, conn_state); +intel_backlight_enable (crtc_state, conn_state);intel_pps_backlight_on (intel_dp); }
@@ -1782,7 +1782,7 @@ void intel_edp_backlight_off(const struct drm_connector_state *old_conn_state)drm_dbg_kms (&i915->drm,"\n" );intel_pps_backlight_off (intel_dp); -intel_panel_disable_backlight (old_conn_state); +intel_backlight_disable (old_conn_state); }static bool downstream_hpd_needs_d0 (struct intel_dp *intel_dp)
@@ -5218,7 +5218,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,intel_panel_init (&intel_connector->panel, fixed_mode, downclock_mode); intel_connector->panel.backlight.power = intel_pps_backlight_power; -intel_panel_setup_backlight (connector, pipe); +intel_backlight_setup (intel_connector, pipe);if (fixed_mode) { drm_connector_set_panel_orientation_with_quirk(connector,
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c +5 -5
@@ -146,7 +146,7 @@ intel_dp_aux_hdr_get_backlight(struct intel_connector *connector, enum pipe pipeif (!panel->backlight.edp.intel.sdr_uses_aux) {u32 pwm_level = panel->backlight.pwm_funcs->get (connector, pipe); -return intel_panel_backlight_level_from_pwm (connector, pwm_level); +return intel_backlight_level_from_pwm (connector, pwm_level); }/* Assume 100% brightness if backlight controls aren't enabled yet */
@@ -185,9 +185,9 @@ intel_dp_aux_hdr_set_backlight(const struct drm_connector_state *conn_state, u32if (panel->backlight.edp.intel.sdr_uses_aux) {intel_dp_aux_hdr_set_aux_backlight (conn_state, level); }else { -const u32 pwm_level =intel_panel_backlight_level_to_pwm (connector, level); +const u32 pwm_level =intel_backlight_level_to_pwm (connector, level); -intel_panel_set_pwm_level (conn_state, pwm_level); +intel_backlight_set_pwm_level (conn_state, pwm_level); } }
@@ -213,7 +213,7 @@ intel_dp_aux_hdr_enable_backlight(const struct intel_crtc_state *crtc_state, ctrl |=INTEL_EDP_HDR_TCON_BRIGHTNESS_AUX_ENABLE ;intel_dp_aux_hdr_set_aux_backlight (conn_state, level); }else { -u32 pwm_level =intel_panel_backlight_level_to_pwm (connector, level); +u32 pwm_level =intel_backlight_level_to_pwm (connector, level); panel->backlight.pwm_funcs->enable (crtc_state, conn_state, pwm_level);
@@ -236,7 +236,7 @@ intel_dp_aux_hdr_disable_backlight(const struct drm_connector_state *conn_state,return ;/* Note we want the actual pwm_level to be 0, regardless of pwm_min */ - panel->backlight.pwm_funcs->disable (conn_state,intel_panel_invert_pwm_level (connector,0 )); + panel->backlight.pwm_funcs->disable (conn_state,intel_backlight_invert_pwm_level (connector,0 )); } static int
drivers/gpu/drm/i915/display/intel_lvds.c +5 -5
@@ -324,7 +324,7 @@ static void intel_enable_lvds(struct intel_atomic_state *state,drm_err (&dev_priv->drm,"timed out waiting for panel to power on\n" ); -intel_panel_enable_backlight (pipe_config, conn_state); +intel_backlight_enable (pipe_config, conn_state); } static void intel_disable_lvds(struct intel_atomic_state *state,
@@ -352,7 +352,7 @@ static void gmch_disable_lvds(struct intel_atomic_state *state, const struct drm_connector_state *old_conn_state) { -intel_panel_disable_backlight (old_conn_state); +intel_backlight_disable (old_conn_state);intel_disable_lvds (state, encoder, old_crtc_state, old_conn_state); }
@@ -362,7 +362,7 @@ static void pch_disable_lvds(struct intel_atomic_state *state,const struct intel_crtc_state *old_crtc_state, const struct drm_connector_state *old_conn_state) { -intel_panel_disable_backlight (old_conn_state ); +intel_backlight_disable (old_conn_state ); } static void pch_post_disable_lvds(struct intel_atomic_state *state,
@@ -907,7 +907,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) } intel_encoder->get_hw_state = intel_lvds_get_hw_state; intel_encoder->get_config = intel_lvds_get_config; - intel_encoder->update_pipe = intel_panel_update_backlight; + intel_encoder->update_pipe = intel_backlight_update; intel_encoder->shutdown = intel_lvds_shutdown; intel_connector->get_hw_state = intel_connector_get_hw_state;
@@ -1000,7 +1000,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)mutex_unlock (&dev->mode_config.mutex);intel_panel_init (&intel_connector->panel, fixed_mode, downclock_mode); -intel_panel_setup_backlight (connector,INVALID_PIPE ); +intel_backlight_setup (intel_connector,INVALID_PIPE ); lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder); drm_dbg_kms(&dev_priv->drm, "detected %s-link lvds configuration\n",
drivers/gpu/drm/i915/display/intel_opregion.c +1 -1
@@ -449,7 +449,7 @@ static u32 asle_set_backlight(struct drm_i915_private *dev_priv, u32 bclp) bclp);drm_connector_list_iter_begin (dev, &conn_iter);for_each_intel_connector_iter (connector, &conn_iter) -intel_panel_set_backlight_acpi (connector->base.state, bclp,255 ); +intel_backlight_set_acpi (connector->base.state, bclp,255 );drm_connector_list_iter_end (&conn_iter); asle->cblv =DIV_ROUND_UP (bclp *100 ,255 ) |ASLE_CBLV_VALID ;
drivers/gpu/drm/i915/display/intel_panel.c +2 -2
@@ -467,7 +467,7 @@ int intel_panel_init(struct intel_panel *panel,struct drm_display_mode *fixed_mode, struct drm_display_mode *downclock_mode) { -intel_panel_init_backlight_funcs (panel ); +intel_backlight_init_funcs (panel ); panel->fixed_mode = fixed_mode; panel->downclock_mode = downclock_mode;
@@ -480,7 +480,7 @@ void intel_panel_fini(struct intel_panel *panel)struct intel_connector *intel_connector = container_of(panel, struct intel_connector, panel); -intel_panel_destroy_backlight (panel); +intel_backlight_destroy (panel);if (panel->fixed_mode)drm_mode_destroy (intel_connector->base.dev, panel->fixed_mode);
drivers/gpu/drm/i915/display/vlv_dsi.c +4 -4
@@ -885,7 +885,7 @@ static void intel_dsi_pre_enable(struct intel_atomic_state *state,intel_dsi_port_enable (encoder, pipe_config); } -intel_panel_enable_backlight (pipe_config, conn_state); +intel_backlight_enable (pipe_config, conn_state);intel_dsi_vbt_exec_sequence (intel_dsi,MIPI_SEQ_BACKLIGHT_ON ); }
@@ -915,7 +915,7 @@ static void intel_dsi_disable(struct intel_atomic_state *state,drm_dbg_kms (&i915->drm,"\n" );intel_dsi_vbt_exec_sequence (intel_dsi,MIPI_SEQ_BACKLIGHT_OFF ); -intel_panel_disable_backlight (old_conn_state); +intel_backlight_disable (old_conn_state);/* * According to the spec we should send SHUTDOWN before
@@ -1878,7 +1878,7 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv) intel_encoder->post_disable = intel_dsi_post_disable; intel_encoder->get_hw_state = intel_dsi_get_hw_state; intel_encoder->get_config = intel_dsi_get_config; - intel_encoder->update_pipe = intel_panel_update_backlight; + intel_encoder->update_pipe = intel_backlight_update; intel_encoder->shutdown = intel_dsi_shutdown; intel_connector->get_hw_state = intel_connector_get_hw_state;
@@ -1966,7 +1966,7 @@ void vlv_dsi_init(struct drm_i915_private *dev_priv) }intel_panel_init (&intel_connector->panel, fixed_mode,NULL ); -intel_panel_setup_backlight (connector,INVALID_PIPE ); +intel_backlight_setup (intel_connector,INVALID_PIPE );vlv_dsi_add_properties (intel_connector);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: split out new intel_backlight.[ch]
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: split out new intel_backlight.[ch]
URL : https://patchwork.freedesktop.org/series/90078/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 5c56f5e2aca2 drm/i915/backlight: extract backlight code to a separate file -:57: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #57: new file mode 100644
-:262: WARNING:LINE_SPACING: Missing a blank line after declarations #262: FILE: drivers/gpu/drm/i915/display/intel_backlight.c:201:
+ u32 val = intel_de_read(dev_priv, BLC_PWM_PCH_CTL2) & ~BACKLIGHT_DUTY_CYCLE_MASK;
+ intel_de_write(dev_priv, BLC_PWM_PCH_CTL2, val | level);
-:1822: WARNING:BRACES: braces {} are not necessary for any arm of this statement #1822: FILE: drivers/gpu/drm/i915/display/intel_backlight.c:1761:
+ if (connector->base.connector_type == DRM_MODE_CONNECTOR_DSI) {
[...]
+ } else {
[...]
-:1891: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #1891: FILE: drivers/gpu/drm/i915/display/intel_backlight.h:46:
+}
+static inline void intel_backlight_device_unregister(struct intel_connector *connector)
total: 0 errors, 3 warnings, 1 checks, 3769 lines checked019319571e81 drm/i915/backlight: mass rename functions to have intel_backlight_ prefix -:557: WARNING:LONG_LINE: line length of 104 exceeds 100 columns
#557: FILE: drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:239:
+ panel->backlight.pwm_funcs->disable(conn_state, intel_backlight_invert_pwm_level(connector, 0));
total: 0 errors, 1 warnings, 0 checks, 568 lines checked edb31254e71a drm/i915/panel: mass rename functions to have intel_panel_ prefix
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: split out new intel_backlight.[ch]
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: split out new intel_backlight.[ch]
URL : https://patchwork.freedesktop.org/series/90078/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10074 -> Patchwork_20111
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_20111 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_20111, 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_20111/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_20111:
### IGT changes ###
#### Possible regressions ####
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-a:
- fi-bwr-2160: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bwr-2160/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bwr-2160/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-a:
- fi-elk-e7500: [PASS][3] -> [FAIL][4] +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-elk-e7500/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-elk-e7500/igt@[email protected]
* igt@runner@aborted:
- fi-ilk-650: NOTRUN -> [FAIL][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-ilk-650/igt@[email protected]
#### Warnings ####
* igt@gem_exec_gttfill@basic:
- fi-ilk-650: [FAIL][6] ([i915#3457]) -> [FAIL][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-ilk-650/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-ilk-650/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-bsw-nick: [INCOMPLETE][8] ([i915#2782] / [i915#2940]) -> [DMESG-FAIL][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-nick/igt@i915_selftest@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-nick/igt@i915_selftest@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@runner@aborted:
- {fi-rkl-11500t}: NOTRUN -> [FAIL][10]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-rkl-11500t/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_20111 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fence@basic-await@vcs0:
- fi-bsw-n3050: [PASS][11] -> [FAIL][12] ([i915#3457]) +4 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@basic-await@vecs0:
- fi-glk-dsi: [PASS][13] -> [FAIL][14] ([i915#3457])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-glk-dsi/igt@gem_exec_fence@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-glk-dsi/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][15] ([fdo#109271]) +6 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@vcs0:
- fi-bsw-kefka: [PASS][16] -> [FAIL][17] ([i915#3457]) +2 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@vecs0:
- fi-bsw-nick: [PASS][18] -> [FAIL][19] ([i915#3457]) +2 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-nick/igt@gem_exec_fence@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-nick/igt@gem_exec_fence@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#2190])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@[email protected]
* igt@gem_wait@busy@all:
- fi-bsw-nick: [PASS][21] -> [FAIL][22] ([i915#3177] / [i915#3457])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-nick/igt@gem_wait@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-nick/igt@gem_wait@[email protected]
* igt@gem_wait@wait@all:
- fi-bwr-2160: [PASS][23] -> [FAIL][24] ([i915#3457]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bwr-2160/igt@gem_wait@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bwr-2160/igt@gem_wait@[email protected]
* igt@i915_module_load@reload:
- fi-kbl-soraka: NOTRUN -> [DMESG-WARN][25] ([i915#1982] / [i915#3457])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-kbl-soraka: NOTRUN -> [INCOMPLETE][26] ([i915#2782] / [i915#3462] / [i915#794])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][27] ([i915#1886] / [i915#2291])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@mman:
- fi-kbl-soraka: NOTRUN -> [DMESG-WARN][28] ([i915#3457])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@i915_selftest@[email protected]
* igt@kms_busy@basic@modeset:
- fi-ilk-650: [PASS][29] -> [INCOMPLETE][30] ([i915#3457])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-ilk-650/igt@kms_busy@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-ilk-650/igt@kms_busy@[email protected]
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][31] ([fdo#109271] / [fdo#111827]) +8 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u2: [PASS][32] -> [FAIL][33] ([i915#49])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-icl-u2/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-icl-u2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][34] ([fdo#109271] / [i915#533])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@[email protected]
* igt@runner@aborted:
- fi-kbl-soraka: NOTRUN -> [FAIL][35] ([i915#1436] / [i915#2426] / [i915#3363])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-soraka/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_fence@basic-await@vcs0:
- fi-bsw-kefka: [FAIL][36] ([i915#3457]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@rcs0:
- fi-glk-dsi: [FAIL][38] ([i915#3457]) -> [PASS][39]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-glk-dsi/igt@gem_exec_fence@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-glk-dsi/igt@gem_exec_fence@[email protected]
* igt@gem_exec_suspend@basic-s3:
- {fi-tgl-1115g4}: [FAIL][40] ([i915#1888]) -> [PASS][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-tgl-1115g4/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-tgl-1115g4/igt@[email protected]
* igt@gem_wait@wait@all:
- fi-pnv-d510: [FAIL][42] ([i915#3457]) -> [PASS][43]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-pnv-d510/igt@gem_wait@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-pnv-d510/igt@gem_wait@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a:
- fi-elk-e7500: [FAIL][44] -> [PASS][45]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-elk-e7500/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-elk-e7500/igt@[email protected]
#### Warnings ####
* igt@i915_module_load@reload:
- fi-bsw-kefka: [DMESG-WARN][46] ([i915#1982] / [i915#3457]) -> [DMESG-FAIL][47] ([i915#1982] / [i915#3457])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-kefka/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-kefka/igt@[email protected]
- fi-bsw-nick: [DMESG-FAIL][48] ([i915#3457]) -> [DMESG-WARN][49] ([i915#3457])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-bsw-nick/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-bsw-nick/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-cml-s: [DMESG-FAIL][50] ([i915#3462]) -> [INCOMPLETE][51] ([i915#3462])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-cml-s/igt@i915_selftest@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-cml-s/igt@i915_selftest@[email protected]
* igt@runner@aborted:
- fi-skl-6600u: [FAIL][52] ([i915#1436] / [i915#2426] / [i915#3363]) -> [FAIL][53] ([i915#1436] / [i915#3363])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-skl-6600u/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-skl-6600u/igt@[email protected]
- fi-kbl-guc: [FAIL][54] ([i915#1436] / [i915#2426] / [i915#3363]) -> [FAIL][55] ([i915#1436] / [i915#3363])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-kbl-guc/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-kbl-guc/igt@[email protected]
- fi-cml-u2: [FAIL][56] ([i915#2082] / [i915#2426] / [i915#3363]) -> [FAIL][57] ([i915#3363])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10074/fi-cml-u2/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/fi-cml-u2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2082]: https://gitlab.freedesktop.org/drm/intel/issues/2082
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#2932]: https://gitlab.freedesktop.org/drm/intel/issues/2932
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#2966]: https://gitlab.freedesktop.org/drm/intel/issues/2966
[i915#3177]: https://gitlab.freedesktop.org/drm/intel/issues/3177
[i915#3276]: https://gitlab.freedesktop.org/drm/intel/issues/3276
[i915#3277]: https://gitlab.freedesktop.org/drm/intel/issues/3277
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3283]: https://gitlab.freedesktop.org/drm/intel/issues/3283
[i915#3363]: https://gitlab.freedesktop.org/drm/intel/issues/3363
[i915#3457]: https://gitlab.freedesktop.org/drm/intel/issues/3457
[i915#3462]: https://gitlab.freedesktop.org/drm/intel/issues/3462
[i915#3468]: https://gitlab.freedesktop.org/drm/intel/issues/3468
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#794]: https://gitlab.freedesktop.org/drm/intel/issues/794
Participating hosts (43 -> 41)
------------------------------
Additional (2): fi-kbl-soraka fi-rkl-11500t
Missing (4): fi-ilk-m540 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_10074 -> Patchwork_20111
CI-20190529: 20190529
CI_DRM_10074: 5aefdc1f23734b6a3d545c8497b098ba4d704a0c @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6083: d28aee5c5f528aa6c352c3339f20aaed4d698ffa @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_20111: edb31254e71a27aac195678cfc693e8360141faf @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
edb31254e71a drm/i915/panel: mass rename functions to have intel_panel_ prefix 019319571e81 drm/i915/backlight: mass rename functions to have intel_backlight_ prefix 5c56f5e2aca2 drm/i915/backlight: extract backlight code to a separate file
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20111/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/3] drm/i915/panel: mass rename functions to have intel_panel_ prefix
In reply to Jani NikulaQuoted 47 lines · Jani Nikula
Follow the usual naming conventions. Also pull
HAS_GMCH()check tointel_panel_fitting(). No functional changes.Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/i915/display/icl_dsi.c | 4 ++-- drivers/gpu/drm/i915/display/intel_dp.c | 9 +++----- drivers/gpu/drm/i915/display/intel_dvo.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- drivers/gpu/drm/i915/display/intel_lvds.c | 7 ++---- drivers/gpu/drm/i915/display/intel_panel.c | 25 ++++++++++++++++------ drivers/gpu/drm/i915/display/intel_panel.h | 8 +++---- drivers/gpu/drm/i915/display/vlv_dsi.c | 7 ++---- 8 files changed, 32 insertions(+), 32 deletions(-)drivers/gpu/drm/i915/display/icl_dsi.c +2
-2@@ -1594,9 +1594,9 @@ static int gen11_dsi_compute_config(struct intel_encoder *encoder,int ret; pipe_config->output_format =INTEL_OUTPUT_FORMAT_RGB ; -intel_fixed_panel_mode (fixed_mode, adjusted_mode); +intel_panel_fixed_mode (fixed_mode, adjusted_mode); - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret;drivers/gpu/drm/i915/display/intel_dp.c +1
-1@@ -1652,7 +1652,7 @@ intel_dp_compute_config(struct intel_encoder *encoder, adjusted_mode);if (pipe_config->output_format ==INTEL_OUTPUT_FORMAT_YCBCR420 ) { - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);if (ret)return ret; }@@ -1665,13 +1665,10 @@ intel_dp_compute_config(struct intel_encoder *encoder, pipe_config->has_audio = intel_conn_state->force_audio ==HDMI_AUDIO_ON ;
drivers/gpu/drm/i915/display/intel_dp.c intel_dp_compute_config(struct intel_encoder *encoder, · line 1671
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dp.c +2
-5if (intel_dp_is_edp (intel_dp) && intel_connector->panel.fixed_mode) { -intel_fixed_panel_mode (intel_connector->panel.fixed_mode, +intel_panel_fixed_mode (intel_connector->panel.fixed_mode, adjusted_mode); -if (HAS_GMCH (dev_priv)) - ret =intel_gmch_panel_fitting (pipe_config, conn_state); -else - ret =intel_pch_panel_fitting (pipe_config, conn_state); + ret =intel_panel_fitting (pipe_config, conn_state);
Hmm. I though there was something a bit more subtle going on here... Ah, I think I'm recalling the tv margin stuff that's still sitting in my branch. That will need to make a bit of distinction between gmch vs. not here, but this should be fine even then.
Series is more or less
(didn't read the code motion patch too closely).
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx