Received: by 10.223.185.116 with SMTP id b49csp5855376wrg; Wed, 7 Mar 2018 20:16:30 -0800 (PST) X-Google-Smtp-Source: AG47ELuV0PH0r4eAeV3jjPI/QaXozymngLErTxE8sPQC9eiCB7O3jlBfgabyyooM3ubUY7UQQaI1 X-Received: by 2002:a17:902:bb81:: with SMTP id m1-v6mr22525983pls.71.1520482589876; Wed, 07 Mar 2018 20:16:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520482589; cv=none; d=google.com; s=arc-20160816; b=pkcsM8r/dC4JNdfoZCJeW0zqVXFedLeEv+anPcc+V/7juCe2c6njEByeLDWeZfKi+m VxBz/cpBc3xTe4Uja/vQF9dG1zqr77iOw+yUAj6vGvuyQL23Uw+F5MjmV/zQw7WWs6nj rKKpujyBw9tVcEHmG4vuLclXgptJ2bCJmscdHUemqc7z1HldPpcGCGsu8U8OjtUnLXJg T2jIgEszY22BqPOje472Vt4YmJ9RMqCqI3VpVWuWrrr0EAD+W4KBl+2XpuZHH6SqecF/ Vozh9U+FJveKiRbEjJCB/SQcR9NCZqCEKvXnK+TNajz79naYBeMd5jkb9czvh8UYZLAS O43Q== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=/7kwxHCcQ1VhF7oZhkaA00kdbdGHxs49c4eGh4DzynY=; b=zWH42pek87ZcxDYWqTlCmwnLlKf6hW0zL9eusDB00lnOUxLd4NrdKy2PbqKTGci0ns OE54AB4qsjLkozVPbT5zRrmpx/8woPNh0p0oLob4AD4DZGYdvM5eqy4s4gfdJdJ2wEVA xo0N4ghIo6PRTpYLRevrYeBIWaAGCjXh74aSvCvo5wccEAR6ddl6vb+qKfNFXsi3cZIo 5CfateaivBwU/docyVwVxWItWZOtiPrSQ8RPhx7b0zjh2g8Ox3mBRFovkjAOLx9yPUV8 /HjH2/UqKzZDB64FfI9y3ediWLPwB/NlvGMILxId38PrXYoi0DVnE+VeSMVBA+ANYAWB SY7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m9DgInxe; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si12409014pgr.152.2018.03.07.20.16.15; Wed, 07 Mar 2018 20:16: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m9DgInxe; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934542AbeCHEPD (ORCPT + 99 others); Wed, 7 Mar 2018 23:15:03 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:38090 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933890AbeCHEPC (ORCPT ); Wed, 7 Mar 2018 23:15:02 -0500 Received: by mail-lf0-f65.google.com with SMTP id i80-v6so6471821lfg.5 for ; Wed, 07 Mar 2018 20:15:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/7kwxHCcQ1VhF7oZhkaA00kdbdGHxs49c4eGh4DzynY=; b=m9DgInxeOHXt+VM3UYH5SBUpnSzR6XFjtICisdpRWsQP0NEP/6dIv1LUHbXqONDlej iMBv8R6RxTvmrs2c5bv/sVY/jVSohof1Okq6Hg9aMjNmW/5UhqNVXQlHIlaCtolYnvIw Xygbooz4LIXQR5JU3eN4JINmkAsbCXR/IXBcPvlu0E2cM7T1gXFZmN682xO4+bybowOK bdaDed8/4uEKxroJ43ylOvPptXI73EGMk2THUgDnpdijj8V9rcEHoytiKq7JqzkjznZT fap5k61vyxhsptRz017rRdr7pqpR6eE13VO4nRlERdooM0VV2mjsjhYNUDiLeuFG6M2l 9/KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/7kwxHCcQ1VhF7oZhkaA00kdbdGHxs49c4eGh4DzynY=; b=Lcz19FMN10aIMzQHRjAMqS2JEGtX3bIqmq7yNACIrhbuaBCgfeJtzenpI6eJ88AYLx m5X0MYZajvAiBSgsHXAao1IttRbffpCF+453edAtBIeCTqzhy/E1Kp7LjrIyYPRZylF1 DLAstCLkVzghVmbRuV3LaezTABwQAZrPbJDaUzQC6zD+HksBh2rQaU8hh+VIu9yrCccI vt+KaBWiJrM18rQUMp/2kYeAmEhq59kXFceEg2NuyBwmDUwt7UVmUz385FYs3CM2S/yq eImx+mHlLn6sYx1oqBcGQOxHEIcHg1uKGJCoYRgRvYKwx9vsbS30PYCh6LUHyChBpTgg o2Qg== X-Gm-Message-State: AElRT7Ecex8yEQIvXSahkBBNqfNhT88xQNZMG3mPIXsn3BEUXMhy8dst Vc5/TWDqmY0FppMsgdhkionE+FWekRvXuKJ9kDs= X-Received: by 10.25.212.19 with SMTP id l19mr3825764lfg.83.1520482500542; Wed, 07 Mar 2018 20:15:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.25.140 with HTTP; Wed, 7 Mar 2018 20:14:59 -0800 (PST) In-Reply-To: <52328144-3a2a-af03-273b-3a2f3bdadda6@redhat.com> 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> From: Ganapatrao Kulkarni Date: Thu, 8 Mar 2018 09:44:59 +0530 Message-ID: Subject: Re: [PATCH] perf vendor events arm64: Enable JSON events for ThunderX2 B0 To: William Cohen Cc: Arnaldo Carvalho de Melo , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/per= f/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 shoul= d be replaced with [[:xdigit:]] to allow for possible future revisions of c= hip: >> >> 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 lin= ux/toos/perf/arch/util/header.c. For the ppc64 it just copies the equivalen= t of the MIDR including the revision bits. Thus, the need for regular expre= ssion 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 >