mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Song liwei <liwei.song@windriver.com>
Cc: linux-kernel@vger.kernel.org,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Will Deacon <will@kernel.org>, Borislav Petkov <bp@suse.de>,
	Kulkarni <Ganapatrao.Kulkarni@cavium.com>,
	Guo Ren <ren_guo@c-sky.com>, Joseph Lo <josephl@nvidia.com>,
	Hoan Tran <Hoan@os.amperecomputing.com>,
	Anju T Sudhakar <anju@linux.vnet.ibm.com>,
	Rafael J <rafael.j.wysocki@intel.com>
Subject: Re: [PATCH] x86/microcode, cpuhotplug: move microcode hotplug callback after cpu teardown
Date: Wed, 3 Jul 2019 11:17:04 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1907031114490.1802@nanos.tec.linutronix.de> (raw)
In-Reply-To: <1562143728-78052-1-git-send-email-liwei.song@windriver.com>

On Wed, 3 Jul 2019, Song liwei wrote:

> After CPUHP_TEARDOWN_CPU callback was invoked, the context will become
> atomic and IRQ disabled, while mc_cpu_down_prep will called
> kernfs_find_and_get_ns which will try to acquire mutext lock which may
> sleep.
> 
> Adjust CPUHP_AP_MICROCODE_LOADER callback function run before
> CPUHP_TEARDOWN_CPU to fix this bug.

That's just wrong and reintroduces the bug which was fixed with that commit
as perf will access a non existing MSR which is brought in by the micro
code update.

Aside of that the mutex issue _is_ fixed in rc7 already:

 5423f5ce5ca4 ("x86/microcode: Fix the microcode load on CPU hotplug for real")

Thanks,

	tglx

      reply	other threads:[~2019-07-03  9:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03  8:48 Song liwei
2019-07-03  9:17 ` 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.1907031114490.1802@nanos.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=Ganapatrao.Kulkarni@cavium.com \
    --cc=Hoan@os.amperecomputing.com \
    --cc=anju@linux.vnet.ibm.com \
    --cc=bp@suse.de \
    --cc=daniel.lezcano@linaro.org \
    --cc=josephl@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liwei.song@windriver.com \
    --cc=palmer@dabbelt.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=ren_guo@c-sky.com \
    --cc=will@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®