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 184D8CD37B6 for ; Wed, 13 May 2026 06:19:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B3F9E10ECAD; Wed, 13 May 2026 06:19:21 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="AaRCpDI9"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1E78410EC91 for ; Wed, 13 May 2026 06:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778653077; x=1810189077; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7KR356VUHv7B1YEvcMsqTOKP0Acf6NDw8c7I4WrDmsM=; b=AaRCpDI9S8pO+F3LqGWc54e9s8pxb/N0zzDy4GxwiQrHu2okB1meLTkf llxqhWO21TW5XhCPeXY+p9IDZrg6v5ULzLJ2HBRdHa4pwf1zTzsgbqNOb XDTiJBiGkjp2YSlLe8jJMEu5+hGwXYOqWTv3p/cKWZpfOm+fxeYfPrF+C 5S22EM8AzBocKGQPm+St9hWk+HJPNWHBqjCAD0eo0GQ6itLjaPM92gvZn 7dukPGKUe2YNGQsFmVoXw33kRzFVE3DjvdOZf63t9ZJVk6amj00M8K49M EJuwNDZTpQvUwPLKXFlUqBlPu/xtmLLr9zM6mqo+aAqljC6Y32djveola Q==; X-CSE-ConnectionGUID: 0xak+WKoTqyLACWfrzcmGQ== X-CSE-MsgGUID: Q1rnO9HXROKobK04WiFnGA== X-IronPort-AV: E=McAfee;i="6800,10657,11784"; a="79685157" X-IronPort-AV: E=Sophos;i="6.23,232,1770624000"; d="scan'208";a="79685157" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2026 23:17:57 -0700 X-CSE-ConnectionGUID: bVLeICrLRK2ny1GofzE8WA== X-CSE-MsgGUID: rNvE72PITy6cbpYLFvkpKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,232,1770624000"; d="scan'208";a="235320979" Received: from jeevan-x299-aorus-gaming-3-pro.iind.intel.com ([10.227.90.91]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2026 23:17:55 -0700 From: Jeevan B To: igt-dev@lists.freedesktop.org Cc: animesh.manna@intel.com, dibin.moolakadan.subrahmanian@intel.com, mohammed.thasleem@intel.com, ramanaidu.naladala@intel.com, Jeevan B Subject: [PATCH i-g-t v5 4/7] tests/kms_vrr: Add new test for DC3CO validation with LOBF Date: Wed, 13 May 2026 11:46:02 +0530 Message-ID: <20260513061605.645695-5-jeevan.b@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260513061605.645695-1-jeevan.b@intel.com> References: <20260513061605.645695-1-jeevan.b@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" Add lobf-dc3co subtest to validate DC3CO entry during link-off between frames. v2: Fix the flow logic. Signed-off-by: Jeevan B Reviewed-by: Mohammed Thasleem --- tests/kms_vrr.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c index 6043d40f1..82eb8554a 100644 --- a/tests/kms_vrr.c +++ b/tests/kms_vrr.c @@ -29,6 +29,7 @@ */ #include "igt.h" +#include "igt_pm.h" #include "igt_psr.h" #include "i915/intel_drrs.h" #include "sw_sync.h" @@ -76,6 +77,9 @@ * * SUBTEST: negative-basic * Description: Make sure that VRR should not be enabled on the Non-VRR panel. + * + * SUBTEST: lobf-dc3co + * Description: Test DC3CO entry during LOBF. */ #define NSECS_PER_SEC (1000000000ull) @@ -873,6 +877,25 @@ test_lobf(data_t *data, igt_crtc_t *crtc, igt_output_t *output, igt_assert_f(lobf_enabled, "LOBF not enabled\n"); } +static void test_lobf_dc3co(data_t *data, igt_crtc_t *crtc, + igt_output_t *output, uint32_t flags) +{ + unsigned long dc3co_count_before, dc3co_count_after; + + dc3co_count_before = igt_read_dc_counter(data->debugfs_fd, + IGT_INTEL_CHECK_DC3CO); + + test_lobf(data, crtc, output, flags); + + dc3co_count_after = igt_read_dc_counter(data->debugfs_fd, + IGT_INTEL_CHECK_DC3CO); + + igt_assert_f(dc3co_count_after > dc3co_count_before, + "DC3CO should be entered during link-off periods. " + "Before: %lu, After: %lu\n", + dc3co_count_before, dc3co_count_after); +} + static void test_cleanup(data_t *data, igt_crtc_t *crtc, igt_output_t *output) { igt_crtc_set_prop_value(crtc, @@ -1112,6 +1135,17 @@ int igt_main_args("drs:", long_opts, help_str, opt_handler, &data) run_vrr_test(&data, test_lobf, TEST_LINK_OFF); } + + igt_describe("This test validates DC3CO entry during LOBF (Link-Off Between " + "Frames) periods while VRR is active and PSR is disabled."); + + igt_subtest_with_dynamic("lobf-dc3co") { + igt_require(intel_display_ver(intel_get_drm_devid(data.drm_fd)) >= 35); + + igt_require_dc_counter(data.debugfs_fd, IGT_INTEL_CHECK_DC3CO); + + run_vrr_test(&data, test_lobf_dc3co, TEST_LINK_OFF); + } } igt_fixture() { -- 2.43.0