From: Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vgacon: Add support for soft scrollback
Date: Tue, 31 Jan 2006 07:58:49 +0100 [thread overview]
Message-ID: <drn1r9$mtm$1@sea.gmane.org> (raw)
In-Reply-To: <43D492C4.3000801@gmail.com>
Antonino A. Daplas wrote:
> The scrollback buffer of the VGA console is located in VGA RAM. This
> RAM is fixed in size and is very small. To make the scrollback buffer
> larger, it must be placed instead in System RAM.
>
> This patch adds this feature. The feature and the size of the buffer
> are made as a kernel config option. Besides consuming kernel memory,
> this feature will slow down the console by approximately 20%.
>
> Signed-off-by: Antonino Daplas <adaplas@pol.net>
> ---
>
> This patch is the result of a discussion on how to capture very long
> oops tracings. One of the suggestions was to increase the size of
> the scrollback buffer of the VGA console.
>
> I haven't tested the code rigorously, so let me know of any bugs. I
> also tried to make it behave as close as possible to vgacon with a hard
> scrollback.
[...]
> +static int vgacon_scrolldelta(struct vc_data *c, int lines)
> +{
> + if (!lines) /* Turn scrollback off */
> + c->vc_visible_origin = c->vc_origin;
> + else {
> + int margin = c->vc_size_row * 4;
> + int ul, we, p, st;
> +
> + printk("vgacon delta: %i\n", lines);
^^^^^^
This disables the hard scrollback, as the console is immediately
scrolled back when the mesage gets printed.
Regards,
--
Jindrich Makovicka
next prev parent reply other threads:[~2006-01-31 6:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-23 8:24 [PATCH] vgacon: Add support for soft scrollback Antonino A. Daplas
2006-01-25 13:52 ` Jan Engelhardt
2006-01-25 23:35 ` Antonino A. Daplas
2006-01-26 20:44 ` Jan Engelhardt
2006-01-31 6:58 ` Jindrich Makovicka [this message]
2006-02-01 16:04 ` Jan Engelhardt
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='drn1r9$mtm$1@sea.gmane.org' \
--to=makovick@kmlinux.fjfi.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
/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