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 1F47DCCF9E0 for ; Wed, 22 Oct 2025 12:13:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3F8110E76A; Wed, 22 Oct 2025 12:13:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=lankhorst.se header.i=@lankhorst.se header.b="HhhIcY+y"; dkim-atps=neutral Received: from lankhorst.se (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4CA6B10E768 for ; Wed, 22 Oct 2025 12:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lankhorst.se; s=default; t=1761135189; bh=upuwLmCSgPoNTInTlpVvIpw9JFl8b4p+vbmK4DmjNsw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HhhIcY+yaNqQROfx58qyqaqYjvzHDCmF8kT+LenacmWEzqWbCly3Q3VEw+m6Un2LQ bUkNWzbqXzsC4sY04/YHXewkE7yik5lNLEakqqER/TyS26eIkv8hb4jeNHeli2dUUE YWAP40P59WoJflLrKWVoUTQGR6Z4KpE5aavCGKRgEXTaFMR5MQtYXz6bUA48SlAu6n jS+zlG+bX4nmhwtjLA4aYQ4/hWxtzsIYPiBZAVd6hdBb52C0699cKYQBG0ykOnHOgv e8nr3Wgo90UwH1y/q8jJWBXth2S6QSJ84bfJYJqxoZrNrCF+kqXxoE2pAU5A43OoEd XMAgqRvoB9msw== From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Cc: Maarten Lankhorst Subject: [FOR CI 1/5] drm/xe: Bump xe_device_l2_flush even higher Date: Wed, 22 Oct 2025 14:13:03 +0200 Message-ID: <20251022121301.18166-8-dev@lankhorst.se> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251022121301.18166-7-dev@lankhorst.se> References: <20251022121301.18166-7-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