Skip to content

Support for 64bit hartid on RV64 platforms

Sunil V L linux-efi linux-riscv lkml stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyIn review
  2. v25 patches 5 repliesSuperseded
  3. v15 patches 11 repliesSuperseded

Changes in v3 from the cover letter

1) Modified commit messages to mention RV64 and add RB tags.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5riscv: cpu_ops_sbi: Add 64bit hartid support on RV64arch/riscv/kernel/cpu_ops_sbi.c+2 -20 replies
2/5riscv: spinwait: Fix hartid variable typearch/riscv/kernel/cpu_ops_spinwait.c+2 -20 replies
3/5riscv: smp: Add 64bit hartid support on RV64arch/riscv/include/asm/smp.h arch/riscv/kernel/smp.c+4 -40 replies
4/5riscv: cpu: Add 64bit hartid support on RV64arch/riscv/include/asm/processor.h arch/riscv/kernel/cpu.c arch/riscv/kernel/cpufeature.c +4 more+42 -320 replies
5/5riscv/efi_stub: Add 64bit boot-hartid support on RV64drivers/firmware/efi/libstub/riscv-stub.c+10 -30 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchHeinrich SchuchardtAtish Patra
1/5R-b R-b
2/5R-b
3/5R-b R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/5] Support for 64bit hartid on RV64 platforms

The hartid can be a 64bit value on RV64 platforms. This series updates the code so that 64bit hartid can be supported on RV64 platforms.

The series has been tested on both RV32 and RV64 qemu platforms.

Changes since V2:
1) Modified commit messages to mention RV64 and add RB tags.

Changes since V1:
1) Updated RB tag for PATCH 1 and PATCH3
2) Type Casting NR_CPUS before comparing with hartid in PATCH 2
3) Changed commit message of PATCH 2 to provide details about the bug it is fixing.
4) Updated PATCH 5 for unaligned 64bit read

Sunil V L (5):
riscv: cpu_ops_sbi: Add 64bit hartid support on RV64
riscv: spinwait: Fix hartid variable type
riscv: smp: Add 64bit hartid support on RV64
riscv: cpu: Add 64bit hartid support on RV64 riscv/efi_stub: Add 64bit boot-hartid support on RV64

 arch/riscv/include/asm/processor.h        |  4 ++--
 arch/riscv/include/asm/smp.h              |  4 ++--
 arch/riscv/kernel/cpu.c                   | 26 +++++++++++++----------
 arch/riscv/kernel/cpu_ops_sbi.c           |  4 ++--
 arch/riscv/kernel/cpu_ops_spinwait.c      |  4 ++--
 arch/riscv/kernel/cpufeature.c            |  6 ++++--
 arch/riscv/kernel/smp.c                   |  4 ++--
 arch/riscv/kernel/smpboot.c               |  9 ++++----
 drivers/clocksource/timer-riscv.c         | 15 +++++++------
 drivers/firmware/efi/libstub/riscv-stub.c | 13 +++++++++---
 drivers/irqchip/irq-riscv-intc.c          |  7 +++---
 drivers/irqchip/irq-sifive-plic.c         |  7 +++---
 12 files changed, 60 insertions(+), 43 deletions(-)
Signature · 1 line
2.25.1