[lkml]   [2001]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [QUESTION] mga memsize
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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:29    [W:0.022 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site