Received: by 10.223.185.116 with SMTP id b49csp796627wrg; Sat, 3 Mar 2018 07:42:14 -0800 (PST) X-Google-Smtp-Source: AG47ELtRGM7qyb2vYxZ64csEGLo+z8CtN7s4x2tc9MR/pwfT/zCK+BY+C9FHtLlygxyv2KlMcy0L X-Received: by 10.98.228.3 with SMTP id r3mr9465901pfh.77.1520091734221; Sat, 03 Mar 2018 07:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520091734; cv=none; d=google.com; s=arc-20160816; b=rQofppx93I99FpyJKAERbJQxmAKlQZqr4UUviWnCPeF01stUymMxv+fILJBnLuX1nh Bo/2gxLBF5LRkJWPyWUFDNbkwJXxozveEb1KKMs9Kn78Y2LgmQCbV9P7cif7R+LObRFy 4r3KSAMW/CoDGAn3GIPQyB1BPP1XXPTXclVGmNVz3PKSSsRUlziQuYrScAvFCq5bWKsR 7M/iiJDrUlspQQRj5cCsj4NeD5uh8Jncf44WpQE94CRW3aO1f0cMF2CkRmvakiMizl6X D9kBp2pI7iuJrpCCd3rC7DHVs9OMJLM513jRwR4iWHyTY8SSjW3HEYwWktkUlCofL8i4 IWYg== 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:dkim-signature:arc-authentication-results; bh=mF83Q8vScB1dXMCnhc8sc/ygNDoeQJKvaxQqxOC8bZc=; b=p3cNopDhwhvpXFrGFvh7t4WJpUdEaikyLhl34WDJ3fIqJ6PGmLnfKmW3HTnw180muV IQKsVZPcph4EpmZn9aUhmmQMnSW+RMYQN8EILotP/5+szuiKEcZzeoLYesp37SSNH2ix Eb3urevbRrfzQDMJk3Ynefx7ZWvBRTfWJfPogqyISpcQM9oB9oXusyeiTiNyggKB6xuE KlXf9LHQpoJEO3IwqQLzr3xaP4/JvfwZIOxN+5EKMMk2Lf+ANvIu7+LEw0qMpGo7lqqM 0yq+Wo5k9Jr7vDRaZQ1oSn4rUwCRowuVy9AAkfOsdu/1896k8eupJoanprvcr6zp5oSu pvIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1O1/Up53; 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 m24si6868587pfi.66.2018.03.03.07.42.00; Sat, 03 Mar 2018 07:42:14 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1O1/Up53; 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 S1752171AbeCCPlX (ORCPT + 99 others); Sat, 3 Mar 2018 10:41:23 -0500 Received: from merlin.infradead.org ([205.233.59.134]:43078 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751894AbeCCPlW (ORCPT ); Sat, 3 Mar 2018 10:41:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mF83Q8vScB1dXMCnhc8sc/ygNDoeQJKvaxQqxOC8bZc=; b=1O1/Up53DhbG6KJepodkaXjjR AQ84mC3ZRjiQSTaugeWkzi+zll9ufZBMvQlSk4QBGcH0uGeA7I71TkSgFiFUHOMgjfUcbg3PXx3vD LJpr63bTmMnRizyi4rhXtQwNNsBecDCqPXZ9gNxkrFgNRgcQq8ulwK6bsT1vNGQo0zkRKAZ47n6jL iAb6nNRDj8bdxVEEYvQg7CzUJ4h25S9YeFiRoNlFnNtAQ4KDit5MRUR4Ss0bYHL+HP+fP1tw58DHE ZH7o8xrmco04dzJcs0AmfgsjZwLn4AgCDyoZ5LYREqOlW9N/HAAnOBftcIw4vXlr1kcwEWGfwH0AT 2d7AwdSqw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1es9He-0008K6-Gt; Sat, 03 Mar 2018 15:41:14 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 549F1200A046C; Sat, 3 Mar 2018 16:41:13 +0100 (CET) Date: Sat, 3 Mar 2018 16:41:13 +0100 From: Peter Zijlstra To: skannan@codeaurora.org Cc: mark.rutland@arm.com, 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: <20180303154113.GH25201@hirez.programming.kicks-ass.net> 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: Mutt/1.9.2 (2017-12-15) 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". When I > say clusters, I using the more common interpretation of "homogeneous CPUs > running on the same clock"/CPUs in a cpufreq policy and not ARM's new > redefinition of cluster. So, on a SoC with 4 little and 4 big cores, it'll > still trigger a lot of unnecessary smp calls/IPIs that cause unnecessary > wakeups. arch/arm64/include/asm/topology.h:#define topology_physical_package_id(cpu) (cpu_topology[cpu].cluster_id) *sigh*... that's just broken...