From nobody Mon Feb 9 23:01:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529376937669532.0990933964989; Mon, 18 Jun 2018 19:55:37 -0700 (PDT) Received: from localhost ([::1]:38788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV6nw-0005ya-Lf for importer@patchew.org; Mon, 18 Jun 2018 22:55:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV5iq-0002RM-Hp for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:46:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV5ip-0000Iw-M8 for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:46:16 -0400 Received: from mail-ot0-x244.google.com ([2607:f8b0:4003:c0f::244]:34691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV5ip-0000In-Gt; Mon, 18 Jun 2018 21:46:15 -0400 Received: by mail-ot0-x244.google.com with SMTP id r18-v6so20783439otk.1; Mon, 18 Jun 2018 18:46:15 -0700 (PDT) Received: from localhost ([2600:1700:70:e488:b0ee:9bda:ee6f:91be]) by smtp.gmail.com with ESMTPSA id a52-v6sm12159480ote.30.2018.06.18.18.46.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 18:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=k6/w1rpGjiNqRRhCRJUgb2PxWnD89JPo6WYqzRJkytc=; b=VSoeRHUzZKtT2XFwHyrnCOh02lrW8z1CNk2ST+1ogos0KZWGR17SDsdNPe+WULDPBP fRQGp+xBdRTRKbe61EjB4aJO3gc13dFgp5xqDeFmb4oYzejy39eK1OWu8r5S9wCqpZrV O4nxRXj5RcTG7YuZO7ny2baQs2y2KF6XlRlkx6qhkYMcuK/mGqNBgGMVz6+qzBYKpsmQ ZvvdbTmONfZlFJS55+HT00h/gqgTHO/F20QN4AClOYMi6WYhSj5sE379xG3k7TkP5vsz 9uEDZ1bHHF/b9Q2d+KhTE8ToXpNhs/8p/5SfObc02mQW1BDilAwz8dOvytE1RNJPvK58 aHCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=k6/w1rpGjiNqRRhCRJUgb2PxWnD89JPo6WYqzRJkytc=; b=fn3HDIrMjGv6FUhITgSWeg8QCdis93OBqLOGwygMzqHlCGzZ7+7cHNr/LPOmNhdtEz 9NIyq97ygtE/09JP9/2rvCeRIUkaszQaJojWS7pV4ONnOLIidFWCwxfj3oBzZZ28rVNb /MoIBXV5RJVrrBZOprBeenFH0wKZZGBb0rpA6zX/y0S89QabuFP2SdD7T3XNX5015Nhu o4bSkR6RoJaggJqyF3casEqYusTLT3Hyay6DO3U3LEJGYj+CzROmyLkSGJCicTCo+63U NUJqA29HVxcnOXBBpygSO78NgyhDkXgdqtSxGRehqfQ952E5LJfYxdSsWX8D+O/+VURt uxnQ== X-Gm-Message-State: APt69E10S09BC4g84sZdNpDgyVbI5xaxZ4bUQgHO8tFkXejGpzpG2fys YFcdeX9PYO38IDb7psc5diubhGPVvvY= X-Google-Smtp-Source: ADUXVKJzOas8ODjunNpCgKl20L1H+yNWHOQP0AXEgQ3GplEOvp+yMYimKgqtZoDAItrLS1zWwsG63w== X-Received: by 2002:a9d:3663:: with SMTP id w90-v6mr8571663otb.96.1529372774340; Mon, 18 Jun 2018 18:46:14 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Date: Mon, 18 Jun 2018 20:42:25 -0500 Message-Id: <20180619014319.28272-60-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> References: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::244 Subject: [Qemu-devel] [PATCH 059/113] 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-stable@nongnu.org, Geert Uytterhoeven Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Geert Uytterhoeven 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 ca. 75 KiB large (100 KiB when built with symbols/fixup support). Cc: qemu-stable@nongnu.org Signed-off-by: Geert Uytterhoeven Message-id: 1523541337-23919-1-git-send-email-geert+renesas@glider.be Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell (cherry picked from commit 14ec3cbd7c1e31dca4d23f028100c8f43e156573) Signed-off-by: Michael Roth --- device_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device_tree.c b/device_tree.c index a24ddff02b..9eb5fae738 100644 --- a/device_tree.c +++ b/device_tree.c @@ -29,7 +29,7 @@ =20 #include =20 -#define FDT_MAX_SIZE 0x10000 +#define FDT_MAX_SIZE 0x100000 =20 void *create_device_tree(int *sizep) { --=20 2.11.0