mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading
@ 2018-01-01  2:04 Jia Zhang
  2018-01-01 22:10 ` Borislav Petkov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jia Zhang @ 2018-01-01  2:04 UTC (permalink / raw)
  To: bp, mingo; +Cc: hpa, tglx, tony.luck, x86, linux-kernel, Jia Zhang

Instead of blacklisting all types of Broadwell processor when running
a late loading, only BDW-EP (signature 0x406f1, aka family 6, model 79,
stepping 1) with the microcode version less than 0x0b000021 needs to
be blacklisted.

The erratum is documented in the the public documentation #334165 (See
the item BDF90 for details).

Signed-off-by: Jia Zhang <qianyue.zj@alibaba-inc.com>
---
 arch/x86/kernel/cpu/microcode/intel.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c
index 99af05f..42896bb 100644
--- a/arch/x86/kernel/cpu/microcode/intel.c
+++ b/arch/x86/kernel/cpu/microcode/intel.c
@@ -910,9 +910,17 @@ static bool is_blacklisted(unsigned int cpu)
 {
 	struct cpuinfo_x86 *c = &cpu_data(cpu);
 
-	if (c->x86 == 6 && c->x86_model == INTEL_FAM6_BROADWELL_X) {
-		pr_err_once("late loading on model 79 is disabled.\n");
-		return true;
+	/*
+	 * The Broadwell-EP processor with the microcode version less
+	 * then 0x0b000021 may result in system hang when running a late
+	 * loading. This behavior is documented in item BDF90, #334165
+	 * (Intel Xeon Processor E7-8800/4800 v4 Product Family).
+	 */
+	if (c->x86 == 6 && c->x86_model == INTEL_FAM6_BROADWELL_X &&
+	    c->x86_stepping == 0x01 && c->microcode < 0x0b000021) {
+		pr_err_once("Not loading old microcode version: erratum BDF90 on Intel Broadwell-EP stepping 1 CPUs may cause system hangs.\n");
+		pr_err_once("Please update your microcode version through BIOS update or early loading from the initrd.\n");
+	return true;
 	}
 
 	return false;
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-01-06 13:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-01  2:04 [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading Jia Zhang
2018-01-01 22:10 ` Borislav Petkov
2018-01-02  1:19   ` Jia Zhang
2018-01-02 19:24   ` Luck, Tony
2018-01-03 13:03     ` Borislav Petkov
2018-01-02 20:49 ` kbuild test robot
2018-01-02 20:57   ` Borislav Petkov
2018-01-03 12:24     ` Jia Zhang
2018-01-06 13:48 ` [tip:x86/urgent] x86/microcode/intel: Extend BDW late-loading with a revision check tip-bot for Jia Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome