Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1429640rwb; Thu, 19 Jan 2023 10:28:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXthJ/Tx5Gcc/gx7ddkHqDCnKH7xzNUxIFIMlV7x4SwCE0IF1Lw1wYsNFrrOgfzV8BtcHybs X-Received: by 2002:a17:90b:268e:b0:229:5024:f9b3 with SMTP id pl14-20020a17090b268e00b002295024f9b3mr20949312pjb.13.1674152892681; Thu, 19 Jan 2023 10:28:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674152892; cv=none; d=google.com; s=arc-20160816; b=TTDEZ7+eQRLBMQAXi98TdWE1NNyNSQ2ZTMdFRgt5+G+E6xZulvjR4GIuZ25jwYuGUR GppYvgHQNPNT+jdMx7wzrdzdCB3nAuWHic6YaeV1R+VSJ8elNt1C7f0iHnNe10F7DbXX t8kR6nOjVQdTfkdEkythZqZDw6qkP4I3QMmtrG4bG5EC7/k7VoZ9BmSVOV+ok6eoSmcb N5vhU/au1RH583joID1FB9vXG1S07T2M33xyL2/KSAp/lrv3r8uzkN7mCsr14guc+Sjd XIh58x0+uTHWwAyF768iVXLPfddSlTxkwLv6LR2ZyDBEgwL4St7/v6I2BLqFp7puN9Rg wrOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fx5HW61hhZeDve2h8iLer+6qUYtb95wRqcWRaIXbisE=; b=cPNF2tWw+Hpr5o3vV2R+LdPPYl0f9VgqWxZ+voJb9sp7seA6rp7YZ5TXYuKkVPcxE7 hy7KQznjS112Zh22kbBSbadHHReaY3cQon4G01PnphWjQzqmzByAdZaAlXqsK5SwY23p d1fdf1akfM2V7VIhzUxEstvGNnPWXbOU+aro3XFDeVh4dENLPaxjtN7c61jt22HBi+BA 1aB9m0zL9HfrNGbW0PW4dw+MfyT+z0XgsLR2pyfdnUXUdH8i3hbosTxXCrRbshlFgfEU Es1hYoSdCJnI0DfXQWeYa5HEeLvaUo3wvncPzdzrh/Blxrdh0hWvYgrsZgIVTcL1PcX9 5Czg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJL0h7cI; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pa17-20020a17090b265100b00225f793ab32si5424627pjb.156.2023.01.19.10.28.07; Thu, 19 Jan 2023 10:28:12 -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=@kernel.org header.s=k20201202 header.b=PJL0h7cI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbjASSOz (ORCPT + 45 others); Thu, 19 Jan 2023 13:14:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbjASSOw (ORCPT ); Thu, 19 Jan 2023 13:14:52 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5CB89014 for ; Thu, 19 Jan 2023 10:14:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 76AA061D12 for ; Thu, 19 Jan 2023 18:14:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BECEFC433D2; Thu, 19 Jan 2023 18:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674152089; bh=+Uxtzpe7VHpQ7mR6Wx+g+3c+IPli4Rq4BJ29Aw5G0/k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PJL0h7cIH/638KpbEtQDe+u9eQZYm4ToJu1EygzO9239GlRdqcl9o0i+zQmO71/hs rhqvJGS4WgTFjCFWZ1aoZNDE/GKKkO+jaXUbOxjlHlhoANKmRTa1g9O5Wv0J4sfffJ kKxI2K8ECvnd2jxeYXw5zQ5nMa0xYF6ortXEIY9tRfBoxoNyASeH5qO7f/kOtbZHq+ hMYIRyfCStb/7DKwhOuGWLy6sPxa9M8Tk2JHVNjxYNDFnysxA3SdaxQwBKM/H0n1Qh 3wT7mMTdseIt0pl3CR6rozeLCo2Vjugyki8s4hMDWxOcJJc38k3MH5djlJCpql+tNT lX1TMLvuifKRg== Date: Thu, 19 Jan 2023 18:14:44 +0000 From: Will Deacon To: Geoff Blake , robin.murphy@arm.com Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf/arm-cmn: Add shutdown routine Message-ID: <20230119181444.GA20563@willie-the-truck> 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Thu, Jan 19, 2023 at 11:10:29AM -0600, Geoff Blake wrote: > 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. Please can you two let me know when you've settled on a fix for this? I'm not going to queue something that you don't both agree on, although it seems like we're quibbling over details at this point so maybe let's get _something_ in and then work to improve it later? Cheers, Will