Linux Perf Users
 help / color / mirror / Atom feed
* T-Head C910 perf events: question on stall events for top-down analysis
@ 2026-11-17  6:06 Rutuja Sandbhor
  0 siblings, 0 replies; only message in thread
From: Rutuja Sandbhor @ 2026-11-17  6:06 UTC (permalink / raw)
  To: linux-perf-users@vger.kernel.org

Hi Inochi,
I am Rutuja from C-DAC, India. I am working on top-down analysis (Levels 1 to 3) for the T-Head C910 on a LicheePi 4A (TH1520), using the events from your "perf vendor events riscv: add T-HEAD C9xx JSON file" patch. Thank you for that work. It made perf usable on this board.
My setup: custom kernel 6.6.66, perf 6.12, perf cpuid 0x5b7-0x0-0x0. perf list shows the vendor events, including the L1/LL cache and TLB events, ifu_stalled_cycle, idu_stalled_cycle, lsu_other_stall, lsu_4k_stall and sync_stall.
The C910 has no top-down events, so I want to approximate the top-down categories from these stall and cache events. I could not answer a few questions from T-Head's documentation:
  1. What exactly do idu_stalled_cycle, ifu_stalled_cycle and lsu_other_stall count? Are they cycles where nothing is fetched or dispatched, or something narrower? Can they overlap in the same cycle? In a latency-bound pointer-chase test I see IPC of about 0.11 and idu_stalled_cycle at about 94% of cycles, which suggests it includes cycles waiting on loads, but I would like to confirm.
  2. In the V3 discussion you mentioned a fault in T-Head's documentation and that you would extract the events from the vendor perf driver. Did you find events, especially stall, cache or TLB events, that do not behave as the documentation says?
  3. Do you know how large the skid is on the C910 counter-overflow interrupt, or whether any precise sampling mechanism exists on this core?
Any pointer to documentation, the vendor driver source, or someone who knows the answers would help a lot. I am happy to share my measurements if they are useful.
Thank you,
Rutuja
C-DAC, India

------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
------------------------------------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-17  6:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17  6:06 T-Head C910 perf events: question on stall events for top-down analysis Rutuja Sandbhor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox