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 D1A53F4180E for ; Mon, 9 Mar 2026 16:48:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 82B3310E55F; Mon, 9 Mar 2026 16:48:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="fCjd98FS"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3EA7710E55F for ; Mon, 9 Mar 2026 16:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773074911; x=1804610911; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=t7J5BAILMcURNK7jDrC9fVkmkAcScHDIqh6okgDYgN4=; b=fCjd98FSgAWGizRpGtOhY5xspfNQGczLWbT6SrRslo4iz1hVmIlqBXV3 cQAEaIBI6eap36MGSmkCoF13QacOQBVnnJ8BNMIOMZuiEAyl5rdU0gW8R eUit1isY6FJezVJwTILsZE3WyopRhTVTAoAVTLepj/HEi7b4phndeZgnO 1mcIxSS+FkithnG0PUhCAb/LLZDD04hSWH7WQ6ytkDkDDTTgRm50LwEiD OZ2Ladj9Vx9W5A64mzGTeYRl3i64l91rsXfTJxXiHCjCz3XaCLEjL1/W5 Wdllkkpxtr8uMwlQ+9GuKo4g052WnH2Cy+twuLC7TT9vscX7p8YNDeuBC A==; X-CSE-ConnectionGUID: yOKJCAxbT+qdWy89yEdgEA== X-CSE-MsgGUID: 35PRD7NjSvSm7i5mQwJOSg== X-IronPort-AV: E=McAfee;i="6800,10657,11723"; a="73304278" X-IronPort-AV: E=Sophos;i="6.23,109,1770624000"; d="scan'208";a="73304278" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2026 09:48:31 -0700 X-CSE-ConnectionGUID: Mxd+cTgRQDOUu6Dkjw2/lA== X-CSE-MsgGUID: inWI2XKOT8yrNh3suP65jQ== X-ExtLoop1: 1 Received: from slindbla-desk.ger.corp.intel.com (HELO localhost) ([10.245.246.239]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2026 09:48:29 -0700 From: Jani Nikula To: Jani Nikula , igt-dev@lists.freedesktop.org Cc: ville.syrjala@linux.intel.com Subject: [PATCH i-g-t v2] tests/kms_vblank: use CRTC indexes instead of pipes for CRTC tracking Date: Mon, 9 Mar 2026 18:48:25 +0200 Message-ID: <20260309164825.720712-1-jani.nikula@intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland 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 test tracks "active" CRTCs in a dedicated array. This does not depend on pipes in any way. Switch to using CRTC indexes instead. v2: Switch active_crtcs[] type from enum pipe to int Signed-off-by: Jani Nikula --- tests/kms_vblank.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c index e79b2535c599..7fb7de0a70c1 100644 --- a/tests/kms_vblank.c +++ b/tests/kms_vblank.c @@ -110,8 +110,8 @@ typedef struct { } data_t; static bool all_pipes; -static enum pipe active_pipes[IGT_MAX_PIPES]; -static uint32_t last_pipe; +static int active_crtcs[IGT_MAX_PIPES]; +static uint32_t last_crtc_index; static double elapsed(const struct timespec *start, const struct timespec *end, @@ -522,8 +522,8 @@ static void run_subtests(data_t *data) if (!crtc_output_combo_valid(&data->display, crtc, data->output)) continue; - if (!all_pipes && crtc->pipe != active_pipes[0] && - crtc->pipe != active_pipes[last_pipe]) { + if (!all_pipes && crtc->crtc_index != active_crtcs[0] && + crtc->crtc_index != active_crtcs[last_crtc_index]) { igt_info("Skipping pipe %s\n", igt_crtc_name(crtc)); continue; @@ -554,8 +554,8 @@ static void run_subtests(data_t *data) if (!crtc_output_combo_valid(&data->display, crtc, data->output)) continue; - if (!all_pipes && crtc->pipe != active_pipes[0] && - crtc->pipe != active_pipes[last_pipe]) { + if (!all_pipes && crtc->crtc_index != active_crtcs[0] && + crtc->crtc_index != active_crtcs[last_crtc_index]) { igt_info("Skipping pipe %s\n", igt_crtc_name(crtc)); continue; @@ -650,9 +650,9 @@ int igt_main_args("e", NULL, help_str, opt_handler, NULL) /* Get active pipes. */ for_each_crtc(&data.display, crtc) { data.crtc = crtc; - active_pipes[last_pipe++] = crtc->pipe; + active_crtcs[last_crtc_index++] = crtc->crtc_index; } - last_pipe--; + last_crtc_index--; } igt_describe("Negative test for vblank request."); @@ -679,8 +679,8 @@ int igt_main_args("e", NULL, help_str, opt_handler, NULL) if (!crtc_output_combo_valid(&data.display, crtc, data.output)) continue; - if (!all_pipes && crtc->pipe != active_pipes[0] && - crtc->pipe != active_pipes[last_pipe]) { + if (!all_pipes && crtc->crtc_index != active_crtcs[0] && + crtc->crtc_index != active_crtcs[last_crtc_index]) { igt_info("Skipping pipe %s\n", igt_crtc_name(crtc)); continue; -- 2.47.3