Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4737110rwb; Wed, 17 Aug 2022 05:25:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5S2KBdblrEhrzD+wTp6zn0d85VdzAyNb/mY4CI3nPbajkLesQuJLL06I5fTLPyMmwIIN0w X-Received: by 2002:a63:8541:0:b0:428:d43d:7f0f with SMTP id u62-20020a638541000000b00428d43d7f0fmr12361329pgd.248.1660739101732; Wed, 17 Aug 2022 05:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660739101; cv=none; d=google.com; s=arc-20160816; b=N3sMUccCK3SJ2XbB8ciLvzO3PPZgl1Di7TdoFsZDyDEK4txSmc6YDcQg3OayxALbfd idVOyIYNocTXDfOQUHqPQ3yKroqt+cbyxFaQeTrIcDDVkzLxlPIFfa7WoJY1wjmMqDM4 CfBCvOEQseIbNsB0sSt4BaWnb4pCYmeVcozDgoztafdzJlA/IiJPVq3yYQfgNhPi25xy Tw3iv9oejs5+ZXlUmaOUCZqUXHNKVJHKJeguy5grpd+ZbyQKb92xUMDiVTgnRFZEjS+C xsFp5SjO0XZiYyJ7eJLIKsg1tm5dUn5XHZ3cuSkt1dlyi5v7hPx7LhTkcGv1k5hDEwCr khRQ== 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=S3cBS4v+Qikhrp7lNpliwl8WSYfYa+IrcHrTLvuTVTA=; b=BlBrl/YaJ7kvqF27p/F1tvsdpG9H56o2tymUu2Z1AAs4KdvrD49b0TaOXf/bp+IVXc ewg27uSUBvkZcuYemBDNR6ZO/UvcO/lqLaXPmLJi3TRQpWuk2uJsrHxk0P0MrYXfISt0 WJ0Sx50cPTaSes0drkqzbhyyoPQe5sDLNGMxzVi8xk2tlXi9XgHqXLX0XE6GrsOUDy1p ljUo1rWCI7XTG6UTsgaub7ApF0UeOPq2fXk1UuZqKSUcR/8UufhXjFgx+KJGdNyvm+D7 Uq+p/vQlh9a3Is3mlU56xUbqxmMcCWyWRc7uTGsl6SwOJlqyE0ujNOApByidOi+aYof2 xKOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=lJo43ZW6; 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 q16-20020a632a10000000b0042890f36264si3978102pgq.34.2022.08.17.05.24.50; Wed, 17 Aug 2022 05:25:01 -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=pass header.i=@alien8.de header.s=dkim header.b=lJo43ZW6; 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 S239386AbiHQMLN (ORCPT + 99 others); Wed, 17 Aug 2022 08:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239375AbiHQMLI (ORCPT ); Wed, 17 Aug 2022 08:11:08 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D6C0883EA for ; Wed, 17 Aug 2022 05:11:01 -0700 (PDT) Received: from zn.tnic (p200300ea971b98b0329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:98b0: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 CAC791EC04E4; Wed, 17 Aug 2022 14:10:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1660738255; 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=S3cBS4v+Qikhrp7lNpliwl8WSYfYa+IrcHrTLvuTVTA=; b=lJo43ZW6+6qDlyMH1nICaHqZ6i2x6IMB0oQGq00t0matO3FaWY6b+jl7g0rfSKu4jDYwbG 3q5l268bn5Hz0md1OuoxNol4iscPiBaZ+cFSB2WemTiahDuTIq1+G1ibUwKUuZPDuju7eH kx+8jcoRnFKAh0dOGq6Nq01NAYvcS2M= Date: Wed, 17 Aug 2022 14:10:51 +0200 From: Borislav Petkov To: Ashok Raj Cc: Ingo Molnar , Thomas Gleixner , Tony Luck , Dave Hansen , LKML Mailing List , X86-kernel , Andy Lutomirski , Tom Lendacky , Jacon Jun Pan Subject: Re: [PATCH v3 3/5] x86/microcode: Avoid any chance of MCE's during microcode update Message-ID: References: <20220817051127.3323755-1-ashok.raj@intel.com> <20220817051127.3323755-4-ashok.raj@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, Aug 17, 2022 at 11:57:37AM +0000, Ashok Raj wrote: > You have this reversed. if you get an MCE and MCIP=1 -> shutdown Yeah yeah. > When MCE's happen during the update they are always fatal errors. How did you decide that? Because all CPUs are executing the loop and thus no user process? > What we do here by setting MCIP=1, we promote to a more severe shutdown. It probably should say somewhere that a shutdown is possible. Because if the shutdown really happens, you get a black screen and no info as to why... > Ideally I would rather let the fallout happen since its observable vs a > blind shutdown is what we are promoting to. What fallout do you mean exactly? > Shutdown, shutdown.. There is only 1 MCE no matter how many CPUs you have. Because all CPUs are executing the loop? Or how do you decide this? > Exception is the Local MCE which is recoverable, but only to user space. > > If you get an error in the atomic we are polling, its a fatal error since > SW can't recover and we shutdown. Aha, I think you mean that: the MCE is fatal because if it happens on any CPU, it will be in kernel mode. > Overthinking :-).. If there is concensus, if Boris feels comfortable > enough, i would drop this patch. This is what we're doing right now - thinking about the consensus. And Boris will feel comfortable once we've arrived at a sensible decision. :-) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette