Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Yu Peng <pengyu@kylinos.cn>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>,
	linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vgacon: Update CRTC start address when turning scrollback off
Date: Tue, 24 Nov 2026 22:42:43 +0100	[thread overview]
Message-ID: <2a7ecbf4-e22a-4216-9a7a-9deda6d957e5@gmx.de> (raw)
In-Reply-To: <20261124024933.306103-1-pengyu@kylinos.cn>

On 11/24/26 03:49, Yu Peng wrote:
> Commit 174657478cd8 ("vgacon: inline vc_scrolldelta_helper() into
> vgacon_scrolldelta()") moved the early return for !lines into
> vgacon_scrolldelta(), skipping vga_set_mem_top(c). This leaves the VGA
> CRTC start address stuck at the old scrollback offset after
> vgacon_restore_screen().
> 
> Call vga_set_mem_top(c) before returning when !lines.
> 
> Fixes: 174657478cd8 ("vgacon: inline vc_scrolldelta_helper() into vgacon_scrolldelta()")
> Assisted-by: LLM
> Signed-off-by: Yu Peng <pengyu@kylinos.cn>
> ---
>   drivers/video/console/vgacon.c | 1 +
>   1 file changed, 1 insertion(+)

applied to fbdev git tree.

Thanks!
Helge

  
> diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
> index 09f7c376b4689..a6b0223ca596d 100644
> --- a/drivers/video/console/vgacon.c
> +++ b/drivers/video/console/vgacon.c
> @@ -147,6 +147,7 @@ static void vgacon_scrolldelta(struct vc_data *c, int lines)
>   	/* Turn scrollback off */
>   	if (!lines) {
>   		c->vc_visible_origin = c->vc_origin;
> +		vga_set_mem_top(c);
>   		return;
>   	}
>   


      reply	other threads:[~2026-11-24 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  2:49 [PATCH] vgacon: Update CRTC start address when turning scrollback off Yu Peng
2026-11-24 21:42 ` Helge Deller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a7ecbf4-e22a-4216-9a7a-9deda6d957e5@gmx.de \
    --to=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pengyu@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox