From patchwork Thu Jun 6 17:47:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 10980249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 24C5C14E5 for ; Thu, 6 Jun 2019 18:20:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 163D8285D6 for ; Thu, 6 Jun 2019 18:20:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A4002870F; Thu, 6 Jun 2019 18:20:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ADA14285D6 for ; Thu, 6 Jun 2019 18:20:48 +0000 (UTC) Received: from localhost ([127.0.0.1]:36483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYx0K-0003vG-0u for patchwork-qemu-devel@patchwork.kernel.org; Thu, 06 Jun 2019 14:20:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYwUL-0004nE-Gl for qemu-devel@nongnu.org; Thu, 06 Jun 2019 13:47:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYwUJ-0004f2-TQ for qemu-devel@nongnu.org; Thu, 06 Jun 2019 13:47:45 -0400 Received: from 5.mo179.mail-out.ovh.net ([46.105.43.140]:34991) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYwUJ-0004bC-Le for qemu-devel@nongnu.org; Thu, 06 Jun 2019 13:47:43 -0400 Received: from player750.ha.ovh.net (unknown [10.109.159.157]) by mo179.mail-out.ovh.net (Postfix) with ESMTP id 1E4D813519D for ; Thu, 6 Jun 2019 19:47:40 +0200 (CEST) Received: from kaod.org (lfbn-1-10649-41.w90-89.abo.wanadoo.fr [90.89.235.41]) (Authenticated sender: clg@kaod.org) by player750.ha.ovh.net (Postfix) with ESMTPSA id 5104B6ADB01A; Thu, 6 Jun 2019 17:47:36 +0000 (UTC) From: =?utf-8?q?C=C3=A9dric_Le_Goater?= To: David Gibson Date: Thu, 6 Jun 2019 19:47:32 +0200 Message-Id: <20190606174732.13051-1-clg@kaod.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 5889582416243297254 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeggedguddukecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.105.43.140 Subject: [Qemu-devel] [PATCH] ppc/pnv: activate the "dumpdtb" option on the powernv machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Greg Kurz Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Greg Kurz --- 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)); }