Re: mtrr and xf86 confusion?

From: Matan Ziv-Av (matan@svgalib.org)
Date: Wed May 31 2000 - 23:21:59 EST


On 31 May 2000, H. Peter Anvin wrote:

> Followup to:<Pine.LNX.4.21.0005311410560.1610-100000@badlands.lexington.ibm.com>
> By author: Richard A Nelson <cowboy@vnet.ibm.com>
> In newsgroup: linux.dev.kernel
> >
> > I get this from the xdm log:
> > ...
> > (--) SVGA: PCI: S3 Savage4 rev 2, Memory@ 0xfeb80000, 0xf0000000
> > (--) SVGA: SAVAGE: Savage4 rev 2, Linear FB @ 0xfeb80000
> > (--) SVGA: Detected S3 Savage4
> > (--) SVGA: using driver for chipset "s3_savage"
> > (--) SVGA: videoram:8192k
> > (--) SVGA: Ramdac speed: 250 MHz(220 MHz for 32 bpp)
> > (--) SVGA: Detected current MCLK value of 109.773 MHz
> > (--) SVGA: VBE Version 2.0
> > (--) SVGA: BIOS label is "S3 Incorporated. Savage4"
> > ...
> >
> > But, I can't set the mtrr as per /usr/src/linux/Documentation/mtrr.txt:
> > echo "base=0xfeb80000 size=0x800000 type=write-combining" > /proc/mtrr
> > kernel: mtrr: base(0xfeb80000) is not aligned on a size(0x800000) boundary
> >
>
> You have a zero too much in your "size=" argument.

But then you have only 0.5 MB of video ram, which does not make sense.
Check with lspci (or cat /proc/pci), the memory aperture probably starts
at 0xfe000000, or the report of XFree86 is wrong, and the aperture at
feb80000 is for MMIO, not the LFB. One of the memory apertures should
be prefetchable, and that is the LFB.

-- 
Matan Ziv-Av.                         matan@svgalib.org

- 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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:11 EST