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 EEF94E9D416 for ; Wed, 4 Feb 2026 16:58:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9DA9C10E6EB; Wed, 4 Feb 2026 16:58:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="mxtfdt9O"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0C19B10E6EB for ; Wed, 4 Feb 2026 16:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770224288; x=1801760288; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Im7NvUNdA9ouh5fJ5OP8f1iZYUEsM4OKNKN2Nhbh4/k=; b=mxtfdt9OTSQwHptmRJMQ3/mV9EYh5nzwa4ath598PUtajnP7/b++kmMI epV2JX37i2YdeQkviyh5ITa/n34BqLA1E64JrlutCV3nIl+EZn02YBRIU aGUmGKns3Q/wQHivH0tpgbaYgl+nIWCjTQwmWw3C/0/xLYxHjPMg8I2// LJ7mZfeGYnmKSDj+7NJnbeGvBLOqp5cofej7SBYBWEn2iCUumzYQoTZfl LNc+yjNTj5B8KUVBd4M1jcAT9NdLRhvGGE83qeGjzmdyeiOe/DeiLMYlW BzOCOF8ZRSSVtazUOyxlJX+w4pf2SzXVnWrMopLh21kTYixsO8x3p6/WG A==; X-CSE-ConnectionGUID: 0LHlgMPuT82ubfaxuTmy7g== X-CSE-MsgGUID: igjSwnkvSVy0RrSpehAsZg== X-IronPort-AV: E=McAfee;i="6800,10657,11691"; a="71580048" X-IronPort-AV: E=Sophos;i="6.21,272,1763452800"; d="scan'208";a="71580048" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2026 08:57:49 -0800 X-CSE-ConnectionGUID: /NO49KuxRdyli0t+FUZB3A== X-CSE-MsgGUID: ZNjTV9hYSpex7DmIVrwJwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,272,1763452800"; d="scan'208";a="210252924" Received: from sowmi-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.56]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2026 08:57:48 -0800 From: Sowmiya S To: igt-dev@lists.freedesktop.org Cc: swati2.sharma@intel.com, suraj.kandpal@intel.com, Sowmiya S Subject: [PATCH i-g-t v8 3/9] tests/kms_writeback: Update checks for zero FB ID and empty writeback commit Date: Wed, 4 Feb 2026 22:48:12 +0530 Message-ID: <20260204171819.292327-4-sowmiya.s@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260204171819.292327-1-sowmiya.s@intel.com> References: <20260204171819.292327-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" Intel prohibits committing a framebuffer with fb_id 0 or performing an empty writeback commit. Update assertions and validation checks accordingly to reflect this restriction. v4: Restore drm_fd added in struct and access it from igt_display_t struct (Suraj) v5: Revise commit message and subject with detailed explanation. (Suraj) v6: Revise commit message (Suraj) Signed-off-by: Sowmiya S Reviewed-by: Suraj Kandpal --- tests/kms_writeback.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c index 691774777..defe43686 100644 --- a/tests/kms_writeback.c +++ b/tests/kms_writeback.c @@ -291,7 +291,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(output->display->drm_fd) ? -EINVAL : 0); /* Valid output buffer */ ret = do_writeback_test(output, valid_fb->fb_id, NULL, false); @@ -406,7 +406,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(output->display->drm_fd)) + writeback_sequence(output, plane, input_fb, out_fbs, 2, fourcc_color); /* Two commits, both with writeback */ out_fbs[1] = output_fb; -- 2.43.0