Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F646C636CC for ; Tue, 31 Jan 2023 16:49:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbjAaQtD (ORCPT ); Tue, 31 Jan 2023 11:49:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjAaQtA (ORCPT ); Tue, 31 Jan 2023 11:49:00 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB3352069B for ; Tue, 31 Jan 2023 08:48:59 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (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 2E7C81EC047F; Tue, 31 Jan 2023 17:48:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1675183738; 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=gjyJxyCg+lJsLesM7+jZgwgImj+q1RoNQHUXz/POZB8=; b=JuHch2dR9PnwwLQ3vAcz7MkZ68yL4cguKBy5VNuxAkBB/3czC2nPPAlq2Z4P0DNIXKh145 LD0s7c3eA23z7WX9SYj5P/nHtz8GLpfCvkehi656OY+Plb+XSIUbOwApSvW+8Q6aB2wIgF 40d0A4NkOYeYu+ZrGP/k1AeKrihjzFU= Date: Tue, 31 Jan 2023 17:48:54 +0100 From: Borislav Petkov To: Ashok Raj Cc: Thomas Gleixner , LKML , x86 , Ingo Molnar , Tony Luck , Dave Hansen , Alison Schofield , Reinette Chatre , Tom Lendacky , Stefan Talpalaru , David Woodhouse , Benjamin Herrenschmidt , Jonathan Corbet , "Rafael J . Wysocki" , Peter Zilstra , Andy Lutomirski , Andrew Cooper , Boris Ostrovsky , Martin Pohlack Subject: Re: [Patch v3 Part2 3/9] x86/microcode/intel: Fix collect_cpu_info() to reflect current microcode Message-ID: References: <20230130213955.6046-1-ashok.raj@intel.com> <20230130213955.6046-4-ashok.raj@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230130213955.6046-4-ashok.raj@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 30, 2023 at 01:39:49PM -0800, Ashok Raj wrote: > Currently collect_cpu_info() is only returning what was cached earlier > instead of reading the current revision from the proper MSR. Because this is how this is supposed to work: you collect what's currently applied - which should be exactly the same as what's in the MSR - and then see if there's a new patch in the cache and if so, update it. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette