Hi!
How can I check the memsize of a matrox g400?
I have a card with 16Mb memory, and the lspci show this:
Subsystem: Matrox Graphics, Inc. Millennium G400 16Mb SDRAM
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at e6000000 (32-bit, prefetchable) [size=32M]
So I could use the 16Mb in the name of the card, but an older lspci
doesn't show that.
In the 3rd line, it reports 32M. It doesn't work.
the matroxfb init reports the correct memsize, but I don't know, how to
get that.
Any idea?
Bye,
Szabi
On 8 Mar 01 at 22:14, BERECZ Szabolcs wrote:
> How can I check the memsize of a matrox g400?
> I have a card with 16Mb memory, and the lspci show this:
> Subsystem: Matrox Graphics, Inc. Millennium G400 16Mb SDRAM
> Flags: bus master, medium devsel, latency 64, IRQ 11
> Memory at e6000000 (32-bit, prefetchable) [size=32M]
>
> So I could use the 16Mb in the name of the card, but an older lspci
> doesn't show that.
> In the 3rd line, it reports 32M. It doesn't work.
> the matroxfb init reports the correct memsize, but I don't know, how to
> get that.
Chip always needs 32MB range in mmio space. So lspci reports 32MB.
Real memory size depends on installed memory, as one could expect.
If you do not trust matroxfb, just do:
yes | dd of=/dev/fb0 bs=32M count=1; dd if=/dev/fb0 of=tmp bs=32M count=1
and then verify tmp file contents... If you get 16MB of 'yes\n' and
16MB of zeroes or 0xFF, you have really 16MB of memory...
Petr Vandrovec
[email protected]