From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Andi Kleen <ak@suse.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.0-test3-mm1: scheduling while atomic (ext3?)
Date: 13 Aug 2003 13:48:45 +0100 [thread overview]
Message-ID: <1060778924.8008.39.camel@localhost.localdomain> (raw)
In-Reply-To: <p7365l17o70.fsf@oldwotan.suse.de>
On Mer, 2003-08-13 at 13:10, Andi Kleen wrote:
> > Beats me, but then the prefetch code in 2.6 seems broken from
> > 5 seconds of inspection anyway. We are testing the XMM feature
> > and using prefetchnta for Athlon, thats wrong for lots of athlon
> > processors that dont have XMM but do have prefetch/prefetchw,
> > (which btw also seem to work properly on all these processors
> > while prefetchnta seems to do funky things)
>
> The early Athlon Specific test was not done to avoid too much bloat.
> (three alternatives instead of two)
Lets replace working code with broken macros whoooo.. progress. Lots of
Athlons don't have XMM, most of the older ones where prefetch has the
most impact in fact. (The XMM using ones have the hw prefetcher too).
> Most Athlons in existence should have XMM already and the rest works.
Lots don't have XMM
> You can hardly call that broken.
I just did. Its worse than 2.4 behaviour.
> That's done for write prefetches correctly.
> (as Intel does not have a write prefetch)
Actually its iffy too. 3Dnow doesnt imply prefetchw. You
must test 3Dnow && vendor==AMD && Athlon. (K6 prefetchw
is slower than not using it, other 3Dnow chips dont have it
eg the Cyrix MII which may explain a couple of things. I don't
see anywhere we mask the 3Dnow property by these but I've not
dug through the CPU code right now to see if we have a "3Dnowplus"
type definition we can check.
I suspect the best way to do prefetch cleanly would be something
like this
#if defined(CONFIG_MK7)
alternative_input("prefetch" or "prefetchnta")
#else
alternative_input(ASM_NOP4 or "prefetchnta");
#endif
Ideally we want a 3 way patch table to fix up at boot time but the if
case at least gets us back to desirable situations. Also if I remember
the prefetch exception thing rightly you can misalign the prefetch
instruction as a workaround.
Alan
next prev parent reply other threads:[~2003-08-13 12:49 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030813045638.GA9713@middle.of.nowhere.suse.lists.linux.kernel>
[not found] ` <20030813014746.412660ae.akpm@osdl.org.suse.lists.linux.kernel>
[not found] ` <20030813091958.GA30746@gates.of.nowhere.suse.lists.linux.kernel>
[not found] ` <20030813025542.32429718.akpm@osdl.org.suse.lists.linux.kernel>
[not found] ` <1060772769.8009.4.camel@localhost.localdomain.suse.lists.linux.kernel>
2003-08-13 11:17 ` Andi Kleen
[not found] ` <20030813042544.5064b3f4.akpm@osdl.org.suse.lists.linux.kernel>
[not found] ` <1060774803.8008.24.camel@localhost.localdomain.suse.lists.linux.kernel>
2003-08-13 12:10 ` Andi Kleen
2003-08-13 12:48 ` Alan Cox [this message]
2003-08-13 13:14 ` Andi Kleen
2003-08-13 14:09 ` Alan Cox
2003-08-13 14:20 ` Andi Kleen
2003-08-13 15:20 ` Alan Cox
2003-08-13 15:32 ` Andi Kleen
2003-08-13 18:44 ` Alan Cox
2003-08-13 18:53 ` Andi Kleen
2003-08-13 16:39 ` Dave Jones
2003-08-13 18:34 ` Alan Cox
2003-08-13 20:12 ` Dave Jones
2003-08-13 18:37 ` Alan Cox
2003-08-13 18:59 richard.brunner
-- strict thread matches above, loose matches on Subject: below --
2003-08-13 4:56 Jurriaan
2003-08-13 8:47 ` Andrew Morton
2003-08-13 9:19 ` Jurriaan on adsl-gate
2003-08-13 9:55 ` Andrew Morton
2003-08-13 11:06 ` Alan Cox
2003-08-13 11:25 ` Andrew Morton
2003-08-13 11:40 ` Alan Cox
2003-08-18 12:08 ` Pavel Machek
2003-08-13 11:06 ` Andi Kleen
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=1060778924.8008.39.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=ak@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®