From mboxrd@z Thu Jan 1 00:00:00 1970 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 D3821C54EAA for ; Sat, 21 Jan 2023 21:35:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbjAUVf3 (ORCPT ); Sat, 21 Jan 2023 16:35:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjAUVfZ (ORCPT ); Sat, 21 Jan 2023 16:35:25 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 761D123D9F for ; Sat, 21 Jan 2023 13:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674336924; x=1705872924; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LKIASuZL+SUAUvnx3JEGaFL86U5oJY7Zlr6H840H48o=; b=BfM+BUZB99hzpPIGOVbfLxS3rPJdA25zxmlAqrkHk9Jf104CAQMDT521 WKwy1fpx+8yjhbXti9kP42jsRFNGJ/Dk9tEiyUmKZcdrb8By351wuTP1Q 9RRmr1tR6gieWiP4Z7SKmTcWIGtCVBSieBruAO7mQPFp7Tqy5nJ9Yun52 C58SMh9NdgfgHRYeI5kW+5WW0tENT/BvK5bK8TMY107ZygpgX38PW4qNt oPRaTshF6/q5mn7ZaafgM33CcQqPInwYXM095HoPIjKkPSN8TCKrWasLg aIJyxWLH4/BRrdoZRDhnRh+mtjnYW8uhuOVbq56SZK34/USGKcrGKGeK+ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10597"; a="412066295" X-IronPort-AV: E=Sophos;i="5.97,235,1669104000"; d="scan'208";a="412066295" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2023 13:35:22 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10597"; a="784946307" X-IronPort-AV: E=Sophos;i="5.97,235,1669104000"; d="scan'208";a="784946307" Received: from araj-ucode.jf.intel.com ([10.23.0.19]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2023 13:35:21 -0800 From: Ashok Raj To: Thomas Gleixner , Borislav Petkov Cc: Ashok Raj , 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: [Part 2 v2[cleanup] 0/4] Some additional cleanups in microcode Date: Sat, 21 Jan 2023 13:35:08 -0800 Message-Id: <20230121213512.251578-1-ashok.raj@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <87y1pygiyf.ffs@tglx> References: <87y1pygiyf.ffs@tglx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas and Boris, This mini series is in response to Thomas's feedback here[1]. I hope this addresses all/most of your concerns you raised in this thread. Sorry if I missed any, drop more hints and I'll fix them up. Patch3 needs an AMD change as well. I wasn't confident looking at the source that was returning the patchid vs reading fromt he real MSR. I'll check with Boris to confirm before I submit this again. [1] https://lore.kernel.org/lkml/87y1pygiyf.ffs@tglx/ Now that the other patches are now staged in tip/x86/microcode, this series applies on top of that. Cheers, Ashok Ashok Raj (4): x86/microcode: Taint kernel only if microcode loading was successful x86/microcode: Report invalid writes to reload sysfs file x86/microcode/intel: Fix collect_cpu_info() to reflect current microcode x86/microcode: Do not call apply_microde() on sibling threads arch/x86/kernel/cpu/microcode/core.c | 28 ++++++++++++++------------- arch/x86/kernel/cpu/microcode/intel.c | 10 +++++++++- 2 files changed, 24 insertions(+), 14 deletions(-) Cc: LKML Cc: x86 Cc: Ingo Molnar Cc: Tony Luck Cc: Dave Hansen Cc: Alison Schofield Cc: Reinette Chatre Cc: Thomas Gleixner (Intel) Cc: Tom Lendacky Cc: Stefan Talpalaru Cc: David Woodhouse Cc: Benjamin Herrenschmidt Cc: Jonathan Corbet Cc: Rafael J. Wysocki Cc: Peter Zilstra (Intel) Cc: Andy Lutomirski Cc: Andrew Cooper Cc: Boris Ostrovsky Cc: Martin Pohlack -- 2.34.1