From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207180; b=tb5Uk/YL6VfXY1b6OHENlG1RXSonmnc9tzfbFpNIpcKWANPgWqSxmgBdKomdG39BEI1l yiSnu1nlFqnB3hBTY54A9etdQTbgElq9K/w62jSOuUl0SSGrDi1ww1E6rlZO7Y8k1DTdZ zc6cSlFdKKIGs5eYfx8mN9NDO6H5N9HLT/YVEwyOkTs3KcgAtaKEDrjjBGy28IzwV2w9+ SnJJlcZZ0JOdtabDsadpI6ttgoy2TRcnTJx+jhnAEHegGLYsNsktQxo0YC78xZ/RWDaaR Lq8c6/GDfiLfH/WJOVugRq4REN2YelMrCEQx72vtO9JkuCl/0+GW7ybv9N9God6mMPQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207180; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=3Y2QHhfI+JXDCPdpwJ5+VP9oMbV6mBfShTmgTOmdkGE=; b=utrib16XwA9hWSTv4pAH0xTepeviqJo8EZCPnfnw8cqqGReMLcKt/e4/pwGHEJ16owAk w+u72PDKHwXkAfGZ14ROhFb5BhP5PVjXjmHv4nIBAg3AzL3Lo/5I9t9KyiCG95ZLyHKjo 41fjgCvQruqMugZIlJxpSSPEAJipOv3YbfYelPBwq5Rn5ZazZdGIMh7K0CLaLefySRHBD gUq56VxhoW0aXhSbI91Nu+aqt3QXgsaY6sBsqWzh705BYyFM9HBZ2obm537My+GljFqoe X6uQKZc4cnn9b4IPKjkcnNyrkOxQTHcXqy1JaBTWy5vFfCVMiy8gTR/ksc6BIa5g3aA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="tn50QnR/"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93895606A31A for ; Wed, 2 Dec 2026 10:26:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tn50QnR/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id B91221F000C1; Wed, 2 Dec 2026 10:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796207180; bh=3Y2QHhfI+JXDCPdpwJ5+VP9oMbV6mBfShTmgTOmdkGE=; h=Subject:To:Cc:From:Date; b=tn50QnR/yZaqD7NV1xnkSnj1+sSFztZXmPuEylzwbJXS8qapNRdQzq/xZy0Cbv4wH 0HtBpujpbco/QQSwuDFq4+JFlXJo0TdbwbQMK7EqCu9LvUZuDbgzIInoyQvXz7WoeW umZE7Ckrg9/P5YFd6Awe22vjPUHlHUAWsRuyfgBw= Subject: FAILED: patch "[PATCH] drm/i915/display: Flush the fbdev frontbuffer" failed to apply to 6.12-stable tree To: jouni.hogander@intel.com,joonas.lahtinen@linux.intel.com,maarten.lankhorst@linux.intel.com,mika.kahola@intel.com,stable@vger.kernel.org Cc: From: Date: Wed, 02 Dec 2026 11:26:17 +0100 Message-ID: <2026120217-encore-strangle-1e1f@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x f1f5942c3fdac3bb553d0019f60d11ca35f9b836 # git commit -s git send-email --to '' --in-reply-to '2026120217-encore-strangle-1e1f@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From f1f5942c3fdac3bb553d0019f60d11ca35f9b836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= Date: Mon, 2 Nov 2026 12:00:51 +0200 Subject: [PATCH] drm/i915/display: Flush the fbdev frontbuffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fbdev invalidates on set_par, blank, pan_display and restore, but never flushes. On i915, unrelated rendering may clear the bits; Xe has no ORIGIN_CS invalidation, so PSR and FBC can remain disabled indefinitely. Flush after these operations; they are already complete. Fixes: 44e694958b95 ("drm/xe/display: Implement display support") Cc: Maarten Lankhorst Cc: # v6.8+ Signed-off-by: Jouni Högander Reviewed-by: Mika Kahola Link: https://patch.msgid.link/20261102100051.272137-5-jouni.hogander@intel.com (cherry picked from commit ab965cbc781e4f4f8f81e48d01e0a0d78c94d369) Signed-off-by: Joonas Lahtinen diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c b/drivers/gpu/drm/i915/display/intel_fbdev.c index 219ee17de3f6..c09246a9865c 100644 --- a/drivers/gpu/drm/i915/display/intel_fbdev.c +++ b/drivers/gpu/drm/i915/display/intel_fbdev.c @@ -75,9 +75,10 @@ static struct intel_frontbuffer *to_frontbuffer(struct intel_fbdev *ifbdev) return ifbdev->fb->frontbuffer; } -static void intel_fbdev_invalidate(struct intel_fbdev *ifbdev) +/* The console operation has already completed, hence flush not invalidate. */ +static void intel_fbdev_flush(struct intel_fbdev *ifbdev) { - intel_frontbuffer_invalidate(to_frontbuffer(ifbdev), ORIGIN_CPU); + intel_frontbuffer_flush(to_frontbuffer(ifbdev), ORIGIN_CPU); } FB_GEN_DEFAULT_DEFERRED_IOMEM_OPS(intel_fbdev, @@ -91,7 +92,7 @@ static int intel_fbdev_set_par(struct fb_info *info) ret = drm_fb_helper_set_par(info); if (ret == 0) - intel_fbdev_invalidate(ifbdev); + intel_fbdev_flush(ifbdev); return ret; } @@ -103,7 +104,7 @@ static int intel_fbdev_blank(int blank, struct fb_info *info) ret = drm_fb_helper_blank(blank, info); if (ret == 0) - intel_fbdev_invalidate(ifbdev); + intel_fbdev_flush(ifbdev); return ret; } @@ -116,7 +117,7 @@ static int intel_fbdev_pan_display(struct fb_var_screeninfo *var, ret = drm_fb_helper_pan_display(var, info); if (ret == 0) - intel_fbdev_invalidate(ifbdev); + intel_fbdev_flush(ifbdev); return ret; } @@ -180,7 +181,7 @@ static void intelfb_restore(struct drm_fb_helper *fb_helper) { struct intel_fbdev *ifbdev = to_intel_fbdev(fb_helper); - intel_fbdev_invalidate(ifbdev); + intel_fbdev_flush(ifbdev); } static void intelfb_set_suspend(struct drm_fb_helper *fb_helper, bool suspend)