From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: linux-fbdev-devel@lists.sourceforge.net,
Gerd Knorr <kraxel@bytesex.org>,
linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: Re: [Linux-fbdev-devel] Re: [PATCH] vesafb memory size mismatch
Date: Sat, 2 Oct 2004 04:22:14 +0800 [thread overview]
Message-ID: <200410020422.15936.adaplas@hotpop.com> (raw)
In-Reply-To: <87acv6l9ru.fsf@bytesex.org>
On Friday 01 October 2004 23:48, Gerd Knorr wrote:
> + /* size_vmode -- that is the amount of memory needed for the
> + * used video mode, i.e. the minimum amount of
> + * memory we need. */
> + size_vmode = (vesafb_defined.xres * vesafb_defined.yres *
> + vesafb_defined.bits_per_pixel) >> 3;
> +
> + /* size_total -- all video memory we have. Used for mtrr
> + * entries and bounds checking. */
> + size_total = screen_info.lfb_size * 65536;
> + if (size_total < size_vmode)
> + size_total = size_vmode;
> + if (vram)
> + size_total = vram * 1024 * 1024;
> +
> + /* size_remap -- the amount of video memory we are going to
> + * use for vesafb. With modern cards it is no
> + * option to simply use size_total as that
> + * wastes plenty of kernel address space. */
> + size_remap = size_vmode * 2;
> + if (size_remap > size_total)
> + size_remap = size_total;
> + vesafb_fix.smem_len = size_remap;
Probably a typo, but shouldn't it be...
size_remap = size_vmode * 2;
if (vram)
size_remap = vram * 1024 * 1024;
if (size_remap > size_total)
size_remap = size_total
... so vram doesn't mess up with mtrr and user and fbcon can multibuffer
> size_vmode?
Tony
next prev parent reply other threads:[~2004-10-01 20:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-01 13:36 [PATCH] vesafb memory size mismatch Aurelien Jacobs
2004-10-01 15:48 ` Gerd Knorr
2004-10-01 20:22 ` Antonino A. Daplas [this message]
2004-10-04 9:27 ` [Linux-fbdev-devel] " Gerd Knorr
2004-10-03 0:53 ` Aurelien Jacobs
2004-10-03 1:59 ` Andrew Morton
2004-10-03 8:46 ` Antonino A. Daplas
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=200410020422.15936.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=adaplas@pol.net \
--cc=akpm@osdl.org \
--cc=kraxel@bytesex.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--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;
as well as URLs for NNTP newsgroup(s).