Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp592902rwd; Tue, 16 May 2023 05:32:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ63BGlMkxDoq8uU8pDARoEVtdfCTxSka25p3jknH6/b+SvtX39hoaA6gBka801nWlz2RFJo X-Received: by 2002:a17:902:d2c9:b0:1ac:61ad:d6bd with SMTP id n9-20020a170902d2c900b001ac61add6bdmr39946446plc.65.1684240326892; Tue, 16 May 2023 05:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684240326; cv=none; d=google.com; s=arc-20160816; b=EgU62Gpzs4WiO2MHSAKBmT/oxVxgGLpbV6WujOh/QbpDKMxZ0qB8YNrqJJZv8I8ok+ LtbcB3Q+/ct0+jyWgATx+WD2aqSImByXU1LMbbH151QLXd9ZOEXCPlkso3T9PrQfW76H +B3o7uhP4JPfN8+svCgplf75WDo2M4OEHHqUwKGN8zgBeZgIhu/B1Zws/uZMdR9zfqpR u6W/fNNWmSy0aTloo9rYS2dgZX2oEz//m++sqeZdZt8VK7dmrBfnT+S8Jo/L+q3eC9dj J8Nvp58DFd8jN+2Ixp4lSERHazbxIo0x4XkWrw6clQHQ7TAUL2smK/O68ozkX+H3Wwmq +24Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=/a6pvyDAWlMZ0z7v7y2vBNHYN4rbuFjpKaEnziP4leI=; b=zcjw6Ae4h0xTyZUklro3MSdUnWouiutu0nKiJGbxr7NtiAdqiPZ/vwc/WVzB7hOuQs /nWerF3rRpnCUPLZ0dTcXR5PH/PSne73A6cEUJYC1qxW1UbsGEjMypOM9A5jZgqZoREn gfBNENL5FQ4TgC5Ba8GNF8N+vLVw94pzD8vh8H8YamCP/xMqtU1ecqEB3r3KzUbcJtRl jQJnbF3a8nC9qtVtwjOhVe08ZliKqt7ubbTAdSTpSWJ4Xjub4iCKWbAvnFuyR8k0EB5I J78TcvDheyHS5m2+4sp5LEjwUr7ZeRmdWK0Gcuv678mWCOSxaBaF/V3BHk1GQ3+cWOx9 jvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=g5DXrY5s; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h22-20020a170902f7d600b001ae0691dff4si6539165plw.630.2023.05.16.05.31.53; Tue, 16 May 2023 05:32:06 -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=@maquefel.me header.s=mail header.b=g5DXrY5s; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232965AbjEPMGs (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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