From: Andreas Herrmann <herrmann.der.user@googlemail.com>
To: suravee.suthikulpanit@amd.com
Cc: jacob.w.shin@gmail.com, linux-kernel@vger.kernel.org,
Borislav Petkov <bp@alien8.de>
Subject: Re: [PATCH] x86, microcode, AMD: Fix patch level reporting for family15h
Date: Fri, 27 Sep 2013 01:06:23 +0200 [thread overview]
Message-ID: <20130926230623.GA1764@alberich> (raw)
In-Reply-To: <20130926221322.GC10123@pd.tnic>
On Fri, Sep 27, 2013 at 12:13:22AM +0200, Borislav Petkov wrote:
> On Thu, Sep 26, 2013 at 04:54:32PM -0500, suravee.suthikulpanit@amd.com wrote:
> > From: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
> >
> > On AMD family15h, applying microcode patch on the a core (core0)
> > would also affect the other core (core1) in the same compute unit.
> > The driver would skip applying the patch on core1, but it still
> > need to update kernel structures to reflect the proper patch level.
> >
> > The current logic is not updating the struct ucode_cpu_info.cpu_sig.rev
> > of the skipped core. This causes the /sys/devices/system/cpu/cpu1/microcode/version
> > to report incorrect patch level as shown below:
> >
> > [ 10.708841] microcode: CPU0: new patch_level=0x0600063d
> > [ 10.714256] microcode: CPU1: patch_level=0x06000626
> > [ 10.719345] microcode: CPU2: patch_level=0x06000626
> > [ 10.748095] microcode: CPU2: new patch_level=0x0600063d
> > [ 10.753365] microcode: CPU3: patch_level=0x06000626
> > [ 10.758264] microcode: CPU4: patch_level=0x06000626
> > [ 10.786999] microcode: CPU4: new patch_level=0x0600063d
>
> Actually, this is collect_cpu_info_amd()'s normal operation and shows
> that there's no need to apply a microcode patch on the odd core since
> the even core's ucode has been updated.
Hmm, I think Boris is right, above messages are just logging what
happened during µcode update. I think the patch_level in "CPU1:
patch_level=0x06000626" is based on c->microcode which is updated
shortly after this message was printed.
I assume with your patch, above message won't look different but just
the contents in /sys/devices/system/cpu/cpu1/microcode/version will
show the correct version, right?
Andreas
next prev parent reply other threads:[~2013-09-26 23:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 21:54 [PATCH] x86, microcode, AMD: Fix patch level reporting for family15h suravee.suthikulpanit
2013-09-26 22:13 ` Borislav Petkov
2013-09-26 23:06 ` Andreas Herrmann [this message]
2013-09-26 23:18 ` Suravee Suthikulpanit
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=20130926230623.GA1764@alberich \
--to=herrmann.der.user@googlemail.com \
--cc=bp@alien8.de \
--cc=jacob.w.shin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=suravee.suthikulpanit@amd.com \
/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