mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: fangyu.yu@linux.alibaba.com
To: guoren@kernel.org
Cc: acme@kernel.org, adrian.hunter@intel.com, alex@ghiti.fr,
	alexander.shishkin@linux.intel.com, aou@eecs.berkeley.edu,
	conor@kernel.org, cp0613@linux.alibaba.com, irogers@google.com,
	james.clark@linaro.org, jolsa@kernel.org, krzk@kernel.org,
	linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-perf-users@vger.kernel.org,
	linux-riscv@lists.infradead.org, mark.rutland@arm.com,
	mingo@redhat.com, namhyung@kernel.org, palmer@dabbelt.com,
	peterz@infradead.org, pjw@kernel.org,
	Fangyu Yu <fangyu.yu@linux.alibaba.com>
Subject: Re: [PATCH v3] perf vendor events riscv: Add C-SKY C930 JSON file
Date: Thu,  5 Nov 2026 21:54:35 +0800	[thread overview]
Message-ID: <20261105135435.16251-1-fangyu.yu@linux.alibaba.com> (raw)
In-Reply-To: <20261105-csky_c930_pmu-v3-1-3f33e6b3d259@kernel.org>

>From: Chen Pei <cp0613@linux.alibaba.com>
>
>Add PMU event descriptions for the C-SKY C930 core so perf can list and
>select its hardware events by name instead of requiring raw event codes.
>The events cover core counters, branch prediction, instruction fetch,
>integer execution, load/store operations, vector and floating-point
>execution, caches and TLBs.
>
>Add a mapfile.csv entry matching mvendorid 0x5b7 and marchid
>0x8000000009201600, allowing any mimpid, to select the C930 event table.
>
>For example:
>
>perf stat -e cache.l1d.rd.miss,tlb.l1d.miss ./workload
>

Tested on C930 core. `perf list` shows the C930 events, and
`perf stat -e <event list>` works as expected on C930.

Tested-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>

>Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
>Signed-off-by: GUO Ren (XuanTie) <guoren@kernel.org>
>---
>XuanTie is the RISC-V processor brand of C-SKY Microsystems Co., Ltd.
>[2]. JEDEC JEP106AB lists C-SKY Microsystems Co., Ltd. as the manufacturer
>associated with ID 0x5b7 [3]. Accordingly, use C-SKY in the patch title
>and csky/ as the vendor directory.
>
>This revision is limited to the PMU event descriptions from v2 3/4.
>perf selects the event table by matching mvendorid, marchid and mimpid,
>so the DT binding additions are not required for this patch. The
>derived metrics patch is also omitted from this revision.
>
>Changes in v3:
> - Repost only the PMU event patch. Omit the DT binding patches
>   (v2 1/4 and 2/4) and the derived metrics patch (v2 4/4).
> - Rename the vendor directory from xuantie/ to csky/ and update the
>   mapfile.csv entry accordingly.
> - Change the patch title to "Add C-SKY C930 PMU events".
> - Drop the topdown.* events, uop.spec, uop.ret, ieu.de.inst_cnt,
>   ieu.rn.inst_cnt and vfpu_ex1_rep.
>
>Changes in v2:
>v2: https://lore.kernel.org/linux-riscv/20251121063439.2545-1-cp0613@linux.alibaba.com/
> - Vendor name update.
>
>Previous versions:
>v1: https://lore.kernel.org/linux-riscv/20250910121121.7203-1-cp0613@linux.alibaba.com/
>
>References:
>[1] https://www.xrvm.com/product/xuantie/C930
>[2] https://www.xrvm.com/declaration
>[3] https://www.jedec.org/standards-documents/docs/jep-106ab

      reply	other threads:[~2026-11-05 13:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05  6:31 GUO Ren (XuanTie)
2026-11-05 13:54 ` fangyu.yu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261105135435.16251-1-fangyu.yu@linux.alibaba.com \
    --to=fangyu.yu@linux.alibaba.com \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alex@ghiti.fr \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor@kernel.org \
    --cc=cp0613@linux.alibaba.com \
    --cc=guoren@kernel.org \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-csky@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=palmer@dabbelt.com \
    --cc=peterz@infradead.org \
    --cc=pjw@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®