Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: move modesetting output/encoder code under display/

Add a new subdirectory for display code, and start off by moving
modesetting output/encoder code. Judging by the include changes, this is
a surprisingly clean operation.

v2:
- move intel_sdvo_regs.h too
- use tabs for Makefile file lists and sort them

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190613084416.6794-2-jani.nikula@intel.com

+82 -70
+29 -27
drivers/gpu/drm/i915/Makefile
··· 176 176 i915-$(CONFIG_DRM_FBDEV_EMULATION) += intel_fbdev.o 177 177 178 178 # modesetting output/encoder code 179 - i915-y += dvo_ch7017.o \ 180 - dvo_ch7xxx.o \ 181 - dvo_ivch.o \ 182 - dvo_ns2501.o \ 183 - dvo_sil164.o \ 184 - dvo_tfp410.o \ 185 - icl_dsi.o \ 186 - intel_crt.o \ 187 - intel_ddi.o \ 188 - intel_dp_aux_backlight.o \ 189 - intel_dp_link_training.o \ 190 - intel_dp_mst.o \ 191 - intel_dp.o \ 192 - intel_dsi.o \ 193 - intel_dsi_dcs_backlight.o \ 194 - intel_dsi_vbt.o \ 195 - intel_dvo.o \ 196 - intel_gmbus.o \ 197 - intel_hdmi.o \ 198 - intel_lspcon.o \ 199 - intel_lvds.o \ 200 - intel_panel.o \ 201 - intel_sdvo.o \ 202 - intel_tv.o \ 203 - vlv_dsi.o \ 204 - vlv_dsi_pll.o \ 205 - intel_vdsc.o 179 + obj-y += display/ 180 + i915-y += \ 181 + display/dvo_ch7017.o \ 182 + display/dvo_ch7xxx.o \ 183 + display/dvo_ivch.o \ 184 + display/dvo_ns2501.o \ 185 + display/dvo_sil164.o \ 186 + display/dvo_tfp410.o \ 187 + display/icl_dsi.o \ 188 + display/intel_crt.o \ 189 + display/intel_ddi.o \ 190 + display/intel_dp.o \ 191 + display/intel_dp_aux_backlight.o \ 192 + display/intel_dp_link_training.o \ 193 + display/intel_dp_mst.o \ 194 + display/intel_dsi.o \ 195 + display/intel_dsi_dcs_backlight.o \ 196 + display/intel_dsi_vbt.o \ 197 + display/intel_dvo.o \ 198 + display/intel_gmbus.o \ 199 + display/intel_hdmi.o \ 200 + display/intel_lspcon.o \ 201 + display/intel_lvds.o \ 202 + display/intel_panel.o \ 203 + display/intel_sdvo.o \ 204 + display/intel_tv.o \ 205 + display/intel_vdsc.o \ 206 + display/vlv_dsi.o \ 207 + display/vlv_dsi_pll.o 206 208 207 209 # Post-mortem debug and GPU hang state capture 208 210 i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
-19
drivers/gpu/drm/i915/Makefile.header-test
··· 22 22 intel_color.h \ 23 23 intel_combo_phy.h \ 24 24 intel_connector.h \ 25 - intel_crt.h \ 26 25 intel_csr.h \ 27 - intel_ddi.h \ 28 26 intel_display_power.h \ 29 - intel_dp.h \ 30 - intel_dp_aux_backlight.h \ 31 - intel_dp_link_training.h \ 32 - intel_dp_mst.h \ 33 27 intel_dpio_phy.h \ 34 28 intel_dpll_mgr.h \ 35 29 intel_drv.h \ 36 - intel_dsi.h \ 37 - intel_dsi_dcs_backlight.h \ 38 - intel_dvo.h \ 39 - intel_dvo_dev.h \ 40 30 intel_fbc.h \ 41 31 intel_fbdev.h \ 42 32 intel_fifo_underrun.h \ 43 33 intel_frontbuffer.h \ 44 - intel_gmbus.h \ 45 34 intel_hdcp.h \ 46 - intel_hdmi.h \ 47 35 intel_hotplug.h \ 48 36 intel_lpe_audio.h \ 49 - intel_lspcon.h \ 50 - intel_lvds.h \ 51 37 intel_overlay.h \ 52 - intel_panel.h \ 53 38 intel_pipe_crc.h \ 54 39 intel_pm.h \ 55 40 intel_psr.h \ 56 41 intel_quirks.h \ 57 42 intel_runtime_pm.h \ 58 - intel_sdvo.h \ 59 - intel_sdvo_regs.h \ 60 43 intel_sideband.h \ 61 44 intel_sprite.h \ 62 - intel_tv.h \ 63 45 intel_uncore.h \ 64 - intel_vdsc.h \ 65 46 intel_wakeref.h 66 47 67 48 quiet_cmd_header_test = HDRTEST $@
+2
drivers/gpu/drm/i915/display/Makefile
··· 1 + # Extra header tests 2 + include $(src)/Makefile.header-test
+16
drivers/gpu/drm/i915/display/Makefile.header-test
··· 1 + # SPDX-License-Identifier: MIT 2 + # Copyright © 2019 Intel Corporation 3 + 4 + # Test the headers are compilable as standalone units 5 + header_test := $(notdir $(wildcard $(src)/*.h)) 6 + 7 + quiet_cmd_header_test = HDRTEST $@ 8 + cmd_header_test = echo "\#include \"$(<F)\"" > $@ 9 + 10 + header_test_%.c: %.h 11 + $(call cmd,header_test) 12 + 13 + extra-$(CONFIG_DRM_I915_WERROR) += \ 14 + $(foreach h,$(header_test),$(patsubst %.h,header_test_%.o,$(h))) 15 + 16 + clean-files += $(foreach h,$(header_test),$(patsubst %.h,header_test_%.c,$(h)))
drivers/gpu/drm/i915/dvo_ch7017.c drivers/gpu/drm/i915/display/dvo_ch7017.c
drivers/gpu/drm/i915/dvo_ch7xxx.c drivers/gpu/drm/i915/display/dvo_ch7xxx.c
drivers/gpu/drm/i915/dvo_ivch.c drivers/gpu/drm/i915/display/dvo_ivch.c
drivers/gpu/drm/i915/dvo_ns2501.c drivers/gpu/drm/i915/display/dvo_ns2501.c
drivers/gpu/drm/i915/dvo_sil164.c drivers/gpu/drm/i915/display/dvo_sil164.c
drivers/gpu/drm/i915/dvo_tfp410.c drivers/gpu/drm/i915/display/dvo_tfp410.c
+3 -2
drivers/gpu/drm/i915/i915_debugfs.c
··· 32 32 #include <drm/drm_debugfs.h> 33 33 #include <drm/drm_fourcc.h> 34 34 35 + #include "display/intel_dp.h" 36 + #include "display/intel_hdmi.h" 37 + 35 38 #include "gem/i915_gem_context.h" 36 39 #include "gt/intel_reset.h" 37 40 38 41 #include "i915_debugfs.h" 39 42 #include "i915_irq.h" 40 43 #include "intel_csr.h" 41 - #include "intel_dp.h" 42 44 #include "intel_drv.h" 43 45 #include "intel_fbc.h" 44 46 #include "intel_guc_submission.h" 45 47 #include "intel_hdcp.h" 46 - #include "intel_hdmi.h" 47 48 #include "intel_pm.h" 48 49 #include "intel_psr.h" 49 50 #include "intel_sideband.h"
+3 -2
drivers/gpu/drm/i915/i915_drv.c
··· 47 47 #include <drm/drm_probe_helper.h> 48 48 #include <drm/i915_drm.h> 49 49 50 + #include "display/intel_dp.h" 51 + #include "display/intel_gmbus.h" 52 + 50 53 #include "gem/i915_gem_context.h" 51 54 #include "gem/i915_gem_ioctls.h" 52 55 #include "gt/intel_gt_pm.h" ··· 68 65 #include "intel_bw.h" 69 66 #include "intel_cdclk.h" 70 67 #include "intel_csr.h" 71 - #include "intel_dp.h" 72 68 #include "intel_drv.h" 73 69 #include "intel_fbdev.h" 74 - #include "intel_gmbus.h" 75 70 #include "intel_hotplug.h" 76 71 #include "intel_overlay.h" 77 72 #include "intel_pipe_crc.h"
+2 -1
drivers/gpu/drm/i915/i915_suspend.c
··· 26 26 27 27 #include <drm/i915_drm.h> 28 28 29 + #include "display/intel_gmbus.h" 30 + 29 31 #include "i915_reg.h" 30 32 #include "intel_drv.h" 31 33 #include "intel_fbc.h" 32 - #include "intel_gmbus.h" 33 34 34 35 static void i915_save_display(struct drm_i915_private *dev_priv) 35 36 {
drivers/gpu/drm/i915/icl_dsi.c drivers/gpu/drm/i915/display/icl_dsi.c
+2 -1
drivers/gpu/drm/i915/intel_bios.c
··· 28 28 #include <drm/drm_dp_helper.h> 29 29 #include <drm/i915_drm.h> 30 30 31 + #include "display/intel_gmbus.h" 32 + 31 33 #include "i915_drv.h" 32 - #include "intel_gmbus.h" 33 34 34 35 #define _INTEL_BIOS_PRIVATE 35 36 #include "intel_vbt_defs.h"
+2 -1
drivers/gpu/drm/i915/intel_connector.c
··· 29 29 #include <drm/drm_atomic_helper.h> 30 30 #include <drm/drm_edid.h> 31 31 32 + #include "display/intel_panel.h" 33 + 32 34 #include "i915_drv.h" 33 35 #include "intel_connector.h" 34 36 #include "intel_drv.h" 35 37 #include "intel_hdcp.h" 36 - #include "intel_panel.h" 37 38 38 39 int intel_connector_init(struct intel_connector *connector) 39 40 {
drivers/gpu/drm/i915/intel_crt.c drivers/gpu/drm/i915/display/intel_crt.c
drivers/gpu/drm/i915/intel_crt.h drivers/gpu/drm/i915/display/intel_crt.h
drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/intel_ddi.h drivers/gpu/drm/i915/display/intel_ddi.h
+12 -11
drivers/gpu/drm/i915/intel_display.c
··· 44 44 #include <drm/drm_rect.h> 45 45 #include <drm/i915_drm.h> 46 46 47 + #include "display/intel_crt.h" 48 + #include "display/intel_ddi.h" 49 + #include "display/intel_dp.h" 50 + #include "display/intel_dsi.h" 51 + #include "display/intel_dvo.h" 52 + #include "display/intel_gmbus.h" 53 + #include "display/intel_hdmi.h" 54 + #include "display/intel_lvds.h" 55 + #include "display/intel_sdvo.h" 56 + #include "display/intel_tv.h" 57 + #include "display/intel_vdsc.h" 58 + 47 59 #include "i915_drv.h" 48 60 #include "i915_trace.h" 49 61 #include "intel_acpi.h" ··· 64 52 #include "intel_bw.h" 65 53 #include "intel_color.h" 66 54 #include "intel_cdclk.h" 67 - #include "intel_crt.h" 68 - #include "intel_ddi.h" 69 - #include "intel_dp.h" 70 55 #include "intel_drv.h" 71 - #include "intel_dsi.h" 72 - #include "intel_dvo.h" 73 56 #include "intel_fbc.h" 74 57 #include "intel_fbdev.h" 75 58 #include "intel_fifo_underrun.h" 76 59 #include "intel_frontbuffer.h" 77 - #include "intel_gmbus.h" 78 60 #include "intel_hdcp.h" 79 - #include "intel_hdmi.h" 80 61 #include "intel_hotplug.h" 81 - #include "intel_lvds.h" 82 62 #include "intel_overlay.h" 83 63 #include "intel_pipe_crc.h" 84 64 #include "intel_pm.h" 85 65 #include "intel_psr.h" 86 66 #include "intel_quirks.h" 87 - #include "intel_sdvo.h" 88 67 #include "intel_sideband.h" 89 68 #include "intel_sprite.h" 90 - #include "intel_tv.h" 91 - #include "intel_vdsc.h" 92 69 93 70 /* Primary plane formats for gen <= 3 */ 94 71 static const u32 i8xx_primary_formats[] = {
+3 -2
drivers/gpu/drm/i915/intel_display_power.c
··· 5 5 6 6 #include <linux/vgaarb.h> 7 7 8 + #include "display/intel_crt.h" 9 + #include "display/intel_dp.h" 10 + 8 11 #include "i915_drv.h" 9 12 #include "i915_irq.h" 10 13 #include "intel_cdclk.h" 11 14 #include "intel_combo_phy.h" 12 - #include "intel_crt.h" 13 15 #include "intel_csr.h" 14 - #include "intel_dp.h" 15 16 #include "intel_dpio_phy.h" 16 17 #include "intel_drv.h" 17 18 #include "intel_hotplug.h"
drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/intel_dp.h drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/intel_dp_aux_backlight.c drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
drivers/gpu/drm/i915/intel_dp_aux_backlight.h drivers/gpu/drm/i915/display/intel_dp_aux_backlight.h
drivers/gpu/drm/i915/intel_dp_mst.c drivers/gpu/drm/i915/display/intel_dp_mst.c
drivers/gpu/drm/i915/intel_dp_mst.h drivers/gpu/drm/i915/display/intel_dp_mst.h
+2 -1
drivers/gpu/drm/i915/intel_dpio_phy.c
··· 21 21 * DEALINGS IN THE SOFTWARE. 22 22 */ 23 23 24 - #include "intel_dp.h" 24 + #include "display/intel_dp.h" 25 + 25 26 #include "intel_dpio_phy.h" 26 27 #include "intel_drv.h" 27 28 #include "intel_sideband.h"
drivers/gpu/drm/i915/intel_dsi.c drivers/gpu/drm/i915/display/intel_dsi.c
drivers/gpu/drm/i915/intel_dsi.h drivers/gpu/drm/i915/display/intel_dsi.h
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.h drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.h
drivers/gpu/drm/i915/intel_dsi_vbt.c drivers/gpu/drm/i915/display/intel_dsi_vbt.c
drivers/gpu/drm/i915/intel_dvo.c drivers/gpu/drm/i915/display/intel_dvo.c
drivers/gpu/drm/i915/intel_dvo.h drivers/gpu/drm/i915/display/intel_dvo.h
drivers/gpu/drm/i915/intel_dvo_dev.h drivers/gpu/drm/i915/display/intel_dvo_dev.h
+2 -1
drivers/gpu/drm/i915/intel_frontbuffer.c
··· 55 55 * cancelled as soon as busyness is detected. 56 56 */ 57 57 58 + #include "display/intel_dp.h" 59 + 58 60 #include "i915_drv.h" 59 - #include "intel_dp.h" 60 61 #include "intel_drv.h" 61 62 #include "intel_fbc.h" 62 63 #include "intel_frontbuffer.h"
drivers/gpu/drm/i915/intel_gmbus.c drivers/gpu/drm/i915/display/intel_gmbus.c
drivers/gpu/drm/i915/intel_gmbus.h drivers/gpu/drm/i915/display/intel_gmbus.h
drivers/gpu/drm/i915/intel_hdmi.c drivers/gpu/drm/i915/display/intel_hdmi.c
drivers/gpu/drm/i915/intel_hdmi.h drivers/gpu/drm/i915/display/intel_hdmi.h
drivers/gpu/drm/i915/intel_lspcon.c drivers/gpu/drm/i915/display/intel_lspcon.c
drivers/gpu/drm/i915/intel_lspcon.h drivers/gpu/drm/i915/display/intel_lspcon.h
drivers/gpu/drm/i915/intel_lvds.c drivers/gpu/drm/i915/display/intel_lvds.c
drivers/gpu/drm/i915/intel_lvds.h drivers/gpu/drm/i915/display/intel_lvds.h
+2 -1
drivers/gpu/drm/i915/intel_opregion.c
··· 32 32 33 33 #include <drm/i915_drm.h> 34 34 35 + #include "display/intel_panel.h" 36 + 35 37 #include "i915_drv.h" 36 38 #include "intel_drv.h" 37 39 #include "intel_opregion.h" 38 - #include "intel_panel.h" 39 40 40 41 #define OPREGION_HEADER_OFFSET 0 41 42 #define OPREGION_ACPI_OFFSET 0x100
drivers/gpu/drm/i915/intel_panel.c drivers/gpu/drm/i915/display/intel_panel.c
drivers/gpu/drm/i915/intel_panel.h drivers/gpu/drm/i915/display/intel_panel.h
+2 -1
drivers/gpu/drm/i915/intel_psr.c
··· 23 23 24 24 #include <drm/drm_atomic_helper.h> 25 25 26 + #include "display/intel_dp.h" 27 + 26 28 #include "i915_drv.h" 27 - #include "intel_dp.h" 28 29 #include "intel_drv.h" 29 30 #include "intel_psr.h" 30 31 #include "intel_sprite.h"
drivers/gpu/drm/i915/intel_sdvo.c drivers/gpu/drm/i915/display/intel_sdvo.c
drivers/gpu/drm/i915/intel_sdvo.h drivers/gpu/drm/i915/display/intel_sdvo.h
drivers/gpu/drm/i915/intel_sdvo_regs.h drivers/gpu/drm/i915/display/intel_sdvo_regs.h
drivers/gpu/drm/i915/intel_tv.c drivers/gpu/drm/i915/display/intel_tv.c
drivers/gpu/drm/i915/intel_tv.h drivers/gpu/drm/i915/display/intel_tv.h
drivers/gpu/drm/i915/intel_vdsc.c drivers/gpu/drm/i915/display/intel_vdsc.c
drivers/gpu/drm/i915/intel_vdsc.h drivers/gpu/drm/i915/display/intel_vdsc.h
drivers/gpu/drm/i915/vlv_dsi.c drivers/gpu/drm/i915/display/vlv_dsi.c
drivers/gpu/drm/i915/vlv_dsi_pll.c drivers/gpu/drm/i915/display/vlv_dsi_pll.c