Skip to content

QEMU: Fix RISC-V virt & spike machines' dtbs

Conor Dooley linux-riscv qemu-devel qemu-riscv 3 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesApplied
  2. v24 patches 4 repliesSuperseded
  3. v15 patches 10 repliesSuperseded

Changes in v3 from the cover letter

- move the syscon subnodes back to the top level instead of into the syscon node

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4hw/riscv: virt: fix uart node namehw/riscv/virt.c+1 -10 replies
2/4hw/riscv: virt: fix the plic's address cellshw/riscv/virt.c include/hw/riscv/virt.h+3 -00 replies
3/4hw/riscv: virt: fix syscon subnode pathshw/riscv/virt.c+2 -21 reply
4/4hw/core: fix platform bus node namehw/core/sysbus-fdt.c+1 -10 replies

Reviews trailers per patch

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

PatchAlistair Francis
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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/4] QEMU: Fix RISC-V virt & spike machines' dtbs

From: Conor Dooley <[email protected]>

The device trees produced automatically for the virt and spike machines fail dt-validate on several grounds. Some of these need to be fixed in the linux kernel's dt-bindings, but others are caused by bugs in QEMU.

I mostly opted for what appeared to be the smallest change that would fix the warnings, partly due to my inexperience with the QEMU codebase. A "sister" patchset for the kernel will clear the remaining warnings. Thanks to Rob Herring for reporting these issues [1],
Conor.

Changes since v2:
- move the syscon subnodes back to the top level instead of into the syscon node
Changes since v1:
- drop patch 1

To reproduce the errors:
./build/qemu-system-riscv64 -nographic -machine virt,dumpdtb=qemu.dtb
dt-validate -p /path/to/linux/kernel/Documentation/devicetree/bindings/processed-schema.json qemu.dtb (The processed schema needs to be generated first)

0 - https://lore.kernel.org/linux-riscv/[email protected]/
1 - https://lore.kernel.org/linux-riscv/[email protected]/

Conor Dooley (4):
hw/riscv: virt: fix uart node name
hw/riscv: virt: fix the plic's address cells
hw/riscv: virt: fix syscon subnode paths
hw/core: fix platform bus node name

 hw/core/sysbus-fdt.c    | 2 +-
 hw/riscv/virt.c         | 8 +++++---
 include/hw/riscv/virt.h | 1 +
 3 files changed, 7 insertions(+), 4 deletions(-)

base-commit: 2480f3bbd03814b0651a1f74959f5c6631ee5819

Signature · 1 line
2.37.1