mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Borislav Petkov <bp@alien8.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Adric Blake <promarbler14@gmail.com>,
	Peter Zijlstra <peterz@infradead.org>,
	x86@kernel.org
Subject: Re: [PATCH] x86/microcode, cpuhotplug: Add a microcode loader CPU hotplug callback
Date: Fri, 14 Jun 2019 22:53:40 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1906142253230.1760@nanos.tec.linutronix.de> (raw)
In-Reply-To: <20190614182317.29292-1-bp@alien8.de>

On Fri, 14 Jun 2019, Borislav Petkov wrote:

> From: Borislav Petkov <bp@suse.de>
> 
> Adric Blake reported the following warning during suspend-resume:
> 
>   Enabling non-boot CPUs ...
>   x86: Booting SMP configuration:
>   smpboot: Booting Node 0 Processor 1 APIC 0x2
>   unchecked MSR access error: WRMSR to 0x10f (tried to write 0x0000000000000000) \
>    at rIP: 0xffffffff8d267924 (native_write_msr+0x4/0x20)
>   Call Trace:
>    intel_set_tfa
>    intel_pmu_cpu_starting
>    ? x86_pmu_dead_cpu
>    x86_pmu_starting_cpu
>    cpuhp_invoke_callback
>    ? _raw_spin_lock_irqsave
>    notify_cpu_starting
>    start_secondary
>    secondary_startup_64
>   microcode: sig=0x806ea, pf=0x80, revision=0x96
>   microcode: updated to revision 0xb4, date = 2019-04-01
>   CPU1 is up
> 
> The MSR in question is MSR_TFA_RTM_FORCE_ABORT and that MSR is emulated
> by microcode. The log above shows that the microcode loader callback
> happens after the PMU restoration, leading to the conjecture that
> because the microcode hasn't been updated yet, that MSR is not present
> yet, leading to the #GP.
> 
> Add a microcode loader-specific hotplug vector which comes before
> the PERF vectors and thus executes earlier and makes sure the MSR is
> present.
> 
> Fixes: 400816f60c54 ("perf/x86/intel: Implement support for TSX Force Abort")
> Reported-by: Adric Blake <promarbler14@gmail.com>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: x86@kernel.org
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=203637

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>

      reply	other threads:[~2019-06-14 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-14 18:23 Borislav Petkov
2019-06-14 20:53 ` 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.1906142253230.1760@nanos.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=promarbler14@gmail.com \
    --cc=x86@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 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®