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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0383C77B7F for ; Tue, 16 May 2023 12:06:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbjEPMGs (ORCPT ); Tue, 16 May 2023 08:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232997AbjEPMGp (ORCPT ); Tue, 16 May 2023 08:06:45 -0400 X-Greylist: delayed 16930 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 16 May 2023 05:06:42 PDT Received: from forward502a.mail.yandex.net (forward502a.mail.yandex.net [IPv6:2a02:6b8:c0e:500:1:45:d181:d502]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D5A444AD; Tue, 16 May 2023 05:06:42 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net [IPv6:2a02:6b8:c18:58f:0:640:3768:0]) by forward502a.mail.yandex.net (Yandex) with ESMTP id 226C25EB96; Tue, 16 May 2023 15:06:40 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id b6aGXvFDdKo0-Qd5YAZVi; Tue, 16 May 2023 15:06:39 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1684238799; bh=/a6pvyDAWlMZ0z7v7y2vBNHYN4rbuFjpKaEnziP4leI=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=g5DXrY5seHHIRvbxU18DdWqOc5we2o1Y9nxHH41nZKWf8C5lfFVF/OERoFLIVWtp+ jpVrB61ha4mlM1/4aWky+QYKvwXLHSAkat5ud5IOfqTRY9JLFOgwl5a4C88fUeVvYE EBB8uQsTaJoFSlSIRvq9VeLtDSGLwIDKLTzxOlEY= Authentication-Results: mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me Message-ID: <4950f67bf989a7f5eba462c44d6bdbffb34485d1.camel@maquefel.me> Subject: Re: [PATCH 2/2] perf vendor events riscv: add T-HEAD C9xx JSON file From: Nikita Shubin To: Inochi Amaoto Cc: 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 , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org Date: Tue, 16 May 2023 18:06:39 +0300 In-Reply-To: References: <38eaec6b495786b048f78be08470f7c770793d7b.camel@maquefel.me> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org On Tue, 2023-05-16 at 17:45 +0800, Inochi Amaoto wrote: > > Do c906 and c910 have same HPM events ? > >=20 > > https://github.com/T-head-Semi/openc906/blob/main/C906_RTL_FACTORY/gen_= rtl/pmu/rtl/aq_hpcp_top.v > >=20 > > and > >=20 > >=20 > > https://github.com/T-head-Semi/openc910/blob/main/C910_RTL_FACTORY/gen_= rtl/pmu/rtl/ct_hpcp_top.v > >=20 > > Look different to me - am i missing something ? >=20 > Yes, they as different, but event ids are compatible. See [1] p.99 > and [2] p.73. >=20 > It seems I forgot extra event index from C906. I will fix in the v2. >=20 > [1] > https://github.com/T-head-Semi/openc910/blob/main/doc/%E7%8E%84%E9%93%81C= 910%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%81C= 906%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C.pdf They are not the same - they are different in many ways. And c906 list seems more complete to me. I think you should drop wildcard (it shouldn't be used anyway) then and name it c906. "0x5b7-0x0-0x0,v1,t-head/c906,core" would match both c906 and c910. >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv