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 F26B8C433FE for ; Wed, 19 Oct 2022 19:38:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231218AbiJSTiU (ORCPT ); Wed, 19 Oct 2022 15:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbiJSTiL (ORCPT ); Wed, 19 Oct 2022 15:38:11 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 369181D5844 for ; Wed, 19 Oct 2022 12:38:09 -0700 (PDT) Received: from zn.tnic (p200300ea9733e7c5329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e7c5:329c:23ff:fea6:a903]) (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 24CCE1EC0430; Wed, 19 Oct 2022 21:38:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1666208283; 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=xy1IJYITPFqWdIU7Z8zG7fxEBE0qmG6Rs3mn9nqT8q4=; b=eCghdLZ0czvgyMrkQyWM7SdrBwYT3UcCfsQ85Tf5RygbWxYJWzKT6Rjlx29btUc0T221/e U5Q4lEhF8ql9xjZ8st9CkdgfYXhkjs/VAlLhZtD3rLM60FNWWNBqIdG5puAglNnh5CGlgF YAjK19mjhkxW0ps16NO0IvqzW6EIhDo= Date: Wed, 19 Oct 2022 21:37:59 +0200 From: Borislav Petkov To: Ashok Raj Cc: Tony Luck , Tom Lendacky , Arjan van de Ven , Jacob Jun Pan , X86 ML , LKML Subject: Re: [PATCH 2/5] x86/microcode: Simplify init path even more Message-ID: References: <20221019175426.31025-1-bp@alien8.de> <20221019175426.31025-2-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 19, 2022 at 12:22:57PM -0700, Ashok Raj wrote: > Good cleanup overall!.. Trying to apply them and do a quick test. Thx. Use 6.1-rc1 as base. > You need to call a microcode_ops->apply_microcode() too if you want to > apply. That's done ... > But you also want to pay attention to the return code too and call it > appropriately. Ah ok, yes, I need to check ->request_microcode_fw's retval. > > /* Do per-CPU setup */ > > cpus_read_lock(); > > on_each_cpu(setup_online_cpu, NULL, 0); ... in here. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette