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 B15C4CCD1BC for ; Thu, 23 Oct 2025 08:55:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F82910E8F8; Thu, 23 Oct 2025 08:55:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=lankhorst.se header.i=@lankhorst.se header.b="ntiR0bvv"; dkim-atps=neutral Received: from lankhorst.se (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5091D10E8F7 for ; Thu, 23 Oct 2025 08:55:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lankhorst.se; s=default; t=1761209731; bh=upuwLmCSgPoNTInTlpVvIpw9JFl8b4p+vbmK4DmjNsw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ntiR0bvv5ZkLPS2tW2uNwdpx8T6cBbHk3f2ZNtjhoQxy+keTzcwwaNzX5LMs5H0Ey q0kSGeUZEw/PRF6Gp0d4dqbDLW/c9RIejrTax/nqgJe4KOosxIZ6e5Ci4xZtPbd1d3 LI4W4V/E0hJx3TOfLt+GeHYKfzTPQpev0hA6TUJn0iucuFALhlnVSxT7pDsUaZoikp vou9fZ2VBdQTbwHmaZNbozutA8bl9QGtAg751F6ywMq4Tra6uQ17NRyxwbOdOUktnx ZQU1IJxY+xQ2IH9lO/DzvokdacuOZOoLEDEw7MpQv7YBxlHlEXTSbye7lVg1dJLHG6 xypWx0uc6Ul6Q== From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Subject: [FOR CI 1/5] drm/xe: Bump xe_device_l2_flush even higher Date: Thu, 23 Oct 2025 10:55:57 +0200 Message-ID: <20251023085601.90831-2-dev@lankhorst.se> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251023085601.90831-1-dev@lankhorst.se> References: <20251023085601.90831-1-dev@lankhorst.se> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" It turns out for some applications 1 ms is not enough, and 2 ms is needed. Failing to flush causes a catastrophic display update failure, so we should prevent it if possible. Add an even bigger margin of 5 ms, and complain loudly if we ever exceed it. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6097 Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/xe_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index 5f6a412b571c7..f6704c57e87ca 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -1077,8 +1077,8 @@ void xe_device_l2_flush(struct xe_device *xe) spin_lock(>->global_invl_lock); xe_mmio_write32(>->mmio, XE2_GLOBAL_INVAL, 0x1); - if (xe_mmio_wait32(>->mmio, XE2_GLOBAL_INVAL, 0x1, 0x0, 1000, NULL, true)) - xe_gt_err_once(gt, "Global invalidation timeout\n"); + if (xe_mmio_wait32(>->mmio, XE2_GLOBAL_INVAL, 0x1, 0x0, 5000, NULL, true)) + xe_gt_err(gt, "Global invalidation timeout\n"); spin_unlock(>->global_invl_lock); -- 2.51.0