drm/i915: Include intel_de_{read, write}_fw() in i915_reg_rw traces
Subsystems (3)
PATCH 1/1 drm/i915: Include intel_de_{read, write}_fw() in i915_reg_rw traces
From: Ville Syrjälä <[email protected]>
We lost the i915_reg_rw tracepoint for a lot of display registers when we switched from the heavyweight normal register accessors to the lightweight _fw() variants. Put the tracepoints back so that the register traces might actually be useful. Hopefully these should be close to free when the tracepoint is not enabled and thus not slow down our vblank critical sections significantly.
The biggest hurdle is untangling the include order. Fortunately just pulling intel_de.h out from intel_display_types.h seems to have been sufficient to make it build.
This little cocci script did most of the work for me:
@find@
@@
(intel_de_read(...)
|intel_de_read_fw(...)
|intel_de_write(...)
|intel_de_write_fw(...)
)
@has_include@
@@
(
#include "intel_de.h"
|
#include "display/intel_de.h"
)
@depends on find && !has_include@
@@
+ #include "intel_de.h"
#include "intel_display_types.h"
@depends on find && !has_include@
@@
+ #include "display/intel_de.h"
#include "display/intel_display_types.h"
--- drivers/gpu/drm/i915/display/g4x_dp.c | 1 + drivers/gpu/drm/i915/display/g4x_hdmi.c | 1 + drivers/gpu/drm/i915/display/i9xx_plane.c | 1 + drivers/gpu/drm/i915/display/icl_dsi.c | 1 + drivers/gpu/drm/i915/display/intel_audio.c | 1 + drivers/gpu/drm/i915/display/intel_cdclk.c | 1 + drivers/gpu/drm/i915/display/intel_color.c | 1 + drivers/gpu/drm/i915/display/intel_combo_phy.c | 1 + drivers/gpu/drm/i915/display/intel_crt.c | 1 + drivers/gpu/drm/i915/display/intel_cursor.c | 1 + drivers/gpu/drm/i915/display/intel_ddi.c | 1 + drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 1 + drivers/gpu/drm/i915/display/intel_de.h | 9 ++++++++- drivers/gpu/drm/i915/display/intel_display.c | 1 + drivers/gpu/drm/i915/display/intel_display_debugfs.c | 1 + drivers/gpu/drm/i915/display/intel_display_power.c | 1 + drivers/gpu/drm/i915/display/intel_display_types.h | 1 - drivers/gpu/drm/i915/display/intel_dp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/display/intel_dpio_phy.c | 1 + drivers/gpu/drm/i915/display/intel_dpll.c | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 1 + drivers/gpu/drm/i915/display/intel_dsb.c | 1 + drivers/gpu/drm/i915/display/intel_dvo.c | 1 + drivers/gpu/drm/i915/display/intel_fbc.c | 1 + drivers/gpu/drm/i915/display/intel_fdi.c | 1 + drivers/gpu/drm/i915/display/intel_fifo_underrun.c | 1 + drivers/gpu/drm/i915/display/intel_gmbus.c | 1 + drivers/gpu/drm/i915/display/intel_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_hdmi.c | 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 1 + drivers/gpu/drm/i915/display/intel_lvds.c | 1 + drivers/gpu/drm/i915/display/intel_overlay.c | 1 + drivers/gpu/drm/i915/display/intel_panel.c | 1 + drivers/gpu/drm/i915/display/intel_pipe_crc.c | 1 + drivers/gpu/drm/i915/display/intel_pps.c | 1 + drivers/gpu/drm/i915/display/intel_psr.c | 1 + drivers/gpu/drm/i915/display/intel_sdvo.c | 1 + drivers/gpu/drm/i915/display/intel_sprite.c | 1 + drivers/gpu/drm/i915/display/intel_tv.c | 1 + drivers/gpu/drm/i915/display/intel_vdsc.c | 1 + drivers/gpu/drm/i915/display/intel_vrr.c | 1 + drivers/gpu/drm/i915/display/skl_scaler.c | 1 + drivers/gpu/drm/i915/display/skl_universal_plane.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 1 + drivers/gpu/drm/i915/i915_irq.c | 1 + drivers/gpu/drm/i915/intel_pm.c | 1 + 49 files changed, 55 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/g4x_dp.c +1 -0
@@ -8,6 +8,7 @@#include "g4x_dp.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h"
drivers/gpu/drm/i915/display/g4x_hdmi.c +1 -0
@@ -8,6 +8,7 @@#include "g4x_hdmi.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_fifo_underrun.h"
drivers/gpu/drm/i915/display/i9xx_plane.c +1 -0
@@ -10,6 +10,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_sprite.h"
drivers/gpu/drm/i915/display/icl_dsi.c +1 -0
@@ -33,6 +33,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_dsi.h" #include "intel_panel.h" #include "intel_vdsc.h"
drivers/gpu/drm/i915/display/intel_audio.c +1 -0
@@ -31,6 +31,7 @@#include "intel_atomic.h" #include "intel_audio.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_lpe_audio.h"
drivers/gpu/drm/i915/display/intel_cdclk.c +1 -0
@@ -26,6 +26,7 @@#include "intel_atomic.h" #include "intel_bw.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_sideband.h"
drivers/gpu/drm/i915/display/intel_color.c +1 -0
@@ -23,6 +23,7 @@*/ #include "intel_color.h" +#include "intel_de.h" #include "intel_display_types.h" #define CTM_COEFF_SIGN (1ULL << 63)
drivers/gpu/drm/i915/display/intel_combo_phy.c +1 -0
@@ -4,6 +4,7 @@*/ #include "intel_combo_phy.h" +#include "intel_de.h" #include "intel_display_types.h" #define for_each_combo_phy (__dev_priv, __phy) \
drivers/gpu/drm/i915/display/intel_crt.c +1 -0
@@ -38,6 +38,7 @@#include "intel_crt.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h" #include "intel_fifo_underrun.h"
drivers/gpu/drm/i915/display/intel_cursor.c +1 -0
@@ -13,6 +13,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" #include "intel_cursor.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_fb.h"
drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
@@ -34,6 +34,7 @@#include "intel_crtc.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h"
drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +1 -0
@@ -6,6 +6,7 @@#include "i915_drv.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" /* HDMI/DVI modes ignore everything but the last 2 items. So we share
drivers/gpu/drm/i915/display/intel_de.h +8 -1
@@ -8,6 +8,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "i915_trace.h" #include "intel_uncore.h" static inline u32
@@ -26,7 +27,12 @@ intel_de_posting_read(struct drm_i915_private *i915, i915_reg_t reg)static inline u32 intel_de_read_fw (struct drm_i915_private *i915,i915_reg_t reg) { -return intel_uncore_read_fw (&i915->uncore, reg); +u32 val; + + val =intel_uncore_read_fw (&i915->uncore, reg); +trace_i915_reg_rw (false, reg, val,sizeof (val), true); + +return val; } static inline void
@@ -39,6 +45,7 @@ intel_de_write(struct drm_i915_private *i915, i915_reg_t reg, u32 val)static inline void intel_de_write_fw (struct drm_i915_private *i915,i915_reg_t reg,u32 val) { +trace_i915_reg_rw (true, reg, val,sizeof (val), true);intel_uncore_write_fw (&i915->uncore, reg, val); }
drivers/gpu/drm/i915/display/intel_display.c +1 -0
@@ -79,6 +79,7 @@#include "intel_color.h" #include "intel_crtc.h" #include "intel_csr.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_link_training.h" #include "intel_fbc.h"
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -0
@@ -10,6 +10,7 @@#include "intel_csr.h" #include "intel_display_debugfs.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_fbc.h"
drivers/gpu/drm/i915/display/intel_display_power.c +1 -0
@@ -11,6 +11,7 @@#include "intel_combo_phy.h" #include "intel_csr.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_hotplug.h"
drivers/gpu/drm/i915/display/intel_display_types.h +0 -1
@@ -45,7 +45,6 @@#include <media/cec-notifier.h> #include "i915_drv.h" -#include "intel_de.h" struct drm_printer ;struct __intel_global_objs_state ;
drivers/gpu/drm/i915/display/intel_dp.c +1 -0
@@ -46,6 +46,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_aux.h"
drivers/gpu/drm/i915/display/intel_dp_hdcp.c +1 -0
@@ -12,6 +12,7 @@#include <drm/drm_print.h> #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h"
drivers/gpu/drm/i915/display/intel_dp_mst.c +1 -0
@@ -34,6 +34,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h"
drivers/gpu/drm/i915/display/intel_dpio_phy.c +1 -0
@@ -23,6 +23,7 @@#include "display/intel_dp.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_sideband.h"
drivers/gpu/drm/i915/display/intel_dpll.c +1 -0
@@ -4,6 +4,7 @@*/ #include <linux/kernel.h> #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_dpll.h"
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1 -0
@@ -21,6 +21,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_dpll.h"
drivers/gpu/drm/i915/display/intel_dsb.c +1 -0
@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #define DSB_BUF_SIZE (2 * PAGE_SIZE)
drivers/gpu/drm/i915/display/intel_dvo.c +1 -0
@@ -33,6 +33,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dvo.h" #include "intel_dvo_dev.h"
drivers/gpu/drm/i915/display/intel_fbc.c +1 -0
@@ -43,6 +43,7 @@#include "i915_drv.h" #include "i915_trace.h" #include "i915_vgpu.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_frontbuffer.h"
drivers/gpu/drm/i915/display/intel_fdi.c +1 -0
@@ -5,6 +5,7 @@#include "intel_atomic.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h"
drivers/gpu/drm/i915/display/intel_fifo_underrun.c +1 -0
@@ -27,6 +27,7 @@#include "i915_drv.h" #include "i915_trace.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_fifo_underrun.h"
drivers/gpu/drm/i915/display/intel_gmbus.c +1 -0
@@ -34,6 +34,7 @@#include <drm/drm_hdcp.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h"
drivers/gpu/drm/i915/display/intel_hdcp.c +1 -0
@@ -18,6 +18,7 @@#include "i915_drv.h" #include "i915_reg.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hdcp.h" #include "intel_sideband.h"
drivers/gpu/drm/i915/display/intel_hdmi.c +1 -0
@@ -43,6 +43,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_gmbus.h"
drivers/gpu/drm/i915/display/intel_lspcon.c +1 -0
@@ -27,6 +27,7 @@#include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_edid.h> +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_lspcon.h"
drivers/gpu/drm/i915/display/intel_lvds.c +1 -0
@@ -41,6 +41,7 @@#include "i915_drv.h" #include "intel_atomic.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h" #include "intel_lvds.h"
drivers/gpu/drm/i915/display/intel_overlay.c +1 -0
@@ -34,6 +34,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_overlay.h"
drivers/gpu/drm/i915/display/intel_panel.c +1 -0
@@ -35,6 +35,7 @@#include <linux/pwm.h> #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux_backlight.h" #include "intel_dsi_dcs_backlight.h"
drivers/gpu/drm/i915/display/intel_pipe_crc.c +1 -0
@@ -30,6 +30,7 @@#include <linux/seq_file.h> #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_pipe_crc.h"
drivers/gpu/drm/i915/display/intel_pps.c +1 -0
@@ -5,6 +5,7 @@#include "g4x_dp.h" #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dpll.h"
drivers/gpu/drm/i915/display/intel_psr.c +1 -0
@@ -27,6 +27,7 @@#include "i915_drv.h" #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux.h" #include "intel_hdmi.h"
drivers/gpu/drm/i915/display/intel_sdvo.c +1 -0
@@ -39,6 +39,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fifo_underrun.h" #include "intel_gmbus.h"
drivers/gpu/drm/i915/display/intel_sprite.c +1 -0
@@ -43,6 +43,7 @@#include "i915_trace.h" #include "i915_vgpu.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_sprite.h"
drivers/gpu/drm/i915/display/intel_tv.c +1 -0
@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hotplug.h" #include "intel_tv.h"
drivers/gpu/drm/i915/display/intel_vdsc.c +1 -0
@@ -7,6 +7,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_vdsc.h"
drivers/gpu/drm/i915/display/intel_vrr.c +1 -0
@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_vrr.h"
drivers/gpu/drm/i915/display/skl_scaler.c +1 -0
@@ -2,6 +2,7 @@/* * Copyright © 2020 Intel Corporation */ +#include "intel_de.h" #include "intel_display_types.h" #include "skl_scaler.h" #include "skl_universal_plane.h"
drivers/gpu/drm/i915/display/skl_universal_plane.c +1 -0
@@ -10,6 +10,7 @@#include "i915_drv.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_pm.h"
drivers/gpu/drm/i915/display/vlv_dsi.c +1 -0
@@ -34,6 +34,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_fifo_underrun.h"
drivers/gpu/drm/i915/display/vlv_dsi_pll.c +1 -0
@@ -28,6 +28,7 @@#include <linux/kernel.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_sideband.h"
drivers/gpu/drm/i915/i915_irq.c +1 -0
@@ -35,6 +35,7 @@#include <drm/drm_drv.h> #include <drm/drm_irq.h> +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fifo_underrun.h" #include "display/intel_hotplug.h"
drivers/gpu/drm/i915/intel_pm.c +1 -0
@@ -35,6 +35,7 @@#include "display/intel_atomic.h" #include "display/intel_atomic_plane.h" #include "display/intel_bw.h" +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fbc.h" #include "display/intel_sprite.h"
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Include intel_de_{read, write}_fw() in i915_reg_rw traces
== Series Details ==
== Series Details ==
Series: drm/i915: Include intel_de_{read, write}_fw() in i915_reg_rw traces
URL : https://patchwork.freedesktop.org/series/89619/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10023 -> Patchwork_20026
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_20026 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_20026, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_20026:
### IGT changes ###
#### Possible regressions ####
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-7500u: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10023/fi-kbl-7500u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-kbl-7500u/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_20026 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@sync-fork-compute0:
- fi-snb-2600: NOTRUN -> [SKIP][3] ([fdo#109271]) +17 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-snb-2600/igt@amdgpu/[email protected]
* igt@core_hotunplug@unbind-rebind:
- fi-ilk-650: [PASS][4] -> [DMESG-WARN][5] ([i915#164]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10023/fi-ilk-650/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-ilk-650/igt@[email protected]
* igt@gem_exec_suspend@basic-s0:
- fi-tgl-u2: [PASS][6] -> [FAIL][7] ([i915#1888])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10023/fi-tgl-u2/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-tgl-u2/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-bsw-kefka: [PASS][8] -> [INCOMPLETE][9] ([i915#2782] / [i915#2940])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10023/fi-bsw-kefka/igt@i915_selftest@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-bsw-kefka/igt@i915_selftest@[email protected]
* igt@kms_busy@basic@modeset:
- fi-tgl-y: [PASS][10] -> [DMESG-WARN][11] ([i915#1982])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10023/fi-tgl-y/igt@kms_busy@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-tgl-y/igt@kms_busy@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [INCOMPLETE][12] ([i915#2782]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10023/fi-snb-2600/igt@i915_selftest@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- {fi-rkl-11500t}: [SKIP][14] ([i915#1849] / [i915#3180]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10023/fi-rkl-11500t/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/fi-rkl-11500t/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#164]: https://gitlab.freedesktop.org/drm/intel/issues/164
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3180]: https://gitlab.freedesktop.org/drm/intel/issues/3180
Participating hosts (44 -> 40)
------------------------------
Missing (4): fi-ilk-m540 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_10023 -> Patchwork_20026
CI-20190529: 20190529
CI_DRM_10023: a8bf9e284933fa5c1cb821b48ba95821e5d1cc3f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6076: 9ab0820dbd07781161c1ace6973ea222fd24e53a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_20026: ecca0ec88730ecda19c51287d8dc61201147ff75 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
ecca0ec88730 drm/i915: Include intel_de_{read, write}_fw() in i915_reg_rw traces
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20026/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 49 lines
-----Original Message-----
From: Intel-gfx <[email protected]> On Behalf Of Ville Syrjala
Sent: Thursday, April 29, 2021 8:06 AM
To: [email protected]
Cc: Chiou, Cooper <[email protected]>
Subject: [Intel-gfx] [PATCH] drm/i915: Include intel_de_{read, write}_fw() ini915_reg_rwtracesFrom: Ville Syrjälä <[email protected]>
We lost the
i915_reg_rwtracepoint for a lot of display registers when we switched from the heavyweight normal register accessors to the lightweight_fw()variants. Put the tracepoints back so that the register traces might actually be useful. Hopefully these should be close to free when the tracepoint is not enabled and thus not slow down our vblank critical sections significantly.The biggest hurdle is untangling the include order. Fortunately just pulling
intel_de.hout fromintel_display_types.hseems to have been sufficient to make it build.This little cocci script did most of the work for me:
@find@
@@
(intel_de_read(...)
|intel_de_read_fw(...)
|intel_de_write(...)
|intel_de_write_fw(...)
)@has_include@
@@
(
#include "intel_de.h"
|
#include "display/intel_de.h"
)@depends on find && !has_include@
@@
+ #include "intel_de.h"
#include "intel_display_types.h"
Quoted 7 lines
@depends on find && !has_include@
@@
+ #include "display/intel_de.h"
#include "display/intel_display_types.h"Cc Cooper Chiou <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>
Overall patch Looks good to me, just in my opinion worth to edit the function comment intel_de_{read, write}_fw() /* Note: read the warnings for intel_uncore_*_fw() functions! */
to indicate it is a traced function.
Quoted 708 lines
--- drivers/gpu/drm/i915/display/g4x_dp.c | 1 + drivers/gpu/drm/i915/display/g4x_hdmi.c | 1 + drivers/gpu/drm/i915/display/i9xx_plane.c | 1 + drivers/gpu/drm/i915/display/icl_dsi.c | 1 + drivers/gpu/drm/i915/display/intel_audio.c | 1 + drivers/gpu/drm/i915/display/intel_cdclk.c | 1 + drivers/gpu/drm/i915/display/intel_color.c | 1 + drivers/gpu/drm/i915/display/intel_combo_phy.c | 1 + drivers/gpu/drm/i915/display/intel_crt.c | 1 + drivers/gpu/drm/i915/display/intel_cursor.c | 1 + drivers/gpu/drm/i915/display/intel_ddi.c | 1 + drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 1 + drivers/gpu/drm/i915/display/intel_de.h | 9 ++++++++- drivers/gpu/drm/i915/display/intel_display.c | 1 + drivers/gpu/drm/i915/display/intel_display_debugfs.c | 1 + drivers/gpu/drm/i915/display/intel_display_power.c | 1 + drivers/gpu/drm/i915/display/intel_display_types.h | 1 - drivers/gpu/drm/i915/display/intel_dp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/display/intel_dpio_phy.c | 1 + drivers/gpu/drm/i915/display/intel_dpll.c | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 1 + drivers/gpu/drm/i915/display/intel_dsb.c | 1 + drivers/gpu/drm/i915/display/intel_dvo.c | 1 + drivers/gpu/drm/i915/display/intel_fbc.c | 1 + drivers/gpu/drm/i915/display/intel_fdi.c | 1 + drivers/gpu/drm/i915/display/intel_fifo_underrun.c | 1 + drivers/gpu/drm/i915/display/intel_gmbus.c | 1 + drivers/gpu/drm/i915/display/intel_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_hdmi.c | 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 1 + drivers/gpu/drm/i915/display/intel_lvds.c | 1 + drivers/gpu/drm/i915/display/intel_overlay.c | 1 + drivers/gpu/drm/i915/display/intel_panel.c | 1 + drivers/gpu/drm/i915/display/intel_pipe_crc.c | 1 + drivers/gpu/drm/i915/display/intel_pps.c | 1 + drivers/gpu/drm/i915/display/intel_psr.c | 1 + drivers/gpu/drm/i915/display/intel_sdvo.c | 1 + drivers/gpu/drm/i915/display/intel_sprite.c | 1 + drivers/gpu/drm/i915/display/intel_tv.c | 1 + drivers/gpu/drm/i915/display/intel_vdsc.c | 1 + drivers/gpu/drm/i915/display/intel_vrr.c | 1 + drivers/gpu/drm/i915/display/skl_scaler.c | 1 + drivers/gpu/drm/i915/display/skl_universal_plane.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 1 + drivers/gpu/drm/i915/i915_irq.c | 1 + drivers/gpu/drm/i915/intel_pm.c | 1 + 49 files changed, 55 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/g4x_dp.c +1
-0@@ -8,6 +8,7 @@#include "g4x_dp.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" drivers/gpu/drm/i915/display/g4x_hdmi.c +1
-0@@ -8,6 +8,7 @@#include "g4x_hdmi.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/i9xx_plane.c +1
-0@@ -10,6 +10,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_sprite.h" drivers/gpu/drm/i915/display/icl_dsi.c +1
-0@@ -33,6 +33,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_dsi.h" #include "intel_panel.h" #include "intel_vdsc.h" drivers/gpu/drm/i915/display/intel_audio.c +1
-0@@ -31,6 +31,7 @@#include "intel_atomic.h" #include "intel_audio.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_lpe_audio.h" drivers/gpu/drm/i915/display/intel_cdclk.c +1
-0@@ -26,6 +26,7 @@#include "intel_atomic.h" #include "intel_bw.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_color.c +1
-0@@ -23,6 +23,7 @@*/ #include "intel_color.h" +#include "intel_de.h" #include "intel_display_types.h" #define CTM_COEFF_SIGN (1ULL << 63)drivers/gpu/drm/i915/display/intel_combo_phy.c +1
-0@@ -4,6 +4,7 @@*/ #include "intel_combo_phy.h" +#include "intel_de.h" #include "intel_display_types.h" #define for_each_combo_phy (__dev_priv, __phy) \ diff --git
a/drivers/gpu/drm/i915/display/intel_crt.cb/drivers/gpu/drm/i915/display/intel_crt.c
index1aac8bead4eb..648f1c0d3d39100644drivers/gpu/drm/i915/display/intel_crt.c +1
-0@@ -38,6 +38,7 @@#include "intel_crt.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/intel_cursor.c +1
-0@@ -13,6 +13,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" #include "intel_cursor.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_fb.h" drivers/gpu/drm/i915/display/intel_ddi.c +1
-0@@ -34,6 +34,7 @@#include "intel_crtc.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +1
-0@@ -6,6 +6,7 @@#include "i915_drv.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" /* HDMI/DVI modes ignore everything but the last 2 items. So we share diff --git
a/drivers/gpu/drm/i915/display/intel_de.hb/drivers/gpu/drm/i915/display/intel_de.h
index00da10bf35f5..f56ecea88931100644drivers/gpu/drm/i915/display/intel_de.h +1
-0@@ -8,6 +8,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "i915_trace.h" #include "intel_uncore.h" static inline u32@@ -26,7 +27,12 @@ intel_de_posting_read(struct drm_i915_private *i915,
i915_reg_treg) static inline u32intel_de_read_fw(struct drm_i915_private *i915, i915_reg_t reg){drivers/gpu/drm/i915/display/intel_de.h +7
-1-return intel_uncore_read_fw (&i915->uncore, reg); +u32 val; + + val =intel_uncore_read_fw (&i915->uncore, reg); +trace_i915_reg_rw (false, reg, val,sizeof (val), true); + +return val; } static inline void@@ -39,6 +45,7 @@ intel_de_write(struct drm_i915_private *i915, i915_reg_t reg, u32 val) static inline void intel_de_write_fw(struct drm_i915_private *i915,i915_reg_t reg,u32 val) { +trace_i915_reg_rw (true, reg, val,sizeof (val), true);intel_uncore_write_fw (&i915->uncore, reg, val); }drivers/gpu/drm/i915/display/intel_display.c +1
-0@@ -79,6 +79,7 @@#include "intel_color.h" #include "intel_crtc.h" #include "intel_csr.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_link_training.h" #include "intel_fbc.h" drivers/gpu/drm/i915/display/intel_display_debugfs.c +1
-0@@ -10,6 +10,7 @@#include "intel_csr.h" #include "intel_display_debugfs.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_fbc.h" drivers/gpu/drm/i915/display/intel_display_power.c +1
-0@@ -11,6 +11,7 @@#include "intel_combo_phy.h" #include "intel_csr.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_hotplug.h" drivers/gpu/drm/i915/display/intel_display_types.h +0
-1@@ -45,7 +45,6 @@#include <media/cec-notifier.h> #include "i915_drv.h" -#include "intel_de.h" struct drm_printer ;struct __intel_global_objs_state ;drivers/gpu/drm/i915/display/intel_dp.c +1
-0@@ -46,6 +46,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_aux.h" drivers/gpu/drm/i915/display/intel_dp_hdcp.c +1
-0@@ -12,6 +12,7 @@#include <drm/drm_print.h> #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h" drivers/gpu/drm/i915/display/intel_dp_mst.c +1
-0@@ -34,6 +34,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h" drivers/gpu/drm/i915/display/intel_dpio_phy.c +1
-0@@ -23,6 +23,7 @@#include "display/intel_dp.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_dpll.c +1
-0@@ -4,6 +4,7 @@*/ #include <linux/kernel.h> #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1
-0@@ -21,6 +21,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_dsb.c +1
-0@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #define DSB_BUF_SIZE (2 * PAGE_SIZE)drivers/gpu/drm/i915/display/intel_dvo.c +1
-0@@ -33,6 +33,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dvo.h" #include "intel_dvo_dev.h" drivers/gpu/drm/i915/display/intel_fbc.c +1
-0@@ -43,6 +43,7 @@#include "i915_drv.h" #include "i915_trace.h" #include "i915_vgpu.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_frontbuffer.h" drivers/gpu/drm/i915/display/intel_fdi.c +1
-0@@ -5,6 +5,7 @@#include "intel_atomic.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h" drivers/gpu/drm/i915/display/intel_fifo_underrun.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" #include "i915_trace.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/intel_gmbus.c +1
-0@@ -34,6 +34,7 @@#include <drm/drm_hdcp.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_hdcp.c +1
-0@@ -18,6 +18,7 @@#include "i915_drv.h" #include "i915_reg.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hdcp.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_hdmi.c +1
-0@@ -43,6 +43,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_lspcon.c +1
-0@@ -27,6 +27,7 @@#include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_edid.h> +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_lspcon.h" drivers/gpu/drm/i915/display/intel_lvds.c +1
-0@@ -41,6 +41,7 @@#include "i915_drv.h" #include "intel_atomic.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h" #include "intel_lvds.h" drivers/gpu/drm/i915/display/intel_overlay.c +1
-0@@ -34,6 +34,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_overlay.h" drivers/gpu/drm/i915/display/intel_panel.c +1
-0@@ -35,6 +35,7 @@#include <linux/pwm.h> #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux_backlight.h" #include "intel_dsi_dcs_backlight.h" drivers/gpu/drm/i915/display/intel_pipe_crc.c +1
-0@@ -30,6 +30,7 @@#include <linux/seq_file.h> #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_pipe_crc.h" drivers/gpu/drm/i915/display/intel_pps.c +1
-0@@ -5,6 +5,7 @@#include "g4x_dp.h" #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_psr.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux.h" #include "intel_hdmi.h" drivers/gpu/drm/i915/display/intel_sdvo.c +1
-0@@ -39,6 +39,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fifo_underrun.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_sprite.c +1
-0@@ -43,6 +43,7 @@#include "i915_trace.h" #include "i915_vgpu.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_sprite.h" drivers/gpu/drm/i915/display/intel_tv.c +1
-0@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hotplug.h" #include "intel_tv.h" drivers/gpu/drm/i915/display/intel_vdsc.c +1
-0@@ -7,6 +7,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_vdsc.h" drivers/gpu/drm/i915/display/intel_vrr.c +1
-0@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_vrr.h" drivers/gpu/drm/i915/display/skl_scaler.c +1
-0@@ -2,6 +2,7 @@/* * Copyright © 2020 Intel Corporation */ +#include "intel_de.h" #include "intel_display_types.h" #include "skl_scaler.h" #include "skl_universal_plane.h" drivers/gpu/drm/i915/display/skl_universal_plane.c +1
-0@@ -10,6 +10,7 @@#include "i915_drv.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_pm.h" drivers/gpu/drm/i915/display/vlv_dsi.c +1
-0@@ -34,6 +34,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/vlv_dsi_pll.c +1
-0@@ -28,6 +28,7 @@#include <linux/kernel.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_sideband.h" drivers/gpu/drm/i915/i915_irq.c +1
-0@@ -35,6 +35,7 @@#include <drm/drm_drv.h> #include <drm/drm_irq.h> +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fifo_underrun.h" #include "display/intel_hotplug.h" drivers/gpu/drm/i915/intel_pm.c +1
-1@@ -35,6 +35,7 @@#include "display/intel_atomic.h" #include "display/intel_atomic_plane.h" #include "display/intel_bw.h" +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fbc.h" #include "display/intel_sprite.h" --2.26.3
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 54 lines · Anshuman
Quoted 54 lines
-----Original Message-----
From: Intel-gfx <[email protected]> On Behalf Of Ville Syrjala
Sent: Thursday, April 29, 2021 8:06 AM
To: [email protected]
Cc: Chiou, Cooper <[email protected]>
Subject: [Intel-gfx] [PATCH] drm/i915: Include intel_de_{read, write}_fw() ini915_reg_rwtracesFrom: Ville Syrjälä <[email protected]>
We lost the
i915_reg_rwtracepoint for a lot of display registers when we switched from the heavyweight normal register accessors to the lightweight_fw()variants. Put the tracepoints back so that the register traces might actually be useful. Hopefully these should be close to free when the tracepoint is not enabled and thus not slow down our vblank critical sections significantly.The biggest hurdle is untangling the include order. Fortunately just pulling
intel_de.hout fromintel_display_types.hseems to have been sufficient to make it build.This little cocci script did most of the work for me:
@find@
@@
(intel_de_read(...)
|intel_de_read_fw(...)
|intel_de_write(...)
|intel_de_write_fw(...)
)@has_include@
@@
(
#include "intel_de.h"
|
#include "display/intel_de.h"
)@depends on find && !has_include@
@@
+ #include "intel_de.h"
#include "intel_display_types.h"@depends on find && !has_include@
@@
+ #include "display/intel_de.h"
#include "display/intel_display_types.h"
Quoted 5 lines
Quoted 2 lines
Cc Cooper Chiou <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>Overall patch Looks good to me, just in my opinion worth to edit the function comment intel_de_{read, write}_fw() /* Note: read the warnings for intel_uncore_*_fw() functions! */
to indicate it is a traced function.
The one thing we should still point out is the same-cacheline issues. The rest of the uncore comments didn't really apply anyway since it's mostly about forcewake. I guess I could just copy paste the relevant bits from there into intel_de.h directly.
Quoted 713 lines
Reviewed-by Anshuman Gupta <[email protected]>Quoted 712 lines
--- drivers/gpu/drm/i915/display/g4x_dp.c | 1 + drivers/gpu/drm/i915/display/g4x_hdmi.c | 1 + drivers/gpu/drm/i915/display/i9xx_plane.c | 1 + drivers/gpu/drm/i915/display/icl_dsi.c | 1 + drivers/gpu/drm/i915/display/intel_audio.c | 1 + drivers/gpu/drm/i915/display/intel_cdclk.c | 1 + drivers/gpu/drm/i915/display/intel_color.c | 1 + drivers/gpu/drm/i915/display/intel_combo_phy.c | 1 + drivers/gpu/drm/i915/display/intel_crt.c | 1 + drivers/gpu/drm/i915/display/intel_cursor.c | 1 + drivers/gpu/drm/i915/display/intel_ddi.c | 1 + drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 1 + drivers/gpu/drm/i915/display/intel_de.h | 9 ++++++++- drivers/gpu/drm/i915/display/intel_display.c | 1 + drivers/gpu/drm/i915/display/intel_display_debugfs.c | 1 + drivers/gpu/drm/i915/display/intel_display_power.c | 1 + drivers/gpu/drm/i915/display/intel_display_types.h | 1 - drivers/gpu/drm/i915/display/intel_dp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/display/intel_dpio_phy.c | 1 + drivers/gpu/drm/i915/display/intel_dpll.c | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 1 + drivers/gpu/drm/i915/display/intel_dsb.c | 1 + drivers/gpu/drm/i915/display/intel_dvo.c | 1 + drivers/gpu/drm/i915/display/intel_fbc.c | 1 + drivers/gpu/drm/i915/display/intel_fdi.c | 1 + drivers/gpu/drm/i915/display/intel_fifo_underrun.c | 1 + drivers/gpu/drm/i915/display/intel_gmbus.c | 1 + drivers/gpu/drm/i915/display/intel_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_hdmi.c | 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 1 + drivers/gpu/drm/i915/display/intel_lvds.c | 1 + drivers/gpu/drm/i915/display/intel_overlay.c | 1 + drivers/gpu/drm/i915/display/intel_panel.c | 1 + drivers/gpu/drm/i915/display/intel_pipe_crc.c | 1 + drivers/gpu/drm/i915/display/intel_pps.c | 1 + drivers/gpu/drm/i915/display/intel_psr.c | 1 + drivers/gpu/drm/i915/display/intel_sdvo.c | 1 + drivers/gpu/drm/i915/display/intel_sprite.c | 1 + drivers/gpu/drm/i915/display/intel_tv.c | 1 + drivers/gpu/drm/i915/display/intel_vdsc.c | 1 + drivers/gpu/drm/i915/display/intel_vrr.c | 1 + drivers/gpu/drm/i915/display/skl_scaler.c | 1 + drivers/gpu/drm/i915/display/skl_universal_plane.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 1 + drivers/gpu/drm/i915/i915_irq.c | 1 + drivers/gpu/drm/i915/intel_pm.c | 1 + 49 files changed, 55 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/g4x_dp.c +1
-0@@ -8,6 +8,7 @@#include "g4x_dp.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" drivers/gpu/drm/i915/display/g4x_hdmi.c +1
-0@@ -8,6 +8,7 @@#include "g4x_hdmi.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/i9xx_plane.c +1
-0@@ -10,6 +10,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_sprite.h" drivers/gpu/drm/i915/display/icl_dsi.c +1
-0@@ -33,6 +33,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_dsi.h" #include "intel_panel.h" #include "intel_vdsc.h" drivers/gpu/drm/i915/display/intel_audio.c +1
-0@@ -31,6 +31,7 @@#include "intel_atomic.h" #include "intel_audio.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_lpe_audio.h" drivers/gpu/drm/i915/display/intel_cdclk.c +1
-0@@ -26,6 +26,7 @@#include "intel_atomic.h" #include "intel_bw.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_color.c +1
-0@@ -23,6 +23,7 @@*/ #include "intel_color.h" +#include "intel_de.h" #include "intel_display_types.h" #define CTM_COEFF_SIGN (1ULL << 63)drivers/gpu/drm/i915/display/intel_combo_phy.c +1
-0@@ -4,6 +4,7 @@*/ #include "intel_combo_phy.h" +#include "intel_de.h" #include "intel_display_types.h" #define for_each_combo_phy (__dev_priv, __phy) \ diff --git
a/drivers/gpu/drm/i915/display/intel_crt.cb/drivers/gpu/drm/i915/display/intel_crt.c
index1aac8bead4eb..648f1c0d3d39100644drivers/gpu/drm/i915/display/intel_crt.c +1
-0@@ -38,6 +38,7 @@#include "intel_crt.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/intel_cursor.c +1
-0@@ -13,6 +13,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" #include "intel_cursor.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_fb.h" drivers/gpu/drm/i915/display/intel_ddi.c +1
-0@@ -34,6 +34,7 @@#include "intel_crtc.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +1
-0@@ -6,6 +6,7 @@#include "i915_drv.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" /* HDMI/DVI modes ignore everything but the last 2 items. So we share diff --git
a/drivers/gpu/drm/i915/display/intel_de.hb/drivers/gpu/drm/i915/display/intel_de.h
index00da10bf35f5..f56ecea88931100644drivers/gpu/drm/i915/display/intel_de.h +1
-0@@ -8,6 +8,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "i915_trace.h" #include "intel_uncore.h" static inline u32@@ -26,7 +27,12 @@ intel_de_posting_read(struct drm_i915_private *i915,
i915_reg_treg) static inline u32intel_de_read_fw(struct drm_i915_private *i915, i915_reg_t reg){drivers/gpu/drm/i915/display/intel_de.h +7
-1-return intel_uncore_read_fw (&i915->uncore, reg); +u32 val; + + val =intel_uncore_read_fw (&i915->uncore, reg); +trace_i915_reg_rw (false, reg, val,sizeof (val), true); + +return val; } static inline void@@ -39,6 +45,7 @@ intel_de_write(struct drm_i915_private *i915, i915_reg_t reg, u32 val) static inline void intel_de_write_fw(struct drm_i915_private *i915,i915_reg_t reg,u32 val) { +trace_i915_reg_rw (true, reg, val,sizeof (val), true);intel_uncore_write_fw (&i915->uncore, reg, val); }drivers/gpu/drm/i915/display/intel_display.c +1
-0@@ -79,6 +79,7 @@#include "intel_color.h" #include "intel_crtc.h" #include "intel_csr.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_link_training.h" #include "intel_fbc.h" drivers/gpu/drm/i915/display/intel_display_debugfs.c +1
-0@@ -10,6 +10,7 @@#include "intel_csr.h" #include "intel_display_debugfs.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_fbc.h" drivers/gpu/drm/i915/display/intel_display_power.c +1
-0@@ -11,6 +11,7 @@#include "intel_combo_phy.h" #include "intel_csr.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_hotplug.h" drivers/gpu/drm/i915/display/intel_display_types.h +0
-1@@ -45,7 +45,6 @@#include <media/cec-notifier.h> #include "i915_drv.h" -#include "intel_de.h" struct drm_printer ;struct __intel_global_objs_state ;drivers/gpu/drm/i915/display/intel_dp.c +1
-0@@ -46,6 +46,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_aux.h" drivers/gpu/drm/i915/display/intel_dp_hdcp.c +1
-0@@ -12,6 +12,7 @@#include <drm/drm_print.h> #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h" drivers/gpu/drm/i915/display/intel_dp_mst.c +1
-0@@ -34,6 +34,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h" drivers/gpu/drm/i915/display/intel_dpio_phy.c +1
-0@@ -23,6 +23,7 @@#include "display/intel_dp.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_dpll.c +1
-0@@ -4,6 +4,7 @@*/ #include <linux/kernel.h> #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1
-0@@ -21,6 +21,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_dsb.c +1
-0@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #define DSB_BUF_SIZE (2 * PAGE_SIZE)drivers/gpu/drm/i915/display/intel_dvo.c +1
-0@@ -33,6 +33,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dvo.h" #include "intel_dvo_dev.h" drivers/gpu/drm/i915/display/intel_fbc.c +1
-0@@ -43,6 +43,7 @@#include "i915_drv.h" #include "i915_trace.h" #include "i915_vgpu.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_frontbuffer.h" drivers/gpu/drm/i915/display/intel_fdi.c +1
-0@@ -5,6 +5,7 @@#include "intel_atomic.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h" drivers/gpu/drm/i915/display/intel_fifo_underrun.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" #include "i915_trace.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/intel_gmbus.c +1
-0@@ -34,6 +34,7 @@#include <drm/drm_hdcp.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_hdcp.c +1
-0@@ -18,6 +18,7 @@#include "i915_drv.h" #include "i915_reg.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hdcp.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_hdmi.c +1
-0@@ -43,6 +43,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_lspcon.c +1
-0@@ -27,6 +27,7 @@#include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_edid.h> +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_lspcon.h" drivers/gpu/drm/i915/display/intel_lvds.c +1
-0@@ -41,6 +41,7 @@#include "i915_drv.h" #include "intel_atomic.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h" #include "intel_lvds.h" drivers/gpu/drm/i915/display/intel_overlay.c +1
-0@@ -34,6 +34,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_overlay.h" drivers/gpu/drm/i915/display/intel_panel.c +1
-0@@ -35,6 +35,7 @@#include <linux/pwm.h> #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux_backlight.h" #include "intel_dsi_dcs_backlight.h" drivers/gpu/drm/i915/display/intel_pipe_crc.c +1
-0@@ -30,6 +30,7 @@#include <linux/seq_file.h> #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_pipe_crc.h" drivers/gpu/drm/i915/display/intel_pps.c +1
-0@@ -5,6 +5,7 @@#include "g4x_dp.h" #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_psr.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux.h" #include "intel_hdmi.h" drivers/gpu/drm/i915/display/intel_sdvo.c +1
-0@@ -39,6 +39,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fifo_underrun.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_sprite.c +1
-0@@ -43,6 +43,7 @@#include "i915_trace.h" #include "i915_vgpu.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_sprite.h" drivers/gpu/drm/i915/display/intel_tv.c +1
-0@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hotplug.h" #include "intel_tv.h" drivers/gpu/drm/i915/display/intel_vdsc.c +1
-0@@ -7,6 +7,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_vdsc.h" drivers/gpu/drm/i915/display/intel_vrr.c +1
-0@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_vrr.h" drivers/gpu/drm/i915/display/skl_scaler.c +1
-0@@ -2,6 +2,7 @@/* * Copyright © 2020 Intel Corporation */ +#include "intel_de.h" #include "intel_display_types.h" #include "skl_scaler.h" #include "skl_universal_plane.h" drivers/gpu/drm/i915/display/skl_universal_plane.c +1
-0@@ -10,6 +10,7 @@#include "i915_drv.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_pm.h" drivers/gpu/drm/i915/display/vlv_dsi.c +1
-0@@ -34,6 +34,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/vlv_dsi_pll.c +1
-0@@ -28,6 +28,7 @@#include <linux/kernel.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_sideband.h" drivers/gpu/drm/i915/i915_irq.c +1
-0@@ -35,6 +35,7 @@#include <drm/drm_drv.h> #include <drm/drm_irq.h> +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fifo_underrun.h" #include "display/intel_hotplug.h" drivers/gpu/drm/i915/intel_pm.c +1
-1@@ -35,6 +35,7 @@#include "display/intel_atomic.h" #include "display/intel_atomic_plane.h" #include "display/intel_bw.h" +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fbc.h" #include "display/intel_sprite.h" --2.26.3
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We lost the
i915_reg_rwtracepoint for a lot of display registers when we switched from the heavyweight normal register accessors to the lightweight_fw()variants.
Sorry, which change was that exactly?
Quoted 8 lines
Put the tracepoints back so that
the register traces might actually be useful. Hopefully these should be close to free when the tracepoint is not enabled and thus not slow down our vblank critical sections significantly.The biggest hurdle is untangling the include order. Fortunately just pulling
intel_de.hout fromintel_display_types.hseems to have been sufficient to make it build.
This is something I've been meaning to fix independently. Thanks.
Quoted 696 lines
This little cocci script did most of the work for me:
@find@
@@
(intel_de_read(...)
|intel_de_read_fw(...)
|intel_de_write(...)
|intel_de_write_fw(...)
)@has_include@
@@
(
#include "intel_de.h"
|
#include "display/intel_de.h"
)@depends on find && !has_include@
@@
+ #include "intel_de.h"
#include "intel_display_types.h"@depends on find && !has_include@
@@
+ #include "display/intel_de.h"
#include "display/intel_display_types.h"Cc Cooper Chiou <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/g4x_dp.c | 1 + drivers/gpu/drm/i915/display/g4x_hdmi.c | 1 + drivers/gpu/drm/i915/display/i9xx_plane.c | 1 + drivers/gpu/drm/i915/display/icl_dsi.c | 1 + drivers/gpu/drm/i915/display/intel_audio.c | 1 + drivers/gpu/drm/i915/display/intel_cdclk.c | 1 + drivers/gpu/drm/i915/display/intel_color.c | 1 + drivers/gpu/drm/i915/display/intel_combo_phy.c | 1 + drivers/gpu/drm/i915/display/intel_crt.c | 1 + drivers/gpu/drm/i915/display/intel_cursor.c | 1 + drivers/gpu/drm/i915/display/intel_ddi.c | 1 + drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 1 + drivers/gpu/drm/i915/display/intel_de.h | 9 ++++++++- drivers/gpu/drm/i915/display/intel_display.c | 1 + drivers/gpu/drm/i915/display/intel_display_debugfs.c | 1 + drivers/gpu/drm/i915/display/intel_display_power.c | 1 + drivers/gpu/drm/i915/display/intel_display_types.h | 1 - drivers/gpu/drm/i915/display/intel_dp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/display/intel_dpio_phy.c | 1 + drivers/gpu/drm/i915/display/intel_dpll.c | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 1 + drivers/gpu/drm/i915/display/intel_dsb.c | 1 + drivers/gpu/drm/i915/display/intel_dvo.c | 1 + drivers/gpu/drm/i915/display/intel_fbc.c | 1 + drivers/gpu/drm/i915/display/intel_fdi.c | 1 + drivers/gpu/drm/i915/display/intel_fifo_underrun.c | 1 + drivers/gpu/drm/i915/display/intel_gmbus.c | 1 + drivers/gpu/drm/i915/display/intel_hdcp.c | 1 + drivers/gpu/drm/i915/display/intel_hdmi.c | 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 1 + drivers/gpu/drm/i915/display/intel_lvds.c | 1 + drivers/gpu/drm/i915/display/intel_overlay.c | 1 + drivers/gpu/drm/i915/display/intel_panel.c | 1 + drivers/gpu/drm/i915/display/intel_pipe_crc.c | 1 + drivers/gpu/drm/i915/display/intel_pps.c | 1 + drivers/gpu/drm/i915/display/intel_psr.c | 1 + drivers/gpu/drm/i915/display/intel_sdvo.c | 1 + drivers/gpu/drm/i915/display/intel_sprite.c | 1 + drivers/gpu/drm/i915/display/intel_tv.c | 1 + drivers/gpu/drm/i915/display/intel_vdsc.c | 1 + drivers/gpu/drm/i915/display/intel_vrr.c | 1 + drivers/gpu/drm/i915/display/skl_scaler.c | 1 + drivers/gpu/drm/i915/display/skl_universal_plane.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi.c | 1 + drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 1 + drivers/gpu/drm/i915/i915_irq.c | 1 + drivers/gpu/drm/i915/intel_pm.c | 1 + 49 files changed, 55 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/g4x_dp.c +1
-0@@ -8,6 +8,7 @@#include "g4x_dp.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" drivers/gpu/drm/i915/display/g4x_hdmi.c +1
-0@@ -8,6 +8,7 @@#include "g4x_hdmi.h" #include "intel_audio.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/i9xx_plane.c +1
-0@@ -10,6 +10,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_sprite.h" drivers/gpu/drm/i915/display/icl_dsi.c +1
-0@@ -33,6 +33,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_dsi.h" #include "intel_panel.h" #include "intel_vdsc.h" drivers/gpu/drm/i915/display/intel_audio.c +1
-0@@ -31,6 +31,7 @@#include "intel_atomic.h" #include "intel_audio.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_lpe_audio.h" drivers/gpu/drm/i915/display/intel_cdclk.c +1
-0@@ -26,6 +26,7 @@#include "intel_atomic.h" #include "intel_bw.h" #include "intel_cdclk.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_color.c +1
-0@@ -23,6 +23,7 @@*/ #include "intel_color.h" +#include "intel_de.h" #include "intel_display_types.h" #define CTM_COEFF_SIGN (1ULL << 63)drivers/gpu/drm/i915/display/intel_combo_phy.c +1
-0@@ -4,6 +4,7 @@*/ #include "intel_combo_phy.h" +#include "intel_de.h" #include "intel_display_types.h" #define for_each_combo_phy (__dev_priv, __phy) \drivers/gpu/drm/i915/display/intel_crt.c +1
-0@@ -38,6 +38,7 @@#include "intel_crt.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/intel_cursor.c +1
-0@@ -13,6 +13,7 @@#include "intel_atomic.h" #include "intel_atomic_plane.h" #include "intel_cursor.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_fb.h" drivers/gpu/drm/i915/display/intel_ddi.c +1
-0@@ -34,6 +34,7 @@#include "intel_crtc.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_link_training.h" drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +1
-0@@ -6,6 +6,7 @@#include "i915_drv.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" /* HDMI/DVI modes ignore everything but the last 2 items. So we share drivers/gpu/drm/i915/display/intel_de.h +8
-1@@ -8,6 +8,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "i915_trace.h" #include "intel_uncore.h" static inline u32@@ -26,7 +27,12 @@ intel_de_posting_read(struct drm_i915_private *i915, i915_reg_t reg)static inline u32 intel_de_read_fw (struct drm_i915_private *i915,i915_reg_t reg) { -return intel_uncore_read_fw (&i915->uncore, reg); +u32 val; + + val =intel_uncore_read_fw (&i915->uncore, reg); +trace_i915_reg_rw (false, reg, val,sizeof (val), true); + +return val; } static inline void@@ -39,6 +45,7 @@ intel_de_write(struct drm_i915_private *i915, i915_reg_t reg, u32 val)static inline void intel_de_write_fw (struct drm_i915_private *i915,i915_reg_t reg,u32 val) { +trace_i915_reg_rw (true, reg, val,sizeof (val), true);intel_uncore_write_fw (&i915->uncore, reg, val); }drivers/gpu/drm/i915/display/intel_display.c +1
-0@@ -79,6 +79,7 @@#include "intel_color.h" #include "intel_crtc.h" #include "intel_csr.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_link_training.h" #include "intel_fbc.h" drivers/gpu/drm/i915/display/intel_display_debugfs.c +1
-0@@ -10,6 +10,7 @@#include "intel_csr.h" #include "intel_display_debugfs.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_fbc.h" drivers/gpu/drm/i915/display/intel_display_power.c +1
-0@@ -11,6 +11,7 @@#include "intel_combo_phy.h" #include "intel_csr.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_hotplug.h" drivers/gpu/drm/i915/display/intel_display_types.h +0
-1@@ -45,7 +45,6 @@#include <media/cec-notifier.h> #include "i915_drv.h" -#include "intel_de.h" struct drm_printer ;struct __intel_global_objs_state ;drivers/gpu/drm/i915/display/intel_dp.c +1
-0@@ -46,6 +46,7 @@#include "intel_audio.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_aux.h" drivers/gpu/drm/i915/display/intel_dp_hdcp.c +1
-0@@ -12,6 +12,7 @@#include <drm/drm_print.h> #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h" drivers/gpu/drm/i915/display/intel_dp_mst.c +1
-0@@ -34,6 +34,7 @@#include "intel_connector.h" #include "intel_crtc.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dp_hdcp.h" drivers/gpu/drm/i915/display/intel_dpio_phy.c +1
-0@@ -23,6 +23,7 @@#include "display/intel_dp.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_dpll.c +1
-0@@ -4,6 +4,7 @@*/ #include <linux/kernel.h> #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_display.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1
-0@@ -21,6 +21,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dpio_phy.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_dsb.c +1
-0@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #define DSB_BUF_SIZE (2 * PAGE_SIZE)drivers/gpu/drm/i915/display/intel_dvo.c +1
-0@@ -33,6 +33,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dvo.h" #include "intel_dvo_dev.h" drivers/gpu/drm/i915/display/intel_fbc.c +1
-0@@ -43,6 +43,7 @@#include "i915_drv.h" #include "i915_trace.h" #include "i915_vgpu.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_frontbuffer.h" drivers/gpu/drm/i915/display/intel_fdi.c +1
-0@@ -5,6 +5,7 @@#include "intel_atomic.h" #include "intel_ddi.h" #include "intel_ddi_buf_trans.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fdi.h" drivers/gpu/drm/i915/display/intel_fifo_underrun.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" #include "i915_trace.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fbc.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/intel_gmbus.c +1
-0@@ -34,6 +34,7 @@#include <drm/drm_hdcp.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_hdcp.c +1
-0@@ -18,6 +18,7 @@#include "i915_drv.h" #include "i915_reg.h" #include "intel_display_power.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hdcp.h" #include "intel_sideband.h" drivers/gpu/drm/i915/display/intel_hdmi.c +1
-0@@ -43,6 +43,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_ddi.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_lspcon.c +1
-0@@ -27,6 +27,7 @@#include <drm/drm_dp_dual_mode_helper.h> #include <drm/drm_edid.h> +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_lspcon.h" drivers/gpu/drm/i915/display/intel_lvds.c +1
-0@@ -41,6 +41,7 @@#include "i915_drv.h" #include "intel_atomic.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_gmbus.h" #include "intel_lvds.h" drivers/gpu/drm/i915/display/intel_overlay.c +1
-0@@ -34,6 +34,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_overlay.h" drivers/gpu/drm/i915/display/intel_panel.c +1
-0@@ -35,6 +35,7 @@#include <linux/pwm.h> #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux_backlight.h" #include "intel_dsi_dcs_backlight.h" drivers/gpu/drm/i915/display/intel_pipe_crc.c +1
-0@@ -30,6 +30,7 @@#include <linux/seq_file.h> #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_pipe_crc.h" drivers/gpu/drm/i915/display/intel_pps.c +1
-0@@ -5,6 +5,7 @@#include "g4x_dp.h" #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp.h" #include "intel_dpll.h" drivers/gpu/drm/i915/display/intel_psr.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" #include "intel_atomic.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dp_aux.h" #include "intel_hdmi.h" drivers/gpu/drm/i915/display/intel_sdvo.c +1
-0@@ -39,6 +39,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fifo_underrun.h" #include "intel_gmbus.h" drivers/gpu/drm/i915/display/intel_sprite.c +1
-0@@ -43,6 +43,7 @@#include "i915_trace.h" #include "i915_vgpu.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_frontbuffer.h" #include "intel_sprite.h" drivers/gpu/drm/i915/display/intel_tv.c +1
-0@@ -36,6 +36,7 @@#include "i915_drv.h" #include "intel_connector.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_hotplug.h" #include "intel_tv.h" drivers/gpu/drm/i915/display/intel_vdsc.c +1
-0@@ -7,6 +7,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_vdsc.h" drivers/gpu/drm/i915/display/intel_vrr.c +1
-0@@ -5,6 +5,7 @@*/ #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_vrr.h" drivers/gpu/drm/i915/display/skl_scaler.c +1
-0@@ -2,6 +2,7 @@/* * Copyright © 2020 Intel Corporation */ +#include "intel_de.h" #include "intel_display_types.h" #include "skl_scaler.h" #include "skl_universal_plane.h" drivers/gpu/drm/i915/display/skl_universal_plane.c +1
-0@@ -10,6 +10,7 @@#include "i915_drv.h" #include "intel_atomic_plane.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_fb.h" #include "intel_pm.h" drivers/gpu/drm/i915/display/vlv_dsi.c +1
-0@@ -34,6 +34,7 @@#include "intel_atomic.h" #include "intel_connector.h" #include "intel_crtc.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_fifo_underrun.h" drivers/gpu/drm/i915/display/vlv_dsi_pll.c +1
-0@@ -28,6 +28,7 @@#include <linux/kernel.h> #include "i915_drv.h" +#include "intel_de.h" #include "intel_display_types.h" #include "intel_dsi.h" #include "intel_sideband.h" drivers/gpu/drm/i915/i915_irq.c +1
-0@@ -35,6 +35,7 @@#include <drm/drm_drv.h> #include <drm/drm_irq.h> +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fifo_underrun.h" #include "display/intel_hotplug.h" drivers/gpu/drm/i915/intel_pm.c +1
-0@@ -35,6 +35,7 @@#include "display/intel_atomic.h" #include "display/intel_atomic_plane.h" #include "display/intel_bw.h" +#include "display/intel_de.h" #include "display/intel_display_types.h" #include "display/intel_fbc.h" #include "display/intel_sprite.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
Quoted 8 lines · Jani Nikula
Quoted 5 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We lost the
i915_reg_rwtracepoint for a lot of display registers when we switched from the heavyweight normal register accessors to the lightweight_fw()variants.Sorry, which change was that exactly?
commit dd584fc0711a ("drm/i915: Use I915_READ_FW for plane updates") and probably a few others like it.
Quoted 11 lines
Quoted 9 lines
Put the tracepoints back so that
the register traces might actually be useful. Hopefully these should be close to free when the tracepoint is not enabled and thus not slow down our vblank critical sections significantly.The biggest hurdle is untangling the include order. Fortunately just pulling
intel_de.hout fromintel_display_types.hseems to have been sufficient to make it build.This is something I've been meaning to fix independently. Thanks.
Hmm. Maybe I should split this into two commits...
Quoted 2 lines
Reviewed-by Jani Nikula <[email protected]>
Ta.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerQuoted 23 lines · Ville Syrjälä
Quoted 8 lines · Jani Nikula
Quoted 5 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We lost the
i915_reg_rwtracepoint for a lot of display registers when we switched from the heavyweight normal register accessors to the lightweight_fw()variants.Sorry, which change was that exactly?
commit
dd584fc0711a("drm/i915: UseI915_READ_FWfor plane updates") and probably a few others like it.Quoted 10 lines
Quoted 9 lines
Put the tracepoints back so that
the register traces might actually be useful. Hopefully these should be close to free when the tracepoint is not enabled and thus not slow down our vblank critical sections significantly.The biggest hurdle is untangling the include order. Fortunately just pulling
intel_de.hout fromintel_display_types.hseems to have been sufficient to make it build.
Quoted 8 lines
Quoted 1 line
This is something I've been meaning to fix independently. Thanks.
Hmm. Maybe I should split this into two commits...
Quoted 2 lines
Reviewed-by Jani Nikula <[email protected]>Ta.
Rb holds whether you decide to split or not, up to you.
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx