All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v3 0/2] lib/igt_kms: Skip non-scanout connectors
@ 2026-11-24 19:44 Gil Dekel
  2026-11-24 19:44 ` [PATCH i-g-t v3 1/2] " Gil Dekel
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Gil Dekel @ 2026-11-24 19:44 UTC (permalink / raw)
  To: igt-dev
  Cc: Gil Dekel, Jani Nikula, Thadeu Lima de Souza Cascardo,
	Kamil Konieczny, Mark Yacoub

Qualcomm's downstream msm SDE driver exposes its writeback output as an
always-connected DRM_MODE_CONNECTOR_VIRTUAL connector next to physical
eDP and DP connectors. igt_output_is_connected() treats any CONNECTED
connector with modes as a display, so KMS tests pick that connector and
fail their first modeset with -EINVAL.

This series classifies non-scanout connectors from standard KMS uAPI
without affecting virtual-only drivers (VKMS, virtio-gpu, vmwgfx) or
adding any ioctl overhead on physical-only drivers (i915, xe, amdgpu,
nouveau, upstream msm):
- Patch 1/2 marks WRITEBACK connectors, connectors with WRITEBACK_FB_ID,
  and connected VIRTUAL connectors that coexist with physical connectors
  and reject a primary-plane DRM_MODE_ATOMIC_TEST_ONLY modeset across
  all compatible CRTCs as non_scanout_sink in
  igt_display_reset_outputs().
- Patch 2/2 teaches kms_setmode, which enumerates raw drmModeRes
  connectors on a legacy fd, to skip connectors flagged as
  non_scanout_sink.

v3:
- Split kms_setmode into patch 2/2 and use for_each_output() in
  igt_display_reset_outputs(), per Jani Nikula's feedback.
- Clarify driver motivation and zero-ioctl CI path in patch 1/2.
v2:
- Replace custom libdrm dumb-buffer probing with an igt_display_t/igt_fb
  TEST_ONLY probe in igt_display_reset_outputs().

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Mark Yacoub <markyacoub@google.com>

Gil Dekel (2):
  lib/igt_kms: Skip non-scanout connectors
  tests/kms_setmode: Skip non-scanout sinks

 lib/igt_kms.c       | 86 +++++++++++++++++++++++++++++++++++++++++++--
 lib/igt_kms.h       |  8 +++--
 tests/kms_setmode.c | 37 +++++++++++++++++++
 3 files changed, 125 insertions(+), 6 deletions(-)

-- 
Gil Dekel, Senior SWE, Google | Android Laptops & Tablets Display


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

end of thread, other threads:[~2026-12-01 20:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 19:44 [PATCH i-g-t v3 0/2] lib/igt_kms: Skip non-scanout connectors Gil Dekel
2026-11-24 19:44 ` [PATCH i-g-t v3 1/2] " Gil Dekel
2026-11-24 19:44 ` [PATCH i-g-t v3 2/2] tests/kms_setmode: Skip non-scanout sinks Gil Dekel
2026-11-25 21:19 ` ✓ Xe.CI.BAT: success for lib/igt_kms: Skip non-scanout connectors Patchwork
2026-11-25 22:19 ` ✓ i915.CI.BAT: " Patchwork
2026-11-26  6:15 ` ✓ Xe.CI.FULL: " Patchwork
2026-11-27  3:29 ` ✗ i915.CI.Full: failure " Patchwork
2026-12-01 20:26 ` [PATCH i-g-t v3 0/2] " Gil Dekel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.