[MPlayer-dev-eng] mga_vid memory detection error

Eric Lammerts eric at lammerts.org
Fri Oct 4 01:12:57 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).

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

Eric


dmesg:

Matrox MGA G200/G400/G450/G550 YUV Video interface v2.01 (c) Aaron Holtzman & A'rpi
mga_vid: Found MGA G400/G450
mga_vid: MMIO at 0xd2882000 IRQ: 10  framebuffer: 0xD4000000
mga_vid: OPTION word: 0x50044120  mem: 0x10  SGRAM
mga_vid: detected RAMSIZE is 32 MB
syncfb (mga): IRQ disabled in mga_vid.c

# lspci -d 102b: -v  

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]
	Memory at d6000000 (32-bit, non-prefetchable) [size=16K]
	Memory at d7000000 (32-bit, non-prefetchable) [size=8M]
	Expansion ROM at <unassigned> [disabled] [size=64K]
	Capabilities: [dc] Power Management version 2
	Capabilities: [f0] AGP version 2.0

# lspci -d 102b: -xxx

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 04)
00: 2b 10 25 05 07 00 90 02 04 00 00 03 08 20 00 00
10: 08 00 00 d4 00 00 00 d6 00 00 00 d7 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 2b 10 59 21
30: 00 00 00 00 dc 00 00 00 00 00 00 00 0a 01 10 20
40: 20 41 04 50 00 3c 00 00 42 42 ff 42 00 00 00 00
50: 00 30 00 01 21 a4 90 01 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 f0 22 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 02 00 20 00 03 02 00 1f 01 03 00 1f 00 00 00 00



More information about the MPlayer-dev-eng mailing list