Re: mtrr

Richard Gooch (Richard.Gooch@atnf.CSIRO.AU)
Mon, 3 Aug 1998 11:25:00 +1000


Tom Rini writes:
> On Mon, 3 Aug 1998, Richard Gooch wrote:
>
> > Tom Rini writes:
> > > The docs for mtrr say that it can speedup graphical usage upto 2.5, and
> > > the Docs provide examples on howto read/add to /proc/mtrr, but are there
> > > any apps that make use of it? or do all you have to do is turn on the
> > > config option and then turn it on like the file says it would be used by X
> > > (or would it need a patch to use as well as manipulate?) and framebuffers?
> >
> > XFree86 4.0 will manipulate /proc/mtrr directly. I'm also looking for
> > someone to hack the x86 FBcon drivers to call mtrr_add()
> > directly. Feel free to volunteer :-)
>
> This would be something like mtrr_add(base, size, MTRR_WR_COMB, ?); in the
> init section of each one, right?

Yep. reg = mtrr_add (base, size, MTRR_TYPE_WRCOMB, 1) in the init
function, mtrr_del (reg, 0, 0) in the un-init function. Piece of cake.
With some cards, you may also need to set up a small uncachable region
for memory mapped registers.

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html