Skip to content

lib/kms: Move towards using 'crtcs' instead of 'pipes'

Ville Syrjala igt-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesNew
  2. v110 patches 15 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10tests/intel/kms_dp_linktrain_fallback: Reduce side effects in igt_output_set_pipe() argstests/intel/kms_dp_linktrain_fallback.c+2 -10 replies
2/10lib/kms: Introduce igt_display_n_crtcs()lib/igt_kms.c lib/igt_kms.h+16 -40 replies
3/10lib/kms: Use igt_display_n_crtcs() everywherelib/igt_kms.c lib/igt_kms.h tests/amdgpu/amd_dp_dsc.c +9 more+30 -370 replies
4/10lib/kms: Introduce igt_crtc_for_pipe()lib/igt_kms.h+13 -40 replies
5/10lib/kms: Use igt_crtc_for_pipe() everywherelib/igt_kms.c lib/igt_kms.h tests/amdgpu/amd_abm.c +61 more+239 -1890 replies
6/10lib/kms: Remove tall tales about 'pipe' in DRM_IOCTL_WAIT_VBLANKlib/igt_kms.c+0 -90 replies
7/10lib/kms: Pass the entire igt_pipe_t to igt_wait_for_vblank*()lib/igt_kms.c lib/igt_kms.h tests/amdgpu/amd_ilr.c +13 more+38 -670 replies
8/10lib/kms: Introduce igt_output_set_crtc()lib/igt_kms.c lib/igt_kms.h+32 -130 replies
9/10lib/kms: Replace igt_output_set_pipe() with igt_output_set_crtc()benchmarks/kms_fb_stress.c lib/igt_kms.c lib/igt_kms.h +106 more+574 -4120 replies
10/10lib/kms: Rename igt_pipe_t to igt_crtc_tlib/igt_kms.c lib/igt_kms.h tests/amdgpu/amd_abm.c +40 more+143 -1430 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchJani Nikula
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH i-g-t v2 00/10] lib/kms: Move towards using 'crtcs' instead of 'pipes'

From: Ville Syrjälä <[email protected]>

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.

v2: rebase for CI

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                                 |  73 ++++---
 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, 1002 insertions(+), 794 deletions(-)
Signature · 1 line
2.51.2