Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2223745/?format=api
{ "id": 2223745, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223745/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260416055948.130041-6-ilias.apalodimas@linaro.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260416055948.130041-6-ilias.apalodimas@linaro.org>", "date": "2026-04-16T05:59:41", "name": "[v2,5/6] common: Clean up setup_dest_addr()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "2c3b3fc6d4a3276400e24ad00521672211a9b46c", "submitter": { "id": 74147, "url": "http://patchwork.ozlabs.org/api/1.1/people/74147/?format=api", "name": "Ilias Apalodimas", "email": "ilias.apalodimas@linaro.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/1.1/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260416055948.130041-6-ilias.apalodimas@linaro.org/mbox/", "series": [ { "id": 500079, "url": "http://patchwork.ozlabs.org/api/1.1/series/500079/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500079", "date": "2026-04-16T05:59:37", "name": "Relocate U-Boot in the last bank", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/500079/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223745/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223745/checks/", "tags": {}, "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=rTqVnigY;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=\"rTqVnigY\";\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\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4fx6p41Yx4z1yG9\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 16:01:16 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id C4CE384258;\n\tThu, 16 Apr 2026 08:00:24 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id F099484207; Thu, 16 Apr 2026 08:00:20 +0200 (CEST)", "from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com\n [IPv6:2a00:1450:4864:20::32e])\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 7651083C2B\n for <u-boot@lists.denx.de>; Thu, 16 Apr 2026 08:00:17 +0200 (CEST)", "by mail-wm1-x32e.google.com with SMTP id\n 5b1f17b1804b1-488b150559bso59607585e9.1\n for <u-boot@lists.denx.de>; Wed, 15 Apr 2026 23:00:17 -0700 (PDT)", "from hera ([94.131.143.12]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488f0e9a770sm36379755e9.19.2026.04.15.23.00.15\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 15 Apr 2026 23:00:15 -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=1776319217; x=1776924017; 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=Io2eImeVvihuhyYgC4XeZMs5oWUR/VFYxatL/tS/5mk=;\n b=rTqVnigYf0dQqEigyIcAjn9ETpwpmwtwC9Na+wkSuLlEss+dvq0BNHUoM4O30NiY5/\n 9Af14a27dCUVqaBvO6/P6VlsVGFWw60Sz6U27DGi006GJrRPeBp76i4ZAzMil/IJovpW\n S8R588WHzhlyimZToe4vO4jbrK3+jSIZz4dzqMVXNe8egN0GkdMmD/Di4jbwYy3nxI/k\n ZxiY0S/9kq4xAx0YEnAlRPCsM4jfrPqg9yRGiyUwaJoJnAmij/l6WstW0UABLmzB6Lrn\n bWIbYevU/MxBZuvmMHTo+IuKjMkPCXciZaXscv06Ko6lrbhgDWFycKnloRu7FBSe36kG\n hhXA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776319217; x=1776924017;\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=Io2eImeVvihuhyYgC4XeZMs5oWUR/VFYxatL/tS/5mk=;\n b=L/Vd7auhnTUWFafm2nIW+udfIpJ6lAEPnpd/KVr6Ly8jl65glq0/h4ikSxMfO2Auu2\n 50JR9LEOXRkwx/WrTVSd1DNL22QbUzoFwDo8Mg2R2co1KShF67S9nkeMi48Ye0c2G9PN\n u7luXoDbBgzntgW9Mh9elfO/im7Y2Uiv7VQKGFQdm2YHKe/8jM9yaoh742xqfSOiWO3A\n nJ5Z5aOdDLLjDx1OcML8JXStmEJn10wY/NoChzyWtrsPVNh87iClH5IvlUSLRumxg61S\n Ry27+fLNj6aztKExqwBJFnmdjtiVONeOuRv3CJsgul+5Y8uZZekq2hapRP6E6hn+KjZl\n 2pHg==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ/R4iBvUBZ8D7elamJRcSip3f23RFjeLttKbvBZCjeuxMqOkWvS+Y2ISYrsSNdgkSo2leNuKeI=@lists.denx.de", "X-Gm-Message-State": "AOJu0YzJsFqph+E5nINxs1ytD6V9pu+kN7hT/a2TlqN2byPJ/mvbgexy\n gWPDbvdR/StxIs3VIY7pvsIDi9KR40N9znl4xhtci8mUgRBvsUvLvulfIxNNUxOrlqw=", "X-Gm-Gg": "AeBDies2Ltp/ZEBakLlcRJ/Y2vktG5J7QKfGKNIu8tFia4tQD1MQqui0nUbjTxeTk63\n HKoY+DmN8VvjPwWnHt/5JIHlTgu1fnnHtpehlSE/HhQQIm6vbRVrL8E+97vJUqRbrkCsA8x1hqc\n 93BHH6cbS7eOTDJctgsDJOXk4mBaT6qjGICDfHW1qu5FvqHlqSrcMYhJxWMrBJT3jg2aQaogtPO\n T7SrRuZqBC/8qCJy/ayjao4WYNk39FnUehrbGfIIv7bxl/9ZaPgROPpFubRfHXjt4xPD0q6CSxI\n xcJ0/7NeQ8Ql5rURdTgtNQlLRi19BlBfQBwRptwx3X5FCJ6n3iFjiqWq9RvPh/NUEKX63U6H+yh\n fQ8afLKHPEkeT/KjWrcR99dv/MmX3Pg+Q3GbRecHDOW935pkHhYGtb33bVQsEupYzjb/GnD4FFd\n F/OQFOayraNAXbtTuuvy/VqAV/9nXU/nutAqlSRwCBuCb/1i1DREmy9AKi64Gaau6SNYR6pC5rF\n m2nAtENOMFURem3I5T7rkSRMSuJzmpJj07cAKhacuUCKwpmR7e53+2zv+hnjjDJ3B6SZisdSfey\n qpYm06JPMM0yM0ckTqw+Hb+lrB23MGajqLWQaOCeQcOCJjJ1rEjniFZMHyOWdg22Es+LH9Gbgq3\n kAszSVWW2H9DWFyQdcZuyXNCXVO/Cb2gMhqDYWpIdcljLHOqV11ukMXuswHAa6/DFwmRGXTQ00V\n ph/+0QHeoVIXlh1fiFWQdwnjOzo6lBhFqu2wgrkJmH226wFhJys9hQQuClmKk2G6vT1obrV1U=", "X-Received": "by 2002:a05:600c:681:b0:488:e192:6fbd with SMTP id\n 5b1f17b1804b1-488e192710cmr149134795e9.30.1776319216587;\n Wed, 15 Apr 2026 23:00:16 -0700 (PDT)", "From": "Ilias Apalodimas <ilias.apalodimas@linaro.org>", "To": "trini@konsulko.com", "Cc": "marek.vasut+renesas@mailbox.org, jonas@kwiboo.se, anshuld@ti.com,\n sjg@chromium.org, Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n u-boot@lists.denx.de", "Subject": "[PATCH v2 5/6] common: Clean up setup_dest_addr()", "Date": "Thu, 16 Apr 2026 08:59:41 +0300", "Message-ID": "<20260416055948.130041-6-ilias.apalodimas@linaro.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260416055948.130041-1-ilias.apalodimas@linaro.org>", "References": "<20260416055948.130041-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": "Right now the function does\n- Re-adjust the ram_size based on Kconfig options\n- Set ram_top\n- Set the relocation address\n\nIt also does not set the ram_size in case ram_top grew\nfrom it's initial value. But ram_top and ram_size should\nalways be changed together.\n\nSo let's make things a bit cleaner and move the ram calculations\nin their own INITCALL\n\nReviewed-by: Simon Glass <sjg@chromium.org>\nTested-by: Anshul Dalal <anshuld@ti.com>\nSigned-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\n---\n common/board_f.c | 18 ++++++++++++------\n 1 file changed, 12 insertions(+), 6 deletions(-)", "diff": "diff --git a/common/board_f.c b/common/board_f.c\nindex d1e7d0d2f046..4ac22dca9e7c 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -336,13 +336,9 @@ static int setup_ram_base(void)\n \treturn 0;\n }\n \n-static int setup_dest_addr(void)\n+static int setup_ram_config(void)\n {\n \tdebug(\"Monitor len: %08x\\n\", gd->mon_len);\n-\t/*\n-\t * Ram is setup, size stored in gd !!\n-\t */\n-\tdebug(\"Ram size: %08llX\\n\", (unsigned long long)gd->ram_size);\n #if CONFIG_VAL(SYS_MEM_TOP_HIDE)\n \t/*\n \t * Subtract specified amount of memory to hide so that it won't\n@@ -358,8 +354,17 @@ static int setup_dest_addr(void)\n #endif\n \tgd->ram_top = gd->ram_base + get_effective_memsize();\n \tgd->ram_top = board_get_usable_ram_top(gd->mon_len);\n+\n+\tdebug(\"Ram top: %08llx\\n\", (unsigned long long)gd->ram_top);\n+\tdebug(\"Ram size: %08llx\\n\", (unsigned long long)gd->ram_size);\n+\n+\treturn 0;\n+}\n+\n+static int setup_dest_addr(void)\n+{\n \tgd->relocaddr = gd->ram_top;\n-\tdebug(\"Ram top: %08llX\\n\", (unsigned long long)gd->ram_top);\n+\tdebug(\"Reloc addr: %08llX\\n\", (unsigned long long)gd->relocaddr);\n \n \treturn arch_setup_dest_addr();\n }\n@@ -965,6 +970,7 @@ static void initcall_run_f(void)\n \t * - board info struct\n \t */\n \tINITCALL(setup_ram_base);\n+\tINITCALL(setup_ram_config);\n \tINITCALL(setup_dest_addr);\n #if CONFIG_IS_ENABLED(OF_BOARD_FIXUP) && \\\n !CONFIG_IS_ENABLED(OF_INITIAL_DTB_READONLY)\n", "prefixes": [ "v2", "5/6" ] }