Skip to content

Support new RISC-V ISA extension properties

Conor Dooley u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2riscv: don't read riscv, isa in the riscv cpu's get_desc()arch/riscv/cpu/cpu.c drivers/cpu/riscv_cpu.c+11 -91 reply
2/2riscv: support extension probing using riscv, isa-extensionsarch/riscv/cpu/cpu.c+35 -211 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLeo Yu-Chi Liang
1/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH v1 0/2] Support new RISC-V ISA extension properties

From: Conor Dooley <[email protected]>

This would have just been a single patch (the second one), but as I reported a while back there's a problem with extension detection when the ISA string exceeds 32 characters:
https://lore.kernel.org/u-boot/20240221-daycare-reliably-8ec86f95fe71@spud/
The first patch here fixes what I see as a bit of a misuse of cpu_get_desc() in supports_extension() as a preparatory patch for adding the new properties. Or more accurately, new property, as U-Boot barely makes use of extension detection as-is in s-mode and only one of the two new properties is even needed.

Maybe it's not a misuse, but I left a comment under the --- line on that patch about the before/after for the RISC-V cpu's cpu_get_desc() and maybe my approach here would not be appreciated.

Cheers,
Conor.

CC Rick Chen <[email protected]>
CC Tom Rini <[email protected]>
CC Conor Dooley <[email protected]>
CC Heinrich Schuchardt <[email protected]>
CC [email protected] (open list)

Conor Dooley (2):
riscv: don't read riscv,isa in the riscv cpu's get_desc()
riscv: support extension probing using riscv,isa-extensions

 arch/riscv/cpu/cpu.c    | 60 ++++++++++++++++++++++++++---------------
 drivers/cpu/riscv_cpu.c |  8 +++---
 2 files changed, 42 insertions(+), 26 deletions(-)
Signature · 1 line
2.43.0