From patchwork Tue Feb 13 16:41:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 10216747 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EB19B60467 for ; Tue, 13 Feb 2018 16:53:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC85C283AD for ; Tue, 13 Feb 2018 16:53:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D03B328A2C; Tue, 13 Feb 2018 16:53:05 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5ACF4283AD for ; Tue, 13 Feb 2018 16:53:05 +0000 (UTC) Received: from localhost ([::1]:53420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eldpI-0007fb-6N for patchwork-qemu-devel@patchwork.kernel.org; Tue, 13 Feb 2018 11:53:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elde8-0006Af-ON for qemu-devel@nongnu.org; Tue, 13 Feb 2018 11:41:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elde3-0006bj-S2 for qemu-devel@nongnu.org; Tue, 13 Feb 2018 11:41:32 -0500 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]:57434) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elde3-0006at-Ix for qemu-devel@nongnu.org; Tue, 13 Feb 2018 11:41:27 -0500 Received: from ayla.of.borg ([84.194.111.163]) by michel.telenet-ops.be with bizsmtp id AGhQ1x00w3XaVaC06GhQCP; Tue, 13 Feb 2018 17:41:24 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1elde0-0008Lz-7I; Tue, 13 Feb 2018 17:41:24 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1elde0-0003mM-5U; Tue, 13 Feb 2018 17:41:24 +0100 From: Geert Uytterhoeven To: Peter Crosthwaite , Alexander Graf Date: Tue, 13 Feb 2018 17:41:17 +0100 Message-Id: <1518540077-14481-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 2a02:1800:110:4::f00:18 Subject: [Qemu-devel] [PATCH] device_tree: Increase FDT_MAX_SIZE to 128 KiB 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: linux-renesas-soc@vger.kernel.org, qemu-devel@nongnu.org, Geert Uytterhoeven Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP It is not uncommon for a contemporary FDT to be larger than 64 KiB, leading to failures loading the device tree from sysfs: qemu-system-aarch64: qemu_fdt_setprop: Couldn't set ...: FDT_ERR_NOSPACE For reference, the largest arm64 DTB created from the Linux sources is 70 KiB large (93 KiB when built with symbols/fixup support). Signed-off-by: Geert Uytterhoeven --- device_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device_tree.c b/device_tree.c index a24ddff02bdd857c..1ba9b8e0a49e6bbc 100644 --- a/device_tree.c +++ b/device_tree.c @@ -29,7 +29,7 @@ #include -#define FDT_MAX_SIZE 0x10000 +#define FDT_MAX_SIZE 0x20000 void *create_device_tree(int *sizep) {