From: ebiederm@xmission.com (Eric W. Biederman)
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: Andi Kleen <ak@suse.de>, Alan Cox <alan@lxorguk.ukuu.org.uk>,
Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i386, x86_64 Initial PAT implementation
Date: Tue, 30 Aug 2005 10:01:40 -0600 [thread overview]
Message-ID: <m1vf1npg63.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <17172.31726.480750.90360@alkaid.it.uu.se> (Mikael Pettersson's message of "Tue, 30 Aug 2005 17:31:58 +0200")
Mikael Pettersson <mikpe@csd.uu.se> writes:
> Andi Kleen writes:
> > On Tuesday 30 August 2005 16:45, Alan Cox wrote:
> > > On Llu, 2005-08-29 at 18:20 -0600, Eric W. Biederman wrote:
> > > > ways. Currently this code only allows for an additional flavor
> > > > of uncached access to physical memory addresses which should be hard
> > > > to abuse, and should raise no additional aliasing problems. No
> > > > attempt has been made to fix theoretical aliasing problems.
> > >
> > > Even an uncached/cached alias causes random memory corruption or an MCE
> > > on x86 systems. In fact it can occur even for an alias not in theory
> > > touched by the CPU if it happens to prefetch into or speculate the
> > > address.
> > >
> > > Also be sure to read the PII Xeon errata - early PAT has a bug or two.
> >
> >
> > We can always force cpu_has_pat == 0 on these machines.
> > I don't think it is worth it to add any more complicated workarounds
> > for old broken systems.
>
> I don't have the spec updates in front of me, but I believe the PAT
> bug existed well into the P4 line. The workaround is simply to make
> the high 4 PAT entries identical to the low 4 entries. (But I confess
> to not having a clue as to whether it's still useful then or not.)
It is still useful even if that is the case. Unless we need something
more than WC we don't have a need for anything else.
If you could track down the reference you are thinking of I would
appreciate it. According to the errata I can find simply not using
the high 4 entries is sufficient, to avoid the problem.
Eric
next prev parent reply other threads:[~2005-08-30 16:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 0:20 Eric W. Biederman
[not found] ` <200508300230.39844.ak@suse.de>
2005-08-30 1:49 ` Eric W. Biederman
[not found] ` <200508300412.55027.ak@suse.de>
2005-08-30 6:21 ` solving page table access attribute aliasing Eric W. Biederman
[not found] ` <200508301714.35017.ak@suse.de>
2005-08-30 15:50 ` Eric W. Biederman
2005-08-30 14:45 ` [PATCH] i386, x86_64 Initial PAT implementation Alan Cox
2005-08-30 14:50 ` Andi Kleen
2005-08-30 15:31 ` Mikael Pettersson
2005-08-30 16:01 ` Eric W. Biederman [this message]
2005-08-30 15:20 ` Eric W. Biederman
[not found] ` <200508301748.50941.ak@suse.de>
2005-08-30 16:06 ` Eric W. Biederman
2005-08-30 17:06 ` Dave Jones
2005-08-31 1:39 ` Eric W. Biederman
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=m1vf1npg63.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mikpe@csd.uu.se \
/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
Powered by JetHome