From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jonathan.cavitt@intel.com, alex.zuo@intel.com,
daniele.ceraolospurio@intel.com, ville.syrjala@linux.intel.com
Subject: [PATCH i-g-t v2] tests/intel/xe_pxp: Require output for display tests
Date: Tue, 21 Jul 2026 23:31:23 +0800 [thread overview]
Message-ID: <20260721153123.1972825-1-jonathan.cavitt@intel.com> (raw)
The subtests display-pxp-fb and display-black-pxp-fb both call the
function igt_create_color_fb with a width and height value generated by
getting outputs from for_each_connected_output and selecting the maximum
width and height among all available connected outputs. If there are no
such outputs, then the resulting values will be zero, which is an invalid
input for the DRM_IOCLT_MODE_CREATE_DUMB ioctl.
Skip these tests if there are no connected outputs.
v2:
- Use correct ioctl name (jcavitt)
- Add missing closes tag (jcavitt)
- Use igt_display_require_output in require_display instead (Daniele)
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/7738
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tests/intel/xe_pxp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/intel/xe_pxp.c b/tests/intel/xe_pxp.c
index 9320078733..5460bf6db1 100644
--- a/tests/intel/xe_pxp.c
+++ b/tests/intel/xe_pxp.c
@@ -1002,6 +1002,7 @@ static void require_display(int xe_fd, igt_display_t *display)
{
igt_require_pipe_crc(xe_fd);
igt_display_require(display, xe_fd);
+ igt_display_require_output(display);
}
static void dpms_on_off(int fd, drmModeResPtr res, int mode)
--
2.53.0
next reply other threads:[~2026-07-21 15:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 15:31 Jonathan Cavitt [this message]
2026-07-21 21:23 ` [PATCH i-g-t v2] tests/intel/xe_pxp: Require output for display tests Daniele Ceraolo Spurio
2026-07-21 22:21 ` ✓ i915.CI.BAT: success for tests/intel/xe_pxp: Require output for display tests (rev2) Patchwork
2026-07-21 22:23 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-22 10:50 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-07-22 20:32 ` ✓ i915.CI.Full: success " Patchwork
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=20260721153123.1972825-1-jonathan.cavitt@intel.com \
--to=jonathan.cavitt@intel.com \
--cc=alex.zuo@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.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