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 41897C7115D for ; Fri, 20 Jun 2025 10:45:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6DE4B10EB44; Fri, 20 Jun 2025 10:45:35 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qEkoLGjy"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0158810EB43 for ; Fri, 20 Jun 2025 10:45:08 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 53E24A52368; Fri, 20 Jun 2025 10:45:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F4D2C4CEED; Fri, 20 Jun 2025 10:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750416304; bh=N6DusCNLJlzWmnVZZvUrBl7lNLYoPSbTvJVdBzK7zlw=; h=Subject:To:Cc:From:Date:From; b=qEkoLGjyaF08SM5KWGmv0Xz9jKpedMJLmlgS2mmjvtxGU+Wf+4rp2hAIDZ61ySUXJ 3WeUOWrVKNAD1QjzHSX53i0Qw5aWl6C0cZ8dS+yLtcPsKmInk48GddohylJa7GzAVb WvEzMRSs/IahKbuNkHmjJ2EFVduxo6dVXIw9Lo4E= Subject: Patch "dummycon: Trigger redraw when switching consoles with deferred takeover" has been added to the 6.12-stable tree To: arvidjaar@gmail.com, dri-devel@lists.freedesktop.org, gregkh@linuxfoundation.org, hdegoede@redhat.com, javierm@redhat.com, tzimmermann@suse.de Cc: From: Date: Fri, 20 Jun 2025 12:44:43 +0200 Message-ID: <2025062043-railing-hefty-4648@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is a note to let you know that I've just added the patch titled dummycon: Trigger redraw when switching consoles with deferred takeover to the 6.12-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: dummycon-trigger-redraw-when-switching-consoles-with-deferred-takeover.patch and it can be found in the queue-6.12 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 03bcbbb3995ba5df43af9aba45334e35f2dfe27b Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 20 May 2025 09:14:00 +0200 Subject: dummycon: Trigger redraw when switching consoles with deferred takeover From: Thomas Zimmermann commit 03bcbbb3995ba5df43af9aba45334e35f2dfe27b upstream. Signal vt subsystem to redraw console when switching to dummycon with deferred takeover enabled. Makes the console switch to fbcon and displays the available output. With deferred takeover enabled, dummycon acts as the placeholder until the first output to the console happens. At that point, fbcon takes over. If the output happens while dummycon is not active, it cannot inform fbcon. This is the case if the vt subsystem runs in graphics mode. A typical graphical boot starts plymouth, a display manager and a compositor; all while leaving out dummycon. Switching to a text-mode console leaves the console with dummycon even if a getty terminal has been started. Returning true from dummycon's con_switch helper signals the vt subsystem to redraw the screen. If there's output available dummycon's con_putc{s} helpers trigger deferred takeover of fbcon, which sets a display mode and displays the output. If no output is available, dummycon remains active. v2: - make the comment slightly more verbose (Javier) Signed-off-by: Thomas Zimmermann Reported-by: Andrei Borzenkov Closes: https://bugzilla.suse.com/show_bug.cgi?id=1242191 Tested-by: Andrei Borzenkov Acked-by: Javier Martinez Canillas Fixes: 83d83bebf401 ("console/fbcon: Add support for deferred console takeover") Cc: Hans de Goede Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: # v4.19+ Link: https://lore.kernel.org/r/20250520071418.8462-1-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/video/console/dummycon.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) --- a/drivers/video/console/dummycon.c +++ b/drivers/video/console/dummycon.c @@ -85,6 +85,15 @@ static bool dummycon_blank(struct vc_dat /* Redraw, so that we get putc(s) for output done while blanked */ return true; } + +static bool dummycon_switch(struct vc_data *vc) +{ + /* + * Redraw, so that we get putc(s) for output done while switched + * away. Informs deferred consoles to take over the display. + */ + return true; +} #else static void dummycon_putc(struct vc_data *vc, u16 c, unsigned int y, unsigned int x) { } @@ -95,6 +104,10 @@ static bool dummycon_blank(struct vc_dat { return false; } +static bool dummycon_switch(struct vc_data *vc) +{ + return false; +} #endif static const char *dummycon_startup(void) @@ -123,11 +136,6 @@ static bool dummycon_scroll(struct vc_da { return false; } - -static bool dummycon_switch(struct vc_data *vc) -{ - return false; -} /* * The console `switch' structure for the dummy console Patches currently in stable-queue which might be from tzimmermann@suse.de are queue-6.12/dummycon-trigger-redraw-when-switching-consoles-with-deferred-takeover.patch queue-6.12/video-screen_info-relocate-framebuffers-behind-pci-bridges.patch queue-6.12/sysfb-fix-screen_info-type-check-for-vga.patch