Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp387050ybe; Fri, 6 Sep 2019 00:43:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxQAiUUFKb1uLaTtVgck3a+gm/RbIstEu3Q/3YhSdhqXmemIjzID7+ue4/+tNCfOpiEIA1 X-Received: by 2002:a63:7b4d:: with SMTP id k13mr6685784pgn.182.1567755836046; Fri, 06 Sep 2019 00:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567755836; cv=none; d=google.com; s=arc-20160816; b=tWkeJVTaGTX+Xbumcmno73nfahP+fHgkunuZoosHYim8l1CavavkVR4FH3LxKGZ1kd fH356Fe8ffMTTOn4GSsaf7I20UZcBxWpjyQq/piVRBT4WvRUZoOctDK+J42vE74pZfFm XB+AS+yrBHc0gZytH5VE/oVaHuBu82v4CxIZv0bGNZnLrWAZhNZdSX/VC9A8fbMBAel6 R9a8AsOA1Scddkr7hmZSZQyxt16N1MLhMFFUEMMehjpimjHhn6csQj9eQjeVl+NzcCAS DI8BBpZ7VDX+Nn07WVldXDJO8UFroR26T8Wg6gjGaPmf+NlcOVIcUVftLz8gIEPZb84k xfrg== 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; bh=dGpXF622nxCB02Gtm11yaO8yJ0rtD1QBEfIEVVqCIyc=; b=b0ubKWyOE0adVseFqxoej2SuBLqYeI+LNt2PuiothudceJk/C1Vhhb4ZVlCniyPQhu OKq5fsS1gPEF6n0VoHuPUpOrzqDmHCQa72ZAbmS7WyMPeul4XRwBjzblIXHjbKbBUo/I NCl/rfghLe1EIcq/dSQXB2ymydce7iapR+b3edYCaMqnMiu3qDFE0i+A1Nw6/z9KdNMT 5VktKjFzRiKfQlA1auoNdrjDACY5EJHKCH+hb3OdbpsP9RITtbePwz9D9niA7f45xbNC m79iNaOv043HkV97aT0LxivsYZcnBTRetNbMpjj8ZBtYLq3vwbOp+1IIlZzW22stoyis Hnrg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b20si3853333pgl.533.2019.09.06.00.43.39; Fri, 06 Sep 2019 00:43:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389656AbfIEW1H (ORCPT + 99 others); Thu, 5 Sep 2019 18:27:07 -0400 Received: from mga12.intel.com ([192.55.52.136]:53141 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732714AbfIEW1H (ORCPT ); Thu, 5 Sep 2019 18:27:07 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2019 15:27:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,471,1559545200"; d="scan'208";a="267161496" Received: from otc-nc-03.jf.intel.com (HELO otc-nc-03) ([10.54.39.145]) by orsmga001.jf.intel.com with ESMTP; 05 Sep 2019 15:27:06 -0700 Date: Thu, 5 Sep 2019 15:27:06 -0700 From: "Raj, Ashok" To: Thomas Gleixner 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, Ashok Raj Subject: Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged Message-ID: <20190905222706.GA4422@otc-nc-03> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Thu, Sep 05, 2019 at 11:22:31PM +0200, Thomas Gleixner wrote: > 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 Several customers have asked this to check the safety of late loads. They want to validate in production setup prior to rolling late-load to all production systems. Thanks Ashok