qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] QEMU: Fix RISC-V virt & spike machines' dtbs
@ 2022-08-10 18:46 Conor Dooley
  2022-08-10 18:46 ` [PATCH v3 1/4] hw/riscv: virt: fix uart node name Conor Dooley
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Conor Dooley @ 2022-08-10 18:46 UTC (permalink / raw)
  To: Palmer Dabbelt, Alistair Francis, Bin Meng
  Cc: Rob Herring, Conor Dooley, Jessica Clarke, qemu-riscv, qemu-devel,
	linux-riscv

From: Conor Dooley <conor.dooley@microchip.com>

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/20220805162844.1554247-1-mail@conchuod.ie/
1 - https://lore.kernel.org/linux-riscv/20220803170552.GA2250266-robh@kernel.org/

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
-- 
2.37.1



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

end of thread, other threads:[~2022-08-22  3:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-10 18:46 [PATCH v3 0/4] QEMU: Fix RISC-V virt & spike machines' dtbs Conor Dooley
2022-08-10 18:46 ` [PATCH v3 1/4] hw/riscv: virt: fix uart node name Conor Dooley
2022-08-10 18:46 ` [PATCH v3 2/4] hw/riscv: virt: fix the plic's address cells Conor Dooley
2022-08-10 18:46 ` [PATCH v3 3/4] hw/riscv: virt: fix syscon subnode paths Conor Dooley
2022-08-14 21:55   ` Alistair Francis
2022-08-10 18:46 ` [PATCH v3 4/4] hw/core: fix platform bus node name Conor Dooley
2022-08-22  3:34 ` [PATCH v3 0/4] QEMU: Fix RISC-V virt & spike machines' dtbs Alistair Francis

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