Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8624474ybn; Tue, 1 Oct 2019 10:44:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMuLuYNEugLJPat/9iQucJuTQaiO4Ovc4cTSD0z3b3H/dVB3UoFIVwLhdJP8mz0Tai6xcy X-Received: by 2002:a50:ee10:: with SMTP id g16mr26826211eds.267.1569951898826; Tue, 01 Oct 2019 10:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569951898; cv=none; d=google.com; s=arc-20160816; b=J7Cn8E4PsZEJvMhLUeAqsXo+luFNIaojPVP2JMoMJc97/wR+BKaSR6MiPCQXnqggHZ fP6u6pWX3/fumgAiiSHoMoxxV81epgqt58UVhVa8MKni5f/CmOxdW+qOhIs5J9ZMC+L6 jmSQe5b3Ugej4cGtL1lzCjpoatkyanpYp5d0I3w06lDYO2RZgExKNNvKyzGeDoARbUV1 y45UopLtq/auzW+Efl8f/PbFK2rl0nILQgQguQwpLNnFe+jcgpMNf8tswc+j0PHy0aTX SstltXAQ71USFEFhB+MTQsnJA/veQgKzN9nlYo36YIiL0Tg6PdXUHQ8m9OWsDfLeHAHO VP8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=cEJlc80PfAVb7hZt2qNZ/MA2qOEirMV3dTH4oX2u68g=; b=uT2i+RGOgDzbpyvHVtkBVX4COMTU81m/fXAsEZB7pzl3+hgANEm0BvrQZBkYa0wQxZ 89SB4xI1XmKYz6DA6KqP7ST4r8V5Fq3eZZyb9eCWesAaDLW/nAfsCshaGFW8MO0b9C1y /3j82fnOWkMKrOOnemKpKpuqXMLrMYzZyhKHcXeE4R2TUBbAJw4Gl2xfCqiPtDYQZZHe 93mmjLUWkm3S8LHDdSTPBwf3SKKUEnwmd7YCiUFy9oCSAFKJganZEnmkd+c9arLmSqly swhsJBJbOoS8jC0pgUTjqZMnSkl9Tvc34MpXm6oB/ziDOMAK9XgDcI4gkY8M5Q/zrN+a iztQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u17si9043148edy.145.2019.10.01.10.44.34; Tue, 01 Oct 2019 10:44:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726741AbfJARni (ORCPT + 99 others); Tue, 1 Oct 2019 13:43:38 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56054 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbfJARni (ORCPT ); Tue, 1 Oct 2019 13:43:38 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iFMBE-0000rD-WA; Tue, 01 Oct 2019 19:43:21 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 820C91C03AB; Tue, 1 Oct 2019 19:43:20 +0200 (CEST) Date: Tue, 01 Oct 2019 17:43:20 -0000 From: "tip-bot2 for Borislav Petkov" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/microcode] x86/microcode/intel: Issue the revision updated message only on the BSP Cc: Borislav Petkov , Ashok Raj , Boris Ostrovsky , "H. Peter Anvin" , Ingo Molnar , Jon Grimm , kanth.ghatraju@oracle.com, konrad.wilk@oracle.com, Mihai Carabas , patrick.colp@oracle.com, Thomas Gleixner , Tom Lendacky , "x86-ml" , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20190824085341.GC16813@zn.tnic> References: <20190824085341.GC16813@zn.tnic> MIME-Version: 1.0 Message-ID: <156995180039.9978.4399431172812014164.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/microcode branch of tip: Commit-ID: 811ae8ba6dca6b91a3ceccf9d40b98818cc4f400 Gitweb: https://git.kernel.org/tip/811ae8ba6dca6b91a3ceccf9d40b98818cc4f400 Author: Borislav Petkov AuthorDate: Sat, 24 Aug 2019 10:01:53 +02:00 Committer: Borislav Petkov CommitterDate: Tue, 01 Oct 2019 16:06:35 +02:00 x86/microcode/intel: Issue the revision updated message only on the BSP ... in order to not pollute dmesg with a line for each updated microcode engine. Signed-off-by: Borislav Petkov Cc: Ashok Raj Cc: Boris Ostrovsky Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Jon Grimm Cc: kanth.ghatraju@oracle.com Cc: konrad.wilk@oracle.com Cc: Mihai Carabas Cc: patrick.colp@oracle.com Cc: Thomas Gleixner Cc: Tom Lendacky Cc: x86-ml Link: https://lkml.kernel.org/r/20190824085341.GC16813@zn.tnic --- arch/x86/kernel/cpu/microcode/intel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c index ce799cf..6a99535 100644 --- a/arch/x86/kernel/cpu/microcode/intel.c +++ b/arch/x86/kernel/cpu/microcode/intel.c @@ -791,6 +791,7 @@ static enum ucode_state apply_microcode_intel(int cpu) { struct ucode_cpu_info *uci = ucode_cpu_info + cpu; struct cpuinfo_x86 *c = &cpu_data(cpu); + bool bsp = c->cpu_index == boot_cpu_data.cpu_index; struct microcode_intel *mc; enum ucode_state ret; static int prev_rev; @@ -836,7 +837,7 @@ static enum ucode_state apply_microcode_intel(int cpu) return UCODE_ERROR; } - if (rev != prev_rev) { + if (bsp && rev != prev_rev) { pr_info("updated to revision 0x%x, date = %04x-%02x-%02x\n", rev, mc->hdr.date & 0xffff, @@ -852,7 +853,7 @@ out: c->microcode = rev; /* Update boot_cpu_data's revision too, if we're on the BSP: */ - if (c->cpu_index == boot_cpu_data.cpu_index) + if (bsp) boot_cpu_data.microcode = rev; return ret;