public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Florian Weimer <fw@deneb.enyo.de>
Cc: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>,
	Siddhesh Poyarekar <siddhesh@sourceware.org>
Subject: Re: [PATCH] x86: Disable RTM on Skylake [BZ #27398]
Date: Sat, 27 Mar 2021 13:16:10 -0700	[thread overview]
Message-ID: <CAMe9rOpwxH1_2+mDOFTaW6G55G=Y3BGXBcPVb3zDPGTsvK6=LQ@mail.gmail.com> (raw)
In-Reply-To: <CAMe9rOpsjFRRw9Qu1A2K8-VpZAT-QJ9sb4+E+aq0bzTN-ZUgiw@mail.gmail.com>

On Sat, Mar 27, 2021 at 1:13 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Sat, Mar 27, 2021 at 1:02 PM Florian Weimer <fw@deneb.enyo.de> wrote:
> >
> > * H. J. Lu:
> >
> > > On Sat, Mar 27, 2021 at 12:15 PM Florian Weimer <fw@deneb.enyo.de> wrote:
> > >>
> > >> * H. J. Lu via Libc-alpha:
> > >>
> > >> > Disable RTM explicitly on Skylake since CPUID may incorrectly report RTM
> > >> > feature.
> > >> > ---
> > >> >  sysdeps/x86/cpu-features.c | 4 ++++
> > >> >  1 file changed, 4 insertions(+)
> > >> >
> > >> > diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
> > >> > index d7248cbb45..3641a48407 100644
> > >> > --- a/sysdeps/x86/cpu-features.c
> > >> > +++ b/sysdeps/x86/cpu-features.c
> > >> > @@ -518,6 +518,10 @@ init_cpu_features (struct cpu_features *cpu_features)
> > >> >                with stepping >= 4) to avoid TSX on kernels that weren't
> > >> >                updated with the latest microcode package (which disables
> > >> >                broken feature by default).  */
> > >> > +         case 0x8e:
> > >> > +         case 0x9e:
> > >> > +           /* Disable RTM explicitly on Skylake since CPUID may report
> > >> > +              RTM feature incorrectly [BZ #27398].  */
> > >> >             CPU_FEATURE_UNSET (cpu_features, RTM);
> > >> >             break;
> > >> >           }
> > >>
> > >> Won't this affect the server parts as well?  I'm not sure if that's
> > >> what our users want.
> > >
> > > No since Xeon has a different model number (0x55).
> >
> > Hmm.  Xeon E3-1240 v6 has model number 158 (0x9e), too.
>
> Does it have RTM?

It does have TSX:

https://ark.intel.com/content/www/us/en/ark/products/97469/intel-xeon-processor-e3-1240-v6-8m-cache-3-70-ghz.html

Then my patch won't work.

-- 
H.J.

      parent reply	other threads:[~2021-03-27 20:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-27 18:34 H.J. Lu
2021-03-27 19:15 ` Florian Weimer
2021-03-27 19:57   ` H.J. Lu
2021-03-27 20:02     ` Florian Weimer
2021-03-27 20:13       ` H.J. Lu
2021-03-27 20:16         ` Florian Weimer
2021-03-27 20:16           ` H.J. Lu
2021-03-27 20:16         ` H.J. Lu [this message]

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='CAMe9rOpwxH1_2+mDOFTaW6G55G=Y3BGXBcPVb3zDPGTsvK6=LQ@mail.gmail.com' \
    --to=hjl.tools@gmail.com \
    --cc=fw@deneb.enyo.de \
    --cc=libc-alpha@sourceware.org \
    --cc=siddhesh@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).