linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/1] Provide the frequency of time CSR via hwprobe
@ 2024-07-02  3:37 Yunhui Cui
  2024-07-02  3:37 ` [PATCH v4] RISC-V: " Yunhui Cui
  0 siblings, 1 reply; 5+ messages in thread
From: Yunhui Cui @ 2024-07-02  3:37 UTC (permalink / raw)
  To: punit.agrawal, sunilvl, jesse, jrtc27, corbet, paul.walmsley,
	palmer, aou, cleger, evan, conor.dooley, cuiyunhui, costa.shul,
	andy.chiu, samitolvanen, linux-doc, linux-riscv, linux-kernel

Some applications (e.g., DPDK) use the time counter for basic performance
analysis as well as fine grained time-keeping. So we need export the time CSR
frequency to userspace by hwporbe syscall.

Changes:
v1->v2:
Modify "mtime" to "time CSR".

v2->v3:
Rebase "RISCV_HWPROBE_MAX_KEY 7" to "RISCV_HWPROBE_MAX_KEY 8" from
Jesse.

v3->v4:
1. Update the commit log from Punit.

2. Because RISCV_HWPROBE_MAX_KEY in
https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git/tree/arch/riscv/include/asm/hwprobe.h?h=for-next is 6,
so keep RISCV_HWPROBE_MAX_KEY to 7

Palmer Dabbelt (1):
  RISC-V: Provide the frequency of time CSR via hwprobe

 Documentation/arch/riscv/hwprobe.rst  | 2 ++
 arch/riscv/include/asm/hwprobe.h      | 2 +-
 arch/riscv/include/uapi/asm/hwprobe.h | 1 +
 arch/riscv/kernel/sys_hwprobe.c       | 5 +++++
 4 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-25 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02  3:37 [PATCH v4 0/1] Provide the frequency of time CSR via hwprobe Yunhui Cui
2024-07-02  3:37 ` [PATCH v4] RISC-V: " Yunhui Cui
2024-07-10  9:39   ` Punit Agrawal
2024-07-22 21:05     ` Punit Agrawal
2024-07-25 13:20   ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).