[MPlayer-users] Help setting MTRR

Philip Walden pwaldenlinux at pacbell.net
Mon Nov 27 20:58:47 CET 2006


Philip Walden wrote:

> I am getting "Your system is too SLOW to play this" messages.
>
> I have verified all the performance tunings (disk dma, xvideo, 
> monitoring top) except MTRR settings. I'd appreciate any coaching on 
> doing this.
>
> I have FC5 with Xorg.0. Supposedly it should set my MTRR 
> automagically, but from what I see, it does not look like it.
>
> I have a Athlon 856MHz with a nVidia Corporation NV5 RIVA TNT2/TNT2 
> Pro 16MB videoram on FC5 2.6.18-1.2239.fc5.
>
> The Xorg.0.log says:
>
> PCI:*(1:5:0) nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro] rev 21, Mem @ 
> 0xf5000000/24, 0xfc000000/25
>
> lspci -v says:
> From lspci -v
> 01:05.0 VGA compatible controller: nVidia Corporation NV5 [RIVA 
> TNT2/TNT2 Pro] (rev 15) (prog-if 00 [VGA])
>        Subsystem: ASUSTeK Computer Inc. AGP-V3800 SDRAM
>        Flags: bus master, 66MHz, medium devsel, latency 40, IRQ 11
>        Memory at f5000000 (32-bit, non-prefetchable) [size=16M]
>        Memory at fc000000 (32-bit, prefetchable) [size=32M]
>        Capabilities: [60] Power Management version 1
>        Capabilities: [44] AGP version 2.0
>
> The /proc/mttr says only:
>
> reg00: base=0x00100000 (   1MB), size= 256MB: write-back, count=1
>
> So it looks like Xorg.0 did not set the MTTR correctly.
>
> From what I read in most HowTos, I should set it as below, but what 
> about that other 32MB memory region? One HowTos I saw says to use the 
> last memory address?
>
> echo "base=0xf5000000 size=0x1000000 type=write-combining" >| /proc/mtrr

Looks like the problem is an xorg 7.0 bug, wherein the automatic MTRR 
settings are not working.
https://bugs.freedesktop.org/show_bug.cgi?id=5801

I'd still appreciate any advice on setting the MTRR manually. I also 
found this in my Xorg.0.log:
NV(0): Linear framebuffer at 0xFC000000
NV(0): VideoRAM: 16384 kBytes

So it looks like the later 0xFC000000 address is the one to use. So is 
the following correct?
echo "base=0xfc000000 size=0x1000000 type=write-combining" >| /proc/mtrr

Still not sure because of the reported 32MB @ 0xfc000000 by lspci.




More information about the MPlayer-users mailing list