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 CC8BCCCD184 for ; Tue, 21 Oct 2025 12:42:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E36410E5E0; Tue, 21 Oct 2025 12:42:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=lankhorst.se header.i=@lankhorst.se header.b="XnrgZlOP"; dkim-atps=neutral Received: from lankhorst.se (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 672F610E06F for ; Tue, 21 Oct 2025 12:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lankhorst.se; s=default; t=1761050558; bh=upuwLmCSgPoNTInTlpVvIpw9JFl8b4p+vbmK4DmjNsw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XnrgZlOPewoJp6aKWf4GYTxu2hQIdlKAy34actq/kdK56ajjMYdexTvuDBkADHrbi q1R0fcKXyvmH3bEpyoAVM818mQ5Sk/pDfPTf9d779+ibUG4XkmygpFD6FaNawDvB32 hFbwnfgs3jWMI+KGfFaxaNVOa5Ss+jCbzlHbI12mJm6f1IF8Ag5u+qWPDkG6MamLrY 4a60MeNvXmKULTwu4mzjQbrNH7r3Qu70MTnaY0kjTGZSskcBIk5pRqryyYTUh3X8n8 B36DrgpjRrzNy+X2JU4bOouhaleqMiG1/w3fwnlgwK1yzXYR8L7uEtVhjiaLwmrc3z TAqSNfqCjmbtQ== From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Subject: [FOR CI 1/5] drm/xe: Bump xe_device_l2_flush even higher Date: Tue, 21 Oct 2025 14:43:05 +0200 Message-ID: <20251021124309.130121-2-dev@lankhorst.se> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251021124309.130121-1-dev@lankhorst.se> References: <20251021124309.130121-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