From nobody Mon Nov 10 22:30:38 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1559845279; cv=none; d=zoho.com; s=zohoarc; b=EqiCvernyT7zB0HtOK7ysEaWGt7rPKZIaihdqirBoqUlqqrWXuE5gq8B57UiaBPAwx/e1MpfCk/CJWqr4zKBKbZnvycr0tX9nz1E8VAwgafghqv7Op47iMQu4c2jGhD+2xnvGU1ecRBSy0Kr44WbXuL40n8IisJg6J2dwLXYzKY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559845279; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=Y4z6e2W1Gev2tPEDIa04wTGUTv+BEvyoWsn017o3m5s=; b=TdnUxEnAibth/OkYD+4OxtnvgpqatYrbSlv23o5oNfHkfEIALL0LNZ480yll82Rjk21PSQ+yn9EOtXIC7QLkMKqhVPOMQWitFBU5U0bpCtYhacmAfAduNjHG1vats+j3jU99r9TVvSwA1tXL2mvV4dZTHSzv5aL+AEQ5VyEXHLM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559845279437711.3626421366631; Thu, 6 Jun 2019 11:21:19 -0700 (PDT) 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-15 for importer@patchew.org; Thu, 06 Jun 2019 14:21:14 -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=20Le=20Goater?= 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 Content-Transfer-Encoding: quoted-printable 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=20Le=20Goater?= , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Greg Kurz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" This is a good way to debug the DT creation for current PowerNV machines and new ones to come. Signed-off-by: C=C3=A9dric 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))); =20 + qemu_fdt_dumpdtb(fdt, fdt_totalsize(fdt)); cpu_physical_memory_write(PNV_FDT_ADDR, fdt, fdt_totalsize(fdt)); } =20 --=20 2.21.0