Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1089655rdb; Wed, 16 Aug 2023 00:57:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFx7sVAdNel2bKtcPcqwlfJ3zozbHFX9zoQ6xzmVOfbwyWWUuAQVHzDG78TYCVNN6nG/z8s X-Received: by 2002:a05:6402:29a:b0:523:22d9:6c39 with SMTP id l26-20020a056402029a00b0052322d96c39mr1003769edv.38.1692172642676; Wed, 16 Aug 2023 00:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692172642; cv=none; d=google.com; s=arc-20160816; b=THTQi00m7bNekzTmeb3zTyUBJi7Fo2Xz/dvVtz4UXc++f2y1uyjXkmFC7W0XNLIQA5 ussN8+OKfPA4aWI3S+fI23ScyL+8/+GmkQ1DBGfTiKsC9cGciAtkW87zaRkBIOlDN8jg lYtz3zc0dxqUMqXyrhCtYSdtQ6CuhGnyvlDOiT+C5JykMmaNNPunCuYKQS4OzIqSRvAG 37ba1FriIN3a9bbJqcseVFHOvMeuVAO3dY+PQIe24UzJyk6ratv3OEjoJWzB4nBdVwUp ZJGG9ejGKaxIhSC0iDu4okaXbKTKywX1X3j8ZRBXa6s46fHSJ/xxeRQcLqVPTl1X8/KB /TKg== 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:feedback-id :dkim-signature:dkim-signature; bh=RkOWZYvREjVZVSchqVarX+O9HxVq93B/IRyUEDOrIG0=; fh=qFHu0Mb79zx8kLXatmyIj5hZjNKbJWN6k3Gi1LMFRWg=; b=1CZlrvPuzsyv/9QVJDarvXSLhEHWFvXO/5U972MxLFmYxShFNMwXuzglinvZ4SqV5E weYqHASktUWWDpgztKM2m6vvynd6giqs8iXXSNhdI4L2i3iH73VMyJo+nAB2FRSelNQw yJO+CuFnY+DaGlwWiE2kXOkEYo36adrQwGCPaomAf7OKxonRESjelwAHKGbhAEy+9DnC vJJZ3t7d26sKtriva8MS++1/p+DT5nIw7j442/YxnyhVI/iGMnC6RnYpnNNBmT6EDw0E YY5ynSRCzsHhVjiK8qP2ROYIuRwilBQT9QBwBdGQDIP4Xk27sclvKhW8/Wga/5PXDtKg 5oHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (expired) header.i=@joshtriplett.org header.s=fm3 header.b=nA6FhDu9; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=E0T7d+Ft; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020aa7d049000000b00523345406a7si7796390edo.264.2023.08.16.00.56.58; Wed, 16 Aug 2023 00:57:22 -0700 (PDT) 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=neutral (expired) header.i=@joshtriplett.org header.s=fm3 header.b=nA6FhDu9; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=E0T7d+Ft; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232548AbjHNX56 (ORCPT + 99 others); Mon, 14 Aug 2023 19:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232979AbjHNX5l (ORCPT ); Mon, 14 Aug 2023 19:57:41 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C51091738 for ; Mon, 14 Aug 2023 16:57:38 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2F74F5C0091; Mon, 14 Aug 2023 19:57:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 14 Aug 2023 19:57:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= joshtriplett.org; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1692057458; x=1692143858; bh=RkOWZYvREjVZVSchqVarX+O9HxVq93B/IRy UEDOrIG0=; b=nA6FhDu90vR4Kz4+mCApwVtm/g2R0FYrbPaYKfJ1iXLwAJQ/aBF BYvKTlFJOxCjkuLt/Z4jK0TzPffib5MYc5FdgQcHXFk0fXEUEfhoYb+gL/93Eqsb Y3yjum6dEV9BM37SzGZ+7/VODnZdsRFzGsVCLq/FHqdybOMjP2wP1KmsCkIDTmMs nmcwNMAfFqB5Mvo3FKUjYqLYDImHF4aJIMeIBabWL75Q5oCIfJWJcDFH/mPEyW3W VnTqBKS5BV6GTFCf0nU1lkHislnRxpFvlbzT3H2bC+f1CXu1/Udqn6a8iGkkBv3a TZv0sVsC30oOpMvW60aMmtVAnvmZEYduLNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1692057458; x=1692143858; bh=RkOWZYvREjVZV SchqVarX+O9HxVq93B/IRyUEDOrIG0=; b=E0T7d+FtjQzJf3fJOrPgxTbunDc5j DwmbRTOGw8bXXVxYvRftqUHS2msi+pfs7GAmUgfsnQ41mhC93Ct876ypmxp0guHX R53OEoLLp0bJrtTCm9tNhN7fSPthaK9cjZbtiKmD36wbDNNkahjthrHarhu4o19t As1pjkTWgyIBDXXb0KdbyOcrvti7yFy+BnLHAuGAQvO7R+GdRvd7HlELmCci7Rgo wqzXLFA2E8JbVxXatYW3bncGpdaHaEGS8t/M/7Y6XiK/5pIcfAJw0d9J0bsBfOd/ rBkks25mUw8LthGqceUCInmYXGlIWBNkWOqTYadXRUWKQXz3Lql6y6VZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddtiedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheplfhoshhh ucfvrhhiphhlvghtthcuoehjohhshhesjhhoshhhthhrihhplhgvthhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeduieegheeijeeuvdetudefvedtjeefgeeufefghfekgfelfeet teelvddtffetgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjohhshhesjhhoshhhthhrihhplhgvthhtrdhorhhg X-ME-Proxy: Feedback-ID: i83e94755:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Aug 2023 19:57:32 -0400 (EDT) Date: Mon, 14 Aug 2023 16:57:30 -0700 From: Josh Triplett To: Borislav Petkov Cc: Thomas Gleixner , LKML , x86@kernel.org, Ashok Raj , Arjan van de Ven , Nikolay Borisov Subject: Re: [patch V2 02/37] x86/microcode: Hide the config knob Message-ID: References: <20230812194003.682298127@linutronix.de> <20230812195727.660453052@linutronix.de> <20230814211912.GMZNqaUD6FriYo1wOo@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230814211912.GMZNqaUD6FriYo1wOo@fat_crate.local> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 Mon, Aug 14, 2023 at 11:19:12PM +0200, Borislav Petkov wrote: > On Mon, Aug 14, 2023 at 02:01:03PM -0700, Josh Triplett wrote: > > I'd be happy to help keep this case building. Would you consider > > accepting a patch atop this series re-introducing minimal support for > > disabling this? > > And a couple more KBs of builtin code is a problem because? Multiple reasons. First, because "a couple more KBs" (concretely, 4637 bytes in this case) add up across the kernel. Second, because disabling something is the easiest way to guarantee spending *zero* boot time on it. And third, because I just confirmed that this requires a *trivial* patch to support (apart from re-enabling the config option): --- a/arch/x86/include/asm/microcode.h +++ b/arch/x86/include/asm/microcode.h @@ -68,11 +68,12 @@ static inline u32 intel_get_microcode_revision(void) return rev; } +#endif /* CONFIG_CPU_SUP_INTEL */ +#if defined(CONFIG_MICROCODE) && defined(CONFIG_CPU_SUP_INTEL) void show_ucode_info_early(void); - -#else /* CONFIG_CPU_SUP_INTEL */ +#else static inline void show_ucode_info_early(void) { } -#endif /* !CONFIG_CPU_SUP_INTEL */ +#endif #endif /* _ASM_X86_MICROCODE_H */