Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp436923ybe; Fri, 6 Sep 2019 01:46:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOvxvydqSMaRPZ4dkO9D6p3bVyfGuY883g46dxGb955bmJUxK4NV7sFDSDrHP3afbifmAU X-Received: by 2002:a17:90a:3aa3:: with SMTP id b32mr8566342pjc.75.1567759586645; Fri, 06 Sep 2019 01:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567759586; cv=none; d=google.com; s=arc-20160816; b=j+eWRqnkkDIAEWytgZFQNQ/lh7IdagzSpG7PiRKzxWWFdzi+TkIVxjLsTsW2fKVH7o FLrXIBQ0BA3jePjopXXpdlKC2BRhHtfZspv2tzu/VgBDWWv7AXAsVR6HbhpHl/AyX/i/ TqgaFYOmz1pdIXHIK4Q4c6liMlqiEEkLiL0OdmvvuTO0jxd8saobxzA8LoxQxHPcclu9 Dg4dF7thOzX1Fueof8xlFO9BxIJZbhQ5kk2PjHrl3zmfrJGbqnpWgDxXaf1WiXcBiPj4 j3cuW3paywFT/MNxdmtmeyhxv5Un5EjCJ0+xm7heGKXE2/zrMEMShXtUB2spgxEazuky phUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=FiXvoga3rI16M1YcVrOAzZXOt3D81BA+DMmfS3Kww3M=; b=s+6UMgEzZEtOOpBfaM2+GJ4w/Ib+5HroaSfCCfDY6QKx0C6ISkf1qSNNKe6KimY3Vu ybnZe8dSoy29jPF5BjGAFLAKa70XQPO/ZxhNRdpT7ql+re8LnuujrQ3+EYRVeF9phNH1 fFWiA7DWJ2O1gHjbMFlTTvangB2O53ygGZv0Bs3W7FGZwQMawxrM+KMpiatTq2MKlKzR 86MojXE3h27e3G9C19rezEo5XGwexoKHKKimDi4gtbFl59ZD8aRvOC9GOT4QBIwhzdHU t0IiKA78ku9AKTZcgwOvUFPriZMkiJz5+w5Pdi8ZWxNFaMzJF8RhL1NGDkrUUFRdrNGc PeUw== 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 o21si3840580pgm.453.2019.09.06.01.46.10; Fri, 06 Sep 2019 01:46:26 -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 S2389538AbfIEVWr (ORCPT + 99 others); Thu, 5 Sep 2019 17:22:47 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:44703 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389217AbfIEVWr (ORCPT ); Thu, 5 Sep 2019 17:22:47 -0400 Received: from p5de0b6c5.dip0.t-ipconnect.de ([93.224.182.197] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1i5zD6-0002FM-OG; Thu, 05 Sep 2019 23:22:32 +0200 Date: Thu, 5 Sep 2019 23:22:31 +0200 (CEST) From: Thomas Gleixner To: "Raj, Ashok" cc: Borislav Petkov , Boris Ostrovsky , Mihai Carabas , "H. Peter Anvin" , Ingo Molnar , Jon Grimm , kanth.ghatraju@oracle.com, konrad.wilk@oracle.com, patrick.colp@oracle.com, Tom Lendacky , x86-ml , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged In-Reply-To: <20190905194044.GA3663@otc-nc-03> Message-ID: References: <1567056803-6640-1-git-send-email-ashok.raj@intel.com> <20190829060942.GA1312@zn.tnic> <20190829130213.GA23510@araj-mobl1.jf.intel.com> <20190903164630.GF11641@zn.tnic> <41cee473-321c-2758-032a-ccf0f01359dc@oracle.com> <20190905002132.GA26568@otc-nc-03> <20190905072029.GB19246@zn.tnic> <20190905194044.GA3663@otc-nc-03> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 Raj, On Thu, 5 Sep 2019, Raj, Ashok wrote: > On Thu, Sep 05, 2019 at 09:20:29AM +0200, Borislav Petkov wrote: > > On Wed, Sep 04, 2019 at 05:21:32PM -0700, Raj, Ashok wrote: > > > But echo 2 > reload would allow reading a microcode file from > > > /lib/firmware/intel-ucode/ even if the revision hasn't changed right? > > > > > > #echo 1 > reload wouldn't load if the revision on disk is same as what's loaded, > > > and we want to permit that with the echo 2 option. > > > > Then before we continue with this, please specify what the exact > > requirements are. Talk to your microcoders or whoever is going to use > > this and give the exact use cases which should be supported and describe > > them in detail. > > https://lore.kernel.org/lkml/1567056803-6640-1-git-send-email-ashok.raj@intel.com/ > > The original description said to load a new microcode file, the content > could have changed, but revision in the header hasn't increased. > > The other rules are same, i.e we can't go backwards. There is another > SVN (Security version number) embedded in the microcode which won't allow > going backwards anyway. > > I'll get back to you if there are additional uses, but allowing the facility to > actually read the file achieves the same purpose as using the in-kernel copy. > > I have used it multiple times during development :-) That's all nice, but what it the general use case for this outside of Intel's microcode development and testing? We all know that late microcode loading has severe limitations and we really don't want to proliferate that further if not absolutely required for something which needs this in a place which cannot deal with out of tree patches or have some special kernel package for that purpose installed. Intel's microcode devel/testing does not qualify obviously. Thanks, tglx