Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1342776rwb; Thu, 19 Jan 2023 09:22:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXviZx5G7gskghC8JbGCN4jC+1NDdaLBWhADjtMhxOX3CLVwEgt2Oj71xDVQOCIVKJu37nKI X-Received: by 2002:a05:6402:5306:b0:49b:b274:b815 with SMTP id eo6-20020a056402530600b0049bb274b815mr12421041edb.39.1674148963665; Thu, 19 Jan 2023 09:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674148963; cv=none; d=google.com; s=arc-20160816; b=LmRUMitVz4YYURlkkn8za2/x58+iZFmRhhUcXixJ3reP677LKM6bvQfPvRg9NF5aMd TWu27GavWR6u3l+aUaykxLkSKoSX+WVfsjEjLZ4iIeiP4mg0C9OHP1IqcJ+Dn80lgSKv pJle5FfFqmcsyWt0zakfsZ0pkuiLBBqylbB6+eAVucNOWcJOvNcU/0aqsd1XRpaQ4Blh yUdxdGUzc+RKJb3E71XpdnGI0Fbjvza1Qw9uXvHbobPuH1tMWMkudzsaInjbSC9ElXxy aWauQMXBot0RM/AjxdZ1PTOgz2FYZmiIvf9AEtoqpLE2zeuH1T4IesQqs/jmhtrhp+4A 0rbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=8RD2NMlTLbb1fDHF7JSh91WOGDcsE0IX4cxLuRZNagI=; b=0ilw77kUA1JS+ck527/i9/HEdb82UUTw49U+5rJXK7ozLnvDVo2LHNFspEDHtFDaLX jTxNvyhCoai69/wlhDoBED75BUIGGbkuEArzSkG4KXkR9KIk6BiFpWylqATO7VgOvjon WAEZWO2i1B/nZxUdVv69d12IDmpZLSCRsCy5Z6p9FzsBeqGJCjeF1w5O5Hc3FDhw9Ahl EopeB38dZWNY8SXFCmJ8EjnWIfYX97Fdqr0JKlkgmGYKmlWqkxQi4uEGwJB2kQ9s/npS DinNHysYZBanVFJee5+idgmTQ4dZapYyGnN0pxTY2ExYz8hYwCXtYWWKjaF1X4ZzIyG2 i7EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=nC4Vl50f; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020aa7dcc8000000b0049e998afc2esi591479edu.556.2023.01.19.09.22.31; Thu, 19 Jan 2023 09:22:43 -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=@amazon.com header.s=amazon201209 header.b=nC4Vl50f; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229972AbjASRKv (ORCPT + 47 others); Thu, 19 Jan 2023 12:10:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbjASRKq (ORCPT ); Thu, 19 Jan 2023 12:10:46 -0500 Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A17F6808B3 for ; Thu, 19 Jan 2023 09:10:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1674148241; x=1705684241; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=8RD2NMlTLbb1fDHF7JSh91WOGDcsE0IX4cxLuRZNagI=; b=nC4Vl50fVFOJewPwmCWlKc97tY8XhInmwBdhuy5C0VIdp8AZYUZfOmwg jXVMAuuYWBIRjGW4drT9tqafJnAd/wcUlRG+3yoQSzRZeq43384Sw3P0a +ytwU+9EaKKkJ2L9Gck7lBwAWn8Ucw6+cbLrn4lJhhLH5/o23tNs+BT5H w=; X-IronPort-AV: E=Sophos;i="5.97,229,1669075200"; d="scan'208";a="172897248" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-pdx-2c-m6i4x-f7c754c9.us-west-2.amazon.com) ([10.25.36.214]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 17:10:39 +0000 Received: from EX13MTAUWC002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-m6i4x-f7c754c9.us-west-2.amazon.com (Postfix) with ESMTPS id 152C741CE6; Thu, 19 Jan 2023 17:10:39 +0000 (UTC) Received: from EX19D003UWC001.ant.amazon.com (10.13.138.144) by EX13MTAUWC002.ant.amazon.com (10.43.162.240) with Microsoft SMTP Server (TLS) id 15.0.1497.45; Thu, 19 Jan 2023 17:10:38 +0000 Received: from freeip.amazon.com (10.43.162.56) by EX19D003UWC001.ant.amazon.com (10.13.138.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.7; Thu, 19 Jan 2023 17:10:37 +0000 Date: Thu, 19 Jan 2023 11:10:29 -0600 From: Geoff Blake To: Robin Murphy CC: Will Deacon , Mark Rutland , , Subject: RE: [PATCH] perf/arm-cmn: Add shutdown routine In-Reply-To: <7071a073-08f5-104b-f10f-e1013d1b5390@arm.com> Message-ID: References: <2bb86e97-6cef-700e-70ed-4f303da10fd9@amazon.com> <20221215180039.18035-1-blakgeof@amazon.com> <7071a073-08f5-104b-f10f-e1013d1b5390@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [10.43.162.56] X-ClientProxiedBy: EX13D41UWC001.ant.amazon.com (10.43.162.107) To EX19D003UWC001.ant.amazon.com (10.13.138.144) X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_SPF_WL 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 Thu, 19 Jan 2023, Robin Murphy wrote: > If you have a convincing argument that returning IRQ_NONE for unexpected > spurious interrupts is a real and important concern, then please propose > a general solution, because if it matters for arm-cmn then it matters > for hundreds of other drivers too, by rough estimate: > > $ git grep -l IRQ_NONE '*.c' | xargs git grep -L IRQF_SHARED | wc -l > 834 The general solution for IRQ_NONE exists in the layer above the driver, it complains with a visible warning that something might be wrong and then moves on. Nothing more is needed. Your shutdown routine that flips DT_EN in CMN_DT_DTC_CTL is sufficient, as after some testing it solves the problem with left over IRQs for my kexec use case. -Geoff