From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44734C3A5A0 for ; Mon, 20 Apr 2020 14:21:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CEB120722 for ; Mon, 20 Apr 2020 14:21:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729752AbgDTOVH (ORCPT ); Mon, 20 Apr 2020 10:21:07 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2064 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727890AbgDTOVG (ORCPT ); Mon, 20 Apr 2020 10:21:06 -0400 Received: from lhreml724-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 192BD9884BA559044F1C; Mon, 20 Apr 2020 15:21:05 +0100 (IST) Received: from [127.0.0.1] (10.47.7.108) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 20 Apr 2020 15:21:03 +0100 Subject: Re: [RFC PATCH v2 09/13] perf vendor events: Add JSON metrics for imx8mm DDR Perf To: Joakim Zhang , "peterz@infradead.org" , "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "jolsa@redhat.com" , "namhyung@kernel.org" , "will@kernel.org" CC: "irogers@google.com" , "ak@linux.intel.com" , Linuxarm , "linux-kernel@vger.kernel.org" , Zhangshaokun , "robin.murphy@arm.com" , "linux-arm-kernel@lists.infradead.org" References: <1587120084-18990-1-git-send-email-john.garry@huawei.com> <1587120084-18990-10-git-send-email-john.garry@huawei.com> <3486ee3b-7240-d5a7-5a3c-952133a5e9f0@huawei.com> From: John Garry Message-ID: Date: Mon, 20 Apr 2020 15:20:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.7.108] X-ClientProxiedBy: lhreml715-chm.china.huawei.com (10.201.108.66) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/04/2020 12:25, Joakim Zhang wrote: >>> imx8_ddr.write_cycles: 13153 1000495125 1000495125 >>> # time counts unit events >>> 1.000476625 13153 imx8_ddr.write_cycles >> # 205.5 MB imx8mm_ddr_write.all >>> imx8_ddr.write_cycles: 3582 1000681375 1000681375 >>> 2.001167750 3582 imx8_ddr.write_cycles >> # 56.0 MB imx8mm_ddr_write.all >>> >>> 8QM: >>> root@imx8qmmek:~# ./perf stat -v -a -I 1000 -M imx8qm_ddr_read.all >> Note: for this example, I don't know why you didn't use imx8mm_ddr_write.all, >> as for your 8MM test, so we can compare the same. > Yes, I use the imx8mm_ddr_write.all, I just re-name the metric, change nothing else. Well it's hard to even keep up - let alone help - when you're debugging QM support, which is not supported in this series (only MM is), and I don't know exactly what is in this JSON who have created (for QM). For a start, the MM json will use "i.mx8mm" compat, which I figure should not work for QM. Please explain this. Thanks, John > >>> Using CPUID 0x00000000410fd030 >>> metric expr imx8_ddr.read_cycles * 4 * 4 for i