[MPlayer-dev-eng] mga_vid memory detection error

Arpi arpi at thot.banki.hu
Fri Oct 4 01:46:08 CEST 2002


Hi,

> I've got a 16Mb Matrox G400 card that is misdetected as a 32Mb model. The
> result is a green screen. With mga_ram_size=16, everything works fine.
> (I'm using the current CVS).

yes, i know... the chip on 16m and 32m models is teh same.. so no way to
make difference unless i write/read verify the memory (matroxfb does that).

> Since "lspci -v" reports "16Mb", wouldn't it be a good idea to use the
> subsystem vendor/device id for the memory detection?

hmm

> 01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev
> 04) (prog-if 00 [VGA])
> 	Subsystem: Matrox Graphics, Inc. Millennium G400 Dual Head 16Mb
> 	Flags: bus master, medium devsel, latency 32, IRQ 10
> 	Memory at d4000000 (32-bit, prefetchable) [size=32M]
in the first versions i uded this as memory size -------^^^ badly as you can
see, so i've changed it to use chip configuration register flags as the docs
said. also bad...

i wonder where is that 16Mb above comes from...


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list