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 D16E6D3E78C for ; Wed, 6 Nov 2024 09:08:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E87710E0E0; Wed, 6 Nov 2024 09:08:26 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="gXx8eN01"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2C8410E0E0 for ; Wed, 6 Nov 2024 09:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730884106; x=1762420106; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=o1JeIgPch1voZMKPSuhRa9WV0NxCCnPJCbrXcewLCXU=; b=gXx8eN01c71AopoqEUPwjslrgNXW39kUUsjwETaT8OXsdKJ8+Nbkx4nZ YsMdRPynZRiw58+/YZrS6Kv/AZCeBWtmwC6at3qdJYVShx+zuTn1eCi0Y jyCdKlP/zzzBrTvpIh8pJ/eV4pK96Lz0+Ai8z5H/dEZq7lF+ngiEZSALK 59lWO5oCYPe1fRBIFNfUyE0MVWJiD+F3ozBCmraXedvxR2jhs6TM4K+qP lRMKv6HY7rCJtev1gW1Rjjh9ucJ1///fI1m88r164In8mwN+dvYuT334X rmH7JSD90jw5+E72F/f1GjcHxZYHU9Dlzzy5Wn9oZ6UxFV7+r1Gp/FtUt Q==; X-CSE-ConnectionGUID: twGle7g7T26JhMQicZhptw== X-CSE-MsgGUID: Xzi5jZAbQY+CxVItb3qKkA== X-IronPort-AV: E=McAfee;i="6700,10204,11247"; a="30778208" X-IronPort-AV: E=Sophos;i="6.11,262,1725346800"; d="scan'208";a="30778208" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2024 01:08:26 -0800 X-CSE-ConnectionGUID: EwYnchlwSLeIJVk/eKID5g== X-CSE-MsgGUID: 39jewVzgTIqOE5QrJQ4t9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,262,1725346800"; d="scan'208";a="84542646" Received: from pranay-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.140]) by fmviesa008.fm.intel.com with ESMTP; 06 Nov 2024 01:08:14 -0800 From: Pranay Samala To: igt-dev@lists.freedesktop.org Cc: karthik.b.s@intel.com, kunal1.joshi@intel.com, swati2.sharma@intel.com, sameer.lattannavar@intel.com, pranay.samala@intel.com Subject: [PATCH i-g-t v7 1/3] tests/chamelium/kms_chamelium_edid: Use extended flag to reduce the number of edid Date: Wed, 6 Nov 2024 14:38:18 +0530 Message-Id: <20241106090820.1831321-2-pranay.samala@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241106090820.1831321-1-pranay.samala@intel.com> References: <20241106090820.1831321-1-pranay.samala@intel.com> MIME-Version: 1.0 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" This test iterates on all the available edids of HDMI. Due to CI test timeut limitation, we are reducing the number of edids to execute to avoid result as timeout. Using extended flag to achieve this. The test will execute only 25 edids when this flag is not used as CI doesnt uses this flag. In local execution to execute on all edids, we have to give this flag at the runtime. Signed-off-by: Pranay Samala --- tests/chamelium/kms_chamelium_edid.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/tests/chamelium/kms_chamelium_edid.c b/tests/chamelium/kms_chamelium_edid.c index 8438f5f15..ca1f82227 100644 --- a/tests/chamelium/kms_chamelium_edid.c +++ b/tests/chamelium/kms_chamelium_edid.c @@ -38,6 +38,7 @@ #include #include #include +#include "drmtest.h" #include "config.h" #include "igt.h" @@ -121,7 +122,9 @@ * @suspend: suspend */ +#define CI_LIMIT 25 #define MODE_CLOCK_ACCURACY 0.05 /* 5% */ +static bool extended; static void get_connectors_link_status_failed(chamelium_data_t *data, bool *link_status_failed) @@ -269,9 +272,18 @@ static void edid_stress_resolution(chamelium_data_t *data, int i; struct chamelium *chamelium = data->chamelium; struct udev_monitor *mon = igt_watch_uevents(); + enum intel_driver driver = get_intel_driver(data->drm_fd); + chamelium_reset_state(&data->display, data->chamelium, port, data->ports, data->port_count); + if (!extended && (driver == INTEL_DRIVER_XE || driver == INTEL_DRIVER_I915) && + is_intel_device(data->drm_fd)) + edids_list_len = CI_LIMIT; + + /* TODO: Make changes to check if we can get rid of extended flag and explore + * if there is environment variable in CI when executing with igt_runner + */ for (i = 0; i < edids_list_len; ++i) { struct chamelium_edid *chamelium_edid; @@ -504,8 +516,22 @@ static void test_mode_timings(chamelium_data_t *data, } while (++i < count_modes); } +static int opt_handler(int opt, int opt_index, void *_data) +{ + switch (opt) { + case 'e': + extended = true; + break; + } + + return IGT_OPT_HANDLER_SUCCESS; +} + +const char *help_str = + " -e \tExtended tests.\n"; + IGT_TEST_DESCRIPTION("Testing EDID with a Chamelium board"); -igt_main +igt_main_args("e", NULL, help_str, opt_handler, NULL) { chamelium_data_t data; struct chamelium_port *port; -- 2.34.1