Commit fd2b94a5 authored by Jani Nikula's avatar Jani Nikula

drm/i915/trace: split out display trace to a separate file

Add display/intel_display_trace.[ch] for defining display
tracepoints. The main goal is to reduce cross-includes between gem and
display. It would be possible split up tracing even further, but that
would lead to more boilerplate.

We end up having to include intel_crtc.h in a few places because it was
pulled in implicitly via intel_de.h -> i915_trace.h -> intel_crtc.h, and
that's no longer the case.

There should be no changes to tracepoints.

v3:
- Rebase

v2:
- Define TRACE_INCLUDE_PATH relative to define_trace.h (Chris)
- Remove useless comments (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7862ad764fbd0748d903c76bc632d3d277874e5b.1638961423.git.jani.nikula@intel.com
parent 4bb71337
...@@ -258,6 +258,7 @@ i915-y += \ ...@@ -258,6 +258,7 @@ i915-y += \
display/intel_crt.o \ display/intel_crt.o \
display/intel_ddi.o \ display/intel_ddi.o \
display/intel_ddi_buf_trans.o \ display/intel_ddi_buf_trans.o \
display/intel_display_trace.o \
display/intel_dp.o \ display/intel_dp.o \
display/intel_dp_aux.o \ display/intel_dp_aux.o \
display/intel_dp_aux_backlight.o \ display/intel_dp_aux_backlight.o \
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "intel_audio.h" #include "intel_audio.h"
#include "intel_backlight.h" #include "intel_backlight.h"
#include "intel_connector.h" #include "intel_connector.h"
#include "intel_crtc.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_dp.h" #include "intel_dp.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "g4x_hdmi.h" #include "g4x_hdmi.h"
#include "intel_audio.h" #include "intel_audio.h"
#include "intel_connector.h" #include "intel_connector.h"
#include "intel_crtc.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_dpio_phy.h" #include "intel_dpio_phy.h"
......
...@@ -35,15 +35,16 @@ ...@@ -35,15 +35,16 @@
#include <drm/drm_fourcc.h> #include <drm/drm_fourcc.h>
#include <drm/drm_plane_helper.h> #include <drm/drm_plane_helper.h>
#include "i915_trace.h" #include "gt/intel_rps.h"
#include "intel_atomic_plane.h" #include "intel_atomic_plane.h"
#include "intel_cdclk.h" #include "intel_cdclk.h"
#include "intel_display_trace.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_fb.h" #include "intel_fb.h"
#include "intel_fb_pin.h" #include "intel_fb_pin.h"
#include "intel_pm.h" #include "intel_pm.h"
#include "intel_sprite.h" #include "intel_sprite.h"
#include "gt/intel_rps.h"
static void intel_plane_state_reset(struct intel_plane_state *plane_state, static void intel_plane_state_reset(struct intel_plane_state *plane_state,
struct intel_plane *plane) struct intel_plane *plane)
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "intel_atomic.h" #include "intel_atomic.h"
#include "intel_audio.h" #include "intel_audio.h"
#include "intel_cdclk.h" #include "intel_cdclk.h"
#include "intel_crtc.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_lpe_audio.h" #include "intel_lpe_audio.h"
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "intel_audio.h" #include "intel_audio.h"
#include "intel_bw.h" #include "intel_bw.h"
#include "intel_cdclk.h" #include "intel_cdclk.h"
#include "intel_crtc.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_pcode.h" #include "intel_pcode.h"
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#include <drm/drm_plane_helper.h> #include <drm/drm_plane_helper.h>
#include <drm/drm_vblank_work.h> #include <drm/drm_vblank_work.h>
#include "i915_trace.h"
#include "i915_vgpu.h" #include "i915_vgpu.h"
#include "i9xx_plane.h"
#include "icl_dsi.h" #include "icl_dsi.h"
#include "intel_atomic.h" #include "intel_atomic.h"
#include "intel_atomic_plane.h" #include "intel_atomic_plane.h"
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
#include "intel_crtc.h" #include "intel_crtc.h"
#include "intel_cursor.h" #include "intel_cursor.h"
#include "intel_display_debugfs.h" #include "intel_display_debugfs.h"
#include "intel_display_trace.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_dsi.h" #include "intel_dsi.h"
#include "intel_pipe_crc.h" #include "intel_pipe_crc.h"
#include "intel_psr.h" #include "intel_psr.h"
#include "intel_sprite.h" #include "intel_sprite.h"
#include "intel_vrr.h" #include "intel_vrr.h"
#include "i9xx_plane.h"
#include "skl_universal_plane.h" #include "skl_universal_plane.h"
static void assert_vblank_disabled(struct drm_crtc *crtc) static void assert_vblank_disabled(struct drm_crtc *crtc)
......
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright © 2021 Intel Corporation
*/
#ifndef __CHECKER__
#define CREATE_TRACE_POINTS
#include "intel_display_trace.h"
#endif
This diff is collapsed.
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
#include "intel_audio.h" #include "intel_audio.h"
#include "intel_backlight.h" #include "intel_backlight.h"
#include "intel_connector.h" #include "intel_connector.h"
#include "intel_crtc.h"
#include "intel_ddi.h" #include "intel_ddi.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
......
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
#include <drm/drm_fourcc.h> #include <drm/drm_fourcc.h>
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_trace.h"
#include "i915_vgpu.h" #include "i915_vgpu.h"
#include "intel_cdclk.h" #include "intel_cdclk.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_trace.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_fbc.h" #include "intel_fbc.h"
#include "intel_frontbuffer.h" #include "intel_frontbuffer.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include "intel_atomic.h" #include "intel_atomic.h"
#include "intel_crtc.h"
#include "intel_ddi.h" #include "intel_ddi.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
*/ */
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_trace.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_trace.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_fbc.h" #include "intel_fbc.h"
#include "intel_fifo_underrun.h" #include "intel_fifo_underrun.h"
......
...@@ -55,14 +55,13 @@ ...@@ -55,14 +55,13 @@
* cancelled as soon as busyness is detected. * cancelled as soon as busyness is detected.
*/ */
#include "display/intel_dp.h"
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_trace.h" #include "intel_display_trace.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_dp.h"
#include "intel_drrs.h"
#include "intel_fbc.h" #include "intel_fbc.h"
#include "intel_frontbuffer.h" #include "intel_frontbuffer.h"
#include "intel_drrs.h"
#include "intel_psr.h" #include "intel_psr.h"
/** /**
......
...@@ -40,15 +40,15 @@ ...@@ -40,15 +40,15 @@
#include <drm/drm_rect.h> #include <drm/drm_rect.h>
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_trace.h"
#include "i915_vgpu.h" #include "i915_vgpu.h"
#include "i9xx_plane.h"
#include "intel_atomic_plane.h" #include "intel_atomic_plane.h"
#include "intel_crtc.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_fb.h" #include "intel_fb.h"
#include "intel_frontbuffer.h" #include "intel_frontbuffer.h"
#include "intel_sprite.h" #include "intel_sprite.h"
#include "i9xx_plane.h"
#include "intel_vrr.h" #include "intel_vrr.h"
int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state) int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state)
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "i915_drv.h" #include "i915_drv.h"
#include "intel_connector.h" #include "intel_connector.h"
#include "intel_crtc.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_hotplug.h" #include "intel_hotplug.h"
......
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
* Manasi Navare <manasi.d.navare@intel.com> * Manasi Navare <manasi.d.navare@intel.com>
*/ */
#include <linux/limits.h> #include <linux/limits.h>
#include "i915_drv.h" #include "i915_drv.h"
#include "intel_crtc.h"
#include "intel_de.h" #include "intel_de.h"
#include "intel_display_types.h" #include "intel_display_types.h"
#include "intel_dsi.h" #include "intel_dsi.h"
#include "intel_vdsc.h"
#include "intel_qp_tables.h" #include "intel_qp_tables.h"
#include "intel_vdsc.h"
enum ROW_INDEX_BPP { enum ROW_INDEX_BPP {
ROW_INDEX_6BPP = 0, ROW_INDEX_6BPP = 0,
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
#include "i915_debugfs_params.h" #include "i915_debugfs_params.h"
#include "i915_irq.h" #include "i915_irq.h"
#include "i915_scheduler.h" #include "i915_scheduler.h"
#include "i915_trace.h"
#include "intel_pm.h" #include "intel_pm.h"
static inline struct drm_i915_private *node_to_i915(struct drm_info_node *node) static inline struct drm_i915_private *node_to_i915(struct drm_info_node *node)
......
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
#include "i915_suspend.h" #include "i915_suspend.h"
#include "i915_switcheroo.h" #include "i915_switcheroo.h"
#include "i915_sysfs.h" #include "i915_sysfs.h"
#include "i915_trace.h"
#include "i915_vgpu.h" #include "i915_vgpu.h"
#include "intel_dram.h" #include "intel_dram.h"
#include "intel_gvt.h" #include "intel_gvt.h"
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <drm/drm_drv.h> #include <drm/drm_drv.h>
#include "display/intel_de.h" #include "display/intel_de.h"
#include "display/intel_display_trace.h"
#include "display/intel_display_types.h" #include "display/intel_display_types.h"
#include "display/intel_fifo_underrun.h" #include "display/intel_fifo_underrun.h"
#include "display/intel_hotplug.h" #include "display/intel_hotplug.h"
...@@ -49,7 +50,6 @@ ...@@ -49,7 +50,6 @@
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_irq.h" #include "i915_irq.h"
#include "i915_trace.h"
#include "intel_pm.h" #include "intel_pm.h"
/** /**
......
This diff is collapsed.
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "display/intel_atomic_plane.h" #include "display/intel_atomic_plane.h"
#include "display/intel_bw.h" #include "display/intel_bw.h"
#include "display/intel_de.h" #include "display/intel_de.h"
#include "display/intel_display_trace.h"
#include "display/intel_display_types.h" #include "display/intel_display_types.h"
#include "display/intel_fb.h" #include "display/intel_fb.h"
#include "display/intel_fbc.h" #include "display/intel_fbc.h"
...@@ -47,7 +48,6 @@ ...@@ -47,7 +48,6 @@
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_fixed.h" #include "i915_fixed.h"
#include "i915_irq.h" #include "i915_irq.h"
#include "i915_trace.h"
#include "intel_pcode.h" #include "intel_pcode.h"
#include "intel_pm.h" #include "intel_pm.h"
#include "vlv_sideband.h" #include "vlv_sideband.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment