Received: by 10.223.185.116 with SMTP id b49csp5369508wrg; Wed, 7 Mar 2018 10:33:29 -0800 (PST) X-Google-Smtp-Source: AG47ELtRGR/n1iPLhUubMyMI/kwoswc+URfGSgVAH4/wKsRcJ3XA/mBD3llVJeVNWsZx6nsvyTLJ X-Received: by 10.98.1.88 with SMTP id 85mr23514240pfb.226.1520447609223; Wed, 07 Mar 2018 10:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520447609; cv=none; d=google.com; s=arc-20160816; b=iiRlYYLdnHeLKuIKOYRVGDs+jzJ7I+6YLN4PDKXCzC9O47/XY9Nl44EARbZu+Z3FGE KjpJfhnLjS198lv4kLL7EOWlF7/ruzoQ/wI7EvOmD9MZM2F2pW7ct0mjxpCX+9hK2r3e KKZAbCef2brmnzKlIDBGvVABSiiWNJSnHpIKqbgdtf0r6oyNlTW5SgZzPcG0AL1XaglQ 4IhXnxc9i8cDCJZmyAHPEGkUhsfMV3SBku9Dg9dqzCgMXqj5gjtTxA9KhMsQYjFs92Y8 UfJk6isBmwudtOw3m9Vfcnv/7ModVo5eRlqiEDFAlTqwizlUGYrt+o+xUgvBoXQzVVvf 9AzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=/vqKZnE5GJn4M/fB4LKSUA7kS3BTKkMVg61QdGL6buY=; b=hwq+kNJh4wDpL7boMEN7DXEAZDvfWUq/7E1BoKwFSFMdcSbmKyTSu8NXDSs4pCqwb+ ZCP3GNt27IbMoqlYUtdKF9SCsqmN+y1IFli8kXBH6tOhlsPiLayM0FX0tgwfINCV7Di8 cg8urCs022D/arVaItLLMGf2PDTZ1TcdEczwdsDL3q514gNYUYNsDl58KyzngSYOMWuG HpL4sXeYtlsO8pdfdi9McdJFcvr0ioMbTMtetDFa/NeZXYx+RrqBVbKAKCw7mUPYJ3JE 0Wqi/me0qYqbGI4p5dHsjMa29iQoIdoDTYeWOyIsLfyZ8oqZshPBAYtVBdGnBz0Uzvk1 r1yQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si14113712pfi.174.2018.03.07.10.33.13; Wed, 07 Mar 2018 10:33:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933412AbeCGSbm (ORCPT + 99 others); Wed, 7 Mar 2018 13:31:42 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44710 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754730AbeCGSbh (ORCPT ); Wed, 7 Mar 2018 13:31:37 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 54DC640006E6; Wed, 7 Mar 2018 18:31:36 +0000 (UTC) Received: from [10.13.129.233] (dhcp129-233.rdu.redhat.com [10.13.129.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id 761292026980; Wed, 7 Mar 2018 18:31:35 +0000 (UTC) Subject: Re: [PATCH] perf vendor events arm64: Enable JSON events for ThunderX2 B0 To: Ganapatrao Kulkarni , Arnaldo Carvalho de Melo Cc: 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 References: <20180307110803.32418-1-ganapatrao.kulkarni@cavium.com> <3384d33f-c927-740a-97f1-b20775ef2c7b@redhat.com> <20180307143832.GJ3701@kernel.org> From: William Cohen Message-ID: <52328144-3a2a-af03-273b-3a2f3bdadda6@redhat.com> Date: Wed, 7 Mar 2018 13:31:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 07 Mar 2018 18:31:36 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 07 Mar 2018 18:31:36 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'wcohen@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -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