Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3335735pxk; Mon, 21 Sep 2020 10:56:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNHXE5DnIgxhELT5Ova54nqGUECBrebktpqthCxFLXpyvBFSQbg7qvV6Lys+EmlTVHSWqD X-Received: by 2002:a05:6402:6c1:: with SMTP id n1mr80049edy.215.1600710996560; Mon, 21 Sep 2020 10:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600710996; cv=none; d=google.com; s=arc-20160816; b=pzV8NvytWy1MEO3zu2P/4Lts5UgNopW0hacdzM95We4h1xnCmuR9iS4Fi6qSUS2btP 2KkhH0v5Qy8RV1vGpgPp69MC0ndfAfqrHU7n3M/oSFVGtpdb2evvfDnIkM8czAUxhut7 q9TArmqwglBv2OJyVQKcvOf0OJiul7iXd72yWK9cQ1pKeISEcycz4sRH/J45FxWJqszB 1NTq1/pmA0EUxVFkLMDHlDGBbDSvabRkEF6hPDVCNiLM/GEJEhwc0cn1ixbhLaHbural fQLmvxXyM/dVkZIVukYZLQK28AceA1qUIiU3mJbC7arKRnHJyPA6qdAdVL1/4lasvrpR nC8Q== 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=VVUDX0g0hwB/JCO1exA2kRGJ4r4UmEXa6LsgN5SgX6c=; b=VA+MU1PT2Nt72BdxXGUQYoL5/h4n9GFKogPpHw8GQSFjr/Tu82BBja+HCEvNGjXSKO MQLmAWDecHwd/6ppmRoEU3AZOTim1fNHCDm6G0U2dJemQV0Rn1ftU9i9JsWq1tvK13K0 D3XtSM92Q13oEAQlzpQvWawVMEhQ184nc88KTIRrYcW+s8h5OdUkY5u6Vob9fU1Gsj0h ot95jjHrbWlo7bzppjz5hKOZRqjw0ruC4+FjMjzGzPbyq2eSCR4WDzSK8bLvO3KnomNC KxMf6grdkgD32LsaLL+6EdyolG4JuPRVSIR6Gt9WIjFpdTmWKRjUUx/DAwjwLqSXjbnF dLBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=whrzXfYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pv7si9358784ejb.753.2020.09.21.10.56.13; Mon, 21 Sep 2020 10:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=whrzXfYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727924AbgIURxg (ORCPT + 99 others); Mon, 21 Sep 2020 13:53:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:45824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgIURxg (ORCPT ); Mon, 21 Sep 2020 13:53:36 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DAF0B20BED; Mon, 21 Sep 2020 17:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600710816; bh=rHqhMXLrc2euBYg5DgO9SILeP95LxH71eqk44hTG9fY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=whrzXfYPbw8odytdwpTt8k+qKtDPsccHgGGWL3LMfjU7nImxPpZdkYj4L5d4A1Hna LYD49Cej2p/1b2Z1Yvz7zj+7a4qaePi+iNj02ULwJDI+quZEN6/H1CSmd38WH/cAc+ 5C5uUnbagc+d1d+LvDl4mE1CbXGDVSRM+jYSp4SI= Date: Mon, 21 Sep 2020 18:53:31 +0100 From: Will Deacon To: Alexandru Elisei Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, maz@kernel.org, catalin.marinas@arm.com, swboyd@chromium.org, sumit.garg@linaro.org Subject: Re: [PATCH v6 0/7] arm_pmu: Use NMI for perf interrupt Message-ID: <20200921175330.GE3141@willie-the-truck> References: <20200819133419.526889-1-alexandru.elisei@arm.com> <20200921135951.GN2139@willie-the-truck> <296304b8-aadd-817d-bb12-dc7524b6f0f5@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <296304b8-aadd-817d-bb12-dc7524b6f0f5@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 04:41:00PM +0100, Alexandru Elisei wrote: > On 9/21/20 2:59 PM, Will Deacon wrote: > > On Wed, Aug 19, 2020 at 02:34:12PM +0100, Alexandru Elisei wrote: > >> The series makes the arm_pmu driver use NMIs for the perf interrupt when > >> NMIs are available on the platform (currently, only arm64 + GICv3). To make > >> it easier to play with the patches, I've pushed a branch at [1]: > > This mostly looks good to me, but see some of the comments I left on the > > code. One other thing I'm not sure about is whether or not we should tell > > userspace that we're using an NMI for the sampling. Do any other > > architectures have a conditional NMI? > > I'm not sure about other architectures being able to configure the perf interrupt > as NMI or a regular interrupt, I'll try to find out. Regardless of what the other > architecture do, I am of the opinion that we should spell out explicitly when the > PMU is using pseudo-NMIs, because it makes a huge difference in the accuracy of > the instrumentation and the overall usefulness of perf. > > If I spin a v7 quickly, is it still time to merge the series for 5.10? I'm on holiday for the rest of the week, but please post something when you have it and I'll queue it if I manage to get to it. Will