igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t 00/10] lib/kms: Move towards using 'crtcs' instead of 'pipes'
@ 2025-12-10  9:38 Ville Syrjala
  2025-12-10  9:38 ` [PATCH i-g-t 01/10] tests/intel/kms_dp_linktrain_fallback: Reduce side effects in igt_output_set_pipe() args Ville Syrjala
                   ` (12 more replies)
  0 siblings, 13 replies; 30+ messages in thread
From: Ville Syrjala @ 2025-12-10  9:38 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Start moving towards using igt_pipe_t (or rather igt_crtc_t as it
will be known afterwards) instead of pipes. Pipes are really an
Intel hardware concept and even there things tend to fall apart when
we introduce stuff like pipe joining. So the plan is to use the
more abstract crtc concept as much as possible, only dealing with
pipes when we absolutely have to.

Mostly just refactoring, done with cocci and sed. A few manual
things here and there.

I wanted to include some s/pipe/crtc/ variable renaming here
as well, but I hit some pathological coccinelle performace issue
around igt_kms.c which I'll need to mitigate or else it takes
forever to apply the semantic patch.

Ville Syrjälä (10):
  tests/intel/kms_dp_linktrain_fallback: Reduce side effects in
    igt_output_set_pipe() args
  lib/kms: Introduce igt_display_n_crtcs()
  lib/kms: Use igt_display_n_crtcs() everywhere
  lib/kms: Introduce igt_crtc_for_pipe()
  lib/kms: Use igt_crtc_for_pipe() everywhere
  lib/kms: Remove tall tales about 'pipe' in DRM_IOCTL_WAIT_VBLANK
  lib/kms: Pass the entire igt_pipe_t to igt_wait_for_vblank*()
  lib/kms: Introduce igt_output_set_crtc()
  lib/kms: Replace igt_output_set_pipe() with igt_output_set_crtc()
  lib/kms: Rename igt_pipe_t to igt_crtc_t

 benchmarks/kms_fb_stress.c                    |   3 +-
 lib/igt_kms.c                                 | 204 +++++++++---------
 lib/igt_kms.h                                 |  70 +++---
 tests/amdgpu/amd_abm.c                        |  10 +-
 tests/amdgpu/amd_assr.c                       |   9 +-
 tests/amdgpu/amd_bypass.c                     |   7 +-
 tests/amdgpu/amd_color.c                      |   7 +-
 tests/amdgpu/amd_dp_dsc.c                     |  20 +-
 tests/amdgpu/amd_freesync_video_mode.c        |   5 +-
 tests/amdgpu/amd_hotplug.c                    |  10 +-
 tests/amdgpu/amd_ilr.c                        |  12 +-
 tests/amdgpu/amd_link_settings.c              |   9 +-
 tests/amdgpu/amd_mall.c                       |   7 +-
 tests/amdgpu/amd_max_bpc.c                    |   7 +-
 tests/amdgpu/amd_mem_leak.c                   |   7 +-
 tests/amdgpu/amd_mode_switch.c                |   9 +-
 tests/amdgpu/amd_multidisplay_modeset.c       |  15 +-
 tests/amdgpu/amd_odm.c                        |  10 +-
 tests/amdgpu/amd_plane.c                      |  24 ++-
 tests/amdgpu/amd_psr.c                        |  27 ++-
 tests/amdgpu/amd_replay.c                     |   7 +-
 tests/amdgpu/amd_subvp.c                      |  11 +-
 tests/chamelium/kms_chamelium_color.c         |  28 +--
 tests/chamelium/kms_chamelium_edid.c          |   5 +-
 tests/chamelium/kms_chamelium_helper.c        |  11 +-
 tests/chamelium/kms_chamelium_hpd.c           |   8 +-
 .../kms_chamelium_sharpness_filter.c          |  16 +-
 tests/drm_read.c                              |   3 +-
 tests/intel/gem_eio.c                         |   7 +-
 tests/intel/gem_exec_reloc.c                  |   3 +-
 tests/intel/gem_pxp.c                         |  11 +-
 tests/intel/kms_big_fb.c                      |  17 +-
 tests/intel/kms_busy.c                        |  26 +--
 tests/intel/kms_ccs.c                         |   3 +-
 tests/intel/kms_cdclk.c                       |  19 +-
 tests/intel/kms_dirtyfb.c                     |   8 +-
 tests/intel/kms_dp_linktrain_fallback.c       |   7 +-
 tests/intel/kms_draw_crc.c                    |   3 +-
 tests/intel/kms_dsc.c                         |   5 +-
 tests/intel/kms_fb_coherency.c                |   8 +-
 tests/intel/kms_fbc_dirty_rect.c              |   5 +-
 tests/intel/kms_fence_pin_leak.c              |   7 +-
 tests/intel/kms_flip_scaled_crc.c             |  14 +-
 tests/intel/kms_flip_tiling.c                 |   5 +-
 tests/intel/kms_frontbuffer_tracking.c        |  40 ++--
 tests/intel/kms_joiner.c                      |  20 +-
 tests/intel/kms_joiner_helper.c               |   8 +-
 tests/intel/kms_mmap_write_crc.c              |   8 +-
 tests/intel/kms_pipe_b_c_ivb.c                |   6 +-
 tests/intel/kms_pipe_stress.c                 |  12 +-
 tests/intel/kms_pm_backlight.c                |   7 +-
 tests/intel/kms_pm_dc.c                       |  10 +-
 tests/intel/kms_pm_lpsp.c                     |   7 +-
 tests/intel/kms_pm_rpm.c                      |   3 +-
 tests/intel/kms_psr.c                         |   5 +-
 tests/intel/kms_psr2_sf.c                     |  11 +-
 tests/intel/kms_psr2_su.c                     |   8 +-
 tests/intel/kms_psr_stress_test.c             |   5 +-
 tests/intel/kms_pwrite_crc.c                  |   8 +-
 tests/intel/kms_sharpness_filter.c            |  11 +-
 tests/intel/perf_pmu.c                        |   8 +-
 tests/intel/prime_mmap_kms.c                  |   5 +-
 tests/intel/xe_pat.c                          |   3 +-
 tests/intel/xe_pxp.c                          |  20 +-
 tests/kms_async_flips.c                       |   8 +-
 tests/kms_atomic.c                            |  40 ++--
 tests/kms_atomic_interruptible.c              |  10 +-
 tests/kms_atomic_transition.c                 |  70 +++---
 tests/kms_bw.c                                |  10 +-
 tests/kms_color.c                             |  59 +++--
 tests/kms_color_helper.c                      |  23 +-
 tests/kms_color_helper.h                      |  14 +-
 tests/kms_colorop.c                           |   3 +-
 tests/kms_concurrent.c                        |  18 +-
 tests/kms_content_protection.c                |   8 +-
 tests/kms_cursor_crc.c                        |  29 ++-
 tests/kms_cursor_edge_walk.c                  |  11 +-
 tests/kms_cursor_legacy.c                     |  80 +++----
 tests/kms_debugfs.c                           |   5 +-
 tests/kms_display_modes.c                     |  32 +--
 tests/kms_dither.c                            |  11 +-
 tests/kms_feature_discovery.c                 |   6 +-
 tests/kms_flip_event_leak.c                   |   5 +-
 tests/kms_hdr.c                               |  17 +-
 tests/kms_invalid_mode.c                      |   5 +-
 tests/kms_lease.c                             |  45 ++--
 tests/kms_multipipe_modeset.c                 |  16 +-
 tests/kms_panel_fitting.c                     |   6 +-
 tests/kms_pipe_crc_basic.c                    |  22 +-
 tests/kms_plane.c                             |  32 +--
 tests/kms_plane_alpha_blend.c                 |  20 +-
 tests/kms_plane_cursor.c                      |  15 +-
 tests/kms_plane_lowres.c                      |   5 +-
 tests/kms_plane_multiple.c                    |  26 ++-
 tests/kms_plane_scaling.c                     |  40 ++--
 tests/kms_prime.c                             |   3 +-
 tests/kms_properties.c                        |  30 ++-
 tests/kms_rmfb.c                              |   7 +-
 tests/kms_rotation_crc.c                      |  16 +-
 tests/kms_scaling_modes.c                     |   5 +-
 tests/kms_sequence.c                          |  11 +-
 tests/kms_tiled_display.c                     |  12 +-
 tests/kms_universal_plane.c                   |  51 ++---
 tests/kms_vblank.c                            |  19 +-
 tests/kms_vrr.c                               |   7 +-
 tests/kms_writeback.c                         |   5 +-
 tests/nouveau_crc.c                           |   5 +-
 tests/vmwgfx/vmw_prime.c                      |   8 +-
 tools/amd_hdmi_compliance.c                   |   7 +-
 tools/intel_pm_rpm.c                          |   2 +-
 110 files changed, 999 insertions(+), 794 deletions(-)

-- 
2.51.2


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2025-12-12 15:32 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10  9:38 [PATCH i-g-t 00/10] lib/kms: Move towards using 'crtcs' instead of 'pipes' Ville Syrjala
2025-12-10  9:38 ` [PATCH i-g-t 01/10] tests/intel/kms_dp_linktrain_fallback: Reduce side effects in igt_output_set_pipe() args Ville Syrjala
2025-12-10 14:21   ` Jani Nikula
2025-12-10  9:38 ` [PATCH i-g-t 02/10] lib/kms: Introduce igt_display_n_crtcs() Ville Syrjala
2025-12-10 14:21   ` Jani Nikula
2025-12-10  9:38 ` [PATCH i-g-t 03/10] lib/kms: Use igt_display_n_crtcs() everywhere Ville Syrjala
2025-12-10 14:22   ` Jani Nikula
2025-12-10  9:38 ` [PATCH i-g-t 04/10] lib/kms: Introduce igt_crtc_for_pipe() Ville Syrjala
2025-12-10 14:23   ` Jani Nikula
2025-12-10 17:16   ` [PATCH i-g-t v2 " Ville Syrjala
2025-12-10  9:38 ` [PATCH i-g-t 05/10] lib/kms: Use igt_crtc_for_pipe() everywhere Ville Syrjala
2025-12-10 14:25   ` Jani Nikula
2025-12-12 15:32     ` Ville Syrjälä
2025-12-10  9:38 ` [PATCH i-g-t 06/10] lib/kms: Remove tall tales about 'pipe' in DRM_IOCTL_WAIT_VBLANK Ville Syrjala
2025-12-10 14:25   ` Jani Nikula
2025-12-10  9:39 ` [PATCH i-g-t 07/10] lib/kms: Pass the entire igt_pipe_t to igt_wait_for_vblank*() Ville Syrjala
2025-12-10 14:29   ` Jani Nikula
2025-12-10  9:39 ` [PATCH i-g-t 08/10] lib/kms: Introduce igt_output_set_crtc() Ville Syrjala
2025-12-10 14:34   ` Jani Nikula
2025-12-10 14:36     ` Jani Nikula
2025-12-10 14:38       ` Jani Nikula
2025-12-10 14:44         ` Jani Nikula
2025-12-10 14:48         ` Ville Syrjälä
2025-12-10  9:39 ` [PATCH i-g-t 09/10] lib/kms: Replace igt_output_set_pipe() with igt_output_set_crtc() Ville Syrjala
2025-12-10 14:42   ` Jani Nikula
2025-12-10  9:39 ` [PATCH i-g-t 10/10] lib/kms: Rename igt_pipe_t to igt_crtc_t Ville Syrjala
2025-12-10 14:43   ` Jani Nikula
2025-12-10 13:34 ` ✓ Xe.CI.BAT: success for lib/kms: Move towards using 'crtcs' instead of 'pipes' Patchwork
2025-12-10 14:12 ` ✗ i915.CI.BAT: failure " Patchwork
2025-12-10 19:49 ` ✗ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).