From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: BERECZ Szabolcs <szabi@inf.elte.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [QUESTION] mga memsize
Date: Thu, 8 Mar 2001 22:41:11 MET-1 [thread overview]
Message-ID: <1812F3643F2@vcnet.vc.cvut.cz> (raw)
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
vandrove@vc.cvut.cz
next reply other threads:[~2001-03-08 21:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-08 22:41 Petr Vandrovec [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-03-08 21:14 [QUESTION] mga memsize BERECZ Szabolcs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1812F3643F2@vcnet.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=szabi@inf.elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox