Re: mtrr and xf86 confusion?

From: Richard A Nelson (cowboy@vnet.ibm.com)
Date: Thu Jun 01 2000 - 09:14:32 EST


On Thu, 1 Jun 2000, Matan Ziv-Av wrote:

> 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.

Indeed, things didn't work well when I dropped the trailing zero !

01:00.0 VGA compatible controller: S3 Inc. Savage 4 (rev 02) (prog-if 00 [VGA])
        Subsystem: Number 9 Computer Company SR9 8Mb SDRAM
        Flags: bus master, 66Mhz, medium devsel, latency 248
        Memory at feb80000 (32-bit, non-prefetchable)
        Memory at f0000000 (32-bit, prefetchable)
        Capabilities: [dc] Power Management version 1
        Capabilities: [80] AGP version 2.0

After changing the base, and upping the size back to 8M, things at least
are still working ;-} So XFree86 indeed was wrong !

Now I just need to get sound working... ESS Technology ES1988 Allegro-1
seems to be very new

Thanks much !

-- 
Rick Nelson
Life'll kill ya                         -- Warren Zevon 
Then you'll be dead                     -- Life'll kill ya

- 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:12 EST