[Openchrome-users] Memory size detection failed: using 16MB, system has 8MB

Mark Huijgen mark.sf.net
Tue Feb 6 02:38:28 PST 2007


Hi,

The company I work for manages lot of computers with the following VIA 
chip: VIA VT3122 (CLE266)-EPIA M/MII/....
All the bios'es have the video memory set to 8MB. The driver fails to 
detect this and defaults to 16MB. This of course gives some weird result 
on the screen.

I put in some debug lines around
     /* detect amount of installed ram */
in via_driver.c to print pScrn->videoRam and bMemSize, both are 0.

Is this something that can be fixed in the driver? Or is it a problem 
with the BIOS's of these computers?

Below are some lines of the Xorg.0.log, note that I hacked the driver to 
set the video memory to 8mb when detection fails. This hack gives a 
workable system. The driver is compiled from SVN this morning.

Regards,
Mark


(**) VIA(0): VideoRAM 0kB
(--) VIA(0): Chipset: "CLE266"
(II) VIA(0): VIAMapMMIO
(--) VIA(0): mapping MMIO @ 0xec000000 with size 0x9000
(--) VIA(0): mapping BitBlt MMIO @ 0xec200000 with size 0x10000
(II) VIA(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(==) VIA(0): Will not print VGA Registers.
(==) VIA(0): Will not scan I2C buses.
(==) VIA(0): Chipset Rev.: 17
(WW) VIA(0): Manufacturer plainly copied main PCI ids to Subsystem/Card ids.
(--) VIA(0): Detected VIA VT3122 (CLE266)-EPIA M/MII/....
(II) VIA(0): Detected MemClk 4
(II) VIA(0): ViaGetMemoryBandwidth
(WW) VIA(0): Memory size detection failed: using 8MB
(--) VIA(0): videoram =  8192k





More information about the Openchrome-users mailing list