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 6C41CC83029 for ; Mon, 30 Jun 2025 13:37:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2334010E455; Mon, 30 Jun 2025 13:37:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ghK13GXS"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id AFB3710E44F for ; Mon, 30 Jun 2025 13:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751290657; x=1782826657; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+wfSZa0b7RcTH7e4vcxn08HvkRVbvR5tjDl+mcUfl9M=; b=ghK13GXS5aW2yWJPG0+WfP6YjIYy8GRFHwgX5oz3oCphe96CGfBnhGM5 TXkF3A0lFSfMvn+n8IjVT4v7B8uuK1GgDl78nGFOdvYE5Wbn33toUQNn3 TKpdiTEcbe9P7i/jykH2CpH6+qIue46nsPQ4kY+P4eUn6WpY1lSTp4Uk9 wAGnc4IeLvkalcOdhYu+Ux5SleFtQP3u/TLXkCNEk8uIjJj1JNZI6FdGi 0/aIg13XoiqVEl19iwakMQFDJPLkGkTbXU8i03CzcBvnQo0FfKH5DF3kt Fm9L5qZjGoeY/ArpkZrb47scmj6y2lRoA2r/VmdtiJGTxj1UbMwFXhAMV g==; X-CSE-ConnectionGUID: hhfSLSCJSNy7bm+whbzS0w== X-CSE-MsgGUID: ZIgsGVUFTbC63P1Q6mt6pA== X-IronPort-AV: E=McAfee;i="6800,10657,11480"; a="57322563" X-IronPort-AV: E=Sophos;i="6.16,277,1744095600"; d="scan'208";a="57322563" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2025 06:37:37 -0700 X-CSE-ConnectionGUID: dVkGXFlDQr+UZWMJgH7fMA== X-CSE-MsgGUID: 39NcuA/3T82OBqy6qT2ugA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,277,1744095600"; d="scan'208";a="159188318" Received: from linux-panther-lake-client-platform.iind.intel.com (HELO linux-Lunar-Lake-Client-Platform.iind.intel.com) ([10.227.88.71]) by orviesa005.jf.intel.com with ESMTP; 30 Jun 2025 06:37:36 -0700 From: Mohammed Thasleem To: igt-dev@lists.freedesktop.org Cc: Mohammed Thasleem , Vinod Govindapillai , Kunal Joshi Subject: [PATCH v7 3/7] tests/intel/kms_frontbuffer_tracking: Enable the tests support variations based on the WAs Date: Mon, 30 Jun 2025 19:11:41 +0530 Message-Id: <20250630134145.836-4-mohammed.thasleem@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250630134145.836-1-mohammed.thasleem@intel.com> References: <20250630134145.836-1-mohammed.thasleem@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 update stops skipping fbc-* tests support variations based on the WAs. v2: Use WA_FBC_DISABLED instead CHECK_WA. (Vinod) Update igt_skip_on_f discription. (Vinod) v3: Remove platform check and make it for xe specific. (Vinod) Rename function name with is_fbc_support. (Vinod) v4: Update function name and add igt_skip check. (Vinod) v5: Move is_fbc_supported to intel_fbc.c (Kunal) v6: Updated function name with intel_is_fbc_disabled_by_wa. (Kamil) v7: Updated logic at igt_skip_on_f and message alignment. (Kamil) Signed-off-by: Mohammed Thasleem Reviewed-by: Vinod Govindapillai Reviewed-by: Kunal Joshi --- tests/intel/kms_frontbuffer_tracking.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c index 0809352cb..66dcdc281 100644 --- a/tests/intel/kms_frontbuffer_tracking.c +++ b/tests/intel/kms_frontbuffer_tracking.c @@ -2610,8 +2610,8 @@ static void prepare_subtest_data(const struct test_mode *t, static void prepare_subtest_screens(const struct test_mode *t) { /* FBC disabled: Wa_16023588340 */ - igt_skip_on_f((IS_BATTLEMAGE(drm.devid) && t->feature == FEATURE_FBC), - "FBC isn't supported on BMG\n"); + igt_skip_on_f(t->feature == FEATURE_FBC && intel_is_fbc_disabled_by_wa(drm.fd), + "WA has disabled FBC on BMG\n"); if (t->pipes == PIPE_DUAL) enable_both_screens_and_wait(t); @@ -2658,8 +2658,8 @@ static void prepare_subtest(const struct test_mode *t, static void rte_subtest(const struct test_mode *t) { /* FBC disabled: Wa_16023588340 */ - igt_skip_on_f((IS_BATTLEMAGE(drm.devid) && t->feature == FEATURE_FBC), - "FBC isn't supported on BMG\n"); + igt_skip_on_f(t->feature == FEATURE_FBC && intel_is_fbc_disabled_by_wa(drm.fd), + "WA has disabled FBC on BMG\n"); prepare_subtest_data(t, NULL); @@ -4157,8 +4157,8 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) t.tiling = opt.tiling; /* FBC disabled: Wa_16023588340 */ - igt_skip_on_f((IS_BATTLEMAGE(drm.devid) && t.feature == FEATURE_FBC), - "FBC isn't supported on BMG\n"); + igt_skip_on_f(t.feature == FEATURE_FBC && intel_is_fbc_disabled_by_wa(drm.fd), + "WA has disabled FBC on BMG\n"); for_each_pipe(&drm.display, pipe) { if (pipe == default_pipe) { -- 2.25.1