Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2283419rwb; Wed, 30 Nov 2022 04:58:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4FeYWYGBHLjaSr1rYJcXF68+M2RtRzC2G6iW92bdtHS76IjN+OnuThjVPCtBSVEcGOK4gh X-Received: by 2002:a17:90a:ce01:b0:219:58de:e1ce with SMTP id f1-20020a17090ace0100b0021958dee1cemr5932126pju.215.1669813090970; Wed, 30 Nov 2022 04:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669813090; cv=none; d=google.com; s=arc-20160816; b=D05bafe87p19tTWRhWU6eSTwfxGiJ8kpJLsVJ9Dsq1XZTXiL7mU5Ce29SX8z1I8pb7 dDG5bhP1xYruf0lkIpTk3RhFFg8kQupHuCt9GhFdPN91m4yi8ycUes8HJ1dou1GK1EUP wn536HMcXNE3ZwOpapsnba5F3NTlAmStfQ3QOLHied/ftjDYeRvibimcCcmGaTAS9BBO y2KaH2R97uW9xLUx8bWL5Imz1Bb5vjS6aAA20WgEsoUHdJ7PzIrtFmK0Eo0AztWb5tFt e8c6DsEwJx3oak1oSP1RkRQLyzjLxLETMlw7VopOUNQERY2TwXiHkN5piLCBWk9Qohi0 D+WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=+QPKrLg2TdkKRGOrobo/0uzk6jw6CYO0y9vYVGvy310=; b=jzVSZ2URjspja1WsZwer5Euzg14W0P1yrau9ZPwbXiJ7JaFeV3VHwGZu/dmgtkL/p6 uDmb/6BYkyAeCHb0tmnfI6E1Um46atUayO9WXzsVKgnPrakYElskG6BsWcQ3F0eDKSCn tbUtWO8Kl1q9NaKzrBQzQOGn3wrKBCtAu4l2sTrmT94b146YmGKO38cVaLruIkCSB+h+ vh7b4X1tz7CMJVllIyIUzMmH4F7qL6Hc+hIFW3dHfziV+RGBQsI/h1/TFk5NaVEbvmJt bSBL5zbR6qjvetay5+d5crYPGxORbi4AVsjsVduOh3psW3ANPIxW+g/sJcfuZxnaxs5W hF6g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j192-20020a638bc9000000b0047850bffdbdsi1228808pge.441.2022.11.30.04.58.00; Wed, 30 Nov 2022 04:58:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234495AbiK3M20 (ORCPT + 84 others); Wed, 30 Nov 2022 07:28:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234232AbiK3M2Y (ORCPT ); Wed, 30 Nov 2022 07:28:24 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 75AE04C25F for ; Wed, 30 Nov 2022 04:28:23 -0800 (PST) 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 847D6D6E; Wed, 30 Nov 2022 04:28:29 -0800 (PST) Received: from [10.57.71.118] (unknown [10.57.71.118]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CBB8E3F73D; Wed, 30 Nov 2022 04:28:21 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2022 12:28:17 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] perf/arm-cmn: Add shutdown routine Content-Language: en-GB To: Will Deacon , Geoff Blake , linux-kernel@vger.kernel.org Cc: catalin.marinas@arm.com, kernel-team@android.com, linux-arm-kernel@lists.infradead.org, Mark Rutland References: <20221125230153.49468-1-blakgeof@amazon.com> <166973320082.112522.10687339610259452670.b4-ty@kernel.org> From: Robin Murphy In-Reply-To: <166973320082.112522.10687339610259452670.b4-ty@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 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). Thanks, Robin.