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=1795429839; b=ISlMyrKUizRRH0NpqTCQJ3pKggPCgPYkQtAkwg4J/WXCR8oPdE965gNBhKK+SyONJ1HS TU3mG+ekl79aKMIDxsisN3x/GMqIS3Q4V6hJh4mdqzfYkth/gn8PSg5JcI5iA2bhrXNrR wg+L4H5BWEVMpjvtq4kGY1JrVv9d1TZUtwKIqxFp5ZTR3bjbfk0qWGF4CZtHZ58kyH+SQ 9nJ6C3ThSmgIvJEFY3RsO1HpS8frfgf2JJZ8KCz6HWCAivOUXbb2lm4Qb+nSvdzbgx0hc ndYvE3+Q/34ENStNgN3jOEjDquxToQh3KizdC1ijUtNSpCeMT5N3maC6RYDXeig0kRQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795429839; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=csJ8UiN05u+HBHlaQbfO4lV0aFQ3+RlzZYD6cCBi5s0=; b=znG34CrjscmBrGNjJ3iECVWluoVylLkP8GqWm9ORO7VEEbxRgRTS20+78id16huvKaqG P7n6GwKAIF9C7sLd0J4Rdrv6eOgjhyMqBs5lffNwQ7reGBv7st1Fc8aOZJuCTkTZ2JrWD qe3OKQznlw6O8rm2DJ7xXonXygsn8B1kK2gbvs5ONZwMgMBCOuJybAdUmt3N0+gUu7+pV JdJUjZgvzyvaHVK+IStCuNyMaGjRUUDfclGwotXn7zpmG88pkTQV5e9TpqhKYy1WeEZ4Q /Oq9XSIPpjPOkNSDrDi0IRE0EEToOkDXnUi+LVxuhWXI9KZfMUZWGOiXZWC+oCddhrQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Wis7Wk0p; 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 75CC8606A31E for ; Mon, 23 Nov 2026 10:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Wis7Wk0p Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1FD21F000E0; Mon, 23 Nov 2026 10:30:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795429839; bh=csJ8UiN05u+HBHlaQbfO4lV0aFQ3+RlzZYD6cCBi5s0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Wis7Wk0p68ORnvNa8QqjCrd6ivro3xkPg3VfxYeBulGniwdO4UrLIjJEEmmDVoEdj SETZT7tgD+iN6mv5lH8L1LeDTrvZ1aeftdkw+oRME0gSnKYHvKyHU0Kl0Ri3JbdCgP i0ZJruIgLXQhGmzafCh9siIRb/57D3TpF57TcvZsltOLT9SCQS97fZdeQLJy7KnzvA yLLczHP/3P8ATihvZTlyMARyqhlANjR3/Afj/pyI00mATpAl5QlHi0+hG2OkJDFSiA Oa8R1b3LWmpDIPUO486MhT3DpS9pZkGSg4smjtJINSX2rwfL8pVyfRBPeE5m8kDJif hIG6QM5xza16A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] vt: Skip hardware scrolling while blanked and fix VESA blanking Reply-To: sashiko-reviews@lists.linux.dev To: "Yu Peng" Cc: linux-serial@vger.kernel.org, dri-devel@lists.freedesktop.org In-Reply-To: <20261123101151.414436-1-pengyu@kylinos.cn> References: <20261123101151.414436-1-pengyu@kylinos.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 23 Nov 2026 10:30:38 +0000 X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] vt: con_scroll() skips vgacon_scroll() while palette-blanked in VRAM -- commit fd87e862e45bd2b98326c37c1251a1bf748045f6 Author: Yu Peng vt: Skip hardware scrolling while blanked and fix VESA blanking This commit uses con_should_update() in con_scroll() and console_callback() to skip hardware scrolling and scrollback while the console is blanked, and returns !vga_palette_blanked from vgacon_blank() for VESA blanking. > diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c > index 7dbc0072a40a9..0e24e4ea99bf1 100644 > --- a/drivers/tty/vt/vt.c > +++ b/drivers/tty/vt/vt.c > @@ -726,8 +726,8 @@ static void con_scroll(struct vc_data *vc, unsigned i= nt top, > return; > =20 > vc_uniscr_scroll(vc, top, bottom, dir, nr); > - if (con_is_visible(vc) && > - vc->vc_sw->con_scroll(vc, top, bottom, dir, nr)) > + if (con_should_update(vc) && > + vc->vc_sw->con_scroll(vc, top, bottom, dir, nr)) > return; > =20 > src =3D clear =3D (u16 *)(vc->vc_origin + vc->vc_size_row * top); [Severity: Medium] Does checking con_should_update(vc) here break vgacon_scroll() while vgacon is palette-blanked? On color VGA text consoles (vga_video_type =3D=3D VIDEO_TYPE_VGAC), normal blanking in vgacon_blank() sets vga_palette_blanked =3D true and returns false, leaving vc->vc_origin pointing to uncached VGA MMIO VRAM rather than vc->vc_screenbuf. Because con_should_update(vc) is false whenever console_blanked is non-zero, con_scroll() skips vgacon_scroll() even when vga_palette_blanked is true. Every scroll while palette-blanked then falls back to software scr_memmovew() directly over uncached VGA MMIO VRAM and overwrites vc->vc_origin in place instead of advancing through the 32KB VRAM scrollback buffer. In addition, if the console was scrolled back when do_blank_screen() ran, hide_cursor() -> vgacon_cursor() -> vgacon_restore_screen() -> vgacon_scrolldelta(c, 0) resets c->vc_visible_origin =3D c->vc_origin and returns early without calling vga_set_mem_top(c). Skipping vgacon_scroll() (which calls vga_set_mem_top(c)) and then unblanking via vgacon_unblank() (which only restores the palette when vga_palette_blanked is true) leaves the VGA CRTC start address register stuck at the old scrolled-back VRAM offset. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261123101151.4144= 36-1-pengyu@kylinos.cn?part=3D1