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 D3216ED7B95 for ; Tue, 14 Apr 2026 09:53:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8054B10E5C4; Tue, 14 Apr 2026 09:53:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nOK1/se1"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9225710E58E for ; Tue, 14 Apr 2026 09:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776160340; x=1807696340; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kVEG6g2+v37FtFrp7bfcCNpDSInkFJcVTu6DDxZ27go=; b=nOK1/se1lmrFFS3YEVUv+ZavGoSxEn4+kDn7xEHdN54/YfdQw2sDboEu FDJ6bUkSahZ/KSff+rVigbdcreUn7NSesBLHPGVWGOYN9Ae10NfbsIuyL U3El3WROV7V8j8wVnCW7K5/Vk1qcLebVSf4n8C6syevxg3UwHnHQX0u6q 778iFlj0K82GOSJx0x+thFSILgf37FjMnbGo2QgW12d+Qjl4GxInKxdHf khCBIj7P5ncTZYmygD4alSZ2azzDm0HwUn0L2ieaVGOiDxajT22KukTMT tBjnM2vc+daQ0YbUtEdV5m7kXBaRik62210EHnwzJTsvgsBs0FtGZ9eIe w==; X-CSE-ConnectionGUID: DZw4CLz/QWqoCR0wOPmExw== X-CSE-MsgGUID: qtQkB5ZCRxK5/Knnh/JPPA== X-IronPort-AV: E=McAfee;i="6800,10657,11758"; a="77293510" X-IronPort-AV: E=Sophos;i="6.23,179,1770624000"; d="scan'208";a="77293510" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2026 02:52:19 -0700 X-CSE-ConnectionGUID: GLJtaAQJSYSskZ8J2Ouy1A== X-CSE-MsgGUID: 5bH9NwdFQQ22x2jLvkfACg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,179,1770624000"; d="scan'208";a="234979984" Received: from jeevan-x299-aorus-gaming-3-pro.iind.intel.com ([10.227.90.91]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2026 02:52:18 -0700 From: Jeevan B To: igt-dev@lists.freedesktop.org Cc: mohammed.thasleem@intel.com, Jeevan B Subject: [PATCH i-g-t v2 3/4] tests/kms_vrr: Add new test for DC3CO validation with LOBF Date: Tue, 14 Apr 2026 15:20:13 +0530 Message-ID: <20260414095014.55950-4-jeevan.b@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260414095014.55950-1-jeevan.b@intel.com> References: <20260414095014.55950-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 --- tests/kms_vrr.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c index ec0692b2f..c75362c6d 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" @@ -80,6 +81,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) @@ -946,6 +950,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_cmrr(data_t *data, igt_crtc_t *crtc, igt_output_t *output, uint32_t flags) @@ -1241,6 +1264,16 @@ int igt_main_args("drs:", long_opts, help_str, opt_handler, &data) run_vrr_test(&data, test_lobf, TEST_LINK_OFF); } + + igt_describe("Test to validate DC3CO entry during link-off between active " + "frames in non-PSR operation."); + 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