Received: by 10.223.185.116 with SMTP id b49csp6464923wrg; Wed, 28 Feb 2018 09:50:03 -0800 (PST) X-Google-Smtp-Source: AH8x225vWIEEQKkeGSTwn7CRu8ATDHRh8VhmvrsiWeJ67DjI7fQL/y0YZ7BIIG7vrcKv37mFUayo X-Received: by 10.98.14.200 with SMTP id 69mr18361070pfo.168.1519840203378; Wed, 28 Feb 2018 09:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519840203; cv=none; d=google.com; s=arc-20160816; b=hmOWFOshwxZhAo6BjT46PjLQEYnpnHM0NT1W4uBQ4LF8euycWQuPM/EWDFV2STzYWO uY1L2rmEMtO+Ozg4z3OYFB4e+yalia9YaXSPsl1vijzeluL6Q4HPfzWgqXGrOGKDu8sH B9AyJGXlqA9+t2k5C/UEu1WqGSQzFeMKm1+Go2h/s+NA+tFCvVsiMaySkXXfO93uUGOs S4KIojTluYNU2iY9O4GvHoXQozqi0Kor8S4O8uv/g0oIKjIz/gWihf29HWv+AODkqlqU sDwP3ERaqgXOapSN1JKIIBmnAbhK4Po1Gb0CCkt2SOwycKPmHBA1lASEGzngdHbtIGsU hzZw== 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:dkim-signature :arc-authentication-results; bh=YFqgDBEAmPIARis3gYP4amf9ShRjDWdyA6FWTBqMoPo=; b=eJ0We6XupNee8jMb5sXFaR+iICwcXkv+2s3kEFTh89fuPK1n/ydq8CytpFfeVuYRzb eHM2K2cPODnHufGTx0c8+q9qhPnVn5T48h0BdwLyVOlnoXjaNaCaRyM3c3I/li2qcQyg Ii2hPlyU4CUhZ5TNyAmiZ2Mb9GCDDl9RftxGfYhhi9wADTQXjpIpXNia3QzVyKRdTja0 u5OEwB9a3Cb+FHcXFxf2+6H/rQXGe8KaEZABhd5823BjirKGK/NfaPG3orTaLCEAh/IT TxRx4fvq8AVm+JrhGqWAAZQN8O3+c9ZVMapWTBA62APdJdt2eTtvLYvQLDFq36wagxIh X+0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hmh.eng.br header.s=fm1 header.b=iHhUNEXE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=jZw3mDJN; 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 r65si1515648pfe.295.2018.02.28.09.49.48; Wed, 28 Feb 2018 09:50:03 -0800 (PST) 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=@hmh.eng.br header.s=fm1 header.b=iHhUNEXE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=jZw3mDJN; 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 S934139AbeB1Rs4 (ORCPT + 99 others); Wed, 28 Feb 2018 12:48:56 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:47379 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932464AbeB1Rsw (ORCPT ); Wed, 28 Feb 2018 12:48:52 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 760E020B44; Wed, 28 Feb 2018 12:48:52 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 28 Feb 2018 12:48:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hmh.eng.br; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=YFqgDBEAmPIARis3gYP4amf9ShRjDWdyA6FWTBqMoPo=; b=iHhUNEXE 2szC0cKnf4JWB/HqeYo8y4vaxPvhO9qWx941ZTGVJtriSqjG/6XfrGqBaXegCHP8 eqCQURPXqqZKSKZStNOHPD/lHRJbDWTMgMYyw8HuxPCaTjb1YBDA0R4lnqj6VdnR xlAEXPQa8I/IGH6yvJL1EzfGV/Xaa7phKXPRUjqC9sdo+onFrd+0PhaHTv9Sxvlh gm+JMTHzQymOg+04LlbozMtCfuRS4bQF+oQUYs9fs/sFrpGHBHLhD6bUB6khJfg+ Xy45QaXOmQplgek/fE9Y6zNOe26StMhJKUXhSLi8OtCaGuvJC+25JHErrCUrEwj0 B35oCT+oR080Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=YFqgDBEAmPIARis3gYP4amf9ShRjD WdyA6FWTBqMoPo=; b=jZw3mDJNbfSo4Eaq4K8pWlVhfpjc1DTUCWDAh/kNsxjqf aT2D9vm+51LJv8J2h+rkCHdh8fQEcKxbnlj07QNpskkybOrh7d9nN9HarcUs7hJz Ra4zf0DRM+DEVijI7FNCBxEj/ocN3cd7lc3TX+QxEvzUMM64Bz1V8Ac/X4uuiZ1T IJC3K4wzEg+5EOtDsgNebrg40ZjXbK/N0JMnM5xDKUVZhWC2088qLIk+1ybcgNqZ NjgfNE6VTpWdaIRw8rOJEttZg9bEMZTAEFHYbtsOv3xEtM+ursFBTI5jToSp6NXR 7OKA5gngTUqwbttJnrVjibpEbOGh2/H5gOCCof0vw== X-ME-Sender: Received: from khazad-dum.debian.net (unknown [201.82.128.91]) by mail.messagingengine.com (Postfix) with ESMTPA id 07BD724836; Wed, 28 Feb 2018 12:48:52 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by localhost.khazad-dum.debian.net (Postfix) with ESMTP id 8A8253400411; Wed, 28 Feb 2018 14:48:49 -0300 (-03) X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net Received: from khazad-dum.debian.net ([127.0.0.1]) by localhost (khazad-dum2.khazad-dum.debian.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id w7l7Y8RYQ-c1; Wed, 28 Feb 2018 14:48:48 -0300 (-03) Received: by khazad-dum.debian.net (Postfix, from userid 1000) id CBCDF340040A; Wed, 28 Feb 2018 14:48:48 -0300 (-03) Date: Wed, 28 Feb 2018 14:48:48 -0300 From: Henrique de Moraes Holschuh To: Borislav Petkov Cc: X86 ML , Arjan Van De Ven , Ashok Raj , Tom Lendacky , LKML Subject: Re: [PATCH 7/7] x86/microcode: Synchronize late microcode loading Message-ID: <20180228174848.cs5jn2y7nzh6pu6u@khazad-dum.debian.net> References: <20180228102846.13447-1-bp@alien8.de> <20180228102846.13447-8-bp@alien8.de> <20180228135931.uwveegfdv5afozxe@khazad-dum.debian.net> <20180228140806.GD3769@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180228140806.GD3769@pd.tnic> X-GPG-Fingerprint1: 4096R/0x0BD9E81139CB4807: C467 A717 507B BAFE D3C1 6092 0BD9 E811 39CB 4807 User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Feb 2018, Borislav Petkov wrote: > On Wed, Feb 28, 2018 at 10:59:31AM -0300, Henrique de Moraes Holschuh wrote: > > Eek! If I read that right, this effectively halts the entire box until > > every core is updated, with one core entering deep-coma at a time (the > > rest are left either spinning or cpu_relax()ing > > I think *you* should relax. :) Well, I don't expect any general-use distro to unleash late loading on the users, certainly :-) Least of all, Debian... It is, nowadays, "use it only if you know what you're doing" land. But it is not yet sufficiently documented as such, I fear. > Late microcode loading on a long running box is not something you do > more than 2-3 times a year. And if the box needs to restart, it'll get > the early microcode. Sure, but the thing is so damn expensive (and the time it takes is directly proportional to the number of cores, thus likely to hurt worse exactly those who would want to use it), that I was left wondering if it should not be optimized further to do the work in parallel (if that can be made safe enough). Besides, we likely don't want to have early microcode updates end up being the reason AP bringup has to be serialized during boot either (and it *is* likely to dominate the time taken for AP bringup, too!), so it would be nice to have a way to make parallel microcode updates possible in general... but I don't think we're there, yet. No matter. I am not opposing the patch in the first place. And any paralell microcode update work would be best done in an incremental fashion, on top of working serial updates, anyway. > And yes, this is addressing *late* loading, if you haven't noticed yet. I did get that message, yes :) > So keep doing the early method and you'll be fine. We need that in the documentation :-P Microcode updates have always been somewhat slow, but now they are potentially going to be *much* more painful and noticeable in the late-update case... -- Henrique Holschuh