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 1A7D7CD4F5F for ; Thu, 13 Nov 2025 08:18:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC50310E5E4; Thu, 13 Nov 2025 08:18:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="HO5mB4vw"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5EAFF10E34C for ; Thu, 13 Nov 2025 08:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763021898; x=1794557898; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p7bmXFMZTVRR1SV8yhY+zsteCw8ijIogyJq3wv/gc04=; b=HO5mB4vwhZt7FWh7OTDiAgDi/WFMWK/Yu4hdZYIiTjpdGDbCKHQc2MAF eF8+/MrAeSZ/EfBfDzWsy7NkNSKKepbZITVFzZ3gtoKo8f1ggKOjjk71U efKqkiu0vraWOeP0VYggRY8nCxqgaLN/5RF0EAq64gaNf0VkGt8QFUGFd OToqpUuPdk7biQlPgXC/VfI6oXpxjnJkYm1SLO2veLFYv/njDqZweA1w5 HwR9gOYoWgvdeG2FYWhshcmICA8rx2bOTs6F4opU9Fga8BVPajOzfPkJ0 oMl27kWaLG4HDnDNrDxfFA5EIVXwx+1+JetkLLJ0zt3UBeqhFgXatAJo3 g==; X-CSE-ConnectionGUID: bd7G884FTbGDIxnCSEBCFw== X-CSE-MsgGUID: ibY9DiarRkWkoNvzh4tcaw== X-IronPort-AV: E=McAfee;i="6800,10657,11611"; a="65000524" X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="65000524" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 00:18:18 -0800 X-CSE-ConnectionGUID: wukD09XaSyO8YraD5D+o/Q== X-CSE-MsgGUID: DD6VXP74SYSDeXkZGdHT+g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="212822350" Received: from sowmi-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.56]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 00:18:17 -0800 From: Sowmiya S To: igt-dev@lists.freedesktop.org Cc: Sowmiya S Subject: [PATCH i-g-t v2 4/9] tests/kms_writeback: Add intel specific check Date: Thu, 13 Nov 2025 14:05:50 +0530 Message-ID: <20251113083555.3088873-5-sowmiya.s@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251113083555.3088873-1-sowmiya.s@intel.com> References: <20251103103842.3025204-1-sowmiya.s@intel.com> <20251113083555.3088873-1-sowmiya.s@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 a check to ensure this line of code executes only on Intel platforms. Signed-off-by: Sowmiya S --- tests/kms_writeback.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c index e9173ea4a..b6d38ab28 100644 --- a/tests/kms_writeback.c +++ b/tests/kms_writeback.c @@ -74,6 +74,7 @@ IGT_TEST_DESCRIPTION( ); typedef struct { + int drm_fd; bool builtin_mode; bool custom_mode; bool list_modes; @@ -287,7 +288,7 @@ static void writeback_fb_id(igt_output_t *output, igt_fb_t *valid_fb, igt_fb_t * /* Zero WRITEBACK_FB_ID */ ret = do_writeback_test(output, 0, NULL, false); - igt_assert_eq(ret, 0); + igt_assert_eq(ret, is_intel_device(data.drm_fd) ? -EINVAL : 0); /* Valid output buffer */ ret = do_writeback_test(output, valid_fb->fb_id, NULL, false); @@ -402,7 +403,8 @@ static void writeback_check_output(igt_output_t *output, igt_plane_t *plane, /* Two commits, the second with no writeback */ out_fbs[0] = output_fb; - writeback_sequence(output, plane, input_fb, out_fbs, 2, fourcc_color); + if (!is_intel_device(data.drm_fd)) + writeback_sequence(output, plane, input_fb, out_fbs, 2, fourcc_color); /* Two commits, both with writeback */ out_fbs[1] = output_fb; @@ -552,6 +554,7 @@ igt_main_args("b:c:f:dl", long_options, help_str, opt_handler, NULL) igt_fixture { display.drm_fd = drm_open_driver_master(DRIVER_ANY); + data.drm_fd = display.drm_fd; kmstest_set_vt_graphics_mode(); -- 2.43.0