Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2339657rwb; Wed, 30 Nov 2022 05:34:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5wSvIry2w15Y+nFc0UlnM+bnjeWogDEtkRXx7HFqtSOX0eJv/6oIgj72S1lJiZPnz80LQi X-Received: by 2002:a17:902:db07:b0:189:9ee0:cca4 with SMTP id m7-20020a170902db0700b001899ee0cca4mr6909533plx.74.1669815294743; Wed, 30 Nov 2022 05:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669815294; cv=none; d=google.com; s=arc-20160816; b=qYUOOWJALwng4x0XncUeP0j4rryK9iR/2FhsjC2/BbSzKU0t5gSM302VjUGabOpz43 6E1ny8jCx8faVXdXmqEGvsmJiRv+2ZYoLfsyR7beyA7+4yCBBbtLk6Zj1Y/cjECrjO2d w/hyNsiQ1VkkystJXhmVJv0PG2guLuG4QI++ejK5qlCpwmNc4WeEprXvmB8al6Rl8Y8b 2c5tkdpi+n2m0qrSyEcUx1op97FIpJehbHksAuNjUSO1t+D8oCZ0cmVZ1fadSCQneLC9 9PAAcA+LNPRCBggkYUu5D7UD7Jm6BoX7q63eMJwH0/Z0bCClOD6OEohPNIz5QwaPyMlH XnjQ== 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=gCt/orWotVVGt35ZhTv0J54Dh51Fxlm/dUm9pIOH3Nc=; b=WMO4zU8Km8y8Q7s1usPfxo0vzXHrvrjLF0QK+UPgj1lTzmbBDdQD7FF21s7pn6Xm64 HcKWaKqjwo2NgTVAV7xkOOun81/fJekcjtos3QF4tUjJrvrJQ7PhXEUinawnPGZGBdto RWAgooS460YoPwnbypOtVfqN6r98dutMH5QYiguaR1tKTCfrVEkjZXCBZLAaE6+3WT0z sNsPmJcw5ydiZQJEdLGWgRlJoLqG9vWW+LhcJxGOkoYiolIRb7E6mCRLeP81NxfcRTI3 0Y20oly0OJAX0tyYIqK+19RtmtSd47SNWRhXjb2h/M4Il2bVhi6THyp7ep7V9WAkb1L2 jmVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KFNR8KlK; 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 d18-20020a170903231200b00188e9ec511dsi1364991plh.397.2022.11.30.05.34.42; Wed, 30 Nov 2022 05:34:54 -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=KFNR8KlK; 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 S233409AbiK3NaA (ORCPT + 84 others); Wed, 30 Nov 2022 08:30:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235612AbiK3N34 (ORCPT ); Wed, 30 Nov 2022 08:29:56 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83E656DCEA for ; Wed, 30 Nov 2022 05:29:53 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2EF25B81B4E for ; Wed, 30 Nov 2022 13:29:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D017C433D6; Wed, 30 Nov 2022 13:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669814990; bh=sP2qxHqOzBLVqNoiwojKC0COyARR01VWRMLMQXAbFHs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KFNR8KlKCWZYPbBmoi9ggWRPIauHdC6kTOYCHlWXKGCFcubWTJFeOrCz7f0sNUWcU uA9nt20wyz4yEw+nVtrg8vxiBk8ZXzqtXPzH6LGdyWfeQH1IfkYMiU8937x5ct7vNk nHuyk49wEt6MKfD2pYrRdu6w9JtV2Puj/TIQ+a+dV55w5rLS96wqecsRRM9IWUBgoF 5TvXXtLN7wf7NkMyTH2X6KAdJG3137NhhZx4mB2iqI9QycG+RNiaL2ySfHndq2M2Gs IIIutVLowic/XjbYGz97h2s+fl+piub14eI/FwicshDxWf0loN7QUk9xDgYR6hKXxB lsxNfS8FNI4qQ== Date: Wed, 30 Nov 2022 13:29:45 +0000 From: Will Deacon To: Robin Murphy Cc: Geoff Blake , linux-kernel@vger.kernel.org, catalin.marinas@arm.com, kernel-team@android.com, linux-arm-kernel@lists.infradead.org, Mark Rutland Subject: Re: [PATCH] perf/arm-cmn: Add shutdown routine Message-ID: <20221130132945.GA27624@willie-the-truck> References: <20221125230153.49468-1-blakgeof@amazon.com> <166973320082.112522.10687339610259452670.b4-ty@kernel.org> 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 Wed, Nov 30, 2022 at 12:28:17PM +0000, Robin Murphy wrote: > On 2022-11-29 19:52, Will Deacon wrote: > > On Fri, 25 Nov 2022 17:01:53 -0600, Geoff Blake wrote: > > > The CMN driver does not gracefully handle all > > > restart cases, such as kexec. On a kexec if the > > > arm-cmn driver is in use it can be left in a state > > > with still active events that can cause spurious and/or > > > unhandled interrupts that appear as non-fatal kernel errors > > > like below, that can be confusing and misleading: > > > > > > [...] > > > > Applied to will (for-next/perf), thanks! > > > > [1/1] perf/arm-cmn: Add shutdown routine > > https://git.kernel.org/will/c/316f862a787c > > Oh, if I'd seen this I'd have said the same thing as when asked about it > off-list, that it's needlessly overcomplicated and doesn't really solve the > problem anyway. If there's a need to be robust against spurious interrupts > then that needs to be done in the interrupt handler. > > Even if we do think it's worth stopping the PMU on shutdown, as we do on > remove, that still only needs a single register write (per the current > remove implementation). Sorry Robin, I didn't spot that you weren't on cc for this. I've dropped the patch locally and I'll update the branches later on today. Please can you help Geoff come up with something better? Will