Common csr_read_num() and csr_write_num() for RISC-V
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest1 patch 0 repliesNew
- v71 patch 6 repliesSuperseded
- v61 patch 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 1 patch | 4 replies | Superseded |
Changes in v8 from the cover letter
- Rebased on Linux-7.4-rc2
- Preserve the CSR range check in riscv_pmu_ctr_read_csr().
- Added #if CONFIG_32BIT for cycleH CSR in csr_read_num().
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | RISC-V: Add common csr_read_num() and csr_write_num() functionsarch/ arch/ arch/ +2 more | +188 | 0 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Sunil V L | Andrew Jones | Atish Patra | Nutty Liu |
|---|---|---|---|---|
| 1/1 | R-b | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v8 0/1] Common csr_read_num() and csr_write_num() for RISC-V
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_v8 branch at:
https://github.com/avpatel/linux.git
Changes since v7:
- Rebased on Linux-7.4-rc2
- Preserve the CSR range check in riscv_pmu_ctr_read_csr().
- Added #if CONFIG_32BIT for cycleH CSR in csr_read_num().
Changes since v6:
- Rebased on Linux-7.4-rc1
Changes since v5:
- Rebased on Linux-7.2-rc5
Changes since v4:
- Rebased on Linux-6.19-rc6
Changes since v3:
- Rebased on Linux-6.18-rc7
- Updated commit decription of PATCH1 to reflect the fact that we are removing sanity checks on CSR number which are already taken care by csr_read_num() and csr_write_num().
Changes since v2:
- Rebased on Linux-6.18-rc1
- Added reviewed-by tags
Changes since v1:
- Make "out_err" mandatory for csr_read_num() and csr_write_num() in PATCH2 as suggested by Sunil and Drew. This also helps further simplify csr_read_num() and csr_write_num().
Anup Patel (1):
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 | 167 +++++++++++++++++++++++++++++++++++ drivers/acpi/riscv/cppc.c | 17 ++-- drivers/perf/riscv_pmu.c | 52 +++-------- 5 files changed, 188 insertions(+), 52 deletions(-) create mode 100644 arch/riscv/kernel/csr.c
Signature · 1 line
2.43.0