linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Common csr_read_num() and csr_write_num() for RISC-V
@ 2025-08-15 16:14 Anup Patel
  2025-08-15 16:14 ` [PATCH 1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling Anup Patel
  2025-08-15 16:14 ` [PATCH 2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions Anup Patel
  0 siblings, 2 replies; 13+ messages in thread
From: Anup Patel @ 2025-08-15 16:14 UTC (permalink / raw)
  To: Sunil V L, Rafael J . Wysocki
  Cc: Palmer Dabbelt, Paul Walmsley, Alexandre Ghiti, Len Brown,
	Atish Patra, Andrew Jones, Anup Patel, Will Deacon, Mark Rutland,
	linux-acpi, linux-riscv, linux-kernel, Anup Patel

Some of the RISC-V drivers (such as RISC-V PMU and ACPI CPPC) need to
access CSR based on CSR number discovered from somewhere. Add common
RISC-V csr_read_num() and csr_write_num() functions under arch/riscv
for such drivers.

These patches can be found in the riscv_csr_read_num_v1 branch at:
https://github.com/avpatel/linux.git

Anup Patel (2):
  ACPI: RISC-V: Fix FFH_CPPC_CSR error handling
  RISC-V: Add common csr_read_num() and csr_write_num() functions

 arch/riscv/include/asm/csr.h |   3 +
 arch/riscv/kernel/Makefile   |   1 +
 arch/riscv/kernel/csr.c      | 177 +++++++++++++++++++++++++++++++++++
 drivers/acpi/riscv/cppc.c    |  21 ++---
 drivers/perf/riscv_pmu.c     |  43 +--------
 5 files changed, 191 insertions(+), 54 deletions(-)
 create mode 100644 arch/riscv/kernel/csr.c

-- 
2.43.0


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

end of thread, other threads:[~2025-08-18  4:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 16:14 [PATCH 0/2] Common csr_read_num() and csr_write_num() for RISC-V Anup Patel
2025-08-15 16:14 ` [PATCH 1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling Anup Patel
2025-08-15 19:36   ` Andrew Jones
2025-08-16  7:30   ` Troy Mitchell
2025-08-18  4:07   ` Sunil V L
2025-08-15 16:14 ` [PATCH 2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions Anup Patel
2025-08-15 20:02   ` Andrew Jones
2025-08-16  8:30     ` Anup Patel
2025-08-16  4:24   ` Vivian Wang
2025-08-16  5:59     ` Vivian Wang
2025-08-16  8:42     ` Anup Patel
2025-08-16 11:26       ` Vivian Wang
2025-08-18  4:09   ` Sunil V L

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).