Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3713013rdg; Wed, 18 Oct 2023 04:03:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMAJ6DtX8IPSbTApC31mx2H0FB/PCzXl+LE21wlI+7dPtBCJCXYkp/837b35NvcwSre6en X-Received: by 2002:a05:6871:8483:b0:1b4:4a2e:33f1 with SMTP id sv3-20020a056871848300b001b44a2e33f1mr6042268oab.29.1697627026358; Wed, 18 Oct 2023 04:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697627026; cv=none; d=google.com; s=arc-20160816; b=utScxCZQKQZELKP09sY+rbF8z5xRofZpMV7v0GM81wFRirTKPAoZ59ndXdT8dgiO+X /+27jzT64dUaN3KDyOR6IBwuMGZRnyxmieZGhcKpyXNI3QaAD0EUZ7J++0B+1E8Ip2zv uhtnyfc2icm8DJMiAcs9oOh3dsvbJ2c8hpUm6eUJNJ2+OYSE/f8wIun4dn4gfZ4weF/7 N5qAyB9Q3hy6/m4u2srkBNSC7LItHReIAZPLkaXUMsiAHaUv9lnuiOYkFUokOzH0L2F8 KprXxY3wzxTj/TZqYJqxiNeVMbuw3lLeddDsIZUs+LDgjX05cdRZTVLzOJ/w7cgPBd6v EN0g== 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; bh=Vrqi/trOsXY421VXVy5Y4pYlnLXNCiCppmEUP8uZj6M=; fh=VE1Wk0SXzL5psBR/tOMsQpgsay9DblidMJbub1wpQyE=; b=tR0DStsHPTIAZruJIeS+O6OBSqgmmlG1pz5UpZuWHp1E71KIgcmi02GihBONIg3cY9 lDlYAasMWpUJWbkaN8zx4rEkdjLpS1beS6cpcxCKYzjfr+PyQyzRaMLRMCVkNCXB1MtM jA35nuGlgsEG+XA+w3UaFg7VcexY2tFO4tbwp2lkH/EpWQWJZS13dD1LM3uk1yJMtraQ VvvJzyFuVOzos6jOD6LJMj5o5rXwL+9beUCpwj8TRyJ3fCcxxG6qvTzh4a7UuhlPGHid Pa6AOZVM4HYlQXppoESbeJcg13AT4yKY4GKmruX1dlARylqu7gMgPvdh+YTXYVaW+hB9 irNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d189-20020a6336c6000000b005b5c68e2c92si1934851pga.371.2023.10.18.04.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:03:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D06A9802AFD9; Wed, 18 Oct 2023 04:03:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjJRLDf (ORCPT + 99 others); Wed, 18 Oct 2023 07:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjJRLDd (ORCPT ); Wed, 18 Oct 2023 07:03:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B71F11B for ; Wed, 18 Oct 2023 04:03:30 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5AC492F4; Wed, 18 Oct 2023 04:04:11 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.67.200]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14CB23F762; Wed, 18 Oct 2023 04:03:27 -0700 (PDT) Date: Wed, 18 Oct 2023 12:03:25 +0100 From: Mark Rutland To: Douglas Anderson Cc: Marc Zyngier , Catalin Marinas , Will Deacon , Chen-Yu Tsai , D Scott Phillips , Josh Poimboeuf , Peter Zijlstra , Stephen Boyd , Thomas Gleixner , Valentin Schneider , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] Revert "arm64: smp: avoid NMI IPIs with broken MediaTek FW" Message-ID: References: <20231006151547.1.Ide945748593cffd8ff0feb9ae22b795935b944d6@changeid> <20231006151547.2.I2c5fa192e767eb3ee233bc28eb60e2f8656c29a6@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006151547.2.I2c5fa192e767eb3ee233bc28eb60e2f8656c29a6@changeid> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:03:44 -0700 (PDT) On Fri, Oct 06, 2023 at 03:15:52PM -0700, Douglas Anderson wrote: > This reverts commit a07a594152173a3dd3bdd12fc7d73dbba54cdbca. > > This is no longer needed after the patch ("arm64: Disable GiC > priorities on Mediatek devices w/ firmware issues"). That first patch has a typo in the title: s/GiC/GIC/ This patch makes sense to me, so: Acked-by: Mark Rutland Mark. > > Signed-off-by: Douglas Anderson > --- > > arch/arm64/kernel/smp.c | 5 +---- > drivers/irqchip/irq-gic-v3.c | 2 +- > 2 files changed, 2 insertions(+), 5 deletions(-) > > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > index 16ead57a583d..f36a97a54d2b 100644 > --- a/arch/arm64/kernel/smp.c > +++ b/arch/arm64/kernel/smp.c > @@ -964,10 +964,7 @@ static void smp_cross_call(const struct cpumask *target, unsigned int ipinr) > > static bool ipi_should_be_nmi(enum ipi_msg_type ipi) > { > - DECLARE_STATIC_KEY_FALSE(supports_pseudo_nmis); > - > - if (!system_uses_irq_prio_masking() || > - !static_branch_likely(&supports_pseudo_nmis)) > + if (!system_uses_irq_prio_masking()) > return false; > > switch (ipi) { > diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c > index 737da1b9aabf..787ccc880b22 100644 > --- a/drivers/irqchip/irq-gic-v3.c > +++ b/drivers/irqchip/irq-gic-v3.c > @@ -106,7 +106,7 @@ static DEFINE_STATIC_KEY_TRUE(supports_deactivate_key); > * - Figure 4-7 Secure read of the priority field for a Non-secure Group 1 > * interrupt. > */ > -DEFINE_STATIC_KEY_FALSE(supports_pseudo_nmis); > +static DEFINE_STATIC_KEY_FALSE(supports_pseudo_nmis); > > DEFINE_STATIC_KEY_FALSE(gic_nonsecure_priorities); > EXPORT_SYMBOL(gic_nonsecure_priorities); > -- > 2.42.0.609.gbb76f46606-goog >