From: Gil Dekel <gildekel@google.com>
To: igt-dev@lists.freedesktop.org
Cc: Gil Dekel <gildekel@google.com>,
Jani Nikula <jani.nikula@intel.com>,
Thadeu Lima de Souza Cascardo <cascardo@igalia.com>,
Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Mark Yacoub <markyacoub@google.com>
Subject: [PATCH i-g-t v3 0/2] lib/igt_kms: Skip non-scanout connectors
Date: Tue, 24 Nov 2026 14:44:39 -0500 [thread overview]
Message-ID: <20261124194441.314626-1-gildekel@google.com> (raw)
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
next reply other threads:[~2026-11-25 9:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 19:44 Gil Dekel [this message]
2026-11-24 19:44 ` [PATCH i-g-t v3 1/2] lib/igt_kms: Skip non-scanout connectors 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124194441.314626-1-gildekel@google.com \
--to=gildekel@google.com \
--cc=cascardo@igalia.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=markyacoub@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox