[lkml]   [2003]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: vesafb mtrr setup question
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

> > /* 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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.074 / U:4.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site