Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2223744/?format=api
{ "id": 2223744, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223744/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260416055948.130041-5-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-5-ilias.apalodimas@linaro.org>", "date": "2026-04-16T05:59:40", "name": "[v2,4/6] common: move ram_base calculation to independent INITCALL()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "665b9e4eded2b4944751244856741aae4843f9fb", "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-5-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/2223744/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223744/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=Pxd27JVy;\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=\"Pxd27JVy\";\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 4fx6nq6WRNz1yG9\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 16:01:03 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 8D1AB8421D;\n\tThu, 16 Apr 2026 08:00:23 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 3E5F08420C; Thu, 16 Apr 2026 08:00:19 +0200 (CEST)", "from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com\n [IPv6:2a00:1450:4864:20::32b])\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 1FB2F84207\n for <u-boot@lists.denx.de>; Thu, 16 Apr 2026 08:00:15 +0200 (CEST)", "by mail-wm1-x32b.google.com with SMTP id\n 5b1f17b1804b1-488a88aeec9so100542135e9.2\n for <u-boot@lists.denx.de>; Wed, 15 Apr 2026 23:00:15 -0700 (PDT)", "from hera ([94.131.143.12]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488f0e9a770sm36379755e9.19.2026.04.15.23.00.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 15 Apr 2026 23:00:13 -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=1776319214; x=1776924014; 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=PxGW5JexjN+wNEzNZwIRVtmLNulzvxhoaehAmbwC1zk=;\n b=Pxd27JVyJFOUbTDX0oC+Kc4JyoaPEJ/WB91owRJ7rIqKTsR/PKeuG4lCiKJsRfjCdQ\n Fn+m53aOUQFDPW/Glil51tvyBKPAqlkXYBQlg9XV3gNZEHRuhkpREsZ01bdfw4tj1GFB\n VNYZe9VVbxSX6CtUx6BwW0ASzNlGlRkU6KdTvaeOVHz7XQ+gYdzsCvb7dxGr55DNXXZ7\n 2874uLZOGv4hFb5d2oXNrpX7qBYyDPNLFmVr0PLvEnyW6WVe95eRq5Ne8WKfogs+NrxX\n kfFpP6ElqBLpaFAbaQ4d3nMo7KCyP3M5XqoobnZptnkDJIeOO4B/ViylZks9ia3ckuZw\n Sp4Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776319214; x=1776924014;\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=PxGW5JexjN+wNEzNZwIRVtmLNulzvxhoaehAmbwC1zk=;\n b=d29tSAxWuL05rcWaaExrUPF8dcDAa5xmzp3LWXuuEUjVW7SfZv+nKtXNyjmAOc0hhL\n LweaCNlhO252dD7UHAN/WhCyb0KLOnIHge1I0Q2XbUqJRw6/uKQWTVRVD3xLlT0wf/45\n Q1YyPY80WW8VO98W65ZyAm4vUopH4ImfginDUd4fY2dGMd5sai0aRqY61PGbdUxveHvb\n klVR2R9y4erdjtibJhaIaeQqUrW63vY7c97VYVb11z00+XJMK6LXJL2Uvgqre7Bqfl6Q\n nkAUdQloSxr69VeiKOTmtWdIe7nEDy8/pbL2JjKGZ0l3EBNrPE4Uq/ZB0mVKEKbbo4R3\n qkAw==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ/pK+TX7qErC5c9ZDPjs9Z0H+Jy9XTlodqOULpXfZLmnQ0YumOg8LwUF4FGm8C6egQyvke7Jhg=@lists.denx.de", "X-Gm-Message-State": "AOJu0YxWM/l8OjNtWx2YxcYDgCKDa4DU50LCsGeusvolkCkxqehdJ4Qe\n Q5VO+Ob2NM3eOzd3vhyHNhXE7fF71I7MNEsG+DKKbQHUEf/5ceTh/RDQGSh/u8H2TIo=", "X-Gm-Gg": "AeBDietyD1rsX+rdvGsvfZ/uzfqvulNWSPxTxZ/P8R3dYC/0MG3irsgJZw+6RMqwa9d\n RtLdf7iTNawfjYtRUMKleHfL1KY9G+25g9XgTjDyt+doMzgnjn6/bMvLYkE4Ri3oNTLIeHJn9Vo\n X+CA6Zz30VZfypGJ6OFNQcs22KllJI1UbpgNdAja72cVg9flCUwyWV8+rieWxbm45bdnluUoUK8\n 79K56uVXnYTsiivnCqam1xUl8kQ/QnDUHKo1qmWo362YY4lCXEaRraXbm3euQWdU7+fIecs2MyP\n tnuJ00OLhn9uHhHQO7lLCRt/ciIrR309Vql3gwBXia6lGWxxDJJJk2UpsNoa8bv9U9b+Y4Ss0Fa\n eglE4NCbvw5GZMtkQKu6/vs44zHGvFhatUJkTJa1EJaAGRtOvPF629YHa8a0/EnvABfZicBsdai\n LGQEQnt0l+A6NZXjsY0bG3dmHHPD1KjfL0MR0pH+6c/rhMmRi8byJeYOml0w1CdcoM+9cDWYqkk\n kQH5aD12qa4njwiB22YLFlGliktMowXKgqxadShPScu2wldm2zr6YQtYpeGwOnPZXzTTUYIea4C\n gxCTUhZTITeuzAkEIdQd9eCBLtwjxICHIVYUT2nK7dcrsqO1iMAOI67HZUxVOyj0kAJbB6eFp+u\n bwtx8Lu+NNIpvMbylNPbiz3ssu0kH0MADHt/w92GYrZD8bXWR2yA4pI7dW6C1upijFJ6+ap4iIx\n KfnR76xO1cF6SCuvS0OIcIV9wBNdHCEF/b7Zo/b3MHrZjU8slwjx9AwFR+TsfC1TpfWdxDXRs=", "X-Received": "by 2002:a05:600c:3acf:b0:485:35a4:939f with SMTP id\n 5b1f17b1804b1-488d68a8275mr298985935e9.28.1776319214302;\n Wed, 15 Apr 2026 23:00:14 -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 4/6] common: move ram_base calculation to independent\n INITCALL()", "Date": "Thu, 16 Apr 2026 08:59:40 +0300", "Message-ID": "<20260416055948.130041-5-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": "Currently, ram_base is calculated within setup_dest_addr().\nHowever, upcoming patches that enable U-Boot relocation to the highest\nDRAM bank require ram_base to be initialized earlier.\n\nThe default dram_init_banksize() definition relies on ram_base\nto calculate the start of the first bank. But following patches\nwill move that function to execute immediately before setup_dest_addr().\n\nSo let's split the ram_base initialization in its 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 | 12 +++++++++---\n 1 file changed, 9 insertions(+), 3 deletions(-)", "diff": "diff --git a/common/board_f.c b/common/board_f.c\nindex 0da2916aff4a..d1e7d0d2f046 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -328,6 +328,14 @@ __weak int arch_setup_dest_addr(void)\n \treturn 0;\n }\n \n+static int setup_ram_base(void)\n+{\n+#ifdef CFG_SYS_SDRAM_BASE\n+\tgd->ram_base = CFG_SYS_SDRAM_BASE;\n+#endif\n+\treturn 0;\n+}\n+\n static int setup_dest_addr(void)\n {\n \tdebug(\"Monitor len: %08x\\n\", gd->mon_len);\n@@ -347,9 +355,6 @@ static int setup_dest_addr(void)\n \t * get fixed.\n \t */\n \tgd->ram_size -= CONFIG_SYS_MEM_TOP_HIDE;\n-#endif\n-#ifdef CFG_SYS_SDRAM_BASE\n-\tgd->ram_base = CFG_SYS_SDRAM_BASE;\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@@ -959,6 +964,7 @@ static void initcall_run_f(void)\n \t * - monitor code\n \t * - board info struct\n \t */\n+\tINITCALL(setup_ram_base);\n \tINITCALL(setup_dest_addr);\n #if CONFIG_IS_ENABLED(OF_BOARD_FIXUP) && \\\n !CONFIG_IS_ENABLED(OF_INITIAL_DTB_READONLY)\n", "prefixes": [ "v2", "4/6" ] }