From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 806CDC44529 for ; Tue, 21 Jul 2026 15:31:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F76D10E3FC; Tue, 21 Jul 2026 15:31:59 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="IuG4Nh/D"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 06C4910E3FC for ; Tue, 21 Jul 2026 15:31:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784647888; x=1816183888; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Mcu+j58UgrynD5fbrbvk6pIHWn1EKmBsGLXPIVntD8Q=; b=IuG4Nh/DfW6aj6QOYRbW7dW5AwezYrsl1umrpgAk02A3kxDXVCskNIzM dNUJTPxwLa5+e5T7yK4xtHM+f8sBju9HnQwKWYJSP+QNx0uf6Si0SrPJn VPbBO4VAlxdZDra990aha/qfZcyGQBiBZhiVUHhYtskJNvANboltfZOQz BK79+YOtBRvj3Fo3b+OOxjIe25Sit1tx+wK01CM6W/sZusTxUb2QRYFv0 B1PvFynWcP3q9Aq0nZ9nPzDTTSGwYjHUJSgYm5iIGY+WOb05lT8DRLKf2 JOMKtvNbNzix4gGK+ZVP3UqESTW/zFoff4yBQlJsmnphzXsN6+2TQXUHZ g==; X-CSE-ConnectionGUID: eiWCOjxVTSCptDM7gR99sg== X-CSE-MsgGUID: x1MIpK9ISia7fSP5oBRJ5w== X-IronPort-AV: E=McAfee;i="6800,10657,11853"; a="95907430" X-IronPort-AV: E=Sophos;i="6.25,176,1779174000"; d="scan'208";a="95907430" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2026 08:31:27 -0700 X-CSE-ConnectionGUID: SmCBwg4wRlS2Kd9YNI0kWg== X-CSE-MsgGUID: r2LadfQRRyWs/dhgikJ3hQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,176,1779174000"; d="scan'208";a="253889451" Received: from osgc-sh-dragon.sh.intel.com ([10.239.81.44]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2026 08:31:26 -0700 From: Jonathan Cavitt 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 Message-ID: <20260721153123.1972825-1-jonathan.cavitt@intel.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" 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 Cc: Daniele Ceraolo Spurio Cc: Ville Syrjälä --- 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