Yes,
you are right...
[...]
>
> So I think that the correct line really is :
> video_size = screen_info.lfb_width * screen_info.lfb_height *
> video_bpp / 8;
There is a problem with this, ...
If we calculate the exact memory like this, there wont be any
memory remapped to do double/tripple buffering...
So the question is: shoud one take the formula and add ' * 2' to
atleast get the double buffering supported...
(in the patch I made for mdk, I kept a modified override part so that
the user can change this, if he needs it....)
Alan,
any comments on this?
> (Which also handles line widths which are not multiple of 8).
Well actually, in that formula it does not matter where you put the '/8',
the result is always the same...
> BTW, I wonder why we truncate the mtrr size to the highest lower power
> of 2. Shouldn't we round it up to the next one ?
>
Isn't it a hardware requirement?
I think I read it in a nvidia document once...
(of course they may be wrong...)
-- Thomas Backlundtmb@iki.fi www.iki.fi/tmb
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/