drm/i915: the great header refactoring, part one
Subsystems (2)
v2 cover drm/i915: the great header refactoring, part one
v2 of [1] with:
- each foo.c now includes the corresponding new foo.h to avoid sparse warnings
- minor sparse/checkpatch/whitespace fixes
- commit message tab screwup fixed
I didn't add changelog to each patch for the first two.
Took the liberty of adding Chris' r-b despite the changes.
BR,
Jani.
[1] https://patchwork.freedesktop.org/series/59022/
Jani Nikula (25):
drm/i915: make intel_frontbuffer.h self-contained drm/i915: extract intel_audio.h from intel_drv.h drm/i915: extract intel_crt.h from intel_drv.h drm/i915: extract intel_ddi.h from intel_drv.h drm/i915: extract intel_connector.h from intel_drv.h drm/i915: extract intel_csr.h from intel_drv.h drm/i915: extract intel_fbc.h from intel_drv.h drm/i915: extract intel_psr.h from intel_drv.h drm/i915: extract intel_color.h from intel_drv.h drm/i915: extract intel_lspcon.h from intel_drv.h drm/i915: extract intel_sdvo.h from intel_drv.h drm/i915: extract intel_hdcp.h from intel_drv.h drm/i915: extract intel_panel.h from intel_drv.h drm/i915: extract intel_pm.h from intel_drv.h drm/i915: extract intel_fbdev.h from intel_drv.h drm/i915: extract intel_dp.h from intel_drv.h drm/i915: extract intel_hdmi.h from intel_drv.h drm/i915: extract intel_atomic_plane.h from intel_drv.h drm/i915: extract intel_pipe_crc.h from intel_drv.h drm/i915: extract intel_tv.h from intel_drv.h drm/i915: extract intel_lvds.h from intel_drv.h drm/i915: extract intel_dvo.h from intel_drv.h drm/i915: extract intel_sprite.h from intel_drv.h drm/i915: extract intel_cdclk.h from intel_drv.h drm/i915/cdclk: have only one init/uninit function
drivers/gpu/drm/i915/Makefile.header-test | 24 + drivers/gpu/drm/i915/i915_debugfs.c | 13 +- drivers/gpu/drm/i915/i915_drv.c | 11 +- drivers/gpu/drm/i915/i915_drv.h | 11 +- drivers/gpu/drm/i915/i915_gem.c | 1 + drivers/gpu/drm/i915/i915_irq.c | 11 +- drivers/gpu/drm/i915/i915_pci.c | 1 + drivers/gpu/drm/i915/i915_request.c | 3 +- drivers/gpu/drm/i915/i915_reset.h | 1 + drivers/gpu/drm/i915/i915_suspend.c | 4 +- drivers/gpu/drm/i915/icl_dsi.c | 6 +- drivers/gpu/drm/i915/intel_atomic.c | 2 + drivers/gpu/drm/i915/intel_atomic_plane.c | 3 + drivers/gpu/drm/i915/intel_atomic_plane.h | 40 ++ drivers/gpu/drm/i915/intel_audio.c | 12 +- drivers/gpu/drm/i915/intel_audio.h | 24 + drivers/gpu/drm/i915/intel_cdclk.c | 121 ++-- drivers/gpu/drm/i915/intel_cdclk.h | 46 ++ drivers/gpu/drm/i915/intel_color.c | 1 + drivers/gpu/drm/i915/intel_color.h | 17 + drivers/gpu/drm/i915/intel_connector.c | 9 +- drivers/gpu/drm/i915/intel_connector.h | 35 ++ drivers/gpu/drm/i915/intel_crt.c | 7 +- drivers/gpu/drm/i915/intel_crt.h | 21 + drivers/gpu/drm/i915/intel_csr.c | 3 + drivers/gpu/drm/i915/intel_csr.h | 17 + drivers/gpu/drm/i915/intel_ddi.c | 10 + drivers/gpu/drm/i915/intel_ddi.h | 53 ++ drivers/gpu/drm/i915/intel_display.c | 28 +- drivers/gpu/drm/i915/intel_dp.c | 20 +- drivers/gpu/drm/i915/intel_dp.h | 121 ++++ drivers/gpu/drm/i915/intel_dp_link_training.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 9 +- drivers/gpu/drm/i915/intel_dpio_phy.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 581 +----------------- drivers/gpu/drm/i915/intel_dvo.c | 10 +- drivers/gpu/drm/i915/intel_dvo.h | 13 + drivers/gpu/drm/i915/intel_fbc.c | 4 +- drivers/gpu/drm/i915/intel_fbc.h | 42 ++ drivers/gpu/drm/i915/intel_fbdev.c | 17 +- drivers/gpu/drm/i915/intel_fbdev.h | 53 ++ drivers/gpu/drm/i915/intel_fifo_underrun.c | 1 + drivers/gpu/drm/i915/intel_frontbuffer.c | 5 +- drivers/gpu/drm/i915/intel_frontbuffer.h | 10 + drivers/gpu/drm/i915/intel_hdcp.c | 10 +- drivers/gpu/drm/i915/intel_hdcp.h | 33 + drivers/gpu/drm/i915/intel_hdmi.c | 17 +- drivers/gpu/drm/i915/intel_hdmi.h | 51 ++ drivers/gpu/drm/i915/intel_lspcon.c | 6 +- drivers/gpu/drm/i915/intel_lspcon.h | 38 ++ drivers/gpu/drm/i915/intel_lvds.c | 9 +- drivers/gpu/drm/i915/intel_lvds.h | 22 + drivers/gpu/drm/i915/intel_opregion.c | 3 +- drivers/gpu/drm/i915/intel_panel.c | 3 + drivers/gpu/drm/i915/intel_panel.h | 65 ++ drivers/gpu/drm/i915/intel_pipe_crc.c | 4 +- drivers/gpu/drm/i915/intel_pipe_crc.h | 35 ++ drivers/gpu/drm/i915/intel_pm.c | 5 +- drivers/gpu/drm/i915/intel_pm.h | 71 +++ drivers/gpu/drm/i915/intel_psr.c | 13 +- drivers/gpu/drm/i915/intel_psr.h | 40 ++ drivers/gpu/drm/i915/intel_runtime_pm.c | 20 +- drivers/gpu/drm/i915/intel_sdvo.c | 13 +- drivers/gpu/drm/i915/intel_sdvo.h | 23 + drivers/gpu/drm/i915/intel_sprite.c | 16 +- drivers/gpu/drm/i915/intel_sprite.h | 55 ++ drivers/gpu/drm/i915/intel_tv.c | 5 +- drivers/gpu/drm/i915/intel_tv.h | 13 + drivers/gpu/drm/i915/intel_uncore.c | 9 +- drivers/gpu/drm/i915/vlv_dsi.c | 10 +- 70 files changed, 1273 insertions(+), 739 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_atomic_plane.h create mode 100644 drivers/gpu/drm/i915/intel_audio.h create mode 100644 drivers/gpu/drm/i915/intel_cdclk.h create mode 100644 drivers/gpu/drm/i915/intel_color.h create mode 100644 drivers/gpu/drm/i915/intel_connector.h create mode 100644 drivers/gpu/drm/i915/intel_crt.h create mode 100644 drivers/gpu/drm/i915/intel_csr.h create mode 100644 drivers/gpu/drm/i915/intel_ddi.h create mode 100644 drivers/gpu/drm/i915/intel_dp.h create mode 100644 drivers/gpu/drm/i915/intel_dvo.h create mode 100644 drivers/gpu/drm/i915/intel_fbc.h create mode 100644 drivers/gpu/drm/i915/intel_fbdev.h create mode 100644 drivers/gpu/drm/i915/intel_hdcp.h create mode 100644 drivers/gpu/drm/i915/intel_hdmi.h create mode 100644 drivers/gpu/drm/i915/intel_lspcon.h create mode 100644 drivers/gpu/drm/i915/intel_lvds.h create mode 100644 drivers/gpu/drm/i915/intel_panel.h create mode 100644 drivers/gpu/drm/i915/intel_pipe_crc.h create mode 100644 drivers/gpu/drm/i915/intel_pm.h create mode 100644 drivers/gpu/drm/i915/intel_psr.h create mode 100644 drivers/gpu/drm/i915/intel_sdvo.h create mode 100644 drivers/gpu/drm/i915/intel_sprite.h create mode 100644 drivers/gpu/drm/i915/intel_tv.h
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/25 drm/i915: make intel_frontbuffer.h self-contained
This will be helpful in the follow-up work. No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_drv.h | 11 ++--------- drivers/gpu/drm/i915/intel_frontbuffer.h | 10 ++++++++++ 3 files changed, 13 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -10,6 +10,7 @@ header_test := \ i915_timeline_types.h \ intel_context_types.h \ intel_engine_types.h \ + intel_frontbuffer.h \ intel_workarounds_types.h quiet_cmd_header_test = HDRTEST $@
drivers/gpu/drm/i915/i915_drv.h +2 -9
@@ -66,13 +66,14 @@#include "intel_device_info.h" #include "intel_display.h" #include "intel_dpll_mgr.h" +#include "intel_frontbuffer.h" #include "intel_lrc.h" #include "intel_opregion.h" #include "intel_ringbuffer.h" +#include "intel_uc.h" #include "intel_uncore.h" #include "intel_wopcm.h" #include "intel_workarounds.h" -#include "intel_uc.h" #include "i915_gem.h" #include "i915_gem_context.h"
@@ -375,14 +376,6 @@ enum i915_cache_level {#define I915_COLOR_UNEVICTABLE (-1)/* a non-vma sharing the address space */ -enum fb_op_origin { -ORIGIN_GTT , -ORIGIN_CPU , -ORIGIN_CS , -ORIGIN_FLIP , -ORIGIN_DIRTYFB , -}; -struct intel_fbc {/* This is always the inner lock when overlapping with struct_mutex and * it's the outer lock when overlapping with stolen_lock. */
drivers/gpu/drm/i915/intel_frontbuffer.h +10 -0
@@ -24,9 +24,19 @@#ifndef __INTEL_FRONTBUFFER_H__#define __INTEL_FRONTBUFFER_H__ +#include "i915_gem_object.h" +struct drm_i915_private ;struct drm_i915_gem_object ; +enum fb_op_origin { +ORIGIN_GTT , +ORIGIN_CPU , +ORIGIN_CS , +ORIGIN_FLIP , +ORIGIN_DIRTYFB , +}; +void intel_frontbuffer_flip_prepare (struct drm_i915_private *dev_priv,unsigned frontbuffer_bits); void intel_frontbuffer_flip_complete(struct drm_i915_private *dev_priv,
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 2/25 drm/i915: extract intel_audio.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_drv.c | 5 +++-- drivers/gpu/drm/i915/intel_audio.c | 12 +++++++----- drivers/gpu/drm/i915/intel_audio.h | 24 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_ddi.c | 2 ++ drivers/gpu/drm/i915/intel_dp.c | 11 +++++++---- drivers/gpu/drm/i915/intel_dp_mst.c | 6 ++++-- drivers/gpu/drm/i915/intel_drv.h | 13 ------------ drivers/gpu/drm/i915/intel_hdmi.c | 9 ++++++--- 9 files changed, 54 insertions(+), 29 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_audio.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -8,6 +8,7 @@ header_test := \ i915_priolist_types.h \ i915_scheduler_types.h \ i915_timeline_types.h \ + intel_audio.h \ intel_context_types.h \ intel_engine_types.h \ intel_frontbuffer.h \
drivers/gpu/drm/i915/i915_drv.c +3 -2
@@ -48,11 +48,12 @@#include <drm/i915_drm.h> #include "i915_drv.h" -#include "i915_trace.h" #include "i915_pmu.h" -#include "i915_reset.h" #include "i915_query.h" +#include "i915_reset.h" +#include "i915_trace.h" #include "i915_vgpu.h" +#include "intel_audio.h" #include "intel_drv.h" #include "intel_uc.h" #include "intel_workarounds.h"
drivers/gpu/drm/i915/intel_audio.c +7 -5
@@ -21,14 +21,16 @@* DEALINGS IN THE SOFTWARE. */ -#include <linux/kernel.h> #include <linux/component.h> +#include <linux/kernel.h> + +#include <drm/drm_edid.h> #include <drm/i915_component.h> #include <drm/intel_lpe_audio.h> -#include "intel_drv.h" -#include <drm/drm_edid.h> #include "i915_drv.h" +#include "intel_audio.h" +#include "intel_drv.h" /** * DOC: High Definition Audio over HDMI and Display Port
@@ -1045,7 +1047,7 @@ static const struct component_ops i915_audio_component_bind_ops = {* We ignore any error during registration and continue with reduced * functionality (i.e. without HDMI audio). */ -void i915_audio_component_init (struct drm_i915_private *dev_priv) +static void i915_audio_component_init (struct drm_i915_private *dev_priv) {int ret;
@@ -1068,7 +1070,7 @@ void i915_audio_component_init(struct drm_i915_private *dev_priv)* Deregisters the audio component, breaking any existing binding to the * corresponding snd_hda_intel driver's master component. */ -void i915_audio_component_cleanup (struct drm_i915_private *dev_priv) +static void i915_audio_component_cleanup (struct drm_i915_private *dev_priv) {if (!dev_priv->audio_component_registered)return ;
drivers/gpu/drm/i915/intel_audio.h new file +24 -0
@@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_AUDIO_H__ +#define __INTEL_AUDIO_H__ + +struct drm_connector_state ; +struct drm_i915_private ; +struct intel_crtc_state ; +struct intel_encoder ; + +void intel_init_audio_hooks (struct drm_i915_private *dev_priv); +void intel_audio_codec_enable (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state); +void intel_audio_codec_disable (struct intel_encoder *encoder, +const struct intel_crtc_state *old_crtc_state, +const struct drm_connector_state *old_conn_state); +void intel_audio_init (struct drm_i915_private *dev_priv); +void intel_audio_deinit (struct drm_i915_private *dev_priv); + +#endif /* __INTEL_AUDIO_H__ */
drivers/gpu/drm/i915/intel_ddi.c +2 -0
@@ -26,7 +26,9 @@*/ #include <drm/drm_scdc_helper.h> +#include "i915_drv.h" +#include "intel_audio.h" #include "intel_drv.h" #include "intel_dsi.h"
drivers/gpu/drm/i915/intel_dp.c +7 -4
@@ -25,22 +25,25 @@* */ -#include <linux/i2c.h> -#include <linux/slab.h> #include <linux/export.h> -#include <linux/types.h> +#include <linux/i2c.h> #include <linux/notifier.h> #include <linux/reboot.h> +#include <linux/slab.h> +#include <linux/types.h> #include <asm/byteorder.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_dp_helper.h> #include <drm/drm_edid.h> #include <drm/drm_hdcp.h> #include <drm/drm_probe_helper.h> -#include "intel_drv.h" #include <drm/i915_drm.h> +#include "i915_drv.h" +#include "intel_audio.h" +#include "intel_drv.h" #define DP_DPRX_ESI_LEN 14
drivers/gpu/drm/i915/intel_dp_mst.c +4 -2
@@ -23,12 +23,14 @@* */ -#include "i915_drv.h" -#include "intel_drv.h" #include <drm/drm_atomic_helper.h> #include <drm/drm_edid.h> #include <drm/drm_probe_helper.h> +#include "i915_drv.h" +#include "intel_audio.h" +#include "intel_drv.h" + static int intel_dp_mst_compute_link_config(struct intel_encoder *encoder, struct intel_crtc_state *crtc_state, struct drm_connector_state *conn_state,
drivers/gpu/drm/i915/intel_drv.h +0 -13
@@ -1669,19 +1669,6 @@ int cnl_calc_wrpll_link(struct drm_i915_private *dev_priv,unsigned int intel_fb_align_height (const struct drm_framebuffer *fb,int color_plane,unsigned int height); -/* intel_audio.c */ -void intel_init_audio_hooks (struct drm_i915_private *dev_priv); -void intel_audio_codec_enable (struct intel_encoder *encoder, -const struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state); -void intel_audio_codec_disable (struct intel_encoder *encoder, -const struct intel_crtc_state *old_crtc_state, -const struct drm_connector_state *old_conn_state); -void i915_audio_component_init (struct drm_i915_private *dev_priv); -void i915_audio_component_cleanup (struct drm_i915_private *dev_priv); -void intel_audio_init (struct drm_i915_private *dev_priv); -void intel_audio_deinit (struct drm_i915_private *dev_priv); -/* intel_cdclk.c */ int intel_crtc_compute_min_cdclk (const struct intel_crtc_state *crtc_state);void skl_init_cdclk (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/intel_hdmi.c +6 -3
@@ -26,19 +26,22 @@* Jesse Barnes <[email protected]> */ -#include <linux/i2c.h> -#include <linux/slab.h> #include <linux/delay.h> #include <linux/hdmi.h> +#include <linux/i2c.h> +#include <linux/slab.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_edid.h> #include <drm/drm_hdcp.h> #include <drm/drm_scdc_helper.h> -#include "intel_drv.h" #include <drm/i915_drm.h> #include <drm/intel_lpe_audio.h> +#include "i915_drv.h" +#include "intel_audio.h" +#include "intel_drv.h" static struct drm_device *intel_hdmi_to_dev (struct intel_hdmi *intel_hdmi) {
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 3/25 drm/i915: extract intel_crt.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_crt.c | 5 ++++- drivers/gpu/drm/i915/intel_crt.h | 21 +++++++++++++++++++++ drivers/gpu/drm/i915/intel_display.c | 11 ++--------- drivers/gpu/drm/i915/intel_drv.h | 6 ------ drivers/gpu/drm/i915/intel_runtime_pm.c | 1 + 6 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_crt.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -10,6 +10,7 @@ header_test := \ i915_timeline_types.h \ intel_audio.h \ intel_context_types.h \ + intel_crt.h \ intel_engine_types.h \ intel_frontbuffer.h \ intel_workarounds_types.h
drivers/gpu/drm/i915/intel_crt.c +4 -1
@@ -27,13 +27,16 @@#include <linux/dmi.h> #include <linux/i2c.h> #include <linux/slab.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_edid.h> #include <drm/drm_probe_helper.h> -#include "intel_drv.h" #include <drm/i915_drm.h> +#include "i915_drv.h" +#include "intel_crt.h" +#include "intel_drv.h" /* Here's the desired hotplug mode */ #define ADPA_HOTPLUG_BITS (ADPA_CRT_HOTPLUG_PERIOD_128 | \
drivers/gpu/drm/i915/intel_crt.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_CRT_H__ +#define __INTEL_CRT_H__ + +#include "i915_reg.h" + +enum pipe ; +struct drm_encoder ; +struct drm_i915_private ; +struct drm_i915_private ; + +bool intel_crt_port_enabled (struct drm_i915_private *dev_priv, +i915_reg_t adpa_reg,enum pipe *pipe); +void intel_crt_init (struct drm_i915_private *dev_priv); +void intel_crt_reset (struct drm_encoder *encoder); + +#endif /* __INTEL_CRT_H__ */
drivers/gpu/drm/i915/intel_display.c +2 -9
@@ -46,20 +46,13 @@#include "i915_drv.h" #include "i915_gem_clflush.h" +#include "i915_reset.h" #include "i915_trace.h" +#include "intel_crt.h" #include "intel_drv.h" #include "intel_dsi.h" #include "intel_frontbuffer.h" -#include "intel_drv.h" -#include "intel_dsi.h" -#include "intel_frontbuffer.h" - -#include "i915_drv.h" -#include "i915_gem_clflush.h" -#include "i915_reset.h" -#include "i915_trace.h" -/* Primary plane formats for gen <= 3 */ static const u32 i8xx_primary_formats[] = {DRM_FORMAT_C8 ,
drivers/gpu/drm/i915/intel_drv.h +0 -6
@@ -1627,12 +1627,6 @@ void gen9_reset_guc_interrupts(struct drm_i915_private *dev_priv);void gen9_enable_guc_interrupts (struct drm_i915_private *dev_priv);void gen9_disable_guc_interrupts (struct drm_i915_private *dev_priv); -/* intel_crt.c */ -bool intel_crt_port_enabled (struct drm_i915_private *dev_priv, -i915_reg_t adpa_reg,enum pipe *pipe); -void intel_crt_init (struct drm_i915_private *dev_priv); -void intel_crt_reset (struct drm_encoder *encoder); -/* intel_ddi.c */ void intel_ddi_fdi_post_disable(struct intel_encoder *intel_encoder, const struct intel_crtc_state *old_crtc_state,
drivers/gpu/drm/i915/intel_runtime_pm.c +1 -0
@@ -32,6 +32,7 @@#include <drm/drm_print.h> #include "i915_drv.h" +#include "intel_crt.h" #include "intel_drv.h" /**
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 4/25 drm/i915: extract intel_ddi.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/icl_dsi.c | 4 +- drivers/gpu/drm/i915/intel_crt.c | 1 + drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_ddi.h | 53 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 38 +--------------- drivers/gpu/drm/i915/intel_hdmi.c | 1 + 10 files changed, 65 insertions(+), 37 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_ddi.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -11,6 +11,7 @@ header_test := \ intel_audio.h \ intel_context_types.h \ intel_crt.h \ + intel_ddi.h \ intel_engine_types.h \ intel_frontbuffer.h \ intel_workarounds_types.h
drivers/gpu/drm/i915/icl_dsi.c +3 -1
@@ -25,8 +25,10 @@* Jani Nikula <[email protected]> */ -#include <drm/drm_mipi_dsi.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_mipi_dsi.h> + +#include "intel_ddi.h" #include "intel_dsi.h" static inline int header_credits_available(struct drm_i915_private *dev_priv,
drivers/gpu/drm/i915/intel_crt.c +1 -0
@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_crt.h" +#include "intel_ddi.h" #include "intel_drv.h" /* Here's the desired hotplug mode */
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -29,6 +29,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_ddi.h" #include "intel_drv.h" #include "intel_dsi.h"
drivers/gpu/drm/i915/intel_ddi.h new file +53 -0
53 lines not on this page · raw message
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -49,6 +49,7 @@#include "i915_reset.h" #include "i915_trace.h" #include "intel_crt.h" +#include "intel_ddi.h" #include "intel_drv.h" #include "intel_dsi.h" #include "intel_frontbuffer.h"
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -43,6 +43,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_ddi.h" #include "intel_drv.h" #define DP_DPRX_ESI_LEN 14
drivers/gpu/drm/i915/intel_dp_mst.c +1 -0
@@ -29,6 +29,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_ddi.h" #include "intel_drv.h" static int intel_dp_mst_compute_link_config(struct intel_encoder *encoder,
drivers/gpu/drm/i915/intel_drv.h +2 -36
@@ -1627,42 +1627,6 @@ void gen9_reset_guc_interrupts(struct drm_i915_private *dev_priv);void gen9_enable_guc_interrupts (struct drm_i915_private *dev_priv);void gen9_disable_guc_interrupts (struct drm_i915_private *dev_priv); -/* intel_ddi.c */ -void intel_ddi_fdi_post_disable (struct intel_encoder *intel_encoder, -const struct intel_crtc_state *old_crtc_state, -const struct drm_connector_state *old_conn_state); -void hsw_fdi_link_train (struct intel_crtc *crtc, -const struct intel_crtc_state *crtc_state); -void intel_ddi_init (struct drm_i915_private *dev_priv,enum port port); -bool intel_ddi_get_hw_state (struct intel_encoder *encoder,enum pipe *pipe); -void intel_ddi_enable_transcoder_func (const struct intel_crtc_state *crtc_state); -void intel_ddi_disable_transcoder_func (const struct intel_crtc_state *crtc_state); -void intel_ddi_enable_pipe_clock (const struct intel_crtc_state *crtc_state); -void intel_ddi_disable_pipe_clock (const struct intel_crtc_state *crtc_state); -void intel_ddi_set_pipe_settings (const struct intel_crtc_state *crtc_state); -void intel_ddi_prepare_link_retrain (struct intel_dp *intel_dp); -bool intel_ddi_connector_get_hw_state (struct intel_connector *intel_connector); -void intel_ddi_get_config (struct intel_encoder *encoder, -struct intel_crtc_state *pipe_config); - -void intel_ddi_set_vc_payload_alloc (const struct intel_crtc_state *crtc_state, -bool state); -void intel_ddi_compute_min_voltage_level (struct drm_i915_private *dev_priv, -struct intel_crtc_state *crtc_state); -u32 bxt_signal_levels (struct intel_dp *intel_dp); -u32 ddi_signal_levels (struct intel_dp *intel_dp); -u8 intel_ddi_dp_voltage_max (struct intel_encoder *encoder); -u8 intel_ddi_dp_pre_emphasis_max (struct intel_encoder *encoder, -u8 voltage_swing); -int intel_ddi_toggle_hdcp_signalling (struct intel_encoder *intel_encoder, -bool enable); -void icl_sanitize_encoder_pll_mapping (struct intel_encoder *encoder); -int cnl_calc_wrpll_link (struct drm_i915_private *dev_priv, -struct intel_dpll_hw_state *state); - -unsigned int intel_fb_align_height (const struct drm_framebuffer *fb, -int color_plane,unsigned int height); -/* intel_cdclk.c */ int intel_crtc_compute_min_cdclk (const struct intel_crtc_state *crtc_state);void skl_init_cdclk (struct drm_i915_private *dev_priv);
@@ -1713,6 +1677,8 @@ void intel_init_display_hooks(struct drm_i915_private *dev_priv);unsigned int intel_fb_xy_to_linear (int x,int y,const struct intel_plane_state *state,int plane); +unsigned int intel_fb_align_height (const struct drm_framebuffer *fb, +int color_plane,unsigned int height);void intel_add_fb_offsets (int *x,int *y,const struct intel_plane_state *state,int plane);unsigned int intel_rotation_info_size (const struct intel_rotation_info *rot_info);
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -41,6 +41,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_ddi.h" #include "intel_drv.h" static struct drm_device *intel_hdmi_to_dev (struct intel_hdmi *intel_hdmi)
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 5/25 drm/i915: extract intel_connector.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/icl_dsi.c | 1 + drivers/gpu/drm/i915/intel_connector.c | 7 +++-- drivers/gpu/drm/i915/intel_connector.h | 35 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_crt.c | 1 + drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 19 ------------ drivers/gpu/drm/i915/intel_dvo.c | 8 ++++-- drivers/gpu/drm/i915/intel_hdmi.c | 1 + drivers/gpu/drm/i915/intel_lvds.c | 7 +++-- drivers/gpu/drm/i915/intel_panel.c | 2 ++ drivers/gpu/drm/i915/intel_sdvo.c | 10 +++++-- drivers/gpu/drm/i915/intel_tv.c | 4 ++- drivers/gpu/drm/i915/vlv_dsi.c | 9 ++++-- 16 files changed, 76 insertions(+), 32 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_connector.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -9,6 +9,7 @@ header_test := \ i915_scheduler_types.h \ i915_timeline_types.h \ intel_audio.h \ + intel_connector.h \ intel_context_types.h \ intel_crt.h \ intel_ddi.h \
drivers/gpu/drm/i915/icl_dsi.c +1 -0
@@ -28,6 +28,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_mipi_dsi.h> +#include "intel_connector.h" #include "intel_ddi.h" #include "intel_dsi.h"
drivers/gpu/drm/i915/intel_connector.c +5 -2
@@ -23,12 +23,15 @@* DEALINGS IN THE SOFTWARE. */ -#include <linux/slab.h> #include <linux/i2c.h> +#include <linux/slab.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_edid.h> -#include "intel_drv.h" +#include "i915_drv.h" +#include "intel_connector.h" +#include "intel_drv.h" int intel_connector_init (struct intel_connector *connector) {
drivers/gpu/drm/i915/intel_connector.h new file +35 -0
@@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_CONNECTOR_H__ +#define __INTEL_CONNECTOR_H__ + +#include "intel_display.h" + +struct drm_connector ; +struct edid ; +struct i2c_adapter ; +struct intel_connector ; +struct intel_encoder ; + +int intel_connector_init (struct intel_connector *connector); +struct intel_connector *intel_connector_alloc (void ); +void intel_connector_free (struct intel_connector *connector); +void intel_connector_destroy (struct drm_connector *connector); +int intel_connector_register (struct drm_connector *connector); +void intel_connector_unregister (struct drm_connector *connector); +void intel_connector_attach_encoder (struct intel_connector *connector, +struct intel_encoder *encoder); +bool intel_connector_get_hw_state (struct intel_connector *connector); +enum pipe intel_connector_get_pipe (struct intel_connector *connector); +int intel_connector_update_modes (struct drm_connector *connector, +struct edid *edid); +int intel_ddc_get_modes (struct drm_connector *c,struct i2c_adapter *adapter); +void intel_attach_force_audio_property (struct drm_connector *connector); +void intel_attach_broadcast_rgb_property (struct drm_connector *connector); +void intel_attach_aspect_ratio_property (struct drm_connector *connector); +void intel_attach_colorspace_property (struct drm_connector *connector); + +#endif /* __INTEL_CONNECTOR_H__ */
drivers/gpu/drm/i915/intel_crt.c +1 -0
@@ -35,6 +35,7 @@#include <drm/i915_drm.h> #include "i915_drv.h" +#include "intel_connector.h" #include "intel_crt.h" #include "intel_ddi.h" #include "intel_drv.h"
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -29,6 +29,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h" #include "intel_dsi.h"
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -43,6 +43,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h"
drivers/gpu/drm/i915/intel_dp_mst.c +1 -0
@@ -29,6 +29,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h"
drivers/gpu/drm/i915/intel_drv.h +0 -19
@@ -1846,25 +1846,6 @@ unsigned int i9xx_plane_max_stride(struct intel_plane *plane, u32 pixel_format, u64 modifier, unsigned int rotation); -/* intel_connector.c */ -int intel_connector_init (struct intel_connector *connector); -struct intel_connector *intel_connector_alloc (void ); -void intel_connector_free (struct intel_connector *connector); -void intel_connector_destroy (struct drm_connector *connector); -int intel_connector_register (struct drm_connector *connector); -void intel_connector_unregister (struct drm_connector *connector); -void intel_connector_attach_encoder (struct intel_connector *connector, -struct intel_encoder *encoder); -bool intel_connector_get_hw_state (struct intel_connector *connector); -enum pipe intel_connector_get_pipe (struct intel_connector *connector); -int intel_connector_update_modes (struct drm_connector *connector, -struct edid *edid); -int intel_ddc_get_modes (struct drm_connector *c,struct i2c_adapter *adapter); -void intel_attach_force_audio_property (struct drm_connector *connector); -void intel_attach_broadcast_rgb_property (struct drm_connector *connector); -void intel_attach_aspect_ratio_property (struct drm_connector *connector); -void intel_attach_colorspace_property (struct drm_connector *connector); -/* intel_csr.c */ void intel_csr_ucode_init (struct drm_i915_private *);void intel_csr_load_program (struct drm_i915_private *);
drivers/gpu/drm/i915/intel_dvo.c +6 -2
@@ -24,14 +24,18 @@* Authors: * Eric Anholt <[email protected]> */ +#include <linux/i2c.h> #include <linux/slab.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include "intel_drv.h" #include <drm/i915_drm.h> -#include "i915_drv.h" +#include "dvo.h" +#include "i915_drv.h" +#include "intel_connector.h" +#include "intel_drv.h" #define SIL164_ADDR 0x38#define CH7xxx_ADDR 0x76
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -41,6 +41,7 @@#include "i915_drv.h" #include "intel_audio.h" +#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h"
drivers/gpu/drm/i915/intel_lvds.c +5 -2
@@ -28,17 +28,20 @@*/ #include <acpi/button.h> +#include <linux/acpi.h> #include <linux/dmi.h> #include <linux/i2c.h> #include <linux/slab.h> #include <linux/vga_switcheroo.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_edid.h> -#include "intel_drv.h" #include <drm/i915_drm.h> +#include "i915_drv.h" -#include <linux/acpi.h> +#include "intel_connector.h" +#include "intel_drv.h" /* Private structure for the integrated LVDS support */ struct intel_lvds_pps {
drivers/gpu/drm/i915/intel_panel.c +2 -0
@@ -33,6 +33,8 @@#include <linux/kernel.h> #include <linux/moduleparam.h> #include <linux/pwm.h> + +#include "intel_connector.h" #include "intel_drv.h" #define CRC_PMIC_PWM_PERIOD_NS 21333
drivers/gpu/drm/i915/intel_sdvo.c +7 -3
@@ -25,16 +25,20 @@* Authors: * Eric Anholt <[email protected]> */ -#include <linux/i2c.h> -#include <linux/slab.h> +#include <linux/delay.h> #include <linux/export.h> +#include <linux/i2c.h> +#include <linux/slab.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_edid.h> -#include "intel_drv.h" #include <drm/i915_drm.h> +#include "i915_drv.h" +#include "intel_connector.h" +#include "intel_drv.h" #include "intel_sdvo_regs.h" #define SDVO_TMDS_MASK (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1)
drivers/gpu/drm/i915/intel_tv.c +3 -1
@@ -33,9 +33,11 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_edid.h> -#include "intel_drv.h" #include <drm/i915_drm.h> +#include "i915_drv.h" +#include "intel_connector.h" +#include "intel_drv.h" enum tv_margin {TV_MARGIN_LEFT ,TV_MARGIN_TOP ,
drivers/gpu/drm/i915/vlv_dsi.c +6 -3
@@ -23,14 +23,17 @@* Author: Jani Nikula <[email protected]> */ +#include <linux/gpio/consumer.h> +#include <linux/slab.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_edid.h> -#include <drm/i915_drm.h> #include <drm/drm_mipi_dsi.h> -#include <linux/slab.h> -#include <linux/gpio/consumer.h> +#include <drm/i915_drm.h> +#include "i915_drv.h" +#include "intel_connector.h" #include "intel_drv.h" #include "intel_dsi.h"
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 6/25 drm/i915: extract intel_csr.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
v2: Add function argument names to fix checkpatch warning
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/intel_csr.c | 3 +++ drivers/gpu/drm/i915/intel_csr.h | 17 +++++++++++++++++ drivers/gpu/drm/i915/intel_drv.h | 7 ------- drivers/gpu/drm/i915/intel_runtime_pm.c | 1 + 6 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_csr.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -12,6 +12,7 @@ header_test := \ intel_connector.h \ intel_context_types.h \ intel_crt.h \ + intel_csr.h \ intel_ddi.h \ intel_engine_types.h \ intel_frontbuffer.h \
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -54,6 +54,7 @@#include "i915_trace.h" #include "i915_vgpu.h" #include "intel_audio.h" +#include "intel_csr.h" #include "intel_drv.h" #include "intel_uc.h" #include "intel_workarounds.h"
drivers/gpu/drm/i915/intel_csr.c +3 -0
@@ -21,9 +21,12 @@* IN THE SOFTWARE. * */ +#include <linux/firmware.h> +#include "i915_drv.h" #include "i915_reg.h" +#include "intel_csr.h" /** * DOC: csr support for dmc
drivers/gpu/drm/i915/intel_csr.h new file +17 -0
@@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_CSR_H__ +#define __INTEL_CSR_H__ + +struct drm_i915_private ; + +void intel_csr_ucode_init (struct drm_i915_private *i915); +void intel_csr_load_program (struct drm_i915_private *i915); +void intel_csr_ucode_fini (struct drm_i915_private *i915); +void intel_csr_ucode_suspend (struct drm_i915_private *i915); +void intel_csr_ucode_resume (struct drm_i915_private *i915); + +#endif /* __INTEL_CSR_H__ */
drivers/gpu/drm/i915/intel_drv.h +0 -7
@@ -1846,13 +1846,6 @@ unsigned int i9xx_plane_max_stride(struct intel_plane *plane, u32 pixel_format, u64 modifier, unsigned int rotation); -/* intel_csr.c */ -void intel_csr_ucode_init (struct drm_i915_private *); -void intel_csr_load_program (struct drm_i915_private *); -void intel_csr_ucode_fini (struct drm_i915_private *); -void intel_csr_ucode_suspend (struct drm_i915_private *); -void intel_csr_ucode_resume (struct drm_i915_private *); -/* intel_dp.c */ struct link_config_limits {int min_clock, max_clock;
drivers/gpu/drm/i915/intel_runtime_pm.c +1 -0
@@ -33,6 +33,7 @@#include "i915_drv.h" #include "intel_crt.h" +#include "intel_csr.h" #include "intel_drv.h" /**
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 7/25 drm/i915: extract intel_fbc.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
v2: Remove stray newline (Chris)
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_debugfs.c | 8 +++-- drivers/gpu/drm/i915/i915_reset.h | 1 + drivers/gpu/drm/i915/i915_suspend.c | 4 ++- drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 24 ------------- drivers/gpu/drm/i915/intel_fbc.c | 3 +- drivers/gpu/drm/i915/intel_fbc.h | 42 ++++++++++++++++++++++ drivers/gpu/drm/i915/intel_fifo_underrun.c | 1 + drivers/gpu/drm/i915/intel_frontbuffer.c | 3 +- drivers/gpu/drm/i915/intel_pm.c | 1 + 11 files changed, 59 insertions(+), 30 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_fbc.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -15,6 +15,7 @@ header_test := \ intel_csr.h \ intel_ddi.h \ intel_engine_types.h \ + intel_fbc.h \ intel_frontbuffer.h \ intel_workarounds_types.h
drivers/gpu/drm/i915/i915_debugfs.c +5 -3
@@ -26,14 +26,16 @@* */ -#include <linux/sort.h> #include <linux/sched/mm.h> +#include <linux/sort.h> +#include <drm/drm_debugfs.h> #include <drm/drm_fourcc.h> -#include "intel_drv.h" -#include "intel_guc_submission.h" #include "i915_reset.h" +#include "intel_drv.h" +#include "intel_fbc.h" +#include "intel_guc_submission.h" static inline struct drm_i915_private *node_to_i915 (struct drm_info_node *node) {
drivers/gpu/drm/i915/i915_reset.h +1 -0
@@ -14,6 +14,7 @@#include "intel_engine_types.h" struct drm_i915_private ; +struct i915_request ;struct intel_engine_cs ;struct intel_guc ;
drivers/gpu/drm/i915/i915_suspend.c +3 -1
@@ -25,8 +25,10 @@*/ #include <drm/i915_drm.h> -#include "intel_drv.h" +#include "i915_reg.h" +#include "intel_drv.h" +#include "intel_fbc.h" static void i915_save_display (struct drm_i915_private *dev_priv) {
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -52,6 +52,7 @@#include "intel_ddi.h" #include "intel_drv.h" #include "intel_dsi.h" +#include "intel_fbc.h" #include "intel_frontbuffer.h" /* Primary plane formats for gen <= 3 */
drivers/gpu/drm/i915/intel_drv.h +0 -24
@@ -2012,30 +2012,6 @@ static inline void intel_fbdev_restore_mode(struct drm_device *dev) }#endif -/* intel_fbc.c */ -void intel_fbc_choose_crtc (struct drm_i915_private *dev_priv, -struct intel_atomic_state *state); -bool intel_fbc_is_active (struct drm_i915_private *dev_priv); -void intel_fbc_pre_update (struct intel_crtc *crtc, -struct intel_crtc_state *crtc_state, -struct intel_plane_state *plane_state); -void intel_fbc_post_update (struct intel_crtc *crtc); -void intel_fbc_init (struct drm_i915_private *dev_priv); -void intel_fbc_init_pipe_state (struct drm_i915_private *dev_priv); -void intel_fbc_enable (struct intel_crtc *crtc, -struct intel_crtc_state *crtc_state, -struct intel_plane_state *plane_state); -void intel_fbc_disable (struct intel_crtc *crtc); -void intel_fbc_global_disable (struct drm_i915_private *dev_priv); -void intel_fbc_invalidate (struct drm_i915_private *dev_priv, -unsigned int frontbuffer_bits, -enum fb_op_origin origin); -void intel_fbc_flush (struct drm_i915_private *dev_priv, -unsigned int frontbuffer_bits,enum fb_op_origin origin); -void intel_fbc_cleanup_cfb (struct drm_i915_private *dev_priv); -void intel_fbc_handle_fifo_underrun_irq (struct drm_i915_private *dev_priv); -int intel_fbc_reset_underrun (struct drm_i915_private *dev_priv); -/* intel_hdmi.c */ void intel_hdmi_init (struct drm_i915_private *dev_priv,i915_reg_t hdmi_reg,enum port port);
drivers/gpu/drm/i915/intel_fbc.c +2 -1
@@ -40,8 +40,9 @@#include <drm/drm_fourcc.h> -#include "intel_drv.h" #include "i915_drv.h" +#include "intel_drv.h" +#include "intel_fbc.h" static inline bool fbc_supported (struct drm_i915_private *dev_priv) {
drivers/gpu/drm/i915/intel_fbc.h new file +42 -0
42 lines not on this page · raw message
drivers/gpu/drm/i915/intel_fifo_underrun.c +1 -0
@@ -27,6 +27,7 @@#include "i915_drv.h" #include "intel_drv.h" +#include "intel_fbc.h" /** * DOC: fifo underrun handling
drivers/gpu/drm/i915/intel_frontbuffer.c +2 -1
@@ -61,9 +61,10 @@*/ +#include "i915_drv.h" #include "intel_drv.h" +#include "intel_fbc.h" #include "intel_frontbuffer.h" -#include "i915_drv.h" void __intel_fb_obj_invalidate(struct drm_i915_gem_object *obj, enum fb_op_origin origin,
drivers/gpu/drm/i915/intel_pm.c +1 -0
@@ -35,6 +35,7 @@#include "i915_drv.h" #include "intel_drv.h" +#include "intel_fbc.h" #include "../../../platform/x86/intel_ips.h" /**
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 8/25 drm/i915: extract intel_psr.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
v2: Fix checkpatch whitespace complaint
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_debugfs.c | 1 + drivers/gpu/drm/i915/i915_irq.c | 11 ++++--- drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 26 --------------- drivers/gpu/drm/i915/intel_fbc.c | 1 + drivers/gpu/drm/i915/intel_frontbuffer.c | 1 + drivers/gpu/drm/i915/intel_psr.c | 11 ++++--- drivers/gpu/drm/i915/intel_psr.h | 40 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_sprite.c | 13 +++++--- 12 files changed, 68 insertions(+), 40 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_psr.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -17,6 +17,7 @@ header_test := \ intel_engine_types.h \ intel_fbc.h \ intel_frontbuffer.h \ + intel_psr.h \ intel_workarounds_types.h quiet_cmd_header_test = HDRTEST $@
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -36,6 +36,7 @@#include "intel_drv.h" #include "intel_fbc.h" #include "intel_guc_submission.h" +#include "intel_psr.h" static inline struct drm_i915_private *node_to_i915 (struct drm_info_node *node) {
drivers/gpu/drm/i915/i915_irq.c +7 -4
@@ -28,16 +28,19 @@#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt -#include <linux/sysrq.h> -#include <linux/slab.h> -#include <linux/cpuidle.h> #include <linux/circ_buf.h> -#include <drm/drm_irq.h> +#include <linux/cpuidle.h> +#include <linux/slab.h> +#include <linux/sysrq.h> +#include <drm/drm_drv.h> +#include <drm/drm_irq.h> #include <drm/i915_drm.h> +#include "i915_drv.h" #include "i915_trace.h" #include "intel_drv.h" +#include "intel_psr.h" /** * DOC: interrupt handling
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -33,6 +33,7 @@#include "intel_ddi.h" #include "intel_drv.h" #include "intel_dsi.h" +#include "intel_psr.h" struct ddi_buf_trans {u32 trans1;/* balance leg enable, de-emph level */
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -54,6 +54,7 @@#include "intel_dsi.h" #include "intel_fbc.h" #include "intel_frontbuffer.h" +#include "intel_psr.h" /* Primary plane formats for gen <= 3 */ static const u32 i8xx_primary_formats[] = {
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -46,6 +46,7 @@#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h" +#include "intel_psr.h" #define DP_DPRX_ESI_LEN 14
drivers/gpu/drm/i915/intel_drv.h +0 -26
@@ -2114,32 +2114,6 @@ void intel_hdcp_component_fini(struct drm_i915_private *dev_priv);void intel_hdcp_cleanup (struct intel_connector *connector);void intel_hdcp_handle_cp_irq (struct intel_connector *connector); -/* intel_psr.c */ -#define CAN_PSR (dev_priv) (HAS_PSR(dev_priv) && dev_priv->psr.sink_support) -void intel_psr_init_dpcd (struct intel_dp *intel_dp); -void intel_psr_enable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -void intel_psr_disable (struct intel_dp *intel_dp, -const struct intel_crtc_state *old_crtc_state); -void intel_psr_update (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state); -int intel_psr_debug_set (struct drm_i915_private *dev_priv,u64 value); -void intel_psr_invalidate (struct drm_i915_private *dev_priv, -unsigned frontbuffer_bits, -enum fb_op_origin origin); -void intel_psr_flush (struct drm_i915_private *dev_priv, -unsigned frontbuffer_bits, -enum fb_op_origin origin); -void intel_psr_init (struct drm_i915_private *dev_priv); -void intel_psr_compute_config (struct intel_dp *intel_dp, -struct intel_crtc_state *crtc_state); -void intel_psr_irq_control (struct drm_i915_private *dev_priv,u32 debug); -void intel_psr_irq_handler (struct drm_i915_private *dev_priv,u32 psr_iir); -void intel_psr_short_pulse (struct intel_dp *intel_dp); -int intel_psr_wait_for_idle (const struct intel_crtc_state *new_crtc_state, -u32 *out_value); -bool intel_psr_enabled (struct intel_dp *intel_dp); -/* intel_quirks.c */ void intel_init_quirks (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/intel_fbc.c +1 -0
@@ -43,6 +43,7 @@#include "i915_drv.h" #include "intel_drv.h" #include "intel_fbc.h" +#include "intel_frontbuffer.h" static inline bool fbc_supported (struct drm_i915_private *dev_priv) {
drivers/gpu/drm/i915/intel_frontbuffer.c +1 -0
@@ -65,6 +65,7 @@#include "intel_drv.h" #include "intel_fbc.h" #include "intel_frontbuffer.h" +#include "intel_psr.h" void __intel_fb_obj_invalidate(struct drm_i915_gem_object *obj, enum fb_op_origin origin,
drivers/gpu/drm/i915/intel_psr.c +6 -5
@@ -21,6 +21,12 @@* DEALINGS IN THE SOFTWARE. */ +#include <drm/drm_atomic_helper.h> + +#include "i915_drv.h" +#include "intel_drv.h" +#include "intel_psr.h" +/** * DOC: Panel Self Refresh (PSR/SRD) *
@@ -51,11 +57,6 @@* must be correctly synchronized/cancelled when shutting down the pipe." */ -#include <drm/drm_atomic_helper.h> - -#include "intel_drv.h" -#include "i915_drv.h" -static bool psr_global_enabled (u32 debug) {switch (debug &I915_PSR_DEBUG_MODE_MASK ) {
drivers/gpu/drm/i915/intel_psr.h new file +40 -0
@@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_PSR_H__ +#define __INTEL_PSR_H__ + +#include "intel_frontbuffer.h" + +struct drm_i915_private ; +struct intel_crtc_state ; +struct intel_dp ; + +#define CAN_PSR (dev_priv) (HAS_PSR(dev_priv) && dev_priv->psr.sink_support) +void intel_psr_init_dpcd (struct intel_dp *intel_dp); +void intel_psr_enable (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state); +void intel_psr_disable (struct intel_dp *intel_dp, +const struct intel_crtc_state *old_crtc_state); +void intel_psr_update (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state); +int intel_psr_debug_set (struct drm_i915_private *dev_priv,u64 value); +void intel_psr_invalidate (struct drm_i915_private *dev_priv, +unsigned frontbuffer_bits, +enum fb_op_origin origin); +void intel_psr_flush (struct drm_i915_private *dev_priv, +unsigned frontbuffer_bits, +enum fb_op_origin origin); +void intel_psr_init (struct drm_i915_private *dev_priv); +void intel_psr_compute_config (struct intel_dp *intel_dp, +struct intel_crtc_state *crtc_state); +void intel_psr_irq_control (struct drm_i915_private *dev_priv,u32 debug); +void intel_psr_irq_handler (struct drm_i915_private *dev_priv,u32 psr_iir); +void intel_psr_short_pulse (struct intel_dp *intel_dp); +int intel_psr_wait_for_idle (const struct intel_crtc_state *new_crtc_state, +u32 *out_value); +bool intel_psr_enabled (struct intel_dp *intel_dp); + +#endif /* __INTEL_PSR_H__ */
drivers/gpu/drm/i915/intel_sprite.c +8 -5
@@ -29,17 +29,20 @@* registers; newer ones are much simpler and we can use the new DRM plane * support. */ + +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_color_mgmt.h> #include <drm/drm_crtc.h> #include <drm/drm_fourcc.h> -#include <drm/drm_rect.h> -#include <drm/drm_atomic.h> #include <drm/drm_plane_helper.h> -#include "intel_drv.h" -#include "intel_frontbuffer.h" +#include <drm/drm_rect.h> #include <drm/i915_drm.h> +#include "i915_drv.h" -#include <drm/drm_color_mgmt.h> +#include "intel_drv.h" +#include "intel_frontbuffer.h" +#include "intel_psr.h" bool is_planar_yuv_format (u32 pixelformat) {
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 9/25 drm/i915: extract intel_color.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_color.c | 1 + drivers/gpu/drm/i915/intel_color.h | 17 +++++++++++++++++ drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 6 ------ 5 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_color.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -9,6 +9,7 @@ header_test := \ i915_scheduler_types.h \ i915_timeline_types.h \ intel_audio.h \ + intel_color.h \ intel_connector.h \ intel_context_types.h \ intel_crt.h \
drivers/gpu/drm/i915/intel_color.c +1 -0
@@ -22,6 +22,7 @@* */ +#include "intel_color.h" #include "intel_drv.h" #define CTM_COEFF_SIGN (1ULL << 63)
drivers/gpu/drm/i915/intel_color.h new file +17 -0
@@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_COLOR_H__ +#define __INTEL_COLOR_H__ + +struct intel_crtc_state ; +struct intel_crtc ; + +void intel_color_init (struct intel_crtc *crtc); +int intel_color_check (struct intel_crtc_state *crtc_state); +void intel_color_commit (const struct intel_crtc_state *crtc_state); +void intel_color_load_luts (const struct intel_crtc_state *crtc_state); + +#endif /* __INTEL_COLOR_H__ */
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -48,6 +48,7 @@#include "i915_gem_clflush.h" #include "i915_reset.h" #include "i915_trace.h" +#include "intel_color.h" #include "intel_crt.h" #include "intel_ddi.h" #include "intel_drv.h"
drivers/gpu/drm/i915/intel_drv.h +0 -6
@@ -2419,12 +2419,6 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_const struct intel_plane_state *old_plane_state, struct intel_plane_state *intel_state); -/* intel_color.c */ -void intel_color_init (struct intel_crtc *crtc); -int intel_color_check (struct intel_crtc_state *crtc_state); -void intel_color_commit (const struct intel_crtc_state *crtc_state); -void intel_color_load_luts (const struct intel_crtc_state *crtc_state); -/* intel_lspcon.c */ bool lspcon_init (struct intel_digital_port *intel_dig_port);void lspcon_resume (struct intel_lspcon *lspcon);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 10/25 drm/i915: extract intel_lspcon.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 21 ------------- drivers/gpu/drm/i915/intel_hdmi.c | 1 + drivers/gpu/drm/i915/intel_lspcon.c | 5 ++- drivers/gpu/drm/i915/intel_lspcon.h | 38 +++++++++++++++++++++++ 7 files changed, 46 insertions(+), 22 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_lspcon.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -18,6 +18,7 @@ header_test := \ intel_engine_types.h \ intel_fbc.h \ intel_frontbuffer.h \ + intel_lspcon.h \ intel_psr.h \ intel_workarounds_types.h
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -33,6 +33,7 @@#include "intel_ddi.h" #include "intel_drv.h" #include "intel_dsi.h" +#include "intel_lspcon.h" #include "intel_psr.h" struct ddi_buf_trans {
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -46,6 +46,7 @@#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h" +#include "intel_lspcon.h" #include "intel_psr.h" #define DP_DPRX_ESI_LEN 14
drivers/gpu/drm/i915/intel_drv.h +0 -21
@@ -2419,27 +2419,6 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_const struct intel_plane_state *old_plane_state, struct intel_plane_state *intel_state); -/* intel_lspcon.c */ -bool lspcon_init (struct intel_digital_port *intel_dig_port); -void lspcon_resume (struct intel_lspcon *lspcon); -void lspcon_wait_pcon_mode (struct intel_lspcon *lspcon); -void lspcon_write_infoframe (struct intel_encoder *encoder, -const struct intel_crtc_state *crtc_state, -unsigned int type, -const void *buf,ssize_t len); -void lspcon_read_infoframe (struct intel_encoder *encoder, -const struct intel_crtc_state *crtc_state, -unsigned int type, -void *frame,ssize_t len); -void lspcon_set_infoframes (struct intel_encoder *encoder, -bool enable, -const struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state); -u32 lspcon_infoframes_enabled (struct intel_encoder *encoder, -const struct intel_crtc_state *pipe_config); -void lspcon_ycbcr420_config (struct drm_connector *connector, -struct intel_crtc_state *crtc_state); -/* intel_pipe_crc.c */ #ifdef CONFIG_DEBUG_FS int intel_crtc_set_crc_source (struct drm_crtc *crtc,const char *source_name);
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -44,6 +44,7 @@#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h" +#include "intel_lspcon.h" static struct drm_device *intel_hdmi_to_dev (struct intel_hdmi *intel_hdmi) {
drivers/gpu/drm/i915/intel_lspcon.c +4 -1
@@ -22,10 +22,13 @@* * */ -#include <drm/drm_edid.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_dp_dual_mode_helper.h> +#include <drm/drm_edid.h> +#include "intel_drv.h" +#include "intel_lspcon.h" /* LSPCON OUI Vendor ID(signatures) */ #define LSPCON_VENDOR_PARADE_OUI 0x001CF8
drivers/gpu/drm/i915/intel_lspcon.h new file +38 -0
@@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_LSPCON_H__ +#define __INTEL_LSPCON_H__ + +#include <linux/types.h> + +struct drm_connector ; +struct drm_connector_state ; +struct intel_crtc_state ; +struct intel_digital_port ; +struct intel_encoder ; +struct intel_lspcon ; + +bool lspcon_init (struct intel_digital_port *intel_dig_port); +void lspcon_resume (struct intel_lspcon *lspcon); +void lspcon_wait_pcon_mode (struct intel_lspcon *lspcon); +void lspcon_write_infoframe (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +unsigned int type, +const void *buf,ssize_t len); +void lspcon_read_infoframe (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +unsigned int type, +void *frame,ssize_t len); +void lspcon_set_infoframes (struct intel_encoder *encoder, +bool enable, +const struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state); +u32 lspcon_infoframes_enabled (struct intel_encoder *encoder, +const struct intel_crtc_state *pipe_config); +void lspcon_ycbcr420_config (struct drm_connector *connector, +struct intel_crtc_state *crtc_state); + +#endif /* __INTEL_LSPCON_H__ */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 11/25 drm/i915: extract intel_sdvo.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 7 ------- drivers/gpu/drm/i915/intel_hdmi.c | 1 + drivers/gpu/drm/i915/intel_sdvo.c | 1 + drivers/gpu/drm/i915/intel_sdvo.h | 23 +++++++++++++++++++++++ 6 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_sdvo.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -20,6 +20,7 @@ header_test := \ intel_frontbuffer.h \ intel_lspcon.h \ intel_psr.h \ + intel_sdvo.h \ intel_workarounds_types.h quiet_cmd_header_test = HDRTEST $@
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -56,6 +56,7 @@#include "intel_fbc.h" #include "intel_frontbuffer.h" #include "intel_psr.h" +#include "intel_sdvo.h" /* Primary plane formats for gen <= 3 */ static const u32 i8xx_primary_formats[] = {
drivers/gpu/drm/i915/intel_drv.h +0 -7
@@ -2314,13 +2314,6 @@ int skl_check_pipe_max_pixel_rate(struct intel_crtc *intel_crtc,void intel_init_ipc (struct drm_i915_private *dev_priv);void intel_enable_ipc (struct drm_i915_private *dev_priv); -/* intel_sdvo.c */ -bool intel_sdvo_port_enabled (struct drm_i915_private *dev_priv, -i915_reg_t sdvo_reg,enum pipe *pipe); -bool intel_sdvo_init (struct drm_i915_private *dev_priv, -i915_reg_t reg,enum port port); - -/* intel_sprite.c */ bool is_planar_yuv_format (u32 pixelformat); int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode,
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -45,6 +45,7 @@#include "intel_ddi.h" #include "intel_drv.h" #include "intel_lspcon.h" +#include "intel_sdvo.h" static struct drm_device *intel_hdmi_to_dev (struct intel_hdmi *intel_hdmi) {
drivers/gpu/drm/i915/intel_sdvo.c +1 -0
@@ -39,6 +39,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_sdvo.h" #include "intel_sdvo_regs.h" #define SDVO_TMDS_MASK (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1)
drivers/gpu/drm/i915/intel_sdvo.h new file +23 -0
@@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_SDVO_H__ +#define __INTEL_SDVO_H__ + +#include <linux/types.h> + +#include <drm/i915_drm.h> + +#include "i915_reg.h" + +struct drm_i915_private ; +enum pipe ; + +bool intel_sdvo_port_enabled (struct drm_i915_private *dev_priv, +i915_reg_t sdvo_reg,enum pipe *pipe); +bool intel_sdvo_init (struct drm_i915_private *dev_priv, +i915_reg_t reg,enum port port); + +#endif /* __INTEL_SDVO_H__ */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 12/25 drm/i915: extract intel_hdcp.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_debugfs.c | 1 + drivers/gpu/drm/i915/intel_atomic.c | 1 + drivers/gpu/drm/i915/intel_connector.c | 1 + drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 15 ----------- drivers/gpu/drm/i915/intel_hdcp.c | 10 ++++--- drivers/gpu/drm/i915/intel_hdcp.h | 33 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_hdmi.c | 1 + 11 files changed, 47 insertions(+), 19 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_hdcp.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -18,6 +18,7 @@ header_test := \ intel_engine_types.h \ intel_fbc.h \ intel_frontbuffer.h \ + intel_hdcp.h \ intel_lspcon.h \ intel_psr.h \ intel_sdvo.h \
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -36,6 +36,7 @@#include "intel_drv.h" #include "intel_fbc.h" #include "intel_guc_submission.h" +#include "intel_hdcp.h" #include "intel_psr.h" static inline struct drm_i915_private *node_to_i915 (struct drm_info_node *node)
drivers/gpu/drm/i915/intel_atomic.c +1 -0
@@ -35,6 +35,7 @@#include <drm/drm_plane_helper.h> #include "intel_drv.h" +#include "intel_hdcp.h" /** * intel_digital_connector_atomic_get_property - hook for connector->atomic_get_property.
drivers/gpu/drm/i915/intel_connector.c +1 -0
@@ -32,6 +32,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_hdcp.h" int intel_connector_init (struct intel_connector *connector) {
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -33,6 +33,7 @@#include "intel_ddi.h" #include "intel_drv.h" #include "intel_dsi.h" +#include "intel_hdcp.h" #include "intel_lspcon.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -55,6 +55,7 @@#include "intel_dsi.h" #include "intel_fbc.h" #include "intel_frontbuffer.h" +#include "intel_hdcp.h" #include "intel_psr.h" #include "intel_sdvo.h"
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -46,6 +46,7 @@#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h" +#include "intel_hdcp.h" #include "intel_lspcon.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_drv.h +0 -15
@@ -2099,21 +2099,6 @@ static inline void intel_backlight_device_unregister(struct intel_connector *con }#endif /* CONFIG_BACKLIGHT_CLASS_DEVICE */ -/* intel_hdcp.c */ -void intel_hdcp_atomic_check (struct drm_connector *connector, -struct drm_connector_state *old_state, -struct drm_connector_state *new_state); -int intel_hdcp_init (struct intel_connector *connector, -const struct intel_hdcp_shim *hdcp_shim); -int intel_hdcp_enable (struct intel_connector *connector); -int intel_hdcp_disable (struct intel_connector *connector); -bool is_hdcp_supported (struct drm_i915_private *dev_priv,enum port port); -bool intel_hdcp_capable (struct intel_connector *connector); -void intel_hdcp_component_init (struct drm_i915_private *dev_priv); -void intel_hdcp_component_fini (struct drm_i915_private *dev_priv); -void intel_hdcp_cleanup (struct intel_connector *connector); -void intel_hdcp_handle_cp_irq (struct intel_connector *connector); -/* intel_quirks.c */ void intel_init_quirks (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/intel_hdcp.c +6 -4
@@ -6,14 +6,16 @@* Sean Paul <[email protected]> */ -#include <drm/drm_hdcp.h> -#include <drm/i915_component.h> +#include <linux/component.h> #include <linux/i2c.h> #include <linux/random.h> -#include <linux/component.h> -#include "intel_drv.h" +#include <drm/drm_hdcp.h> +#include <drm/i915_component.h> +#include "i915_reg.h" +#include "intel_drv.h" +#include "intel_hdcp.h" #define KEY_LOAD_TRIES 5#define ENCRYPT_STATUS_CHANGE_TIMEOUT_MS 50
drivers/gpu/drm/i915/intel_hdcp.h new file +33 -0
@@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_HDCP_H__ +#define __INTEL_HDCP_H__ + +#include <linux/types.h> + +#include <drm/i915_drm.h> + +struct drm_connector ; +struct drm_connector_state ; +struct drm_i915_private ; +struct intel_connector ; +struct intel_hdcp_shim ; + +void intel_hdcp_atomic_check (struct drm_connector *connector, +struct drm_connector_state *old_state, +struct drm_connector_state *new_state); +int intel_hdcp_init (struct intel_connector *connector, +const struct intel_hdcp_shim *hdcp_shim); +int intel_hdcp_enable (struct intel_connector *connector); +int intel_hdcp_disable (struct intel_connector *connector); +bool is_hdcp_supported (struct drm_i915_private *dev_priv,enum port port); +bool intel_hdcp_capable (struct intel_connector *connector); +void intel_hdcp_component_init (struct drm_i915_private *dev_priv); +void intel_hdcp_component_fini (struct drm_i915_private *dev_priv); +void intel_hdcp_cleanup (struct intel_connector *connector); +void intel_hdcp_handle_cp_irq (struct intel_connector *connector); + +#endif /* __INTEL_HDCP_H__ */
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -44,6 +44,7 @@#include "intel_connector.h" #include "intel_ddi.h" #include "intel_drv.h" +#include "intel_hdcp.h" #include "intel_lspcon.h" #include "intel_sdvo.h"
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 13/25 drm/i915: extract intel_panel.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/icl_dsi.c | 1 + drivers/gpu/drm/i915/intel_connector.c | 1 + drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 45 ---------------- drivers/gpu/drm/i915/intel_dvo.c | 1 + drivers/gpu/drm/i915/intel_hdmi.c | 1 + drivers/gpu/drm/i915/intel_lvds.c | 1 + drivers/gpu/drm/i915/intel_opregion.c | 3 +- drivers/gpu/drm/i915/intel_panel.c | 1 + drivers/gpu/drm/i915/intel_panel.h | 65 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_sdvo.c | 1 + drivers/gpu/drm/i915/vlv_dsi.c | 1 + 14 files changed, 78 insertions(+), 46 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_panel.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -20,6 +20,7 @@ header_test := \ intel_frontbuffer.h \ intel_hdcp.h \ intel_lspcon.h \ + intel_panel.h \ intel_psr.h \ intel_sdvo.h \ intel_workarounds_types.h
drivers/gpu/drm/i915/icl_dsi.c +1 -0
@@ -31,6 +31,7 @@#include "intel_connector.h" #include "intel_ddi.h" #include "intel_dsi.h" +#include "intel_panel.h" static inline int header_credits_available (struct drm_i915_private *dev_priv,enum transcoder dsi_trans)
drivers/gpu/drm/i915/intel_connector.c +1 -0
@@ -33,6 +33,7 @@#include "intel_connector.h" #include "intel_drv.h" #include "intel_hdcp.h" +#include "intel_panel.h" int intel_connector_init (struct intel_connector *connector) {
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -35,6 +35,7 @@#include "intel_dsi.h" #include "intel_hdcp.h" #include "intel_lspcon.h" +#include "intel_panel.h" #include "intel_psr.h" struct ddi_buf_trans {
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -48,6 +48,7 @@#include "intel_drv.h" #include "intel_hdcp.h" #include "intel_lspcon.h" +#include "intel_panel.h" #include "intel_psr.h" #define DP_DPRX_ESI_LEN 14
drivers/gpu/drm/i915/intel_drv.h +0 -45
51 lines not on this page · raw message
drivers/gpu/drm/i915/intel_dvo.c +1 -0
@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_panel.h" #define SIL164_ADDR 0x38#define CH7xxx_ADDR 0x76
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -47,6 +47,7 @@#include "intel_hdcp.h" #include "intel_lspcon.h" #include "intel_sdvo.h" +#include "intel_panel.h" static struct drm_device *intel_hdmi_to_dev (struct intel_hdmi *intel_hdmi) {
drivers/gpu/drm/i915/intel_lvds.c +1 -0
@@ -42,6 +42,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_panel.h" /* Private structure for the integrated LVDS support */ struct intel_lvds_pps {
drivers/gpu/drm/i915/intel_opregion.c +2 -1
@@ -32,9 +32,10 @@#include <drm/i915_drm.h> -#include "intel_opregion.h" #include "i915_drv.h" #include "intel_drv.h" +#include "intel_opregion.h" +#include "intel_panel.h" #define OPREGION_HEADER_OFFSET 0#define OPREGION_ACPI_OFFSET 0x100
drivers/gpu/drm/i915/intel_panel.c +1 -0
@@ -36,6 +36,7 @@#include "intel_connector.h" #include "intel_drv.h" +#include "intel_panel.h" #define CRC_PMIC_PWM_PERIOD_NS 21333
drivers/gpu/drm/i915/intel_panel.h new file +65 -0
65 lines not on this page · raw message
drivers/gpu/drm/i915/intel_sdvo.c +1 -0
@@ -39,6 +39,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_panel.h" #include "intel_sdvo.h" #include "intel_sdvo_regs.h"
drivers/gpu/drm/i915/vlv_dsi.c +1 -0
@@ -36,6 +36,7 @@#include "intel_connector.h" #include "intel_drv.h" #include "intel_dsi.h" +#include "intel_panel.h" /* return pixels in terms of txbyteclkhs */ static u16 txbyteclkhs(u16 pixels, int bpp, int lane_count,
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 14/25 drm/i915: extract intel_pm.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
v2: gen6_rps_reset_ei() is in i915_irq.c not intel_pm.c.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_debugfs.c | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_gem.c | 1 + drivers/gpu/drm/i915/i915_request.c | 3 +- drivers/gpu/drm/i915/intel_atomic_plane.c | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 52 +---------------- drivers/gpu/drm/i915/intel_pm.c | 3 +- drivers/gpu/drm/i915/intel_pm.h | 71 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_sprite.c | 1 + drivers/gpu/drm/i915/intel_uncore.c | 9 +-- 12 files changed, 88 insertions(+), 57 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_pm.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -21,6 +21,7 @@ header_test := \ intel_hdcp.h \ intel_lspcon.h \ intel_panel.h \ + intel_pm.h \ intel_psr.h \ intel_sdvo.h \ intel_workarounds_types.h
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -37,6 +37,7 @@#include "intel_fbc.h" #include "intel_guc_submission.h" #include "intel_hdcp.h" +#include "intel_pm.h" #include "intel_psr.h" static inline struct drm_i915_private *node_to_i915 (struct drm_info_node *node)
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -56,6 +56,7 @@#include "intel_audio.h" #include "intel_csr.h" #include "intel_drv.h" +#include "intel_pm.h" #include "intel_uc.h" #include "intel_workarounds.h"
drivers/gpu/drm/i915/i915_gem.c +1 -0
@@ -50,6 +50,7 @@#include "intel_drv.h" #include "intel_frontbuffer.h" #include "intel_mocs.h" +#include "intel_pm.h" #include "intel_workarounds.h" static void i915_gem_flush_free_objects (struct drm_i915_private *i915);
drivers/gpu/drm/i915/i915_request.c +2 -1
@@ -29,10 +29,11 @@#include <linux/sched/clock.h> #include <linux/sched/signal.h> -#include "i915_drv.h" #include "i915_active.h" +#include "i915_drv.h" #include "i915_globals.h" #include "i915_reset.h" +#include "intel_pm.h" struct execute_cb {struct list_head link;
drivers/gpu/drm/i915/intel_atomic_plane.c +1 -0
@@ -36,6 +36,7 @@#include <drm/drm_plane_helper.h> #include "intel_drv.h" +#include "intel_pm.h" struct intel_plane *intel_plane_alloc (void ) {
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -56,6 +56,7 @@#include "intel_fbc.h" #include "intel_frontbuffer.h" #include "intel_hdcp.h" +#include "intel_pm.h" #include "intel_psr.h" #include "intel_sdvo.h"
drivers/gpu/drm/i915/intel_drv.h +1 -51
64 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.c +2 -1
@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_drv.h" #include "intel_fbc.h" +#include "intel_pm.h" #include "../../../platform/x86/intel_ips.h" /**
@@ -5252,7 +5253,7 @@ static inline bool skl_ddb_entries_overlap(const struct skl_ddb_entry *a, }bool skl_ddb_allocation_overlaps (const struct skl_ddb_entry *ddb, -const struct skl_ddb_entry entries[], +const struct skl_ddb_entry *entries,int num_entries,int ignore_idx) {int i;
drivers/gpu/drm/i915/intel_pm.h new file +71 -0
71 lines not on this page · raw message
drivers/gpu/drm/i915/intel_sprite.c +1 -0
@@ -42,6 +42,7 @@#include "i915_drv.h" #include "intel_drv.h" #include "intel_frontbuffer.h" +#include "intel_pm.h" #include "intel_psr.h" bool is_planar_yuv_format (u32 pixelformat)
drivers/gpu/drm/i915/intel_uncore.c +5 -4
@@ -21,12 +21,13 @@* IN THE SOFTWARE. */ +#include <linux/pm_runtime.h> +#include <asm/iosf_mbi.h> +#include "i915_drv.h" -#include "intel_drv.h" #include "i915_vgpu.h" - -#include <asm/iosf_mbi.h> -#include <linux/pm_runtime.h> +#include "intel_drv.h" +#include "intel_pm.h" #define FORCEWAKE_ACK_TIMEOUT_MS 50#define GT_FIFO_TIMEOUT_MS 10
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 15/25 drm/i915: extract intel_fbdev.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_pci.c | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 40 ----------------- drivers/gpu/drm/i915/intel_fbdev.c | 17 ++++---- drivers/gpu/drm/i915/intel_fbdev.h | 53 +++++++++++++++++++++++ 7 files changed, 66 insertions(+), 48 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_fbdev.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -17,6 +17,7 @@ header_test := \ intel_ddi.h \ intel_engine_types.h \ intel_fbc.h \ + intel_fbdev.h \ intel_frontbuffer.h \ intel_hdcp.h \ intel_lspcon.h \
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -56,6 +56,7 @@#include "intel_audio.h" #include "intel_csr.h" #include "intel_drv.h" +#include "intel_fbdev.h" #include "intel_pm.h" #include "intel_uc.h" #include "intel_workarounds.h"
drivers/gpu/drm/i915/i915_pci.c +1 -0
@@ -31,6 +31,7 @@#include "i915_drv.h" #include "i915_globals.h" #include "i915_selftest.h" +#include "intel_fbdev.h" #define PLATFORM (x) .platform = (x)#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1)
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -54,6 +54,7 @@#include "intel_drv.h" #include "intel_dsi.h" #include "intel_fbc.h" +#include "intel_fbdev.h" #include "intel_frontbuffer.h" #include "intel_hdcp.h" #include "intel_pm.h"
drivers/gpu/drm/i915/intel_drv.h +0 -40
@@ -1973,46 +1973,6 @@ void intel_hpd_poll_init(struct drm_i915_private *dev_priv);bool intel_encoder_hotplug (struct intel_encoder *encoder,struct intel_connector *connector); -/* legacy fbdev emulation in intel_fbdev.c */ -#ifdef CONFIG_DRM_FBDEV_EMULATION -extern int intel_fbdev_init (struct drm_device *dev); -extern void intel_fbdev_initial_config_async (struct drm_device *dev); -extern void intel_fbdev_unregister (struct drm_i915_private *dev_priv); -extern void intel_fbdev_fini (struct drm_i915_private *dev_priv); -extern void intel_fbdev_set_suspend (struct drm_device *dev,int state,bool synchronous); -extern void intel_fbdev_output_poll_changed (struct drm_device *dev); -extern void intel_fbdev_restore_mode (struct drm_device *dev); -#else -static inline int intel_fbdev_init (struct drm_device *dev) -{ -return 0 ; -} - -static inline void intel_fbdev_initial_config_async (struct drm_device *dev) -{ -} - -static inline void intel_fbdev_unregister (struct drm_i915_private *dev_priv) -{ -} - -static inline void intel_fbdev_fini (struct drm_i915_private *dev_priv) -{ -} - -static inline void intel_fbdev_set_suspend (struct drm_device *dev,int state,bool synchronous) -{ -} - -static inline void intel_fbdev_output_poll_changed (struct drm_device *dev) -{ -} - -static inline void intel_fbdev_restore_mode (struct drm_device *dev) -{ -} -#endif -/* intel_hdmi.c */ void intel_hdmi_init (struct drm_i915_private *dev_priv,i915_reg_t hdmi_reg,enum port port);
drivers/gpu/drm/i915/intel_fbdev.c +9 -8
@@ -25,26 +25,27 @@*/ #include <linux/async.h> -#include <linux/module.h> -#include <linux/kernel.h> #include <linux/console.h> +#include <linux/delay.h> #include <linux/errno.h> -#include <linux/string.h> +#include <linux/init.h> +#include <linux/kernel.h> #include <linux/mm.h> -#include <linux/tty.h> +#include <linux/module.h> +#include <linux/string.h> #include <linux/sysrq.h> -#include <linux/delay.h> -#include <linux/init.h> +#include <linux/tty.h> #include <linux/vga_switcheroo.h> #include <drm/drm_crtc.h> #include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> +#include <drm/i915_drm.h> +#include "i915_drv.h" #include "intel_drv.h" +#include "intel_fbdev.h" #include "intel_frontbuffer.h" -#include <drm/i915_drm.h> -#include "i915_drv.h" static void intel_fbdev_invalidate (struct intel_fbdev *ifbdev) {
drivers/gpu/drm/i915/intel_fbdev.h new file +53 -0
53 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 16/25 drm/i915: extract intel_dp.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_debugfs.c | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_dp.h | 121 ++++++++++++++++++ drivers/gpu/drm/i915/intel_dp_link_training.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/intel_dpio_phy.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 97 +------------- drivers/gpu/drm/i915/intel_frontbuffer.c | 1 + drivers/gpu/drm/i915/intel_hdmi.c | 1 + drivers/gpu/drm/i915/intel_lspcon.c | 1 + drivers/gpu/drm/i915/intel_psr.c | 1 + drivers/gpu/drm/i915/intel_runtime_pm.c | 1 + 16 files changed, 137 insertions(+), 95 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_dp.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -15,6 +15,7 @@ header_test := \ intel_crt.h \ intel_csr.h \ intel_ddi.h \ + intel_dp.h \ intel_engine_types.h \ intel_fbc.h \ intel_fbdev.h \
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -33,6 +33,7 @@#include <drm/drm_fourcc.h> #include "i915_reset.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_fbc.h" #include "intel_guc_submission.h"
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -55,6 +55,7 @@#include "i915_vgpu.h" #include "intel_audio.h" #include "intel_csr.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_fbdev.h" #include "intel_pm.h"
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -31,6 +31,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_dsi.h" #include "intel_hdcp.h"
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -51,6 +51,7 @@#include "intel_color.h" #include "intel_crt.h" #include "intel_ddi.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_dsi.h" #include "intel_fbc.h"
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -45,6 +45,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_hdcp.h" #include "intel_lspcon.h"
drivers/gpu/drm/i915/intel_dp.h new file +121 -0
121 lines not on this page · raw message
drivers/gpu/drm/i915/intel_dp_link_training.c +1 -0
@@ -21,6 +21,7 @@* IN THE SOFTWARE. */ +#include "intel_dp.h" #include "intel_drv.h" static void
drivers/gpu/drm/i915/intel_dp_mst.c +1 -0
@@ -31,6 +31,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_dp.h" #include "intel_drv.h" static int intel_dp_mst_compute_link_config(struct intel_encoder *encoder,
drivers/gpu/drm/i915/intel_dpio_phy.c +1 -0
@@ -21,6 +21,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "intel_dp.h" #include "intel_drv.h" /**
drivers/gpu/drm/i915/intel_drv.h +2 -95
117 lines not on this page · raw message
drivers/gpu/drm/i915/intel_frontbuffer.c +1 -0
@@ -62,6 +62,7 @@#include "i915_drv.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_fbc.h" #include "intel_frontbuffer.h"
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -43,6 +43,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_hdcp.h" #include "intel_lspcon.h"
drivers/gpu/drm/i915/intel_lspcon.c +1 -0
@@ -27,6 +27,7 @@#include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_edid.h> +#include "intel_dp.h" #include "intel_drv.h" #include "intel_lspcon.h"
drivers/gpu/drm/i915/intel_psr.c +1 -0
@@ -24,6 +24,7 @@#include <drm/drm_atomic_helper.h> #include "i915_drv.h" +#include "intel_dp.h" #include "intel_drv.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_runtime_pm.c +1 -0
@@ -34,6 +34,7 @@#include "i915_drv.h" #include "intel_crt.h" #include "intel_csr.h" +#include "intel_dp.h" #include "intel_drv.h" /**
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 17/25 drm/i915: extract intel_hdmi.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_debugfs.c | 1 + drivers/gpu/drm/i915/intel_ddi.c | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 38 ++++------------- drivers/gpu/drm/i915/intel_hdmi.c | 1 + drivers/gpu/drm/i915/intel_hdmi.h | 51 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_sdvo.c | 1 + 9 files changed, 65 insertions(+), 31 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_hdmi.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -21,6 +21,7 @@ header_test := \ intel_fbdev.h \ intel_frontbuffer.h \ intel_hdcp.h \ + intel_hdmi.h \ intel_lspcon.h \ intel_panel.h \ intel_pm.h \
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -38,6 +38,7 @@#include "intel_fbc.h" #include "intel_guc_submission.h" #include "intel_hdcp.h" +#include "intel_hdmi.h" #include "intel_pm.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_ddi.c +1 -0
@@ -35,6 +35,7 @@#include "intel_drv.h" #include "intel_dsi.h" #include "intel_hdcp.h" +#include "intel_hdmi.h" #include "intel_lspcon.h" #include "intel_panel.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -58,6 +58,7 @@#include "intel_fbdev.h" #include "intel_frontbuffer.h" #include "intel_hdcp.h" +#include "intel_hdmi.h" #include "intel_pm.h" #include "intel_psr.h" #include "intel_sdvo.h"
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -48,6 +48,7 @@#include "intel_dp.h" #include "intel_drv.h" #include "intel_hdcp.h" +#include "intel_hdmi.h" #include "intel_lspcon.h" #include "intel_panel.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_drv.h +7 -31
@@ -27,23 +27,24 @@#include <linux/async.h> #include <linux/i2c.h> -#include <linux/hdmi.h> #include <linux/sched/clock.h> #include <linux/stackdepot.h> -#include <drm/i915_drm.h> -#include "i915_drv.h" + +#include <drm/drm_atomic.h> #include <drm/drm_crtc.h> -#include <drm/drm_encoder.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_dp_mst_helper.h> +#include <drm/drm_encoder.h> +#include <drm/drm_fb_helper.h> #include <drm/drm_probe_helper.h> #include <drm/drm_rect.h> #include <drm/drm_vblank.h> -#include <drm/drm_atomic.h> +#include <drm/i915_drm.h> #include <drm/i915_mei_hdcp_interface.h> #include <media/cec-notifier.h> +#include "i915_drv.h" +struct drm_printer ;/**
@@ -1880,31 +1881,6 @@ void intel_hpd_poll_init(struct drm_i915_private *dev_priv);bool intel_encoder_hotplug (struct intel_encoder *encoder,struct intel_connector *connector); -/* intel_hdmi.c */ -void intel_hdmi_init (struct drm_i915_private *dev_priv,i915_reg_t hdmi_reg, -enum port port); -void intel_hdmi_init_connector (struct intel_digital_port *intel_dig_port, -struct intel_connector *intel_connector); -struct intel_hdmi *enc_to_intel_hdmi (struct drm_encoder *encoder); -int intel_hdmi_compute_config (struct intel_encoder *encoder, -struct intel_crtc_state *pipe_config, -struct drm_connector_state *conn_state); -bool intel_hdmi_handle_sink_scrambling (struct intel_encoder *encoder, -struct drm_connector *connector, -bool high_tmds_clock_ratio, -bool scrambling); -void intel_dp_dual_mode_set_tmds_output (struct intel_hdmi *hdmi,bool enable); -void intel_infoframe_init (struct intel_digital_port *intel_dig_port); -u32 intel_hdmi_infoframes_enabled (struct intel_encoder *encoder, -const struct intel_crtc_state *crtc_state); -u32 intel_hdmi_infoframe_enable (unsigned int type); -void intel_hdmi_read_gcp_infoframe (struct intel_encoder *encoder, -struct intel_crtc_state *crtc_state); -void intel_read_infoframe (struct intel_encoder *encoder, -const struct intel_crtc_state *crtc_state, -enum hdmi_infoframe_type type, -union hdmi_infoframe *frame); -/* intel_lvds.c */ bool intel_lvds_port_enabled (struct drm_i915_private *dev_priv,i915_reg_t lvds_reg,enum pipe *pipe);
drivers/gpu/drm/i915/intel_hdmi.c +1 -0
@@ -46,6 +46,7 @@#include "intel_dp.h" #include "intel_drv.h" #include "intel_hdcp.h" +#include "intel_hdmi.h" #include "intel_lspcon.h" #include "intel_sdvo.h" #include "intel_panel.h"
drivers/gpu/drm/i915/intel_hdmi.h new file +51 -0
51 lines not on this page · raw message
drivers/gpu/drm/i915/intel_sdvo.c +1 -0
@@ -39,6 +39,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_hdmi.h" #include "intel_panel.h" #include "intel_sdvo.h" #include "intel_sdvo_regs.h"
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 18/25 drm/i915: extract intel_atomic_plane.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
v2: revert intel_plane_destroy_state() movement within intel_atomic_plane.c
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_atomic_plane.c | 1 + drivers/gpu/drm/i915/intel_atomic_plane.h | 40 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 24 -------------- drivers/gpu/drm/i915/intel_sprite.c | 1 + 6 files changed, 44 insertions(+), 24 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_atomic_plane.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -8,6 +8,7 @@ header_test := \ i915_priolist_types.h \ i915_scheduler_types.h \ i915_timeline_types.h \ + intel_atomic_plane.h \ intel_audio.h \ intel_color.h \ intel_connector.h \
drivers/gpu/drm/i915/intel_atomic_plane.c +1 -0
@@ -35,6 +35,7 @@#include <drm/drm_fourcc.h> #include <drm/drm_plane_helper.h> +#include "intel_atomic_plane.h" #include "intel_drv.h" #include "intel_pm.h"
drivers/gpu/drm/i915/intel_atomic_plane.h new file +40 -0
@@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_ATOMIC_PLANE_H__ +#define __INTEL_ATOMIC_PLANE_H__ + +struct drm_plane ; +struct intel_atomic_state ; +struct intel_crtc ; +struct intel_crtc_state ; +struct intel_plane ; +struct intel_plane_state ; + +extern const struct drm_plane_helper_funcs intel_plane_helper_funcs; + +void intel_update_plane (struct intel_plane *plane, +const struct intel_crtc_state *crtc_state, +const struct intel_plane_state *plane_state); +void intel_update_slave (struct intel_plane *plane, +const struct intel_crtc_state *crtc_state, +const struct intel_plane_state *plane_state); +void intel_disable_plane (struct intel_plane *plane, +const struct intel_crtc_state *crtc_state); +struct intel_plane *intel_plane_alloc (void ); +void intel_plane_free (struct intel_plane *plane); +struct drm_plane_state *intel_plane_duplicate_state (struct drm_plane *plane); +void intel_plane_destroy_state (struct drm_plane *plane, +struct drm_plane_state *state); +void skl_update_planes_on_crtc (struct intel_atomic_state *state, +struct intel_crtc *crtc); +void i9xx_update_planes_on_crtc (struct intel_atomic_state *state, +struct intel_crtc *crtc); +int intel_plane_atomic_check_with_state (const struct intel_crtc_state *old_crtc_state, +struct intel_crtc_state *crtc_state, +const struct intel_plane_state *old_plane_state, +struct intel_plane_state *intel_state); + +#endif /* __INTEL_ATOMIC_PLANE_H__ */
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -48,6 +48,7 @@#include "i915_gem_clflush.h" #include "i915_reset.h" #include "i915_trace.h" +#include "intel_atomic_plane.h" #include "intel_color.h" #include "intel_crt.h" #include "intel_ddi.h"
drivers/gpu/drm/i915/intel_drv.h +0 -24
@@ -2121,30 +2121,6 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,struct intel_crtc *intel_crtc, struct intel_crtc_state *crtc_state); -/* intel_atomic_plane.c */ -void intel_update_plane (struct intel_plane *plane, -const struct intel_crtc_state *crtc_state, -const struct intel_plane_state *plane_state); -void intel_update_slave (struct intel_plane *plane, -const struct intel_crtc_state *crtc_state, -const struct intel_plane_state *plane_state); -void intel_disable_plane (struct intel_plane *plane, -const struct intel_crtc_state *crtc_state); -struct intel_plane *intel_plane_alloc (void ); -void intel_plane_free (struct intel_plane *plane); -struct drm_plane_state *intel_plane_duplicate_state (struct drm_plane *plane); -void intel_plane_destroy_state (struct drm_plane *plane, -struct drm_plane_state *state); -extern const struct drm_plane_helper_funcs intel_plane_helper_funcs; -void skl_update_planes_on_crtc (struct intel_atomic_state *state, -struct intel_crtc *crtc); -void i9xx_update_planes_on_crtc (struct intel_atomic_state *state, -struct intel_crtc *crtc); -int intel_plane_atomic_check_with_state (const struct intel_crtc_state *old_crtc_state, -struct intel_crtc_state *crtc_state, -const struct intel_plane_state *old_plane_state, -struct intel_plane_state *intel_state); -/* intel_pipe_crc.c */ #ifdef CONFIG_DEBUG_FS int intel_crtc_set_crc_source (struct drm_crtc *crtc,const char *source_name);
drivers/gpu/drm/i915/intel_sprite.c +1 -0
@@ -40,6 +40,7 @@#include <drm/i915_drm.h> #include "i915_drv.h" +#include "intel_atomic_plane.h" #include "intel_drv.h" #include "intel_frontbuffer.h" #include "intel_pm.h"
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 19/25 drm/i915: extract intel_pipe_crc.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 21 -------------- drivers/gpu/drm/i915/intel_pipe_crc.c | 4 ++- drivers/gpu/drm/i915/intel_pipe_crc.h | 35 +++++++++++++++++++++++ 5 files changed, 40 insertions(+), 22 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_pipe_crc.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -25,6 +25,7 @@ header_test := \ intel_hdmi.h \ intel_lspcon.h \ intel_panel.h \ + intel_pipe_crc.h \ intel_pm.h \ intel_psr.h \ intel_sdvo.h \
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -60,6 +60,7 @@#include "intel_frontbuffer.h" #include "intel_hdcp.h" #include "intel_hdmi.h" +#include "intel_pipe_crc.h" #include "intel_pm.h" #include "intel_psr.h" #include "intel_sdvo.h"
drivers/gpu/drm/i915/intel_drv.h +0 -21
@@ -2121,25 +2121,4 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,struct intel_crtc *intel_crtc, struct intel_crtc_state *crtc_state); -/* intel_pipe_crc.c */ -#ifdef CONFIG_DEBUG_FS -int intel_crtc_set_crc_source (struct drm_crtc *crtc,const char *source_name); -int intel_crtc_verify_crc_source (struct drm_crtc *crtc, -const char *source_name,size_t *values_cnt); -const char *const *intel_crtc_get_crc_sources (struct drm_crtc *crtc, -size_t *count); -void intel_crtc_disable_pipe_crc (struct intel_crtc *crtc); -void intel_crtc_enable_pipe_crc (struct intel_crtc *crtc); -#else -#define intel_crtc_set_crc_source NULL -#define intel_crtc_verify_crc_source NULL -#define intel_crtc_get_crc_sources NULL -static inline void intel_crtc_disable_pipe_crc (struct intel_crtc *crtc) -{ -} - -static inline void intel_crtc_enable_pipe_crc (struct intel_crtc *crtc) -{ -} -#endif #endif /* __INTEL_DRV_H__ */
drivers/gpu/drm/i915/intel_pipe_crc.c +3 -1
@@ -24,11 +24,13 @@* */ -#include <linux/seq_file.h> #include <linux/circ_buf.h> #include <linux/ctype.h> #include <linux/debugfs.h> +#include <linux/seq_file.h> +#include "intel_drv.h" +#include "intel_pipe_crc.h" static const char *const pipe_crc_sources[] = { [INTEL_PIPE_CRC_SOURCE_NONE ] ="none" ,
drivers/gpu/drm/i915/intel_pipe_crc.h new file +35 -0
@@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_PIPE_CRC_H__ +#define __INTEL_PIPE_CRC_H__ + +#include <linux/types.h> + +struct drm_crtc ; +struct intel_crtc ; + +#ifdef CONFIG_DEBUG_FS +int intel_crtc_set_crc_source (struct drm_crtc *crtc,const char *source_name); +int intel_crtc_verify_crc_source (struct drm_crtc *crtc, +const char *source_name,size_t *values_cnt); +const char *const *intel_crtc_get_crc_sources (struct drm_crtc *crtc, +size_t *count); +void intel_crtc_disable_pipe_crc (struct intel_crtc *crtc); +void intel_crtc_enable_pipe_crc (struct intel_crtc *crtc); +#else +#define intel_crtc_set_crc_source NULL +#define intel_crtc_verify_crc_source NULL +#define intel_crtc_get_crc_sources NULL +static inline void intel_crtc_disable_pipe_crc (struct intel_crtc *crtc) +{ +} + +static inline void intel_crtc_enable_pipe_crc (struct intel_crtc *crtc) +{ +} +#endif + +#endif /* __INTEL_PIPE_CRC_H__ */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 20/25 drm/i915: extract intel_tv.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 3 --- drivers/gpu/drm/i915/intel_tv.c | 1 + drivers/gpu/drm/i915/intel_tv.h | 13 +++++++++++++ 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_tv.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -29,6 +29,7 @@ header_test := \ intel_pm.h \ intel_psr.h \ intel_sdvo.h \ + intel_tv.h \ intel_workarounds_types.h quiet_cmd_header_test = HDRTEST $@
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -64,6 +64,7 @@#include "intel_pm.h" #include "intel_psr.h" #include "intel_sdvo.h" +#include "intel_tv.h" /* Primary plane formats for gen <= 3 */ static const u32 i8xx_primary_formats[] = {
drivers/gpu/drm/i915/intel_drv.h +0 -3
@@ -2082,9 +2082,6 @@ static inline bool icl_is_hdr_plane(struct drm_i915_private *dev_priv,return plane_id <PLANE_SPRITE2 ; } -/* intel_tv.c */ -void intel_tv_init (struct drm_i915_private *dev_priv); -/* intel_atomic.c */ int intel_digital_connector_atomic_get_property(struct drm_connector *connector, const struct drm_connector_state *state,
drivers/gpu/drm/i915/intel_tv.c +1 -0
@@ -38,6 +38,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_tv.h" enum tv_margin {TV_MARGIN_LEFT ,TV_MARGIN_TOP ,
drivers/gpu/drm/i915/intel_tv.h new file +13 -0
@@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_TV_H__ +#define __INTEL_TV_H__ + +struct drm_i915_private ; + +void intel_tv_init (struct drm_i915_private *dev_priv); + +#endif /* __INTEL_TV_H__ */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 21/25 drm/i915: extract intel_lvds.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 7 ------- drivers/gpu/drm/i915/intel_lvds.c | 1 + drivers/gpu/drm/i915/intel_lvds.h | 22 ++++++++++++++++++++++ 6 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_lvds.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -24,6 +24,7 @@ header_test := \ intel_hdcp.h \ intel_hdmi.h \ intel_lspcon.h \ + intel_lvds.h \ intel_panel.h \ intel_pipe_crc.h \ intel_pm.h \
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -60,6 +60,7 @@#include "intel_frontbuffer.h" #include "intel_hdcp.h" #include "intel_hdmi.h" +#include "intel_lvds.h" #include "intel_pipe_crc.h" #include "intel_pm.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -50,6 +50,7 @@#include "intel_hdcp.h" #include "intel_hdmi.h" #include "intel_lspcon.h" +#include "intel_lvds.h" #include "intel_panel.h" #include "intel_psr.h"
drivers/gpu/drm/i915/intel_drv.h +0 -7
@@ -1881,13 +1881,6 @@ void intel_hpd_poll_init(struct drm_i915_private *dev_priv);bool intel_encoder_hotplug (struct intel_encoder *encoder,struct intel_connector *connector); -/* intel_lvds.c */ -bool intel_lvds_port_enabled (struct drm_i915_private *dev_priv, -i915_reg_t lvds_reg,enum pipe *pipe); -void intel_lvds_init (struct drm_i915_private *dev_priv); -struct intel_encoder *intel_get_lvds_encoder (struct drm_i915_private *dev_priv); -bool intel_is_dual_link_lvds (struct drm_i915_private *dev_priv); -/* intel_overlay.c */ void intel_overlay_setup (struct drm_i915_private *dev_priv);void intel_overlay_cleanup (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/intel_lvds.c +1 -0
@@ -42,6 +42,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_lvds.h" #include "intel_panel.h" /* Private structure for the integrated LVDS support */
drivers/gpu/drm/i915/intel_lvds.h new file +22 -0
@@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_LVDS_H__ +#define __INTEL_LVDS_H__ + +#include <linux/types.h> + +#include "i915_reg.h" + +enum pipe ; +struct drm_i915_private ; + +bool intel_lvds_port_enabled (struct drm_i915_private *dev_priv, +i915_reg_t lvds_reg,enum pipe *pipe); +void intel_lvds_init (struct drm_i915_private *dev_priv); +struct intel_encoder *intel_get_lvds_encoder (struct drm_i915_private *dev_priv); +bool intel_is_dual_link_lvds (struct drm_i915_private *dev_priv); + +#endif /* __INTEL_LVDS_H__ */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 22/25 drm/i915: extract intel_dvo.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 2 -- drivers/gpu/drm/i915/intel_dvo.c | 1 + drivers/gpu/drm/i915/intel_dvo.h | 13 +++++++++++++ 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_dvo.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -17,6 +17,7 @@ header_test := \ intel_csr.h \ intel_ddi.h \ intel_dp.h \ + intel_dvo.h \ intel_engine_types.h \ intel_fbc.h \ intel_fbdev.h \
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -55,6 +55,7 @@#include "intel_dp.h" #include "intel_drv.h" #include "intel_dsi.h" +#include "intel_dvo.h" #include "intel_fbc.h" #include "intel_fbdev.h" #include "intel_frontbuffer.h"
drivers/gpu/drm/i915/intel_drv.h +0 -2
@@ -1874,8 +1874,6 @@ void icl_dsi_init(struct drm_i915_private *dev_priv);/* intel_dsi_dcs_backlight.c */ int intel_dsi_dcs_init_backlight_funcs (struct intel_connector *intel_connector); -/* intel_dvo.c */ -void intel_dvo_init (struct drm_i915_private *dev_priv);/* intel_hotplug.c */ void intel_hpd_poll_init (struct drm_i915_private *dev_priv); bool intel_encoder_hotplug(struct intel_encoder *encoder,
drivers/gpu/drm/i915/intel_dvo.c +1 -0
@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_connector.h" #include "intel_drv.h" +#include "intel_dvo.h" #include "intel_panel.h" #define SIL164_ADDR 0x38
drivers/gpu/drm/i915/intel_dvo.h new file +13 -0
@@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_DVO_H__ +#define __INTEL_DVO_H__ + +struct drm_i915_private ; + +void intel_dvo_init (struct drm_i915_private *dev_priv); + +#endif /* __INTEL_DVO_H__ */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 23/25 drm/i915: extract intel_sprite.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/intel_atomic.c | 1 + drivers/gpu/drm/i915/intel_atomic_plane.c | 1 + drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 35 --------------- drivers/gpu/drm/i915/intel_pm.c | 1 + drivers/gpu/drm/i915/intel_psr.c | 1 + drivers/gpu/drm/i915/intel_sprite.c | 1 + drivers/gpu/drm/i915/intel_sprite.h | 55 +++++++++++++++++++++++ 10 files changed, 63 insertions(+), 35 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_sprite.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -31,6 +31,7 @@ header_test := \ intel_pm.h \ intel_psr.h \ intel_sdvo.h \ + intel_sprite.h \ intel_tv.h \ intel_workarounds_types.h
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -59,6 +59,7 @@#include "intel_drv.h" #include "intel_fbdev.h" #include "intel_pm.h" +#include "intel_sprite.h" #include "intel_uc.h" #include "intel_workarounds.h"
drivers/gpu/drm/i915/intel_atomic.c +1 -0
@@ -36,6 +36,7 @@#include "intel_drv.h" #include "intel_hdcp.h" +#include "intel_sprite.h" /** * intel_digital_connector_atomic_get_property - hook for connector->atomic_get_property.
drivers/gpu/drm/i915/intel_atomic_plane.c +1 -0
@@ -38,6 +38,7 @@#include "intel_atomic_plane.h" #include "intel_drv.h" #include "intel_pm.h" +#include "intel_sprite.h" struct intel_plane *intel_plane_alloc (void ) {
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -66,6 +66,7 @@#include "intel_pm.h" #include "intel_psr.h" #include "intel_sdvo.h" +#include "intel_sprite.h" #include "intel_tv.h" /* Primary plane formats for gen <= 3 */
drivers/gpu/drm/i915/intel_drv.h +0 -35
@@ -2038,41 +2038,6 @@ void chv_phy_powergate_lanes(struct intel_encoder *encoder,bool chv_phy_powergate_ch (struct drm_i915_private *dev_priv,enum dpio_phy phy,enum dpio_channel ch,bool override); -/* intel_sprite.c */ -bool is_planar_yuv_format (u32 pixelformat); -int intel_usecs_to_scanlines (const struct drm_display_mode *adjusted_mode, -int usecs); -struct intel_plane *intel_sprite_plane_create (struct drm_i915_private *dev_priv, -enum pipe pipe,int plane); -int intel_sprite_set_colorkey_ioctl (struct drm_device *dev,void *data, -struct drm_file *file_priv); -void intel_pipe_update_start (const struct intel_crtc_state *new_crtc_state); -void intel_pipe_update_end (struct intel_crtc_state *new_crtc_state); -int intel_plane_check_stride (const struct intel_plane_state *plane_state); -int intel_plane_check_src_coordinates (struct intel_plane_state *plane_state); -int chv_plane_check_rotation (const struct intel_plane_state *plane_state); -struct intel_plane * -skl_universal_plane_create (struct drm_i915_private *dev_priv, -enum pipe pipe,enum plane_id plane_id); - -static inline bool icl_is_nv12_y_plane (enum plane_id id) -{ -/* Don't need to do a gen check, these planes are only available on gen11 */ -if (id ==PLANE_SPRITE4 || id ==PLANE_SPRITE5 ) -return true; - -return false; -} - -static inline bool icl_is_hdr_plane (struct drm_i915_private *dev_priv, -enum plane_id plane_id) -{ -if (INTEL_GEN (dev_priv) <11 ) -return false; - -return plane_id <PLANE_SPRITE2 ; -} -/* intel_atomic.c */ int intel_digital_connector_atomic_get_property(struct drm_connector *connector, const struct drm_connector_state *state,
drivers/gpu/drm/i915/intel_pm.c +1 -0
@@ -37,6 +37,7 @@#include "intel_drv.h" #include "intel_fbc.h" #include "intel_pm.h" +#include "intel_sprite.h" #include "../../../platform/x86/intel_ips.h" /**
drivers/gpu/drm/i915/intel_psr.c +1 -0
@@ -27,6 +27,7 @@#include "intel_dp.h" #include "intel_drv.h" #include "intel_psr.h" +#include "intel_sprite.h" /** * DOC: Panel Self Refresh (PSR/SRD)
drivers/gpu/drm/i915/intel_sprite.c +1 -0
@@ -45,6 +45,7 @@#include "intel_frontbuffer.h" #include "intel_pm.h" #include "intel_psr.h" +#include "intel_sprite.h" bool is_planar_yuv_format (u32 pixelformat) {
drivers/gpu/drm/i915/intel_sprite.h new file +55 -0
55 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 24/25 drm/i915: extract intel_cdclk.h from intel_drv.h
In reply to Jani NikulaIt used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver.
Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed.
No functional changes.
--- drivers/gpu/drm/i915/Makefile.header-test | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/intel_cdclk.c | 1 + drivers/gpu/drm/i915/intel_cdclk.h | 52 +++++++++++++++++++++++ drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 35 --------------- drivers/gpu/drm/i915/intel_runtime_pm.c | 1 + 7 files changed, 57 insertions(+), 35 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_cdclk.h
drivers/gpu/drm/i915/Makefile.header-test +1 -0
@@ -10,6 +10,7 @@ header_test := \ i915_timeline_types.h \ intel_atomic_plane.h \ intel_audio.h \ + intel_cdclk.h \ intel_color.h \ intel_connector.h \ intel_context_types.h \
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -54,6 +54,7 @@#include "i915_trace.h" #include "i915_vgpu.h" #include "intel_audio.h" +#include "intel_cdclk.h" #include "intel_csr.h" #include "intel_dp.h" #include "intel_drv.h"
drivers/gpu/drm/i915/intel_cdclk.c +1 -0
@@ -21,6 +21,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "intel_cdclk.h" #include "intel_drv.h" /**
drivers/gpu/drm/i915/intel_cdclk.h new file +52 -0
52 lines not on this page · raw message
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -50,6 +50,7 @@#include "i915_trace.h" #include "intel_atomic_plane.h" #include "intel_color.h" +#include "intel_cdclk.h" #include "intel_crt.h" #include "intel_ddi.h" #include "intel_dp.h"
drivers/gpu/drm/i915/intel_drv.h +0 -35
@@ -1629,41 +1629,6 @@ void gen9_reset_guc_interrupts(struct drm_i915_private *dev_priv);void gen9_enable_guc_interrupts (struct drm_i915_private *dev_priv);void gen9_disable_guc_interrupts (struct drm_i915_private *dev_priv); -/* intel_cdclk.c */ -int intel_crtc_compute_min_cdclk (const struct intel_crtc_state *crtc_state); -void skl_init_cdclk (struct drm_i915_private *dev_priv); -void skl_uninit_cdclk (struct drm_i915_private *dev_priv); -void cnl_init_cdclk (struct drm_i915_private *dev_priv); -void cnl_uninit_cdclk (struct drm_i915_private *dev_priv); -void bxt_init_cdclk (struct drm_i915_private *dev_priv); -void bxt_uninit_cdclk (struct drm_i915_private *dev_priv); -void icl_init_cdclk (struct drm_i915_private *dev_priv); -void icl_uninit_cdclk (struct drm_i915_private *dev_priv); -void intel_init_cdclk_hooks (struct drm_i915_private *dev_priv); -void intel_update_max_cdclk (struct drm_i915_private *dev_priv); -void intel_update_cdclk (struct drm_i915_private *dev_priv); -void intel_update_rawclk (struct drm_i915_private *dev_priv); -bool intel_cdclk_needs_cd2x_update (struct drm_i915_private *dev_priv, -const struct intel_cdclk_state *a, -const struct intel_cdclk_state *b); -bool intel_cdclk_needs_modeset (const struct intel_cdclk_state *a, -const struct intel_cdclk_state *b); -bool intel_cdclk_changed (const struct intel_cdclk_state *a, -const struct intel_cdclk_state *b); -void intel_cdclk_swap_state (struct intel_atomic_state *state); -void -intel_set_cdclk_pre_plane_update (struct drm_i915_private *dev_priv, -const struct intel_cdclk_state *old_state, -const struct intel_cdclk_state *new_state, -enum pipe pipe); -void -intel_set_cdclk_post_plane_update (struct drm_i915_private *dev_priv, -const struct intel_cdclk_state *old_state, -const struct intel_cdclk_state *new_state, -enum pipe pipe); -void intel_dump_cdclk_state (const struct intel_cdclk_state *cdclk_state, -const char *context); -/* intel_display.c */ void intel_plane_destroy (struct drm_plane *plane);void i830_enable_pipe (struct drm_i915_private *dev_priv,enum pipe pipe);
drivers/gpu/drm/i915/intel_runtime_pm.c +1 -0
@@ -32,6 +32,7 @@#include <drm/drm_print.h> #include "i915_drv.h" +#include "intel_cdclk.h" #include "intel_crt.h" #include "intel_csr.h" #include "intel_dp.h"
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 25/25 drm/i915/cdclk: have only one init/uninit function
In reply to Jani NikulaWhile transitioning to having better clarity between the modules, it's desirable to have the function name prefixes reflect the module. Functions in intel_foo.c should be prefixed intel_foo_.
Expose only one CDCLK init/uninit function from intel_cdclk.c instead of one per platform. Obviously this adds one "unnecessary" if ladder within the entry points. However it should be considered more of a CDCLK implementation detail how this is done per platform, instead of exposing the fact. In other words, abstract the CDCLK module better.
No functional changes.
--- drivers/gpu/drm/i915/intel_cdclk.c | 120 ++++++++++-------------- drivers/gpu/drm/i915/intel_cdclk.h | 10 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 16 ++-- 3 files changed, 58 insertions(+), 88 deletions(-)
drivers/gpu/drm/i915/intel_cdclk.c +48 -72
@@ -1129,16 +1129,7 @@ static void skl_sanitize_cdclk(struct drm_i915_private *dev_priv) dev_priv->cdclk.hw.vco =-1 ; } -/** -* skl_init_cdclk - Initialize CDCLK on SKL -* @dev_priv: i915 device -* -* Initialize CDCLK for SKL and derivatives. This is generally -* done only during the display core initialization sequence, -* after which the DMC will take care of turning CDCLK off/on -* as needed. -*/ -void skl_init_cdclk (struct drm_i915_private *dev_priv) +static void skl_init_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state cdclk_state;
@@ -1167,14 +1158,7 @@ void skl_init_cdclk(struct drm_i915_private *dev_priv)skl_set_cdclk (dev_priv, &cdclk_state,INVALID_PIPE ); } -/** -* skl_uninit_cdclk - Uninitialize CDCLK on SKL -* @dev_priv: i915 device -* -* Uninitialize CDCLK for SKL and derivatives. This is done only -* during the display core uninitialization sequence. -*/ -void skl_uninit_cdclk (struct drm_i915_private *dev_priv) +static void skl_uninit_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state cdclk_state = dev_priv->cdclk.hw;
@@ -1499,16 +1483,7 @@ static void bxt_sanitize_cdclk(struct drm_i915_private *dev_priv) dev_priv->cdclk.hw.vco =-1 ; } -/** -* bxt_init_cdclk - Initialize CDCLK on BXT -* @dev_priv: i915 device -* -* Initialize CDCLK for BXT and derivatives. This is generally -* done only during the display core initialization sequence, -* after which the DMC will take care of turning CDCLK off/on -* as needed. -*/ -void bxt_init_cdclk (struct drm_i915_private *dev_priv) +static void bxt_init_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state cdclk_state;
@@ -1537,14 +1512,7 @@ void bxt_init_cdclk(struct drm_i915_private *dev_priv)bxt_set_cdclk (dev_priv, &cdclk_state,INVALID_PIPE ); } -/** -* bxt_uninit_cdclk - Uninitialize CDCLK on BXT -* @dev_priv: i915 device -* -* Uninitialize CDCLK for BXT and derivatives. This is done only -* during the display core uninitialization sequence. -*/ -void bxt_uninit_cdclk (struct drm_i915_private *dev_priv) +static void bxt_uninit_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state cdclk_state = dev_priv->cdclk.hw;
@@ -1977,16 +1945,7 @@ static void icl_get_cdclk(struct drm_i915_private *dev_priv,icl_calc_voltage_level (cdclk_state->cdclk); } -/** -* icl_init_cdclk - Initialize CDCLK on ICL -* @dev_priv: i915 device -* -* Initialize CDCLK for ICL. This consists mainly of initializing -* dev_priv->cdclk.hw and sanitizing the state of the hardware if needed. This -* is generally done only during the display core initialization sequence, after -* which the DMC will take care of turning CDCLK off/on as needed. -*/ -void icl_init_cdclk (struct drm_i915_private *dev_priv) +static void icl_init_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state sanitized_state;u32 val;
@@ -2023,14 +1982,7 @@ void icl_init_cdclk(struct drm_i915_private *dev_priv)icl_set_cdclk (dev_priv, &sanitized_state,INVALID_PIPE ); } -/** -* icl_uninit_cdclk - Uninitialize CDCLK on ICL -* @dev_priv: i915 device -* -* Uninitialize CDCLK for ICL. This is done only during the display core -* uninitialization sequence. -*/ -void icl_uninit_cdclk (struct drm_i915_private *dev_priv) +static void icl_uninit_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state cdclk_state = dev_priv->cdclk.hw;
@@ -2041,16 +1993,7 @@ void icl_uninit_cdclk(struct drm_i915_private *dev_priv)icl_set_cdclk (dev_priv, &cdclk_state,INVALID_PIPE ); } -/** -* cnl_init_cdclk - Initialize CDCLK on CNL -* @dev_priv: i915 device -* -* Initialize CDCLK for CNL. This is generally -* done only during the display core initialization sequence, -* after which the DMC will take care of turning CDCLK off/on -* as needed. -*/ -void cnl_init_cdclk (struct drm_i915_private *dev_priv) +static void cnl_init_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state cdclk_state;
@@ -2069,14 +2012,7 @@ void cnl_init_cdclk(struct drm_i915_private *dev_priv)cnl_set_cdclk (dev_priv, &cdclk_state,INVALID_PIPE ); } -/** -* cnl_uninit_cdclk - Uninitialize CDCLK on CNL -* @dev_priv: i915 device -* -* Uninitialize CDCLK for CNL. This is done only -* during the display core uninitialization sequence. -*/ -void cnl_uninit_cdclk (struct drm_i915_private *dev_priv) +static void cnl_uninit_cdclk (struct drm_i915_private *dev_priv) {struct intel_cdclk_state cdclk_state = dev_priv->cdclk.hw;
@@ -2087,6 +2023,46 @@ void cnl_uninit_cdclk(struct drm_i915_private *dev_priv)cnl_set_cdclk (dev_priv, &cdclk_state,INVALID_PIPE ); } +/** +* intel_cdclk_init - Initialize CDCLK +* @i915: i915 device +* +* Initialize CDCLK. This consists mainly of initializing dev_priv->cdclk.hw and +* sanitizing the state of the hardware if needed. This is generally done only +* during the display core initialization sequence, after which the DMC will +* take care of turning CDCLK off/on as needed. +*/ +void intel_cdclk_init (struct drm_i915_private *i915) +{ +if (IS_ICELAKE (i915)) +icl_init_cdclk (i915); +else if (IS_CANNONLAKE (i915)) +cnl_init_cdclk (i915); +else if (IS_GEN9_BC (i915)) +skl_init_cdclk (i915); +else if (IS_GEN9_LP (i915)) +bxt_init_cdclk (i915); +} + +/** +* intel_cdclk_uninit - Uninitialize CDCLK +* @i915: i915 device +* +* Uninitialize CDCLK. This is done only during the display core +* uninitialization sequence. +*/ +void intel_cdclk_uninit (struct drm_i915_private *i915) +{ +if (IS_ICELAKE (i915)) +icl_uninit_cdclk (i915); +else if (IS_CANNONLAKE (i915)) +cnl_uninit_cdclk (i915); +else if (IS_GEN9_BC (i915)) +skl_uninit_cdclk (i915); +else if (IS_GEN9_LP (i915)) +bxt_uninit_cdclk (i915); +} +/** * intel_cdclk_needs_modeset - Determine if two CDCLK states require a modeset on all pipes * @a: first CDCLK state
drivers/gpu/drm/i915/intel_cdclk.h +2 -8
@@ -16,14 +16,8 @@ struct intel_cdclk_state;struct intel_crtc_state ;int intel_crtc_compute_min_cdclk (const struct intel_crtc_state *crtc_state); -void skl_init_cdclk (struct drm_i915_private *dev_priv); -void skl_uninit_cdclk (struct drm_i915_private *dev_priv); -void cnl_init_cdclk (struct drm_i915_private *dev_priv); -void cnl_uninit_cdclk (struct drm_i915_private *dev_priv); -void bxt_init_cdclk (struct drm_i915_private *dev_priv); -void bxt_uninit_cdclk (struct drm_i915_private *dev_priv); -void icl_init_cdclk (struct drm_i915_private *dev_priv); -void icl_uninit_cdclk (struct drm_i915_private *dev_priv); +void intel_cdclk_init (struct drm_i915_private *i915); +void intel_cdclk_uninit (struct drm_i915_private *i915);void intel_init_cdclk_hooks (struct drm_i915_private *dev_priv);void intel_update_max_cdclk (struct drm_i915_private *dev_priv);void intel_update_cdclk (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/intel_runtime_pm.c +8 -8
@@ -3664,7 +3664,7 @@ static void skl_display_core_init(struct drm_i915_private *dev_priv,mutex_unlock (&power_domains->lock); -skl_init_cdclk (dev_priv); +intel_cdclk_init (dev_priv);gen9_dbuf_enable (dev_priv);
@@ -3681,7 +3681,7 @@ static void skl_display_core_uninit(struct drm_i915_private *dev_priv)gen9_dbuf_disable (dev_priv); -skl_uninit_cdclk (dev_priv); +intel_cdclk_uninit (dev_priv);/* The spec doesn't call for removing the reset handshake flag */ /* disable PG1 and Misc I/O */
@@ -3726,7 +3726,7 @@ void bxt_display_core_init(struct drm_i915_private *dev_priv,mutex_unlock (&power_domains->lock); -bxt_init_cdclk (dev_priv); +intel_cdclk_init (dev_priv);gen9_dbuf_enable (dev_priv);
@@ -3743,7 +3743,7 @@ void bxt_display_core_uninit(struct drm_i915_private *dev_priv)gen9_dbuf_disable (dev_priv); -bxt_uninit_cdclk (dev_priv); +intel_cdclk_uninit (dev_priv);/* The spec doesn't call for removing the reset handshake flag */
@@ -3785,7 +3785,7 @@ static void cnl_display_core_init(struct drm_i915_private *dev_priv, bool resumemutex_unlock (&power_domains->lock);/* 5. Enable CD clock */ -cnl_init_cdclk (dev_priv); +intel_cdclk_init (dev_priv);/* 6. Enable DBUF */ gen9_dbuf_enable (dev_priv);
@@ -3807,7 +3807,7 @@ static void cnl_display_core_uninit(struct drm_i915_private *dev_priv)gen9_dbuf_disable (dev_priv);/* 3. Disable CD clock */ -cnl_uninit_cdclk (dev_priv); +intel_cdclk_uninit (dev_priv);/* * 4. Disable Power Well 1 (PG1).
@@ -3849,7 +3849,7 @@ void icl_display_core_init(struct drm_i915_private *dev_priv,mutex_unlock (&power_domains->lock);/* 5. Enable CDCLK. */ -icl_init_cdclk (dev_priv); +intel_cdclk_init (dev_priv);/* 6. Enable DBUF. */ icl_dbuf_enable (dev_priv);
@@ -3874,7 +3874,7 @@ void icl_display_core_uninit(struct drm_i915_private *dev_priv)icl_dbuf_disable (dev_priv);/* 3. Disable CD clock */ -icl_uninit_cdclk (dev_priv); +intel_cdclk_uninit (dev_priv);/* * 4. Disable Power Well 1 (PG1).
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915: the great header refactoring, part one (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: the great header refactoring, part one (rev2)
URL : https://patchwork.freedesktop.org/series/59022/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 7dd28bb15c13 drm/i915: make intel_frontbuffer.h self-contained 1c4845705dd7 drm/i915: extract intel_audio.h from intel_drv.h -:96: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #96: new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 178 lines checked38232a6560e4 drm/i915: extract intel_crt.h from intel_drv.h
-:57: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #57:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 86 lines checkedd3d1b197eae6 drm/i915: extract intel_ddi.h from intel_drv.h
-:75: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #75:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 163 lines checkedb71989d51260 drm/i915: extract intel_connector.h from intel_drv.h
-:69: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #69:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 231 lines checkedfa52f7f70c10 drm/i915: extract intel_csr.h from intel_drv.h
-:66: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #66:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 63 lines checked72b59056d9db drm/i915: extract intel_fbc.h from intel_drv.h
-:151: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #151:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 158 lines checked155ee6b0ddd6 drm/i915: extract intel_psr.h from intel_drv.h
-:203: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #203:
new file mode 100644
-:222: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dev_priv' - possible side-effects? #222: FILE: drivers/gpu/drm/i915/intel_psr.h:15:
+#define CAN_PSR(dev_priv) (HAS_PSR(dev_priv) && dev_priv->psr.sink_support)
-:232: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #232: FILE: drivers/gpu/drm/i915/intel_psr.h:25:
+ unsigned frontbuffer_bits,
-:235: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #235: FILE: drivers/gpu/drm/i915/intel_psr.h:28:
+ unsigned frontbuffer_bits,
total: 0 errors, 3 warnings, 1 checks, 192 lines checkedf695ba7c7197 drm/i915: extract intel_color.h from intel_drv.h
-:47: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #47:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 50 lines checked23f5cad48977 drm/i915: extract intel_lspcon.h from intel_drv.h
-:122: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #122:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 107 lines checked3072c769395b drm/i915: extract intel_sdvo.h from intel_drv.h
-:89: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #89:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 64 lines checkedc10004c97f07 drm/i915: extract intel_hdcp.h from intel_drv.h
-:158: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #158:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 130 lines checkeddd94498ded80 drm/i915: extract intel_panel.h from intel_drv.h
-:203: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #203:
new file mode 100644
-:267: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #267: FILE: drivers/gpu/drm/i915/intel_panel.h:60:
+}
+static inline void intel_backlight_device_unregister(struct intel_connector *connector)
total: 0 errors, 1 warnings, 1 checks, 204 lines checked5281fe57b82b drm/i915: extract intel_pm.h from intel_drv.h
-:205: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #205:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 228 lines checked53962f585c19 drm/i915: extract intel_fbdev.h from intel_drv.h
-:162: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #162:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 162 lines checked7c68e0c09f32 drm/i915: extract intel_dp.h from intel_drv.h
-:95: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #95:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 336 lines checkeddb9eb9ce6912 drm/i915: extract intel_hdmi.h from intel_drv.h
-:162: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #162:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 161 lines checkedcb48fc298613 drm/i915: extract intel_atomic_plane.h from intel_drv.h
-:49: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #49:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 98 lines checked343a406bddad drm/i915: extract intel_pipe_crc.h from intel_drv.h
-:96: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #96:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 88 lines checked1ed1091c7f13 drm/i915: extract intel_tv.h from intel_drv.h
-:73: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #73:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 43 lines checked8d7fa0132482 drm/i915: extract intel_lvds.h from intel_drv.h
-:89: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #89:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 63 lines checked1e168fb624e2 drm/i915: extract intel_dvo.h from intel_drv.h
-:72: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #72:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 42 lines checkedb4673c1802b2 drm/i915: extract intel_sprite.h from intel_drv.h
-:165: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #165:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 152 lines checked727651faff74 drm/i915: extract intel_cdclk.h from intel_drv.h
-:59: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #59:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 128 lines checked 8a2a62bb3557 drm/i915/cdclk: have only one init/uninit function
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for drm/i915: the great header refactoring, part one (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: the great header refactoring, part one (rev2)
URL : https://patchwork.freedesktop.org/series/59022/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: make intel_frontbuffer.h self-contained -drivers/gpu/drm/i915/selftests/../i915_drv.h:3623:16: warning: expression using sizeof(void) +drivers/gpu/drm/i915/selftests/../i915_drv.h:3616:16: warning: expression using sizeof(void) +./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0)
Commit: drm/i915: extract intel_audio.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_crt.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_ddi.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_connector.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_csr.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_fbc.h from intel_drv.h+./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0)
Commit: drm/i915: extract intel_psr.h from intel_drv.h+./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0)
Commit: drm/i915: extract intel_color.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_lspcon.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_sdvo.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_hdcp.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_panel.h from intel_drv.h -drivers/gpu/drm/i915/vlv_dsi.c:116:33: warning: expression using sizeof(void) +drivers/gpu/drm/i915/vlv_dsi.c:116:33: warning: expression using sizeof(void)
Commit: drm/i915: extract intel_pm.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_fbdev.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_dp.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_hdmi.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_atomic_plane.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_pipe_crc.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_tv.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_lvds.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_dvo.h from intel_drv.h Okay!
Commit: drm/i915: extract intel_sprite.h from intel_drv.h+./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0)
Commit: drm/i915: extract intel_cdclk.h from intel_drv.h Okay!
Commit: drm/i915/cdclk: have only one init/uninit function Okay!
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: the great header refactoring, part one (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: the great header refactoring, part one (rev2)
URL : https://patchwork.freedesktop.org/series/59022/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5878 -> Patchwork_12694
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/59022/revisions/2/mbox/
Known issues
------------
Here are the changes found in Patchwork_12694 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_cpu_reloc@basic:
- fi-icl-y: PASS -> INCOMPLETE [fdo#110246]
* igt@gem_ctx_create@basic-files:
- fi-gdg-551: NOTRUN -> SKIP [fdo#109271] +106
* igt@kms_busy@basic-flip-a:
- fi-bsw-n3050: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +1
* igt@kms_busy@basic-flip-c:
- fi-skl-6770hq: PASS -> SKIP [fdo#109271] / [fdo#109278] +2
- fi-gdg-551: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
* igt@kms_chamelium@hdmi-crc-fast:
- fi-bsw-n3050: NOTRUN -> SKIP [fdo#109271] +62
* igt@kms_chamelium@vga-edid-read:
- fi-hsw-4770r: NOTRUN -> SKIP [fdo#109271] +45
* igt@kms_flip@basic-flip-vs-dpms:
- fi-skl-6770hq: PASS -> SKIP [fdo#109271] +33
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- fi-byt-clapper: PASS -> FAIL [fdo#103191] / [fdo#107362] +1
#### Possible fixes ####
* igt@gem_mmap@basic-small-bo:
- {fi-icl-u3}: DMESG-WARN [fdo#107724] -> PASS
* igt@i915_selftest@live_uncore:
- fi-ivb-3770: DMESG-FAIL [fdo#110210] -> PASS
* igt@kms_frontbuffer_tracking@basic:
- fi-byt-clapper: FAIL [fdo#103167] -> PASS
* igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
- fi-byt-clapper: FAIL [fdo#103191] / [fdo#107362] -> PASS
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#110210]: https://bugs.freedesktop.org/show_bug.cgi?id=110210
[fdo#110246]: https://bugs.freedesktop.org/show_bug.cgi?id=110246
Participating hosts (46 -> 44)
------------------------------
Additional (3): fi-hsw-4770r fi-gdg-551 fi-bsw-n3050
Missing (5): fi-kbl-soraka fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-skl-6600u
Build changes
-------------
* Linux: CI_DRM_5878 -> Patchwork_12694
CI_DRM_5878: ae3367460fdf5e6f5a47038c1281b502817184e1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4931: 019f892e5d1a0a9643cb726c47ce2d99c14b444f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12694: 8a2a62bb3557a16ffc60167fe4b49e21e63f9405 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
8a2a62bb3557 drm/i915/cdclk: have only one init/uninit function 727651faff74 drm/i915: extract intel_cdclk.h from intel_drv.h b4673c1802b2 drm/i915: extract intel_sprite.h from intel_drv.h 1e168fb624e2 drm/i915: extract intel_dvo.h from intel_drv.h 8d7fa0132482 drm/i915: extract intel_lvds.h from intel_drv.h 1ed1091c7f13 drm/i915: extract intel_tv.h from intel_drv.h 343a406bddad drm/i915: extract intel_pipe_crc.h from intel_drv.h cb48fc298613 drm/i915: extract intel_atomic_plane.h from intel_drv.h db9eb9ce6912 drm/i915: extract intel_hdmi.h from intel_drv.h 7c68e0c09f32 drm/i915: extract intel_dp.h from intel_drv.h 53962f585c19 drm/i915: extract intel_fbdev.h from intel_drv.h 5281fe57b82b drm/i915: extract intel_pm.h from intel_drv.h dd94498ded80 drm/i915: extract intel_panel.h from intel_drv.h c10004c97f07 drm/i915: extract intel_hdcp.h from intel_drv.h 3072c769395b drm/i915: extract intel_sdvo.h from intel_drv.h 23f5cad48977 drm/i915: extract intel_lspcon.h from intel_drv.h f695ba7c7197 drm/i915: extract intel_color.h from intel_drv.h 155ee6b0ddd6 drm/i915: extract intel_psr.h from intel_drv.h 72b59056d9db drm/i915: extract intel_fbc.h from intel_drv.h fa52f7f70c10 drm/i915: extract intel_csr.h from intel_drv.h b71989d51260 drm/i915: extract intel_connector.h from intel_drv.h d3d1b197eae6 drm/i915: extract intel_ddi.h from intel_drv.h 38232a6560e4 drm/i915: extract intel_crt.h from intel_drv.h 1c4845705dd7 drm/i915: extract intel_audio.h from intel_drv.h 7dd28bb15c13 drm/i915: make intel_frontbuffer.h self-contained
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12694/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: the great header refactoring, part one (rev2)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/i915: the great header refactoring, part one (rev2)
URL : https://patchwork.freedesktop.org/series/59022/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5878_full -> Patchwork_12694_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_12694_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_nop@basic-series:
- shard-iclb: PASS -> INCOMPLETE [fdo#109100]
* igt@gem_exec_schedule@pi-ringfull-bsd2:
- shard-iclb: NOTRUN -> SKIP [fdo#109276] +2
* igt@gem_exec_suspend@basic-s3-devices:
- shard-iclb: PASS -> DMESG-WARN [fdo#109638]
* igt@gem_mmap_gtt@hang:
- shard-iclb: PASS -> FAIL [fdo#109677]
* igt@gem_ppgtt@blt-vs-render-ctxn:
- shard-iclb: PASS -> INCOMPLETE [fdo#109801]
* igt@gem_pwrite@huge-cpu-fbr:
- shard-iclb: NOTRUN -> SKIP [fdo#109290]
* igt@gem_tiled_swapping@non-threaded:
- shard-iclb: PASS -> INCOMPLETE [fdo#108686]
* igt@i915_pm_rps@min-max-config-loaded:
- shard-iclb: NOTRUN -> FAIL [fdo#108059]
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-a:
- shard-iclb: PASS -> DMESG-WARN [fdo#110222]
* igt@kms_chamelium@dp-hpd-storm-disable:
- shard-iclb: NOTRUN -> SKIP [fdo#109284]
* igt@kms_cursor_crc@cursor-64x64-suspend:
- shard-skl: PASS -> INCOMPLETE [fdo#104108]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: PASS -> FAIL [fdo#104873]
* igt@kms_flip@2x-flip-vs-panning-vs-hang-interruptible:
- shard-iclb: NOTRUN -> SKIP [fdo#109274] +1
* igt@kms_flip@busy-flip-interruptible:
- shard-skl: PASS -> FAIL [fdo#103257]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-cpu:
- shard-apl: NOTRUN -> SKIP [fdo#109271] +22
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt:
- shard-snb: NOTRUN -> SKIP [fdo#109271] +40
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-blt:
- shard-iclb: NOTRUN -> SKIP [fdo#109280] +2
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: PASS -> FAIL [fdo#103167] +5
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-shrfb-draw-render:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] +19
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-cpu:
- shard-iclb: PASS -> FAIL [fdo#109247] +20
* igt@kms_frontbuffer_tracking@psr-rgb565-draw-blt:
- shard-skl: PASS -> FAIL [fdo#103167]
* igt@kms_pipe_crc_basic@hang-read-crc-pipe-d:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +1
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b-frame-sequence:
- shard-skl: PASS -> FAIL [fdo#103191] / [fdo#107362]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-skl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +8
* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-glk: PASS -> SKIP [fdo#109271]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-skl: NOTRUN -> FAIL [fdo#107815] / [fdo#108145]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: PASS -> FAIL [fdo#108145]
* igt@kms_plane_alpha_blend@pipe-c-alpha-transparant-fb:
- shard-skl: NOTRUN -> FAIL [fdo#108145] +1
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-snb: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2
* igt@kms_plane_scaling@pipe-c-scaler-with-clipping-clamping:
- shard-apl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2
* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-iclb: PASS -> SKIP [fdo#109441] +3
* igt@kms_psr@sprite_mmap_cpu:
- shard-iclb: PASS -> FAIL [fdo#107383] / [fdo#110215] +1
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: PASS -> FAIL [fdo#109016]
* igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend:
- shard-apl: PASS -> FAIL [fdo#104894] +1
* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-iclb: PASS -> FAIL [fdo#104894]
* igt@perf_pmu@busy-accuracy-50-vcs1:
- shard-skl: NOTRUN -> SKIP [fdo#109271] +121
* igt@prime_busy@hang-bsd:
- shard-glk: PASS -> INCOMPLETE [fdo#103359] / [k.org#198133]
#### Possible fixes ####
* igt@gem_linear_blits@normal:
- shard-iclb: TIMEOUT [fdo#109673] -> PASS
* igt@i915_pm_rpm@debugfs-forcewake-user:
- shard-skl: INCOMPLETE [fdo#107807] -> PASS
* igt@i915_pm_rpm@i2c:
- shard-iclb: DMESG-WARN [fdo#109982] -> PASS
* igt@i915_selftest@live_workarounds:
- shard-iclb: DMESG-FAIL [fdo#108954] -> PASS
* igt@kms_atomic_transition@1x-modeset-transitions-nonblocking-fencing:
- shard-apl: FAIL [fdo#109660] -> PASS
* igt@kms_atomic_transition@plane-toggle-modeset-transition:
- shard-apl: INCOMPLETE [fdo#103927] -> PASS
* igt@kms_cursor_crc@cursor-256x256-suspend:
- shard-skl: INCOMPLETE [fdo#104108] -> PASS
* igt@kms_flip@modeset-vs-vblank-race:
- shard-kbl: FAIL [fdo#103060] -> PASS
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-blt:
- shard-iclb: FAIL [fdo#109247] -> PASS +18
* igt@kms_frontbuffer_tracking@fbcpsr-1p-pri-indfb-multidraw:
- shard-iclb: FAIL [fdo#103167] -> PASS +2
* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-pwrite:
- shard-iclb: FAIL [fdo#105682] / [fdo#109247] -> PASS +1
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: FAIL [fdo#107815] / [fdo#108145] -> PASS
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: FAIL [fdo#107815] -> PASS
* igt@kms_plane_scaling@pipe-a-scaler-with-clipping-clamping:
- shard-glk: SKIP [fdo#109271] / [fdo#109278] -> PASS
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: SKIP [fdo#109441] -> PASS
* igt@kms_psr@sprite_mmap_gtt:
- shard-iclb: FAIL [fdo#107383] / [fdo#110215] -> PASS +2
* igt@kms_rotation_crc@multiplane-rotation:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-iclb: FAIL [fdo#103375] -> PASS
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-apl: FAIL [fdo#104894] -> PASS
* igt@perf@polling:
- shard-iclb: FAIL [fdo#108587] -> PASS
[fdo#103060]: https://bugs.freedesktop.org/show_bug.cgi?id=103060
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#103257]: https://bugs.freedesktop.org/show_bug.cgi?id=103257
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#104873]: https://bugs.freedesktop.org/show_bug.cgi?id=104873
[fdo#104894]: https://bugs.freedesktop.org/show_bug.cgi?id=104894
[fdo#105682]: https://bugs.freedesktop.org/show_bug.cgi?id=105682
[fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
[fdo#107383]: https://bugs.freedesktop.org/show_bug.cgi?id=107383
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#107815]: https://bugs.freedesktop.org/show_bug.cgi?id=107815
[fdo#108059]: https://bugs.freedesktop.org/show_bug.cgi?id=108059
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108587]: https://bugs.freedesktop.org/show_bug.cgi?id=108587
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#108954]: https://bugs.freedesktop.org/show_bug.cgi?id=108954
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109247]: https://bugs.freedesktop.org/show_bug.cgi?id=109247
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109290]: https://bugs.freedesktop.org/show_bug.cgi?id=109290
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109638]: https://bugs.freedesktop.org/show_bug.cgi?id=109638
[fdo#109660]: https://bugs.freedesktop.org/show_bug.cgi?id=109660
[fdo#109673]: https://bugs.freedesktop.org/show_bug.cgi?id=109673
[fdo#109677]: https://bugs.freedesktop.org/show_bug.cgi?id=109677
[fdo#109801]: https://bugs.freedesktop.org/show_bug.cgi?id=109801
[fdo#109982]: https://bugs.freedesktop.org/show_bug.cgi?id=109982
[fdo#110215]: https://bugs.freedesktop.org/show_bug.cgi?id=110215
[fdo#110222]: https://bugs.freedesktop.org/show_bug.cgi?id=110222
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (10 -> 9)
------------------------------
Missing (1): shard-hsw
Build changes
-------------
* Linux: CI_DRM_5878 -> Patchwork_12694
CI_DRM_5878: ae3367460fdf5e6f5a47038c1281b502817184e1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4931: 019f892e5d1a0a9643cb726c47ce2d99c14b444f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12694: 8a2a62bb3557a16ffc60167fe4b49e21e63f9405 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12694/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 11 lines · Jani Nikula
v2 of [1] with:
- each
foo.cnow includes the corresponding newfoo.hto avoid sparse warnings- minor sparse/checkpatch/whitespace fixes
- commit message tab screwup fixed
I didn't add changelog to each patch for the first two.
Took the liberty of adding Chris' r-b despite the changes.
Pushed the lot, thanks for the review and acks.
BR,
Jani.
Quoted 129 lines
BR,
Jani.[1] https://patchwork.freedesktop.org/series/59022/
Jani Nikula (25):
drm/i915: makeintel_frontbuffer.hself-contained drm/i915: extractintel_audio.hfromintel_drv.hdrm/i915: extractintel_crt.hfromintel_drv.hdrm/i915: extractintel_ddi.hfromintel_drv.hdrm/i915: extractintel_connector.hfromintel_drv.hdrm/i915: extractintel_csr.hfromintel_drv.hdrm/i915: extractintel_fbc.hfromintel_drv.hdrm/i915: extractintel_psr.hfromintel_drv.hdrm/i915: extractintel_color.hfromintel_drv.hdrm/i915: extractintel_lspcon.hfromintel_drv.hdrm/i915: extractintel_sdvo.hfromintel_drv.hdrm/i915: extractintel_hdcp.hfromintel_drv.hdrm/i915: extractintel_panel.hfromintel_drv.hdrm/i915: extractintel_pm.hfromintel_drv.hdrm/i915: extractintel_fbdev.hfromintel_drv.hdrm/i915: extractintel_dp.hfromintel_drv.hdrm/i915: extractintel_hdmi.hfromintel_drv.hdrm/i915: extractintel_atomic_plane.hfromintel_drv.hdrm/i915: extractintel_pipe_crc.hfromintel_drv.hdrm/i915: extractintel_tv.hfromintel_drv.hdrm/i915: extractintel_lvds.hfromintel_drv.hdrm/i915: extractintel_dvo.hfromintel_drv.hdrm/i915: extractintel_sprite.hfromintel_drv.hdrm/i915: extractintel_cdclk.hfromintel_drv.hdrm/i915/cdclk: have only one init/uninit functiondrivers/gpu/drm/i915/Makefile.header-test | 24 + drivers/gpu/drm/i915/i915_debugfs.c | 13 +- drivers/gpu/drm/i915/i915_drv.c | 11 +- drivers/gpu/drm/i915/i915_drv.h | 11 +- drivers/gpu/drm/i915/i915_gem.c | 1 + drivers/gpu/drm/i915/i915_irq.c | 11 +- drivers/gpu/drm/i915/i915_pci.c | 1 + drivers/gpu/drm/i915/i915_request.c | 3 +- drivers/gpu/drm/i915/i915_reset.h | 1 + drivers/gpu/drm/i915/i915_suspend.c | 4 +- drivers/gpu/drm/i915/icl_dsi.c | 6 +- drivers/gpu/drm/i915/intel_atomic.c | 2 + drivers/gpu/drm/i915/intel_atomic_plane.c | 3 + drivers/gpu/drm/i915/intel_atomic_plane.h | 40 ++ drivers/gpu/drm/i915/intel_audio.c | 12 +- drivers/gpu/drm/i915/intel_audio.h | 24 + drivers/gpu/drm/i915/intel_cdclk.c | 121 ++-- drivers/gpu/drm/i915/intel_cdclk.h | 46 ++ drivers/gpu/drm/i915/intel_color.c | 1 + drivers/gpu/drm/i915/intel_color.h | 17 + drivers/gpu/drm/i915/intel_connector.c | 9 +- drivers/gpu/drm/i915/intel_connector.h | 35 ++ drivers/gpu/drm/i915/intel_crt.c | 7 +- drivers/gpu/drm/i915/intel_crt.h | 21 + drivers/gpu/drm/i915/intel_csr.c | 3 + drivers/gpu/drm/i915/intel_csr.h | 17 + drivers/gpu/drm/i915/intel_ddi.c | 10 + drivers/gpu/drm/i915/intel_ddi.h | 53 ++ drivers/gpu/drm/i915/intel_display.c | 28 +- drivers/gpu/drm/i915/intel_dp.c | 20 +- drivers/gpu/drm/i915/intel_dp.h | 121 ++++ drivers/gpu/drm/i915/intel_dp_link_training.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 9 +- drivers/gpu/drm/i915/intel_dpio_phy.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 581 +----------------- drivers/gpu/drm/i915/intel_dvo.c | 10 +- drivers/gpu/drm/i915/intel_dvo.h | 13 + drivers/gpu/drm/i915/intel_fbc.c | 4 +- drivers/gpu/drm/i915/intel_fbc.h | 42 ++ drivers/gpu/drm/i915/intel_fbdev.c | 17 +- drivers/gpu/drm/i915/intel_fbdev.h | 53 ++ drivers/gpu/drm/i915/intel_fifo_underrun.c | 1 + drivers/gpu/drm/i915/intel_frontbuffer.c | 5 +- drivers/gpu/drm/i915/intel_frontbuffer.h | 10 + drivers/gpu/drm/i915/intel_hdcp.c | 10 +- drivers/gpu/drm/i915/intel_hdcp.h | 33 + drivers/gpu/drm/i915/intel_hdmi.c | 17 +- drivers/gpu/drm/i915/intel_hdmi.h | 51 ++ drivers/gpu/drm/i915/intel_lspcon.c | 6 +- drivers/gpu/drm/i915/intel_lspcon.h | 38 ++ drivers/gpu/drm/i915/intel_lvds.c | 9 +- drivers/gpu/drm/i915/intel_lvds.h | 22 + drivers/gpu/drm/i915/intel_opregion.c | 3 +- drivers/gpu/drm/i915/intel_panel.c | 3 + drivers/gpu/drm/i915/intel_panel.h | 65 ++ drivers/gpu/drm/i915/intel_pipe_crc.c | 4 +- drivers/gpu/drm/i915/intel_pipe_crc.h | 35 ++ drivers/gpu/drm/i915/intel_pm.c | 5 +- drivers/gpu/drm/i915/intel_pm.h | 71 +++ drivers/gpu/drm/i915/intel_psr.c | 13 +- drivers/gpu/drm/i915/intel_psr.h | 40 ++ drivers/gpu/drm/i915/intel_runtime_pm.c | 20 +- drivers/gpu/drm/i915/intel_sdvo.c | 13 +- drivers/gpu/drm/i915/intel_sdvo.h | 23 + drivers/gpu/drm/i915/intel_sprite.c | 16 +- drivers/gpu/drm/i915/intel_sprite.h | 55 ++ drivers/gpu/drm/i915/intel_tv.c | 5 +- drivers/gpu/drm/i915/intel_tv.h | 13 + drivers/gpu/drm/i915/intel_uncore.c | 9 +- drivers/gpu/drm/i915/vlv_dsi.c | 10 +- 70 files changed, 1273 insertions(+), 739 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_atomic_plane.h create mode 100644 drivers/gpu/drm/i915/intel_audio.h create mode 100644 drivers/gpu/drm/i915/intel_cdclk.h create mode 100644 drivers/gpu/drm/i915/intel_color.h create mode 100644 drivers/gpu/drm/i915/intel_connector.h create mode 100644 drivers/gpu/drm/i915/intel_crt.h create mode 100644 drivers/gpu/drm/i915/intel_csr.h create mode 100644 drivers/gpu/drm/i915/intel_ddi.h create mode 100644 drivers/gpu/drm/i915/intel_dp.h create mode 100644 drivers/gpu/drm/i915/intel_dvo.h create mode 100644 drivers/gpu/drm/i915/intel_fbc.h create mode 100644 drivers/gpu/drm/i915/intel_fbdev.h create mode 100644 drivers/gpu/drm/i915/intel_hdcp.h create mode 100644 drivers/gpu/drm/i915/intel_hdmi.h create mode 100644 drivers/gpu/drm/i915/intel_lspcon.h create mode 100644 drivers/gpu/drm/i915/intel_lvds.h create mode 100644 drivers/gpu/drm/i915/intel_panel.h create mode 100644 drivers/gpu/drm/i915/intel_pipe_crc.h create mode 100644 drivers/gpu/drm/i915/intel_pm.h create mode 100644 drivers/gpu/drm/i915/intel_psr.h create mode 100644 drivers/gpu/drm/i915/intel_sdvo.h create mode 100644 drivers/gpu/drm/i915/intel_sprite.h create mode 100644 drivers/gpu/drm/i915/intel_tv.h
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx