[PATCH 0/5] hw/riscv: more FDT cleanups (PLIC)

Daniel Henrique Barboza posted 5 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260616235939.1358663-1-daniel.barboza@oss.qualcomm.com
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Chao Liu <chao.liu.zevorn@gmail.com>
hw/riscv/fdt-common.c         | 30 +++++++++++++++++++++
hw/riscv/sifive_u.c           | 42 +++++++++--------------------
hw/riscv/virt.c               | 51 ++++++++++++-----------------------
include/hw/riscv/fdt-common.h |  5 ++++
include/hw/riscv/sifive_u.h   |  2 ++
5 files changed, 67 insertions(+), 63 deletions(-)
[PATCH 0/5] hw/riscv: more FDT cleanups (PLIC)
Posted by Daniel Henrique Barboza 1 month, 1 week ago
Hello,

Here is the follow-up I talked about in the first FDT series that was
just merged [1].  This short series handles just the PLIC controller
FDT.  This time there are 2 FDT bug fixes in the mix (patches 3 and 4)
that we were lucky to find.

Expected changes after this series are related to patches 3 and 4 only:

 $ diff virt.dts virt_patch.dts
 189c189
 <               rng-seed = (...) 
 ---
 >               rng-seed = (...) 
 285c285
 <               plic@c000000 {
 ---
 >               interrupt-controller@c000000 {
 297c297
 <               plic@c600000 {
 ---
 >               interrupt-controller@c600000 {

$ diff sifive.dts sifive_patch.dts
 >                       #address-cells = <0x00>;


Patches based on master.

[1] https://lore.kernel.org/qemu-devel/20260615203734.954428-1-daniel.barboza@oss.qualcomm.com/


Daniel Henrique Barboza (5):
  hw/riscv/sifive_u.c: remove unneeded qemu_fdt_get_phandle() call
  hw/riscv/sifive_u.c: use intc_phandle in plic creation
  hw/riscv/sifive_u: add #address-cells in PLIC FDT
  hw/riscv/virt.c: change 'plic' nodename to 'interrupt-controller'
  hw/riscv: add create_fdt_plic() helper

 hw/riscv/fdt-common.c         | 30 +++++++++++++++++++++
 hw/riscv/sifive_u.c           | 42 +++++++++--------------------
 hw/riscv/virt.c               | 51 ++++++++++++-----------------------
 include/hw/riscv/fdt-common.h |  5 ++++
 include/hw/riscv/sifive_u.h   |  2 ++
 5 files changed, 67 insertions(+), 63 deletions(-)

-- 
2.43.0
Re: [PATCH 0/5] hw/riscv: more FDT cleanups (PLIC)
Posted by Alistair Francis 1 month ago
On Wed, Jun 17, 2026 at 10:00 AM Daniel Henrique Barboza
<daniel.barboza@oss.qualcomm.com> wrote:
>
> Hello,
>
> Here is the follow-up I talked about in the first FDT series that was
> just merged [1].  This short series handles just the PLIC controller
> FDT.  This time there are 2 FDT bug fixes in the mix (patches 3 and 4)
> that we were lucky to find.
>
> Expected changes after this series are related to patches 3 and 4 only:
>
>  $ diff virt.dts virt_patch.dts
>  189c189
>  <               rng-seed = (...)
>  ---
>  >               rng-seed = (...)
>  285c285
>  <               plic@c000000 {
>  ---
>  >               interrupt-controller@c000000 {
>  297c297
>  <               plic@c600000 {
>  ---
>  >               interrupt-controller@c600000 {
>
> $ diff sifive.dts sifive_patch.dts
>  >                       #address-cells = <0x00>;
>
>
> Patches based on master.
>
> [1] https://lore.kernel.org/qemu-devel/20260615203734.954428-1-daniel.barboza@oss.qualcomm.com/
>
>
> Daniel Henrique Barboza (5):
>   hw/riscv/sifive_u.c: remove unneeded qemu_fdt_get_phandle() call
>   hw/riscv/sifive_u.c: use intc_phandle in plic creation
>   hw/riscv/sifive_u: add #address-cells in PLIC FDT
>   hw/riscv/virt.c: change 'plic' nodename to 'interrupt-controller'
>   hw/riscv: add create_fdt_plic() helper

Thanks!

Applied to riscv-to-apply.next

Alistair

>
>  hw/riscv/fdt-common.c         | 30 +++++++++++++++++++++
>  hw/riscv/sifive_u.c           | 42 +++++++++--------------------
>  hw/riscv/virt.c               | 51 ++++++++++++-----------------------
>  include/hw/riscv/fdt-common.h |  5 ++++
>  include/hw/riscv/sifive_u.h   |  2 ++
>  5 files changed, 67 insertions(+), 63 deletions(-)
>
> --
> 2.43.0
>
>