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 EFDDBCCD199 for ; Fri, 17 Oct 2025 15:36:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B147B10EC68; Fri, 17 Oct 2025 15:36:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=lankhorst.se header.i=@lankhorst.se header.b="T4M5Y/La"; dkim-atps=neutral Received: from lankhorst.se (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 553FB10EC62 for ; Fri, 17 Oct 2025 15:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lankhorst.se; s=default; t=1760715360; bh=upuwLmCSgPoNTInTlpVvIpw9JFl8b4p+vbmK4DmjNsw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=T4M5Y/Lab0XZAcveFNO8zsiH8VfTubbC58NqW6SLupffi/+NvPeipLuR6VYDNp58D F1sRtgVv30iVf/jez3EA6WDY6fUwJIKvZ82jaLJY4OS6pwQ10dBtD+df9llkq0Ps3t ls/Yz533+2T2cKv6rm33tx7OqfXqqkOgvJyrXStRx9/corf4jRtoeG1B8GEvWzJQ2+ 9DH6E8zYOLfJV9UlgwfYjOo6Lz4q8AgAjYrnNUWQ0h2gC+MZiO1Qwz/Hsof7xHxJih Xdth7F/+sWn7Zwm//RW/1DDqXAw5NbtGVTNPG+D8/6JiAK5dkX/gpoQHc2el0L0wCe B7nj8ISIJLzoA== From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Subject: [FOR CI 1/5] drm/xe: Bump xe_device_l2_flush even higher Date: Fri, 17 Oct 2025 13:57:47 +0200 Message-ID: <20251017115752.398805-2-dev@lankhorst.se> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017115752.398805-1-dev@lankhorst.se> References: <20251017115752.398805-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