Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp412768rwd; Tue, 16 May 2023 02:53:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+Zh9SWg+O2ewLAJeKYCfQYiz2gfnvuT6d/I5ipPCRBYAV5XcfcgYfjMFIA/qlwTDWFQIY X-Received: by 2002:a17:902:d48d:b0:1ac:8835:b89b with SMTP id c13-20020a170902d48d00b001ac8835b89bmr35235077plg.5.1684230785022; Tue, 16 May 2023 02:53:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684230785; cv=pass; d=google.com; s=arc-20160816; b=Djd7tMPF2HhDRljxiHVul/0bWFjhXNhDgdX9NO0qGqKN+Z12CVN6w2E4iqm/0R6kMo bA5XF3QS43tflqUD6dTpd2atpNXwhalZ1USe83oRfMDl+tvw0SP/BcxbeREEu7gehFmk euixNbgTwasIlEyI/hNfU5gqMTUmGyh9eUG6Fh2pgms0HeAJoHOj23XSV7v/QJvC15nP 6YmXcbINX0QauSkAG9ZXXAHrmA9yJwPf3xjgUJJUGD7WcsE2h/meeMG19FdmyLb7NDyH pkQW7v9YEtnuru92XsoKETw36fp9hl04bTINqXP+RnqUI4434Wfebc8YFmknm7EQ5Cko Lvew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MBNO//W7H4mxwZS4hTm7JB1l0GPCqfYpyIp6djrkCmM=; b=Oj4ztocQw1/frwo6IBgf8LTY/qo2xV5Jyk3NmVStOcAUeHvNxL55YlG7zUPjJCbedp aNeOwllZ+3FRuStsE1drOOuQYeFiLYfh0I+07fSJ2zXQntX/G5Wq476UbMPTAAPr4CfA nqr6GoSUMq35LBD0z/txUXquGR/Ma34YxWhfqo8Z6BbI+rpXKJYH4L6VrjtgPBx5AaBN rdhQlWhLXyl4EGg2dIFOs5LNdXqcA/zzd5xdE4/VIfP+HznlPvBU8FqvjSG40S9U6THh neFAyA/HSUC3sXybSrwE/h3nSBvsMdVpAreHq/BLmuuTE6lxPRGGq/adBlNUQlQ2y/48 Ui7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=T30xZ7ix; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a170902aa4200b001a6f91439d8si17263916plr.393.2023.05.16.02.52.50; Tue, 16 May 2023 02:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=T30xZ7ix; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbjEPJo2 (ORCPT + 99 others); Tue, 16 May 2023 05:44:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230425AbjEPJo1 (ORCPT ); Tue, 16 May 2023 05:44:27 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2023.outbound.protection.outlook.com [40.92.22.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0625EF2; Tue, 16 May 2023 02:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C808O3L0HUUlBvUPpY1hCFIWSeU/dngB9zfA5T1kkUIg5eOJw9jbqpNwb50BMLLmGHqJ/1+x4dpYq2qWIMJ6F0tgTVmVOJs+hybuPnVo5hvg7O1t94TbBOoROlRQc2YySgEDntc5tlxIFwK6CsvdJRamlFppw0TixZ4JaaFab7p59cvvEnIXNwBH4wkEFOZqYFTxvDNs9NE49R4EAW4w2irUs7HmOmSotCSLSNfu937as/GTg4NyTd0P8X5hwICKHqk969csIiIvEgRUp+QMyCAp7G51Ag/TO0I5p6vAzihKU6Vx8zxf2EYMNsvnF9Ur26kwSyOTDlpmx34rAAMQnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MBNO//W7H4mxwZS4hTm7JB1l0GPCqfYpyIp6djrkCmM=; b=ZHR1/r/nPss/GK1z+v4JV3o3X+9iBxOFNZIqGjjtF8Zwqd1nVPjL4b8ia8NkW3LEvRshrYKOUlJNz+BlY0o+6u8Wn7E2JJMnqEJ2Ruv33kdPj8xNjKC+jbiiheAEPmayfmah/QSrH6AjVok+9R3iQcwquSR0BxFigLze5/p7nQQ8dau3XzFe6tBEoX9Ry3GJaSeI+hk1QgS/Ow86z/ZH2DcJY9enDf84zhxca2U+6r3e9G1Yqf882O4YvQ66P/npsjPyzu8R8D+jWjORLJb32HJuB9Sz/v5XwUP7+uDPfnG0ZBGGZnqlbCZkDcJXUQlXoCE9zG7mQAuMKDQx0GSWjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MBNO//W7H4mxwZS4hTm7JB1l0GPCqfYpyIp6djrkCmM=; b=T30xZ7ixT0al2wkA4OjTai177/bLRPWErTqpFf0dQtI3eGBDAlaugm6IzctZbXpA+InAcnOS9DbGIEqyU7DCOKF7k9JsASX9QOPtUbK4NrMmezZ+Xat3emlee5nEHDUmc4kWtjdrhxCYcOw/FZhxwkUFx0aBTIc4EeUdl8ruLhHQ2g3T+9GGgVBI5WNDaEzuzVxkm0HpWNJJWwBrGROq5OEBE9cjDrz6/mbChKzV+aITyqZvWHWlBbVNBSsRNWQ+Q/Tor2hDYdp1se2VafDehpbwyEaWyJhIFEsFnJMSiPhmubQ7jRgtEHU5/skl9PtrkO6ASc2XAdE8zeEmm1jadw== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by IA0PR20MB5706.namprd20.prod.outlook.com (2603:10b6:208:436::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.33; Tue, 16 May 2023 09:44:24 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::4770:9e0f:7f59:1989]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::4770:9e0f:7f59:1989%6]) with mapi id 15.20.6387.021; Tue, 16 May 2023 09:44:23 +0000 From: Inochi Amaoto To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nikita Shubin , Inochi Amaoto Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 2/2] perf vendor events riscv: add T-HEAD C9xx JSON file Date: Tue, 16 May 2023 17:45:03 +0800 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: <38eaec6b495786b048f78be08470f7c770793d7b.camel@maquefel.me> References: <38eaec6b495786b048f78be08470f7c770793d7b.camel@maquefel.me> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [wwI8SVQ3qAorzoi9B0vPLlFkW9ocqAnLW6yFhtkhgSM=] X-ClientProxiedBy: SG2PR01CA0183.apcprd01.prod.exchangelabs.com (2603:1096:4:189::16) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20230516094503.481969-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|IA0PR20MB5706:EE_ X-MS-Office365-Filtering-Correlation-Id: 6feced5e-beb0-4a2d-c2e1-08db55f22196 X-MS-Exchange-SLBlob-MailProps: ZILSnhm0P3mlyp2+JOGVZNHdcEZItuc9zYy/vOUoYm0GHO98Ki3HQdBeVjAIhNAXVB7sGoUu08S7U8PxYlKNwOc3+ajz9YfQbsxh+otj2PQdp/r/WlcpOXLFeaAx+GRmLzx4FsvQkSeWXbPl55IkA9hhGx+3JaN5X7s91MZu7arIk0huC1qJWv3ivCQ85lpx+gZtXSm4j8XALDG92Bm9CO4JWc5iKFfn7aR/bwIgIKiCfGKjWKyJhoklmTSZRZqbge15LsCq+ltlZXfNTUXpZo0OiTnDw7h8lIV7HSdzeTaJsHnVWXPLnV5tvu2S0YFso1zYoFqJQ2Okwv7V9g3pnnb2trwOBDkawCLUKYBj43Kkj/4XaUuBpDxUA1EKOl4H5juvdG/y4mbdQE14v9EDInV4/tm83SQdHu+0S+d9gsjH11nvX9sZwrsEe8992cvO91ztsqiVF+VO+2KmjG0K5Q1pfD0xc7mtTrUMFpOaU7svAcK7Mf+qgCzfWMWKKKcG/e3Pf4vtwFcDoR08fzMvTXCXBSPKyxhuimHNs7fBz071BpHrsNGEdFlqj3+LD5C5xqdonpJ3+2i4p71vTwjgVajYHs/NZYgvf4nehHZuQMvoHt8E6SwnNgr8nEPat/75u5p92OSNeQFy+xO90s0g8hg25mDfCu3Rp+vaNqjcaMHe0F+ounWmJ+Vn5KYagG5qtWYPx4OHTXcmMxu4RgVY4VLrHYYBneptgHxamdbt1wQDm6nxCcE2Bz6IyOuSlwcqiljuAuTV8uT5veVxNuqurKh38kmLBDkU X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NDDjOIrKHF486WakZ83QTrY4rxet3+Gbc/n92hIX2jTQ53XAHt9SPUlywWa59k4L42qd1e6Lmf6B3Hwf0Wkpec/bmGepcYgpepozBPUVOFmDL3jIoSh3JsIwJ4XIyq+3SXLO8+c+aQEJuCP+sojluTKdc2tGswTGbQQrtdP3DzjDaTeX+S6kuqyqNfX7eLVK5IgFu+zocAdJpj3imDScQ5v3OuUQByTinSq9JUitWOFNLU6N4Rpmuyl+vFnqlV6W6FyfkRRnc00gqYN9j4LyKBuL6TgHtjDSCvglbFlZXUE4t5qXry8rqWyOTR3m/5jNvgXWSB4WBG6Jf5UAqkKvG93bewOd/ZLket58djm+00T1xGRUEEIRyR5XBzqnwjNtwNFD2jNqbsfxWh0GEs0scuXpNIarvguxwkEkQPD+jTcy/hoB6C7CCQZ1eT+m/6hsiibSo6Ctp7J299uHDLeustgkD12Lessh+wgQH1LonB+MP0NXqCmXTh3D/SeuqxLd03QMtbYrzU1ADCCuUm8VzRBYSNQiryGx3iMkpvXCmnXKN+vCmEX4WYAHTX2iHr5gF2EOKkI0w2uJxM96Df/c2fvmLyR23qEQfzwipAzva5U6W648O52X+OJZ4BKS8XNB1R2zFfAZjQWWbNpi3W1zaeA6onbpwtQCjrRtBY5k9CI= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6xXcQbLKF69rsbh7USQYLzIpUU+CqNUX4/TBVT6HUxZ5VcfKjfO6fTiRBtfu?= =?us-ascii?Q?/Tzt83Y4Czc8DqK+kmZFg3m0c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XdcVKTRhBiRNmdDNnWQxVyQul8xMmHZUs7UHiwcKereuLhZgjT+DZjqCl?= =?us-ascii?Q?mRFJsbr2TPMP+La5bQJnjH9zOvnA7dpN68+3/pz7v0P9iRfUje3ANN+o/TEU?= =?us-ascii?Q?UBA28J9Im9vYADQqiJmQlDLHG/IYyXNskJ5l0obfrWk1hQsii6LxPNIiA7L5?= =?us-ascii?Q?aiHMfKxGyy5iXrSQ1CkJZgpKvAjlME1RFekhvrFT2MNcKJIRPsXNBhTO816Q?= =?us-ascii?Q?xDPquRuQUzQKPncqCIkxKvPgnFwL6w7LwHWl+W0OgLn86Jcf9LTIa1b3zHY?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6feced5e-beb0-4a2d-c2e1-08db55f22196 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 09:44:23.8889 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR20MB5706 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Do c906 and c910 have same HPM events ? > > https://github.com/T-head-Semi/openc906/blob/main/C906_RTL_FACTORY/gen_rtl/pmu/rtl/aq_hpcp_top.v > > and > > > https://github.com/T-head-Semi/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/pmu/rtl/ct_hpcp_top.v > > Look different to me - am i missing something ? Yes, they as different, but event ids are compatible. See [1] p.99 and [2] p.73. It seems I forgot extra event index from C906. I will fix in the v2. [1] https://github.com/T-head-Semi/openc910/blob/main/doc/%E7%8E%84%E9%93%81C910%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C.pdf [2] https://github.com/T-head-Semi/openc906/blob/main/doc/%E7%8E%84%E9%93%81C906%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C.pdf