* On trying to drop X86_PPRO_FENCE..
@ 2014-03-11 17:43 Linus Torvalds
2014-03-11 21:25 ` One Thousand Gnomes
0 siblings, 1 reply; 2+ messages in thread
From: Linus Torvalds @ 2014-03-11 17:43 UTC (permalink / raw)
To: Ingo Molnar, One Thousand Gnomes
Cc: H. Peter Anvin, Stefani Seibold, Andy Lutomirski,
Linux Kernel Mailing List, Andreas Brief, Martin Runge
On Tue, Mar 11, 2014 at 3:11 AM, Ingo Molnar <mingo@kernel.org> wrote:
>
> But ... when PPro was common our parallelization sucked, so I'd not be
> surprised if it triggered more frequently with a modern kernel.
Agreed. It is certainly very possible that we had no reports of this
simply because we never had any real concurrent cache accesses
(outside of the BKL).
That said, the Intel errata does do say that they never saw reports of
it in any real loads either, so it really is debatable whether it ever
made sense. Back in the PPro days, there were *other* x86 unixes
around that might have hit it, including very much the Sequent NUMA-Q.
I have this dim memory that the only reason I knew about the errata
originally was that I was talking memory ordering for the spinlock
code with Andy Glew from Intel, to verify that a simple store really
does work as an unlock, and he dropped the "Yeah, except for some
buggy old PPro cpu errata" bomb.
(Although honestly, that whole thing is so long ago that my "dim
memory" is very suspect, and it's possible the workaround actually
came independently of that from Alan Cox. This all happened in
v2.4.13-rc2 - late 2001 - and the PPro workaround came in together
with the X86 OOSTORE code, which I *think* was Alan. Asking the gnomes
in case they remember how it happened).
Linus
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: On trying to drop X86_PPRO_FENCE..
2014-03-11 17:43 On trying to drop X86_PPRO_FENCE Linus Torvalds
@ 2014-03-11 21:25 ` One Thousand Gnomes
0 siblings, 0 replies; 2+ messages in thread
From: One Thousand Gnomes @ 2014-03-11 21:25 UTC (permalink / raw)
To: Linus Torvalds
Cc: Ingo Molnar, H. Peter Anvin, Stefani Seibold, Andy Lutomirski,
Linux Kernel Mailing List, Andreas Brief, Martin Runge
> (Although honestly, that whole thing is so long ago that my "dim
> memory" is very suspect, and it's possible the workaround actually
> came independently of that from Alan Cox. This all happened in
> v2.4.13-rc2 - late 2001 - and the PPro workaround came in together
> with the X86 OOSTORE code, which I *think* was Alan. Asking the gnomes
> in case they remember how it happened).
Because people were actually managing to hit both that and the "funny
area of broken memory" bug on the PPro. I think (but may be wrong) it was
an ALR 6 way that showed up the locking bug. The usual case you hit the
fencing errata on the PPro was MMIO writes to graphics cards. Several
drivers (notably the 3Dfx drivers) had special fencing workarounds for it.
OOSTORE was for the IDT WinChip which was an unrelated x86 processor
which had an interesting ability to run with slacker cache coherency. It
was a very simple minded CPU so wasn't good at speculation so you could
get *big* performance gains by putting it in out of order store mode.
It just happened that the feature and erratum looked similar so got dealt
with in the same basic way.
It's worth reading some of the other errata documents, fencing errata of
various kinds pop up in a wide range of x86 processors. It's up there
with "rep movs" for 'wtf' behaviour 8)
Alan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-11 21:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-11 17:43 On trying to drop X86_PPRO_FENCE Linus Torvalds
2014-03-11 21:25 ` One Thousand Gnomes
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®