Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp297675rwd; Tue, 16 May 2023 00:54:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Md8SAM3OmUBW7jwLeMl2iszHGjjzk0ZDKrTJ248ZEHrM6xvLft54xpNwN9CymunMXat5K X-Received: by 2002:a05:6a20:3c8b:b0:103:e735:d157 with SMTP id b11-20020a056a203c8b00b00103e735d157mr23304713pzj.59.1684223642753; Tue, 16 May 2023 00:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684223642; cv=none; d=google.com; s=arc-20160816; b=W9Z01U8bdf1ycNZgJV/f9qVOKhy3YfyQ53ynFek6pw6QhafkUcEyoYA7U++6pyt8XH P6Iv4hD5HEXPBmSVKh4uBIvQjZvJyLMsFZp7Ob0NCdGr2GrfrMhZVlTZOhhIuQY46rJd QS5MdA3Gpl+sC3w85DDK0JWEldIU+t91t8k8NPoBO3IHULii3oD0p815MeuEIu9NATrK wEHVekA6MgEiygb5rfF11agNohbqODborRgFbCOL7CG7g8W1a+5/ZwF2ivCkZMVLJWse NQIrvzsMOkW50Dhy6tvPEfWcASAfpT/5oBGZMbV2lhq6WAK6/1koJ+Z51BBalAipJF4l FsTg== 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=MFjNdJMYyp7CuQaOvoVqnCB28BDnLblM6oVyHYcfyno=; b=qK5eqQIzQTZUoskoJQ4KjCDK8vi+bHtClgfwM+TP7LgN/7s/mbgWFWdnnqpxpRgtg0 r2oz4MNp0hnLRgejoGV4BAM/Tl54X1LT3Og175YGi5jctvSEg+BjWPNWVgkdtsZ+V+2Y rlRNpE3B46xM4auTtMsBONgtCjlTnUP/nOJfvJUT+84hUOkOr9fhY6x5wjj4MSj/jFob GX2Ft0qUzpPHK9gSPJsYvIzRi8nsCXUXX8w2iQR+EwSEVpbO6qyT//NRCBjlYyURl5Rv 6kP/GZlSg21/qvTkEPw45tWL2ByHq1d2VxwSEtabo5+yZvLehkMIuuA5zqClcGIKiXqX 59Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=TnZzKCBt; 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 x16-20020a17090abc9000b0024e3527e8e9si1249370pjr.9.2023.05.16.00.53.50; Tue, 16 May 2023 00:54:02 -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=TnZzKCBt; 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 S231336AbjEPHc2 (ORCPT + 99 others); Tue, 16 May 2023 03:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbjEPHc1 (ORCPT ); Tue, 16 May 2023 03:32:27 -0400 Received: from forward501c.mail.yandex.net (forward501c.mail.yandex.net [178.154.239.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DA3244B6; Tue, 16 May 2023 00:32:25 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-36.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-36.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:a716:0:640:8b36:0]) by forward501c.mail.yandex.net (Yandex) with ESMTP id 579785EA23; Tue, 16 May 2023 10:32:21 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-36.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id IWV7H95W0Gk0-2hQZJWns; Tue, 16 May 2023 10:32:20 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1684222340; bh=MFjNdJMYyp7CuQaOvoVqnCB28BDnLblM6oVyHYcfyno=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=TnZzKCBtKXwa5wyHOdpB5g/glPTYIxg4OJtlOKqpf4lyTmj+eyPJuPQ3ZIDNyVidW MJvKxuPFmhvV2zgFsaVyHLr11/DCItE+6NhakoZhBl5IqJCv0e5cQ9s6ZNk5ASVZoI lBr2xnRw1xeOl7LLoOP0/cOmLJ9fkmQrG/OoKr6Q= Authentication-Results: mail-nwsmtp-smtp-production-main-36.iva.yp-c.yandex.net; dkim=pass header.i=@maquefel.me Message-ID: Subject: Re: [PATCH 0/2] perf: add T-HEAD C9xx series cpu support From: Nikita Shubin To: Inochi Amaoto , 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 Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org Date: Tue, 16 May 2023 13:32:20 +0300 In-Reply-To: References: 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hello Inochi Amaoto! Thank you for your series! Could you also provide HPM device tree bindings which were used in OpenSBI for testing in cover letter ? On Tue, 2023-05-16 at 10:37 +0800, Inochi Amaoto wrote: > The T-HEAD C9xx series cpu is a series of riscv CPU IP. As this IP > was > proposed before the current riscv event standard. It has a non- > standard > events encoding for perf events and unimplemented MARCH and MIMP CSR. > This patch add these events to support C9xx cpus. >=20 > AFAIK, at least the following chips used C9xx cpu. >=20 > * Allwinner D1 (C906) > * T-HEAD th1520 (C910) > * Sophgo mango (C920) >=20 > Inochi Amaoto (2): > =C2=A0 perf tools riscv: Allow get_cpuid return empty MARCH and MIMP > =C2=A0 perf vendor events riscv: add T-HEAD C9xx JSON file >=20 > =C2=A0tools/perf/arch/riscv/util/header.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 7 +- > =C2=A0tools/perf/pmu-events/arch/riscv/mapfile.csv=C2=A0 |=C2=A0 1 + > =C2=A0.../arch/riscv/t-head/c9xx/cache.json=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 | 67 > ++++++++++++++++++ > =C2=A0.../arch/riscv/t-head/c9xx/firmware.json=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 | 68 > +++++++++++++++++++ > =C2=A0.../arch/riscv/t-head/c9xx/instruction.json=C2=A0=C2=A0 | 22 ++++++ > =C2=A0.../arch/riscv/t-head/c9xx/microarch.json=C2=A0=C2=A0=C2=A0=C2=A0 |= 42 ++++++++++++ > =C2=A06 files changed, 201 insertions(+), 6 deletions(-) > =C2=A0create mode 100644 tools/perf/pmu-events/arch/riscv/t- > head/c9xx/cache.json > =C2=A0create mode 100644 tools/perf/pmu-events/arch/riscv/t- > head/c9xx/firmware.json > =C2=A0create mode 100644 tools/perf/pmu-events/arch/riscv/t- > head/c9xx/instruction.json > =C2=A0create mode 100644 tools/perf/pmu-events/arch/riscv/t- > head/c9xx/microarch.json >=20 > -- > 2.40.1 >=20 >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv