Historical speck list archives
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: speck@linutronix.de
Subject: Re: BUG: disabling SMT from BIOS
Date: Mon, 30 Jul 2018 23:24:20 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1807302322500.1725@nanos.tec.linutronix.de> (raw)
In-Reply-To: <20180723151356.7wkmmqksvwqvlgdg@treble>

On Mon, 23 Jul 2018, speck for Josh Poimboeuf wrote:
> From: Josh Poimboeuf <jpoimboe@redhat.com>
> Subject: [PATCH] cpu/hotplug: detect SMT disabled by BIOS
> 
> If SMT is disabled in BIOS, the CPU code doesn't properly detect it.
> The /sys/devices/system/cpu/smt/control file shows 'on', and the 'l1tf'
> vulnerabilities file shows SMT as vulnerable.
> 
> Fix it by forcing 'cpu_smt_control' to CPU_SMT_NOT_SUPPORTED in such a
> case.  Unfortunately the detection can only be done after bringing all
> the CPUs online, so we have to overwrite any previous writes to the
> variable.

Bah, this whole CPU enumeration on x86 sucks.

> Reported-by: Joe Mario <jmario@redhat.com>
> Fixes: f048c399e0f7 ("x86/topology: Provide topology_smt_supported()")
> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>

Belated Acked-by-me.

      parent reply	other threads:[~2018-07-30 21:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-22 22:02 [MODERATED] BUG: disabling SMT from BIOS Josh Poimboeuf
2018-07-23  8:06 ` [MODERATED] " Jiri Kosina
2018-07-23  8:44   ` Peter Zijlstra
2018-07-23 10:15     ` Jiri Kosina
2018-07-23 12:45     ` Josh Poimboeuf
2018-07-23 14:03       ` Jiri Kosina
2018-07-23 15:13         ` Josh Poimboeuf
2018-07-24  7:30           ` Jiri Kosina
2018-07-24 15:36             ` Peter Zijlstra
2018-07-24 16:36               ` Peter Zijlstra
2018-07-24 22:34                 ` Peter Zijlstra
2018-07-25  8:45                   ` Peter Zijlstra
2018-07-25 10:05                     ` Peter Zijlstra
2018-07-25 10:18                       ` Greg KH
2018-07-30 21:24           ` Thomas Gleixner [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=alpine.DEB.2.21.1807302322500.1725@nanos.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=speck@linutronix.de \
    /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).