Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216417/?format=api
{ "id": 2216417, "url": "http://patchwork.ozlabs.org/api/patches/2216417/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260326115111.1631261-3-ilias.apalodimas@linaro.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260326115111.1631261-3-ilias.apalodimas@linaro.org>", "list_archive_url": null, "date": "2026-03-26T11:51:08", "name": "[v1,2/3] fdtdec: Introduce fdtdec_setup_mem_ram_top() to determine end of topmost DRAM bank", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "7c4306c52a4a9959e68a767f24c8e15287385b6f", "submitter": { "id": 74147, "url": "http://patchwork.ozlabs.org/api/people/74147/?format=api", "name": "Ilias Apalodimas", "email": "ilias.apalodimas@linaro.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260326115111.1631261-3-ilias.apalodimas@linaro.org/mbox/", "series": [ { "id": 497576, "url": "http://patchwork.ozlabs.org/api/series/497576/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497576", "date": "2026-03-26T11:51:06", "name": "Relocate U-Boot in the last bank", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497576/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216417/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216417/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=IDEUwYc6;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.b=\"IDEUwYc6\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhMZJ6BXvz1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 22:51:52 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id DEFB283A1B;\n\tThu, 26 Mar 2026 12:51:36 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 6E17E83FAF; Thu, 26 Mar 2026 12:51:36 +0100 (CET)", "from mail-wm1-x333.google.com (mail-wm1-x333.google.com\n [IPv6:2a00:1450:4864:20::333])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 8B52C83CD3\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 12:51:32 +0100 (CET)", "by mail-wm1-x333.google.com with SMTP id\n 5b1f17b1804b1-486fb112c09so8834515e9.1\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 04:51:32 -0700 (PDT)", "from hera ([94.131.143.12]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4871fb3d09dsm25968005e9.0.2026.03.26.04.51.31\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 04:51:31 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1774525892; x=1775130692; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=RpDsnJinn+rLKUwzyIAAVlQMlkkamKYjWnCMEpjdruw=;\n b=IDEUwYc6j44xPmn9DhJW6HQxX2GzavKixqkzQJ3g1OtnbHOIJITQwKBYCKYIAp6qpf\n FD/uAO0anwpAHW6g/IM/qlRvuq5Ph6SjJz5aqU9W25O7GdpeTBzIAjihp5xGW/QXUlM9\n IYaMi61S4MRQgkU9vMgokEfsQHv32Po/abaOk7AAjj3UxL9ZxQaS2e12aVBIcnD9QWvv\n mf+I/CMWPXYLiChSMKdkFuEWvFuDkGIOzU4o7Bmgm8aT5Dl3muMGLQJxBwhpaua7ckyf\n FZDUkEu5b2nKw76WdAL+oYYTqJX/apDLgdXMFaJnnkS8FtS2SMQk38F1gg0EErcxyeUA\n vYYQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774525892; x=1775130692;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=RpDsnJinn+rLKUwzyIAAVlQMlkkamKYjWnCMEpjdruw=;\n b=Xj7TdpeGUxr4D4a8RLb2ZI5RTUceU+hwoAQvdHhdlQjdTgC526tkXPRKV5EGlX2973\n 8j4xzyJ/BDdTDF5L9WSFzDwX70NjWCwEw5Z47zwKSLn5atiHevoEBmMsXqwKQ6DX1J2U\n MGjWM++Gs1CoA0o988SUzfbnPez6kj4XXA/BvnlS1ucMUhPlqnivArEVn1euxhaCWUvc\n xmiOBzqMRt7EptqCB773oSCmjkQP2rpHgv9wBxcNvGxoq9yPbeeK8UxY1o/EWmhU1xVn\n d2w0PqO5FXvcbKXYu5mL46dqlNi6HexcebY6H8P2Tg8UBLME3cjT9pmAzQc55a70d5cv\n /t+Q==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCWw0wXdlebeuEeRnims+1QUiMLx0GLJkhXb9oqv4C+w1Xp1sflA0UlMAa5Ktboe60dU6skOJDE=@lists.denx.de", "X-Gm-Message-State": "AOJu0YwbSidt4tVZKucR3afzc/fjna642Xgpbxxcp1ZhqJn+2RyA76ms\n CPFtMW5RLEypKe3F/m3SiHSdubskWEma9i5FxHU1Z4dGU0FFu7Ok7geBOzluuuy3g8RqWjXyzML\n x8MKF", "X-Gm-Gg": "ATEYQzz7oW5im41KVPFClOdzicpq1KY9cs+USlWbNMRfG7gTUmIEH4+ET5yw1kYia5V\n 0M7RNM9p2eTFEaqoo4jK5vbSpIX/Dcc9NeTydJQIudT4bfit0/9cqO7RyQRrzUUTcry4Ri9CRxj\n xB4TMwEq7NUwuKbQiVhFCWQM3ugoLX6qa76gBu/0DYOcNf2QWxG+b/zdDZM7eBYpvO+CycsBeeu\n W0S2/lMpgVUiNbUeSYgvEnDmdh1CQQq/BUNAcP0f5JNAb5vdp4UCxg8cjI/w8VUyW9vqlYYS9jO\n 78npU7O8N2bvOP28+wVOlT6MGn9gQQpXUbknJVMjW+TP74Te4aTPYDl59P1Lc8jeAuIFmj1Jjc2\n ZU07D0Lv4R/dK0cDpMGTtpxt5J6Rmvx+Zvkg4pwHP9B4bVWcXYjeWSfhc7bhhv6Mc0vkPBJ6mqR\n 609wNKYKngVHG2baBV5kHQJHRX4NrYCTog/6+4HdtTXGRAvStVKN0N5X0WzHp+qBvExJ5uJGor3\n 1pl9Yo1wWWSOYj8coBfWdKoAa/leFBNvkeXDJTpLOgg84bAc1x+ACiciGOLuBStGiBwoTJNz5Df\n 4nuWt5x0AmCfOpssvsa0FpTh7NRoqKt21oDf2xVW/5LtZQyy3IgVKrSOFiOgYv+rheuJlSSsjbb\n 3AjRvHM2tBwmOdA5QGN/eAgo1pn/gtNDsX3gOumPd8Bf/FrLmLQ7G19R8QI7MsfHroK/W1dgzhk\n GUUDWP1pI/wyIL9VtUTRAS2pavf3conL5m8sJ9UimrDHZgIUpBJogXsMn3iWGa", "X-Received": "by 2002:a05:600c:1394:b0:486:fe46:b647 with SMTP id\n 5b1f17b1804b1-48715fd6193mr108646385e9.10.1774525891894;\n Thu, 26 Mar 2026 04:51:31 -0700 (PDT)", "From": "Ilias Apalodimas <ilias.apalodimas@linaro.org>", "To": "marek.vasut+renesas@mailbox.org,\n\ttrini@konsulko.com", "Cc": "Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n\tu-boot@lists.denx.de", "Subject": "[PATCH v1 2/3] fdtdec: Introduce fdtdec_setup_mem_ram_top() to\n determine end of topmost DRAM bank", "Date": "Thu, 26 Mar 2026 13:51:08 +0200", "Message-ID": "<20260326115111.1631261-3-ilias.apalodimas@linaro.org>", "X-Mailer": "git-send-email 2.51.0", "In-Reply-To": "<20260326115111.1631261-1-ilias.apalodimas@linaro.org>", "References": "<20260326115111.1631261-1-ilias.apalodimas@linaro.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "From: Marek Vasut <marek.vasut+renesas@mailbox.org>\n\nIntroduce function fdtdec_setup_mem_ram_top(), which determines the topmost\naddress in the last DRAM bank, to be assigned into gd->ram_top in order to\nrelocate U-Boot to the actual end of all DRAM. This makes use of iterator\nfunction fdtdec_setup_mem_for_each_bank() introduced in previous commit.\n\nReviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\nSigned-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\nSigned-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>\n---\nChanghes since RFC:\n- Account for the ram_size as well\n\n include/fdtdec.h | 16 ++++++++++++++++\n lib/fdtdec.c | 20 ++++++++++++++++++++\n 2 files changed, 36 insertions(+)", "diff": "diff --git a/include/fdtdec.h b/include/fdtdec.h\nindex d9fcd037ed26..26e40c3cdb46 100644\n--- a/include/fdtdec.h\n+++ b/include/fdtdec.h\n@@ -933,6 +933,22 @@ int fdtdec_setup_mem_size_base(void);\n */\n int fdtdec_setup_mem_size_base_lowest(void);\n \n+/**\n+ * fdtdec_setup_mem_ram_top() - decode and setup gd->ram_top to highest address\n+ * available in any memory bank\n+ *\n+ * Decode the /memory 'reg' property to determine the highest end of the memory\n+ * bank and populate the global data ram_top with it.\n+ *\n+ * This function should be called from a boards board_get_usable_ram_top().\n+ * This helper function allows for boards to query the device tree for topmost\n+ * DRAM address.\n+ *\n+ * Return: 0 if OK, -EINVAL if the /memory node or reg property is missing or\n+ * invalid\n+ */\n+int fdtdec_setup_mem_ram_top(void);\n+\n /**\n * fdtdec_setup_memory_banksize() - decode and populate gd->bd->bi_dram\n *\ndiff --git a/lib/fdtdec.c b/lib/fdtdec.c\nindex d820f75b031d..c5ee2ecb3a49 100644\n--- a/lib/fdtdec.c\n+++ b/lib/fdtdec.c\n@@ -1162,6 +1162,26 @@ int fdtdec_setup_mem_size_base_lowest(void)\n \treturn fdtdec_setup_mem_for_each_bank(fdtdec_setup_mem_size_base_lowest_bankfn);\n }\n \n+static void fdtdec_setup_mem_ram_top_bankfn(struct resource *res, int bank)\n+{\n+\tif ((res->end + 1) > gd->ram_top) {\n+\t\tgd->ram_top = res->end + 1;\n+\t\tgd->ram_size += res->end - res->start;\n+\t}\n+}\n+\n+int fdtdec_setup_mem_ram_top(void)\n+{\n+\tphys_addr_t old_top = gd->ram_top;\n+\tint ret;\n+\n+\tret = fdtdec_setup_mem_for_each_bank(fdtdec_setup_mem_ram_top_bankfn);\n+\tif (ret)\n+\t\tgd->ram_top = old_top;\n+\n+\treturn ret;\n+}\n+\n static int uncompress_blob(const void *src, ulong sz_src, void **dstp)\n {\n #if CONFIG_IS_ENABLED(MULTI_DTB_FIT_GZIP) ||\\\n", "prefixes": [ "v1", "2/3" ] }