From: rct@gherkin.sa.wlk.com (Bob_Tracy)
To: davej@suse.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: another Cyrix/mtrr problem?
Date: Tue, 13 Mar 2001 20:48:02 -0600 (CST) [thread overview]
Message-ID: <m14d1KU-0005khC@gherkin.sa.wlk.com> (raw)
In-Reply-To: <Pine.LNX.4.31.0103140009230.7143-100000@athlon> "from davej@suse.de at Mar 14, 2001 00:20:21 am"
davej@suse.de wrote:
> Normally the answer would be "Closed driver, complain to nVidia",
> but just in case..
Glad you were open-minded enough to consider that it *might* be
"our" code.
> Can you verify that..
>
> a. You have MTRR support compiled into the kernel.
yes
> b. You have a /proc/mtrr file
yes
> c. You can add/delete ranges using /proc/mtrr
> (See Documentation/mtrr.txt for info on how to do this)
yes, BUT...
The "Documentation/mtrr.txt" file says "... 4 megabytes, which is
0x400000 bytes (in hexadecimal)." The math is correct: 1MB == 2**20
== 0x100000 the last time I checked. Unfortunately, when I execute
echo "base=0xd8000000 size=0x100000 type=write-combining" >| /proc/mtrr
I get a 2MB region instead of the 1MB region I expected...
reg00: base=0xd8000000 (3456MB), size= 2MB: write-combining, count=1
reg01: base=0x000c0000 ( 0MB), size= 512KB: uncachable, count=1
reg07: base=0x00000000 ( 0MB), size= 256MB: write-through, count=1
Similarly, the NVIDIA driver attempts to create a 32MB write-combining
region by passing a size argument of 0x2000000, and fails because the
underlying mtrr code tries to carve out a 64MB region whereas my video
card has only 32MB of RAM.
Looks like an off-by-one (bit) error to me. So... Is this a legitimate
bug sighting, or is my analysis faulty?
--Bob Tracy
rct@frus.com
next prev parent reply other threads:[~2001-03-14 2:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-13 19:20 Bob_Tracy
2001-03-14 0:20 ` davej
2001-03-14 2:48 ` Bob_Tracy [this message]
2001-03-14 22:57 ` David Wragg
2001-03-15 13:34 ` Bob_Tracy
2001-03-16 7:15 ` Joerg Diederich
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=m14d1KU-0005khC@gherkin.sa.wlk.com \
--to=rct@gherkin.sa.wlk.com \
--cc=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®