mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arvind Sankar <arvinds@MIT.EDU>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: vesafb mtrr setup question
Date: Tue, 26 Aug 2003 11:50:44 -0400	[thread overview]
Message-ID: <20030826155044.GA27105@m66-080-18.mit.edu> (raw)
In-Reply-To: <1061912542.20846.50.camel@dhcp23.swansea.linux.org.uk>

On Tue, Aug 26, 2003 at 04:42:23PM +0100, Alan Cox wrote:
> On Llu, 2003-08-25 at 20:43, Arvind Sankar wrote:
> > In the first place, the power of two computation computes the largest
> > power of 2 that is _smaller_ than video_size, so it looks like an
> > off-by-1 bug.
> 
> Not a bug - we don't know what lives above it so we can't extend the
> mtrr safely
> 
Ah. On a side not, could you drop a quick hint as to how
screen_info.lfb_size is obtained?

In older (or just different?) versions of vesafb, the video_size was
actually computed by multiplying xres, yres, and the bpp.

> > >         /* Try and find a power of two to add */
> > >         while (temp_size && mtrr_add(video_base, temp_size, MTRR_TYPE_WRCOMB, 1)==-EINVAL) {
> > >                 temp_size >>= 1;
> > >         }
> > > }
> > 
> > Secondly, what's the point of requesting a smaller write-combining
> > segment that won't cover all the video memory being used?
> 
> Generally we don't use all the videoram. Its a heuristic rather than
> perfection. You might want to play with improvements
> 

I thought the yres_virtual was computed based on how much video_ram was
being used, so all of it _is_ being used, for scrollback?

-- arvind

  reply	other threads:[~2003-08-26 18:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-25 19:43 Arvind Sankar
2003-08-26 15:42 ` Alan Cox
2003-08-26 15:50   ` Arvind Sankar [this message]
2003-08-27 15:14     ` Alan Cox

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=20030826155044.GA27105@m66-080-18.mit.edu \
    --to=arvinds@mit.edu \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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

all inboxes | Powered by JetHome®