ppc/pnv: activate the "dumpdtb" option on the powernv machine
PATCH 1/1 ppc/pnv: activate the "dumpdtb" option on the powernv machine
This is a good way to debug the DT creation for current PowerNV machines and new ones to come.
Signed-off-by Cédric Le Goater <[email protected]>
--- hw/ppc/pnv.c | 2 ++ 1 file changed, 2 insertions(+)
hw/ppc/pnv.c +2 -0
@@ -23,6 +23,7 @@#include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "sysemu/cpus.h" +#include "sysemu/device_tree.h" #include "hw/hw.h" #include "target/ppc/cpu.h" #include "qemu/log.h"
@@ -554,6 +555,7 @@ static void pnv_reset(void)/* Pack resulting tree */ _FDT ((fdt_pack (fdt))); +qemu_fdt_dumpdtb (fdt,fdt_totalsize (fdt));cpu_physical_memory_write (PNV_FDT_ADDR , fdt,fdt_totalsize (fdt)); }
Signature · 1 line
2.21.0
Quoted 5 lines · On Thu, 6 Jun 2019 19:47:32 +0200 Cédric Le Goater <[email protected]> wrote:
This is a good way to debug the DT creation for current PowerNV machines and new ones to come.
Signed-off-by Cédric Le Goater <[email protected]>---
Reviewed-by Greg Kurz <[email protected]>
Quoted 23 lines
hw/ppc/pnv.c | 2 ++ 1 file changed, 2 insertions(+)hw/ppc/pnv.c +2
-0@@ -23,6 +23,7 @@#include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "sysemu/cpus.h" +#include "sysemu/device_tree.h" #include "hw/hw.h" #include "target/ppc/cpu.h" #include "qemu/log.h" @@ -554,6 +555,7 @@ static void pnv_reset(void)/* Pack resulting tree */ _FDT ((fdt_pack (fdt))); +qemu_fdt_dumpdtb (fdt,fdt_totalsize (fdt));cpu_physical_memory_write (PNV_FDT_ADDR , fdt,fdt_totalsize (fdt)); }
David Gibson
AppliedQuoted 4 lines · Cédric Le Goater
This is a good way to debug the DT creation for current PowerNV machines and new ones to come.
Signed-off-by Cédric Le Goater <[email protected]>
Applied, thanks.
Quoted 24 lines
--- hw/ppc/pnv.c | 2 ++ 1 file changed, 2 insertions(+)hw/ppc/pnv.c +2
-0@@ -23,6 +23,7 @@#include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "sysemu/cpus.h" +#include "sysemu/device_tree.h" #include "hw/hw.h" #include "target/ppc/cpu.h" #include "qemu/log.h" @@ -554,6 +555,7 @@ static void pnv_reset(void)/* Pack resulting tree */ _FDT ((fdt_pack (fdt))); +qemu_fdt_dumpdtb (fdt,fdt_totalsize (fdt));cpu_physical_memory_write (PNV_FDT_ADDR , fdt,fdt_totalsize (fdt)); }
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson