From: Ralf Baechle <ralf@linux-mips.org>
To: "Kevin D. Kissell" <kevink@mips.com>
Cc: Dominic Sweetman <dom@algor.co.uk>,
Carsten Langgaard <carstenl@mips.com>,
linux-mips@linux-mips.org
Subject: Re: Promblem with PREF (prefetching) in memcpy
Date: Sat, 5 Oct 2002 01:43:45 +0200 [thread overview]
Message-ID: <20021005014345.B15883@linux-mips.org> (raw)
In-Reply-To: <00dd01c26ba2$b18f55b0$10eca8c0@grendel>; from kevink@mips.com on Fri, Oct 04, 2002 at 02:36:39PM +0200
On Fri, Oct 04, 2002 at 02:36:39PM +0200, Kevin D. Kissell wrote:
> In case Carsten's reply wasn't clear enough, there is a loophole
> in the spec: kseg0. There is no TLB access to cause a TLB
> exception (which would suppress the operation and be nullifed),
> If the prefetch address is correctly aligned, so that there is no
> address exception. In typical use, kseg0 is cacheable, which
> means that the second paragraph you quote does not apply.
> A prefetch to a well-formed, cacheable kseg0 address which
> has no primary storage behind it (e.g. 0x04000000 on a system
> with 64M of physical memory) should, according to the spec,
> cause a cache fill to be initiated for the line at that address,
> which will result in a bus error, if not a flat-out system hang.
Traditionally the kernel leaves the last page of memory unused but this
has been lost in the many changes to the memory initialization code.
It's still a good idea with all the broken I/O chips and PCI bridges out
there - and can avoid a hard to track bug.
That only leaves stuff usermode device drivers that are using cachable
mappings in the dangerzone. That should be a rare case, if at all.
Ralf
next prev parent reply other threads:[~2002-10-04 23:44 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-04 7:50 Promblem with PREF (prefetching) in memcpy Carsten Langgaard
2002-10-04 11:53 ` Dominic Sweetman
2002-10-04 12:11 ` Carsten Langgaard
2002-10-04 12:35 ` Dr. David Alan Gilbert
2002-10-04 12:36 ` Alan Cox
2002-10-04 12:35 ` Carsten Langgaard
2002-10-04 13:09 ` Alan Cox
2002-10-04 13:07 ` Hartvig Ekner
2002-10-04 13:07 ` Hartvig Ekner
2002-10-04 13:00 ` Kevin D. Kissell
2002-10-04 13:00 ` Kevin D. Kissell
2002-10-04 13:15 ` Alan Cox
2002-10-04 13:15 ` Kevin D. Kissell
2002-10-04 13:15 ` Kevin D. Kissell
2002-10-04 13:44 ` Alan Cox
2002-10-04 14:17 ` Kevin D. Kissell
2002-10-04 14:17 ` Kevin D. Kissell
2002-10-04 14:54 ` Alan Cox
2002-10-04 13:01 ` Maciej W. Rozycki
2002-10-04 13:17 ` Ralf Baechle
2002-10-04 13:32 ` Maciej W. Rozycki
2002-10-04 13:29 ` Dominic Sweetman
2002-10-04 13:46 ` Maciej W. Rozycki
2002-10-04 12:33 ` Hartvig Ekner
2002-10-04 12:33 ` Hartvig Ekner
2002-10-04 12:38 ` Ralf Baechle
2002-10-04 12:36 ` Kevin D. Kissell
2002-10-04 12:36 ` Kevin D. Kissell
2002-10-04 14:24 ` Dominic Sweetman
2002-10-04 14:24 ` Dominic Sweetman
2002-10-04 23:43 ` Ralf Baechle [this message]
2002-10-05 15:12 ` Hartvig Ekner
2002-10-05 15:12 ` Hartvig Ekner
2002-10-05 15:56 ` Alan Cox
2002-10-04 12:37 ` Kevin D. Kissell
2002-10-04 12:37 ` Kevin D. Kissell
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=20021005014345.B15883@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=carstenl@mips.com \
--cc=dom@algor.co.uk \
--cc=kevink@mips.com \
--cc=linux-mips@linux-mips.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