From: Andi Kleen <ak@muc.de>
To: "J.A. Magallon" <jamagallon@able.es>
Cc: linux-kernel@vger.kernel.org
Subject: Re: FEATURE REQUEST: Specific Processor Optimizations on x86 Architecture
Date: Mon, 27 Oct 2003 19:33:01 +0100 [thread overview]
Message-ID: <m3k76qsf8i.fsf@averell.firstfloor.org> (raw)
In-Reply-To: <LhtX.bs.13@gated-at.bofh.it> ("J.A. Magallon"'s message of "Mon, 27 Oct 2003 16:30:21 +0100")
"J.A. Magallon" <jamagallon@able.es> writes:
> Patch inlined. Credits should go to Zwane Mwaikambo <zwane@linux.realnet.co.sz>.
> It adds the corresponding flags for PII) and P4, and in case thei are defined,
> the *fence insn are used.
>
> Included is also one other patch by Zwane, which states that smp_call_function
> needs mb() instead of wmb().
>
> I use them regularly, so they look safe. Are they really better ? At least they
> do not touch any register, like the trick used till now.
The current code also does not touch any register. It has a gcc memory
barrier, which is costly, but needed.
The wmb() change is not needed, unless you have an oostore CPU
(x86 has ordered writes by default). It probably does not hurt
neither though (I do it the same way on x86-64), but also doesn't
change anything.
I think overall the patch is a very bad idea because it adds weird CPU
dependencies to the image again for very little again If you really
want to do this use alternative() and runtime patching. But it's
probably not worth the effort - don't do it until you can demonstrate
a difference in any benchmark.
-Andi
next prev parent reply other threads:[~2003-10-27 18:33 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <JB3R.23s.23@gated-at.bofh.it>
[not found] ` <JBn4.2xt.19@gated-at.bofh.it>
[not found] ` <JBPW.36x.3@gated-at.bofh.it>
2003-10-23 8:32 ` FEATURE REQUEST: Specific Processor Optimizations on x86 Architecture Ihar 'Philips' Filipau
2003-10-23 8:37 ` Ihar 'Philips' Filipau
[not found] ` <JWKQ.7nS.15@gated-at.bofh.it>
[not found] ` <LhtX.bs.15@gated-at.bofh.it>
[not found] ` <LhtX.bs.13@gated-at.bofh.it>
2003-10-27 18:33 ` Andi Kleen [this message]
2003-10-27 21:05 ` Zwane Mwaikambo
[not found] <JB3R.23s.23@gated-at.bofh.it.suse.lists.linux.kernel>
[not found] ` <JWKQ.7nS.15@gated-at.bofh.it.suse.lists.linux.kernel>
[not found] ` <LhtX.bs.15@gated-at.bofh.it.suse.lists.linux.kernel>
[not found] ` <LhtX.bs.13@gated-at.bofh.it.suse.lists.linux.kernel>
[not found] ` <m3k76qsf8i.fsf@averell.firstfloor.org.suse.lists.linux.kernel>
[not found] ` <Pine.LNX.4.53.0310271603580.21953@montezuma.fsmlabs.com.suse.lists.linux.kernel>
2003-10-27 21:15 ` Andi Kleen
2003-11-18 14:28 ` Zwane Mwaikambo
2003-10-22 12:55 Joseph D. Wagner
2003-10-23 0:12 ` Måns Rullgård
2003-10-22 13:26 ` Joseph D. Wagner
2003-10-23 0:37 ` Michael Rozhavsky
2003-10-23 0:15 ` Dave Jones
2003-10-22 13:47 ` Joseph D. Wagner
2003-10-23 1:02 ` Rik van Riel
2003-10-23 1:14 ` Joseph D. Wagner
2003-10-23 1:18 ` Rik van Riel
2003-10-23 9:26 ` Jan-Benedict Glaw
2003-10-23 9:35 ` Måns Rullgård
2003-10-23 1:06 ` Tim Hockin
2003-10-22 15:40 ` Joseph D. Wagner
2003-10-23 14:57 ` Rik van Riel
2003-10-23 1:23 ` Dave Jones
2003-10-22 15:35 ` Joseph D. Wagner
2003-10-23 2:52 ` William Lee Irwin III
2003-10-23 9:35 ` Jan-Benedict Glaw
2003-10-23 13:40 ` Jesse Pollard
2003-10-23 14:57 ` Charles Cazabon
2003-10-23 15:34 ` David Zaffiro
2003-10-23 17:26 ` Rob
2003-10-23 23:05 ` J.A. Magallon
2003-10-23 23:24 ` Nick Piggin
[not found] ` <200310241301.41230.ioe-lkml@rameria.de>
2003-10-27 15:20 ` J.A. Magallon
2003-10-27 20:52 ` Zwane Mwaikambo
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=m3k76qsf8i.fsf@averell.firstfloor.org \
--to=ak@muc.de \
--cc=jamagallon@able.es \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.