Message ID | 1518614035-9907-1-git-send-email-geert+renesas@glider.be (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 A1CDA601D7 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 14 Feb 2018 13:14:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 919A028FD7 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 14 Feb 2018 13:14:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8410628FDD; Wed, 14 Feb 2018 13:14:59 +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 F16A928FD5 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 14 Feb 2018 13:14:58 +0000 (UTC) Received: from localhost ([::1]:47629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1elwtl-0006dY-RA for patchwork-qemu-devel@patchwork.kernel.org; Wed, 14 Feb 2018 08:14:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <geert@linux-m68k.org>) id 1elwsu-0005q2-1B for qemu-devel@nongnu.org; Wed, 14 Feb 2018 08:14:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <geert@linux-m68k.org>) id 1elwsq-0000kL-1o for qemu-devel@nongnu.org; Wed, 14 Feb 2018 08:14:04 -0500 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]:32870) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <geert@linux-m68k.org>) id 1elwsp-0000i1-QO for qemu-devel@nongnu.org; Wed, 14 Feb 2018 08:13:59 -0500 Received: from ayla.of.borg ([84.194.111.163]) by michel.telenet-ops.be with bizsmtp id AdDw1x00d3XaVaC06dDw9D; Wed, 14 Feb 2018 14:13:57 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from <geert@linux-m68k.org>) id 1elwsm-0008IC-IP; Wed, 14 Feb 2018 14:13:56 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from <geert@linux-m68k.org>) id 1elwsm-0002aT-Cc; Wed, 14 Feb 2018 14:13:56 +0100 From: Geert Uytterhoeven <geert+renesas@glider.be> To: Peter Crosthwaite <crosthwaite.peter@gmail.com>, Alexander Graf <agraf@suse.de> Date: Wed, 14 Feb 2018 14:13:55 +0100 Message-Id: <1518614035-9907-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 v2] device_tree: Increase FDT_MAX_SIZE to 1 MiB X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: linux-renesas-soc@vger.kernel.org, qemu-devel@nongnu.org, Geert Uytterhoeven <geert+renesas@glider.be> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/device_tree.c b/device_tree.c index a24ddff02bdd857c..9eb5fae7381fe885 100644 --- a/device_tree.c +++ b/device_tree.c @@ -29,7 +29,7 @@ #include <libfdt.h> -#define FDT_MAX_SIZE 0x10000 +#define FDT_MAX_SIZE 0x100000 void *create_device_tree(int *sizep) {
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 Hence increase the limit to 1 MiB, like on PPC. 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 <geert+renesas@glider.be> --- v2: - Enlarge from 128 KiB to 1 MiB, as suggested by Peter Maydell. --- device_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)