Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1664978ybl; Sat, 24 Aug 2019 01:54:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTXH0A/UPUJgB1PKa63Cl4v/CweN7lSJul+VH8J2EYDqsjh4OvcL9JsFKPcLCUSZpW5Yp+ X-Received: by 2002:aa7:9a52:: with SMTP id x18mr10037027pfj.8.1566636853715; Sat, 24 Aug 2019 01:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566636853; cv=none; d=google.com; s=arc-20160816; b=FjtFMncL4c3i7sNt0U27hmzubOIh6pQp98zW+tUzUlvazWFrpdv77skJGtNpP+dNty G8oCu9lmqBSGrEx5V9TRzKLHMqKUvGVFDFPmVUE8Hn7Co7cUKimd5q4LdWtoIE78/jiq sG5qlAiE9BR/+HxkSn9WfVp4JkVNfjub7L0pMdGhBJC/++qUl/awZSgl5nMsIUxPS9pM y4AC8D3EJhK5TR8sGGwAoPqQYeEKEfI+CUwNxB9+l9FRb1MVvD1mD51oht0+BVUcKwlz a4wibwHB6jum4TYOyGjiTkRTqMTdrgzXSv/oaOwmMgq9vzUMkmysqgqCb+TM1ui4fKXq 5lFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=y/+jWvyBGR7LYBkrvHd7rN/Y5tkpI17UT0DIamRbBg8=; b=Zc3e5/X96TIWIwgyqXskie7ysgcWXPPCIxH0ibeadpMUiASU04qqkXF8HHJNdr7Ckt NweIszYgMhanCyjQpT7BB5T0icsr8+JTilw/i6rA17LR3lMjXW55vdjn04KisJlkaiXe po932xLVAcMxjI0ujutOEZSCtkYoSuEOlgaXbDD2JeJtfm454CtcDIuQT+lGQVpL1Q89 IUwusULMhYdAATk6r+D25qSTpLpfLp20/GeiOZr55QAjm3zh62lis268k2jgLUHz8olt SIVqvBOYyCiMGD5o4CwNbM79trGwjO/hfySMe8vv0uqM43YAcB4iJfI1wCHXZfHzUibP A5qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qQeuTWK3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si4384294pjt.106.2019.08.24.01.53.58; Sat, 24 Aug 2019 01:54:13 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=qQeuTWK3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727111AbfHXIwB (ORCPT + 99 others); Sat, 24 Aug 2019 04:52:01 -0400 Received: from mail.skyhub.de ([5.9.137.197]:44124 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbfHXIwB (ORCPT ); Sat, 24 Aug 2019 04:52:01 -0400 Received: from zn.tnic (p200300EC2F1E9400E161D1CD3EE01E5E.dip0.t-ipconnect.de [IPv6:2003:ec:2f1e:9400:e161:d1cd:3ee0:1e5e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 471CD1EC01AF; Sat, 24 Aug 2019 10:52:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1566636720; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=y/+jWvyBGR7LYBkrvHd7rN/Y5tkpI17UT0DIamRbBg8=; b=qQeuTWK3L6xlmCAWyxD6p/I6iruhE/vyJqBwBcl6RjtJSlJIB2Vu6ITLa+KdohfH42Kma/ B0RwxcGYryo01sVr8RLO/yI5i37jq/5Xhsx36MyqD82YGaTuY5/kJVDwFQ3ESdApWYcWlX un5EcEazliTTlYNg7TBOW4b35CVEs0o= Date: Sat, 24 Aug 2019 10:51:56 +0200 From: Borislav Petkov To: Mihai Carabas Cc: linux-kernel@vger.kernel.org, ashok.raj@intel.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, patrick.colp@oracle.com, kanth.ghatraju@oracle.com, Jon.Grimm@amd.com, Thomas.Lendacky@amd.com Subject: Re: [PATCH] x86/microcode: Update microcode for all cores in parallel Message-ID: <20190824085156.GA16813@zn.tnic> References: <1566506627-16536-1-git-send-email-mihai.carabas@oracle.com> <1566506627-16536-2-git-send-email-mihai.carabas@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1566506627-16536-2-git-send-email-mihai.carabas@oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 22, 2019 at 11:43:47PM +0300, Mihai Carabas wrote: > From: Ashok Raj > > Microcode update was changed to be serialized due to restrictions after > Spectre days. Updating serially on a large multi-socket system can be > painful since we do this one CPU at a time. Cloud customers have expressed > discontent as services disappear for a prolonged time. The restriction is > that only one core goes through the update while other cores are quiesced. > The update is now done only on the first thread of each core while other > siblings simply wait for this to complete. > > Signed-off-by: Ashok Raj > Signed-off-by: Mihai Carabas > --- > arch/x86/kernel/cpu/microcode/core.c | 44 ++++++++++++++++++++++++----------- > arch/x86/kernel/cpu/microcode/intel.c | 14 ++++------- > 2 files changed, 36 insertions(+), 22 deletions(-) Thanks, I did some cleaning up and smoke testing. It looks ok so far. The versions I'm going to hammer on more - and I'd appreciate it if you did so too, when possible - as a reply to this message. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.