* [PATCH] vgacon: Update CRTC start address when turning scrollback off
@ 2026-11-24 2:49 Yu Peng
2026-11-24 21:42 ` Helge Deller
0 siblings, 1 reply; 2+ messages in thread
From: Yu Peng @ 2026-11-24 2:49 UTC (permalink / raw)
To: Greg Kroah-Hartman, Helge Deller
Cc: Jiri Slaby, linux-fbdev, dri-devel, linux-kernel, Yu Peng
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(+)
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;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] vgacon: Update CRTC start address when turning scrollback off
2026-11-24 2:49 [PATCH] vgacon: Update CRTC start address when turning scrollback off Yu Peng
@ 2026-11-24 21:42 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2026-11-24 21:42 UTC (permalink / raw)
To: Yu Peng, Greg Kroah-Hartman
Cc: Jiri Slaby, linux-fbdev, dri-devel, linux-kernel
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;
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-24 21:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox