Received: by 10.223.185.116 with SMTP id b49csp4854357wrg; Tue, 27 Feb 2018 03:54:48 -0800 (PST) X-Google-Smtp-Source: AH8x225Wv5cy4STWDsfYGbi/uOMOcOubfdMb22uk0MWUPCjjHyFtH6ysQr7fOkhKUW5aAX1fuC2w X-Received: by 10.99.114.18 with SMTP id n18mr10988945pgc.169.1519732488370; Tue, 27 Feb 2018 03:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519732488; cv=none; d=google.com; s=arc-20160816; b=O9pMguxO4Gb4cMCj1lmIc5ePdphEERxZxcFJsW5+F+xg+bPyrW0SoGQWCA5CN/0MZN UskGRyniKAvB0MBY2DztzoztWErnW6mnLCDl9rrjn0287EHLwznBeoG8tmU22HmtJRQF tzXgBMydP3LSASj5/uC8ERzwTrxKn581SWhiyfYyMG91fMsfNtX7osnCPGUCzRMPdn+6 JykzNAKzfRMph+iB6ePsMG3tAtRttga49aKDw8qmwOA6UarzgOuzr25yRkacwp13PaTo PYPJO59/sMWLwo+SQN2/NIUxEKJx3doqQ2wcCxKArVqA2KV+r8b1SUwgX6GORqLcNVrf BCJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=+32MDxXjs88HNm0TztSz6w7V2NimWU5BubYsSBw+gL4=; b=C0WN4JzpNRhBg6JSyoXLv8ZD49Ku4DsJitlc71AMUG0EVQnhV/gpzNlrq5MTQ1+5nL rA+EfV0nzGZKdfELig3EAeU4/7b5Z9OlDLzKOjoXireWxVa52I9GDMrjbocxKwSWZ9Y/ AOiHClHBu0q1pSLxiUYiY1S5N+e9j8mmag1trIyUWGbkISM8f1IT1mC9UC8AJZpXFFkR Za6pHII+AAWN+3tw2Usi1YBWZlB0xjCTQ7zGr2JuCvbFKhVYbg4JYHSwZkdlFs1PJutH 7HYDyG3GMqPunmdRrqD8rjlZt/SzlyuPXFA5t9roG//1cTaoOhgrwDr6N8MYathpjnoe q/Yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e124si8407208pfe.170.2018.02.27.03.54.33; Tue, 27 Feb 2018 03:54:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbeB0Lwa (ORCPT + 99 others); Tue, 27 Feb 2018 06:52:30 -0500 Received: from foss.arm.com ([217.140.101.70]:34378 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbeB0Lw3 (ORCPT ); Tue, 27 Feb 2018 06:52:29 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 52EB415AD; Tue, 27 Feb 2018 03:52:29 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 872B63F487; Tue, 27 Feb 2018 03:52:27 -0800 (PST) Date: Tue, 27 Feb 2018 11:52:25 +0000 From: Mark Rutland To: skannan@codeaurora.org Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , avilaj@codeaurora.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/2] perf/core: Add support for PMUs that can be read from any CPU Message-ID: <20180227115224.rmtfy4eif3g4hmmr@lakrids.cambridge.arm.com> References: <1519431578-11995-1-git-send-email-skannan@codeaurora.org> <1519431578-11995-2-git-send-email-skannan@codeaurora.org> <20180224084106.GC25201@hirez.programming.kicks-ass.net> <7cab1b91545e81e4b6b09e85c2f81d7e@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7cab1b91545e81e4b6b09e85c2f81d7e@codeaurora.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 05:53:57PM -0800, skannan@codeaurora.org wrote: > On 2018-02-24 00:41, Peter Zijlstra wrote: > > On Fri, Feb 23, 2018 at 04:19:38PM -0800, Saravana Kannan wrote: > > > Some PMUs events can be read from any CPU. So allow the PMU to mark > > > events as such. For these events, we don't need to reject reads or > > > make smp calls to the event's CPU and cause unnecessary wake ups. > > > > > > Good examples of such events would be events from caches shared across > > > all CPUs. > > > > So why would the existing ACTIVE_PKG not work for you? Because clearly > > your example does not cross a package. > > Because based on testing it on hardware, it looks like the two clusters in > an ARM DynamIQ design are not considered part of the same "package". I don't think we should consider the topology masks at all for system PMU affinity. Due to the number of ways these can be integrated, and the lack of a standard(ish) topology across arm platforms. IIUC, there's ongoing work to try to clean that up, but that won't give us anything meaningful for PMU affinity. If we need a mask, that should be something the FW description of the PMU provides, and the PMU driver provides to the core code. Thanks, Mark.