* [Qemu-devel] [PATCH] ppc/pnv: activate the "dumpdtb" option on the powernv machine
@ 2019-06-06 17:47 Cédric Le Goater
2019-06-06 18:53 ` Greg Kurz
2019-06-07 0:15 ` David Gibson
0 siblings, 2 replies; 3+ messages in thread
From: Cédric Le Goater @ 2019-06-06 17:47 UTC (permalink / raw)
To: David Gibson; +Cc: Cédric Le Goater, qemu-ppc, qemu-devel, Greg Kurz
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 <clg@kaod.org>
---
hw/ppc/pnv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index 046f0a83c8e5..ed6892466793 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -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));
}
--
2.21.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] ppc/pnv: activate the "dumpdtb" option on the powernv machine
2019-06-06 17:47 [Qemu-devel] [PATCH] ppc/pnv: activate the "dumpdtb" option on the powernv machine Cédric Le Goater
@ 2019-06-06 18:53 ` Greg Kurz
2019-06-07 0:15 ` David Gibson
1 sibling, 0 replies; 3+ messages in thread
From: Greg Kurz @ 2019-06-06 18:53 UTC (permalink / raw)
To: Cédric Le Goater; +Cc: qemu-ppc, qemu-devel, David Gibson
On Thu, 6 Jun 2019 19:47:32 +0200
Cédric Le Goater <clg@kaod.org> 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 <clg@kaod.org>
> ---
Reviewed-by: Greg Kurz <groug@kaod.org>
> hw/ppc/pnv.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
> index 046f0a83c8e5..ed6892466793 100644
> --- a/hw/ppc/pnv.c
> +++ b/hw/ppc/pnv.c
> @@ -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));
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] ppc/pnv: activate the "dumpdtb" option on the powernv machine
2019-06-06 17:47 [Qemu-devel] [PATCH] ppc/pnv: activate the "dumpdtb" option on the powernv machine Cédric Le Goater
2019-06-06 18:53 ` Greg Kurz
@ 2019-06-07 0:15 ` David Gibson
1 sibling, 0 replies; 3+ messages in thread
From: David Gibson @ 2019-06-07 0:15 UTC (permalink / raw)
To: Cédric Le Goater; +Cc: qemu-ppc, qemu-devel, Greg Kurz
[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]
On Thu, Jun 06, 2019 at 07:47:32PM +0200, Cédric Le Goater 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 <clg@kaod.org>
Applied, thanks.
> ---
> hw/ppc/pnv.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
> index 046f0a83c8e5..ed6892466793 100644
> --- a/hw/ppc/pnv.c
> +++ b/hw/ppc/pnv.c
> @@ -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 | 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-07 0:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-06 17:47 [Qemu-devel] [PATCH] ppc/pnv: activate the "dumpdtb" option on the powernv machine Cédric Le Goater
2019-06-06 18:53 ` Greg Kurz
2019-06-07 0:15 ` David Gibson
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).