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=1796382168; b=qQ27S2KZ2M8wsyZ63qmAAg0RmxxNn5xwEiNtFAbEA9b5fVWBraMM1N/sxwMqJwT6yfU1 PW9GwkBF08+ydsG+8oPSOynLJHYNH9fGeAGpb2p8zSIx80vCTRS0k+VkDzN/5KLV50m+t T27SiR6dECPXE/4mMDoPtIInJ7oa5nN1w1n+YDLVPTPxJv+x5D6bI3yPBXm+C1AYwtGEk jF1Bj7U7YITxaIlTPT63s6RiUGG2Cyoa00YyF0+Jgtj+MlqSjG2cloiv5ro2I9fjfnJoU ypJwPF9zR0by+Z0v/nvXxExgIYkLE4X+kmi+egxu9q9FfXMMsmpSENKfATA58ymKopg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382168; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=68ijIVWCD3xHtSGaiS6gAiAsgQF1byswcE5GhAyKMjg=; b=KUorz+6DEEb6PKj0+xcM0DqZAJpFNQkV10dG74wJlUnowziC4UTCfGzr85q9WXDjteoa fFzdfGwdDI4CWBvX6V8fo2Zr+hTWoM5cnT7HHDdharfOuaxHsg2MXKJsIbtNAniSfxZlv aq3jsjR+b/cozgvz4lkaDbRY4GouvO3W7oiWyRLYFFUdZgmG5nCrxAdILtfzuNBNIGP1H Ld1Ph8cUNGraSRtwwc2dtkAHZF08JNdmRGnu8cKm9xhuD46n39zG5MtG8DiHrv5Wumm1K 072ib0z7M8YRMosPQ2wkQ6uSLTU8zCF+p/nKT0zw3BCXZz+LyNp8kW+uangxoLlgsYw== 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="1/UyTDq1"; 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 3637D606A322; Fri, 4 Dec 2026 11:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=1/UyTDq1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A52E71F000C2; Fri, 4 Dec 2026 11:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796382168; bh=68ijIVWCD3xHtSGaiS6gAiAsgQF1byswcE5GhAyKMjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=1/UyTDq1Vr7AbWTKzS8m9LFZG5nCvHBcjV28z/c9t2UfTD46QI5xq5fma8cnnoybb n9mJMXr68qBpQY4viM2YlV+hsT1KIH2IN3LUbqCQQu5gi/98VKp7C5VqSkgGCLMJbb iJ3TlG5U1JedrBqQa27BLuBUXbgZwzauPYn4/52o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Maarten Lankhorst , =?UTF-8?q?Jouni=20H=C3=B6gander?= , Mika Kahola , Joonas Lahtinen Subject: [PATCH 6.18 338/703] drm/i915/display: Flush the fbdev frontbuffer Date: Fri, 4 Dec 2026 19:03:57 +0900 Message-ID: <20261204100636.775790047@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore 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 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jouni Högander commit f1f5942c3fdac3bb553d0019f60d11ca35f9b836 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_fbdev.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) --- a/drivers/gpu/drm/i915/display/intel_fbdev.c +++ b/drivers/gpu/drm/i915/display/intel_fbdev.c @@ -76,9 +76,10 @@ static struct intel_frontbuffer *to_fron 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, @@ -92,7 +93,7 @@ static int intel_fbdev_set_par(struct fb ret = drm_fb_helper_set_par(info); if (ret == 0) - intel_fbdev_invalidate(ifbdev); + intel_fbdev_flush(ifbdev); return ret; } @@ -104,7 +105,7 @@ static int intel_fbdev_blank(int blank, ret = drm_fb_helper_blank(blank, info); if (ret == 0) - intel_fbdev_invalidate(ifbdev); + intel_fbdev_flush(ifbdev); return ret; } @@ -117,7 +118,7 @@ static int intel_fbdev_pan_display(struc ret = drm_fb_helper_pan_display(var, info); if (ret == 0) - intel_fbdev_invalidate(ifbdev); + intel_fbdev_flush(ifbdev); return ret; } @@ -182,7 +183,7 @@ static void intelfb_restore(struct drm_f { 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)