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 C98E5C53219 for ; Tue, 28 Jul 2026 10:28:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6EE1010E414; Tue, 28 Jul 2026 10:28:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="BeaxgR+m"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4185410E495 for ; Tue, 28 Jul 2026 10:27:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1785234434; x=1816770434; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ih1ohnQCavZchKm1v5LnF0YNgdrJJE4zxSWi2ZVNuQU=; b=BeaxgR+my42Z4SPb8A2oN79D0gZO1Ak4CQJwPgggSJcoUhu9Xn73HJYD r1aw/zdeiwCtdp+4k6YFm5p7W+UfxzqWmWCbVfObLCa+r0ki3MclzXQm3 wpYIAhCDGvzLJh3yfkfpAFBGozaCDixLyKk1e+jeicjPn3xf7/laY/Pa0 mA1WuY7SZXhrlP7mxTknSYHofIjmDK3js7zQtpYNW97d8pQcKCe9PuUE0 bmuQmPf/3qYSpqi6Iyyf1jH5w6/Da+SobXG2e5KOHMpYdYaVUp6cvkyxz XzIZohCkK5CnLV3xrUcAgHAdhYDQwyg9/sKfriiBIxmkUi8T+j3Jf+hmq Q==; X-CSE-ConnectionGUID: E1QQW2VgS0WWH6+PFQF06g== X-CSE-MsgGUID: a7tyjJupSzqUl7Fv0wRNQg== X-IronPort-AV: E=McAfee;i="6800,10657,11858"; a="85827964" X-IronPort-AV: E=Sophos;i="6.25,190,1779174000"; d="scan'208";a="85827964" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2026 03:27:14 -0700 X-CSE-ConnectionGUID: sDu17D/oRJmI3c5Ax0qqGw== X-CSE-MsgGUID: rxzxsw1zTpmv4oAaRjpCtA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,190,1779174000"; d="scan'208";a="257861976" Received: from soc-5cg43972f8.clients.intel.com (HELO localhost) ([172.28.182.68]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2026 03:27:12 -0700 From: Marcin Bernatowicz To: igt-dev@lists.freedesktop.org Cc: adam.miszczak@linux.intel.com, kamil.konieczny@linux.intel.com, lukasz.laguna@intel.com, Marcin Bernatowicz Subject: [PATCH i-g-t 2/2] benchmarks/gem_wsim: re-arm ticks_delta before batch submission Date: Tue, 28 Jul 2026 12:26:59 +0200 Message-ID: <20260728102659.316861-3-marcin.bernatowicz@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260728102659.316861-1-marcin.bernatowicz@linux.intel.com> References: <20260728102659.316861-1-marcin.bernatowicz@linux.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" Write ~0u to ticks_delta for fixed-duration batches before submit. ~0u is a safe value for potential stale cache data from previous batches. Fixes observed verification failure under looped runs: gem_wsim -w "1.RCS.5000.0.0,1.BCS.5000.0.0,1.CCS.5000.0.1,1.VCS.5000.0.0" -V -r 4000 CRITICAL: Failed assertion: w->duration.requested_ticks <= ~w->xe.data->spin.ticks_delta CRITICAL: error: 96000 > 2 Signed-off-by: Marcin Bernatowicz Cc: Adam Miszczak Cc: Kamil Konieczny Cc: Lukasz Laguna --- benchmarks/gem_wsim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index 8be44d0c8..a66fd07d4 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -2663,7 +2663,11 @@ static void do_xe_exec(struct workload *wrk, struct w_step *w) .addr = w->xe.exec.address, .preempt = (w->preempt_us > 0), .ctx_ticks = w->duration.requested_ticks); + } else if (!w->duration.unbound) { + /* Reset sentinel for fixed-duration to prevent stale reads */ + w->xe.data->spin.ticks_delta = ~0u; } + xe_exec(fd, &w->xe.exec); } -- 2.43.0