Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3646458rwl; Tue, 27 Dec 2022 12:33:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXueWfCXxlWHHrY9c3xoC1BlYvYNzCqj2uy6DaKDFiEWo4JWvNxL5hDYmspq0DW9SihScPOC X-Received: by 2002:a17:906:9709:b0:7c0:af5d:c54c with SMTP id k9-20020a170906970900b007c0af5dc54cmr17632022ejx.77.1672173193936; Tue, 27 Dec 2022 12:33:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672173193; cv=none; d=google.com; s=arc-20160816; b=ESF+pQZDObAXDx2jXNuXSarZSOSBrme9xMPOudvpB3ACb9fFXr8Hh6jT78IND706IN 9o6sMmA0xoU604D04R1aOC3G+HxFOCCGpNaCSca2Q7XDcGcN/GIlxhOkVVb+ZyBz7Tnr Q6fGPiQ3Qa8t6r/emqDKhDh1mb3lJb11FX/2EL7x9ipeq7MH5yLovk3Z/UeNqLSVXGLb zowmHmaVzPUJb8jw+iGfBiAImc+tHA77FWe4BWYwr44gh6ik/aG2pRtDs2GBdzVmQRRI v94HB4+XyFMjYkMcnwSgjf01pcMrBpowAjs/axS+ho089a9N20zZLY//I0jAs+PN3iSj +DPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V55Wh/03piRj+6m7ozsxHCv7rxip8aBdR5NiSD+/LnM=; b=KWDdN96fwYbb2t2kUUpvDvhSj8f4r4DKCvzc64VyZUP7E4F5cPMO67eaFVaFpWNsXY 5V633Qodnn4DM7RjfDvzRrFQgYbpHUIHpIzbjRnQIubIJbRNa47KEvxTQtGxb27UGGoB m/wvxHtOSpWB/rr4GJMjOVg3WCnjOj9z2M0uaIefFrPwU7/TZR/LxQTn9AWUFA0fQB5C PP6Z+p+ZSM5Qut0bzipkBj4oogHDUqmR/N+pG7H5jxdYXfDxvqhXA2cyAdI60QoRkTp9 +uECeyXo1fempy6aJWuTnWH62N8FqTP9GUBpDpr0Si6e2Ua8c3SFYk6jMLWpg3woJxv1 zUzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=A2fp2dKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wg1-20020a17090705c100b007a4feae7adfsi12236888ejb.565.2022.12.27.12.32.56; Tue, 27 Dec 2022 12:33:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=A2fp2dKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbiL0Tuh (ORCPT + 66 others); Tue, 27 Dec 2022 14:50:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiL0Tuf (ORCPT ); Tue, 27 Dec 2022 14:50:35 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A5401A5 for ; Tue, 27 Dec 2022 11:50:32 -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 A6DFE1EC050B; Tue, 27 Dec 2022 20:50:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1672170630; 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=V55Wh/03piRj+6m7ozsxHCv7rxip8aBdR5NiSD+/LnM=; b=A2fp2dKq7Ch9GWPkkYo+CVxuvTUb61iJrE9fio8MzAhQvQXBPP3RD72IkU/NnLCoS7eIVQ tHjawYX4PcDsVVCFc8TIA0clnnmkyddqO2rVz6fcNyH4DOdZ3ldblBWXU+6FGDAkQapE3B EEpgkK10T60ojCVd9wqc1uWMqB3T5Ig= Date: Tue, 27 Dec 2022 20:50:25 +0100 From: Borislav Petkov To: Ashok Raj Cc: Thomas Gleixner , X86-kernel , LKML Mailing List , Dave Hansen , Tony Luck , Alison Schofield , Reinette Chatre , Tom Lendacky Subject: Re: [PATCH v2 1/6] x86/microcode/core: Move microcode_check() to cpu/microcode/core.c Message-ID: References: <20221227192340.8358-1-ashok.raj@intel.com> <20221227192340.8358-2-ashok.raj@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221227192340.8358-2-ashok.raj@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 27, 2022 at 11:23:35AM -0800, Ashok Raj wrote: > microcode_check() is only called from microcode/core.c. Move it and make > it static to prepare for upcoming fix for false negative when checking CPU > features after a microcode update. Also move get_cpu_cap() to processor.h > for general use outside of arch/x86/kernel/cpu/cpu.h I thought we agreed not to do this: https://lore.kernel.org/r/Y44bbZMMf8I6Lzl/@zn.tnic Or was this a misunderstanding? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette