Received: by 10.223.185.111 with SMTP id b44csp381373wrg; Fri, 9 Mar 2018 06:35:52 -0800 (PST) X-Google-Smtp-Source: AG47ELt8/5WEWjPiyQq+IFAjxU9gxw3jrEz+gb3A9zToHV4J3xg1gCotqSi1V4o9pA/GhCFwX1Z5 X-Received: by 10.99.143.88 with SMTP id r24mr24227920pgn.160.1520606152508; Fri, 09 Mar 2018 06:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520606152; cv=none; d=google.com; s=arc-20160816; b=VG35O7UdfiTB05mVfY4DZHQnG0l6b0snzuoAcgkGL2/iGg6yEUgGBjSWuC4JYZTp1M o4X0oFE84Mw6NKQfORrgd7jEQT4EKd8VKJpy+5FrysPXQ4xzdeR0cqmIZlFt2P0TXufy BV8LDGoEI+v0489az1XeQ4nhVrfWW0PI9MJRdSg6CbVZLyj2F0gysbXXRlVdL73D2Ivy SFHviesVS7en4cDfBkMDDcI3MRf3v9YjDVWJLoVgxyPUynQ3hm9YpupSe38lmdy689dN nmb/r7e7LMeBKnMv7/82vtOEDx4672TybChTjmbTPVYSHjEvRo3zvpUeBhU3uAQN8Dyg jUqw== 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:dmarc-filter:arc-authentication-results; bh=28csUDeJ7I8+1EEtCZAma7XQZ/gMU+JHpyEKXb9hCKE=; b=sLqvlbX2ur2vEsK2ott5ZOfJn4fMF4+awc/lTL///TU7S4x8IbEXZ7kV0u4zfbhhNv 1FE7oTzdAfIo51TTWE0OFIxruj0Oyc0MiE/qc9x51jetJBkIHbQQwoZxeOXXK6eNcO/V RKnink8ebGyLGEVmVvcSXLxy0PMnbaRTizHH8f1N3k6el3vQY3QP3r7sAYDQ3Y4ctfra g4oLznO2kdP7hx+VoMyoA5b7x9IOO4DUy2+baj/1xp8BMyrkgT5+pG80mwdhwfGIIpZj NxPp7nHqT1A4COu9VKspaqDvaPQZ659SJvTALwgobzxR9qUg+oOUA3wrTV8yJeuXfqwY g+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 j11si903595pff.406.2018.03.09.06.35.37; Fri, 09 Mar 2018 06:35:52 -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 S1751188AbeCIOeU (ORCPT + 99 others); Fri, 9 Mar 2018 09:34:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:41148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751143AbeCIOeT (ORCPT ); Fri, 9 Mar 2018 09:34:19 -0500 Received: from jouet.infradead.org (unknown [190.15.121.82]) (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 26EC620685; Fri, 9 Mar 2018 14:34:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26EC620685 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id 0B8691450E9; Fri, 9 Mar 2018 11:34:16 -0300 (-03) Date: Fri, 9 Mar 2018 11:34:15 -0300 From: Arnaldo Carvalho de Melo To: Ganapatrao Kulkarni Cc: William Cohen , mark.rutland@arm.com, Alexander Shishkin , John Garry , Will Deacon , linux-kernel@vger.kernel.org, Peter Zijlstra , Robert Richter , Ingo Molnar , jnair@caviumnetworks.com, Ganapatrao Kulkarni , Jiri Olsa , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] perf vendor events arm64: Enable JSON events for ThunderX2 B0 Message-ID: <20180309143415.GB4194@kernel.org> References: <20180307110803.32418-1-ganapatrao.kulkarni@cavium.com> <3384d33f-c927-740a-97f1-b20775ef2c7b@redhat.com> <20180307143832.GJ3701@kernel.org> <52328144-3a2a-af03-273b-3a2f3bdadda6@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Mar 09, 2018 at 07:57:04PM +0530, Ganapatrao Kulkarni escreveu: > Hi Arnaldo, > > can you please pull-in this patch? So everybody is Ok with this? Can I have some Acked-by: from subject matter experts? - Arnaldo > On Thu, Mar 8, 2018 at 9:44 AM, Ganapatrao Kulkarni wrote: > > On Thu, Mar 8, 2018 at 12:01 AM, William Cohen wrote: > >> On 03/07/2018 12:35 PM, Ganapatrao Kulkarni wrote: > >>> Hi Will Cohen, > >>> > >>> On Wed, Mar 7, 2018 at 8:08 PM, Arnaldo Carvalho de Melo > >>> wrote: > >>>> Em Wed, Mar 07, 2018 at 09:32:05AM -0500, William Cohen escreveu: > >>>>> On 03/07/2018 06:08 AM, Ganapatrao Kulkarni wrote: > >>>>>> There is MIDR change on ThunderX2 B0, adding an entry to mapfile > >>>>>> to enable JSON events for B0. > >>>>>> > >>>>>> Signed-off-by: Ganapatrao Kulkarni > >>>> > >>>> Ganapatrao, can you please take this in consideration and if agreeing > >>>> send a v2 patch? > >>>> > >>>> With that I can add an Acked-by: wcohen, Right? > >>>> > >>>> - Arnaldo > >>>>>> --- > >>>>>> tools/perf/pmu-events/arch/arm64/mapfile.csv | 1 + > >>>>>> 1 file changed, 1 insertion(+) > >>>>>> > >>>>>> diff --git a/tools/perf/pmu-events/arch/arm64/mapfile.csv b/tools/perf/pmu-events/arch/arm64/mapfile.csv > >>>>>> index e61c9ca..93c5d14 100644 > >>>>>> --- a/tools/perf/pmu-events/arch/arm64/mapfile.csv > >>>>>> +++ b/tools/perf/pmu-events/arch/arm64/mapfile.csv > >>>>>> @@ -13,4 +13,5 @@ > >>>>>> # > >>>>>> #Family-model,Version,Filename,EventType > >>>>>> 0x00000000420f5160,v1,cavium,core > >>>>>> +0x00000000430f0af0,v1,cavium,core > >>>>>> 0x00000000410fd03[[:xdigit:]],v1,cortex-a53,core > >>>>>> > >>>>> > >>>>> Hi, > >>>>> Like the cortex-a53 the last digit '0' of the match for the MIDR should be replaced with [[:xdigit:]] to allow for possible future revisions of chip: > >>> > >>> for arm64 implementation, bits 3:0(Revision) and bits 23:20(Variant) > >>> are ignored/dont-care. > >> > >> Thanks for pointing that out. See the code masking out those bits in linux/toos/perf/arch/util/header.c. For the ppc64 it just copies the equivalent of the MIDR including the revision bits. Thus, the need for regular expression matching to avoid having to create a new entry for each revision. > > > > It is same for arm64 too, there is no need to add an entry for every > > revision change, need to add when part number changes. > > This patch is not intended to add entry for revision change, the fact > > of the matter is that, there is complete MIDR change (vulcan to > > thunderx2) in B0. > > as per current arm64 > > implementation(.tools/perf/arch/arm64/util/header.c), it is not > > required to have any dontcare marking in mapfile for revision/variant > > bits. > > > > thanks > > Ganapat > > > >> > >> -Will > >> > >>> > >>>>> > >>>>> 0x00000000430f0af[[:xdigit:]],v1,cavium,core > >>>>> > >>>>> > >>>>> -Will Cohen > >>>> > >>> > >>> thanks > >>> Ganapat > >>>> _______________________________________________ > >>>> linux-arm-kernel mailing list > >>>> linux-arm-kernel@lists.infradead.org > >>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > >> > > thanks > Ganapat