Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/2219525/?format=api
{ "id": 2219525, "url": "http://patchwork.ozlabs.org/api/1.0/patches/2219525/?format=api", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20260403090109.3564638-3-ilias.apalodimas@linaro.org>", "date": "2026-04-03T09:01:04", "name": "[v1,2/4] 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.0/people/74147/?format=api", "name": "Ilias Apalodimas", "email": "ilias.apalodimas@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260403090109.3564638-3-ilias.apalodimas@linaro.org/mbox/", "series": [ { "id": 498607, "url": "http://patchwork.ozlabs.org/api/1.0/series/498607/?format=api", "date": "2026-04-03T09:01:02", "name": "Relocate U-Boot in the last bank", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498607/mbox/" } ], "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2219525/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=OxcUz7fn;\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=\"OxcUz7fn\";\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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnCQC68Jnz1yCt\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 20:01:39 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 335FE840F5;\n\tFri, 3 Apr 2026 11:01:29 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 462A1840F5; Fri, 3 Apr 2026 11:01:28 +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 CD127840B0\n for <u-boot@lists.denx.de>; Fri, 3 Apr 2026 11:01:25 +0200 (CEST)", "by mail-wm1-x32b.google.com with SMTP id\n 5b1f17b1804b1-48557c8ad47so13590785e9.0\n for <u-boot@lists.denx.de>; Fri, 03 Apr 2026 02:01:25 -0700 (PDT)", "from hera ([94.131.143.12]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4887e967badsm332528545e9.14.2026.04.03.02.01.23\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 03 Apr 2026 02:01:24 -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=1775206885; x=1775811685; 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=HMpeK4MtNTzXJjiMZfUHV/B/PGxsObuqPd+AqE1fhy8=;\n b=OxcUz7fnVgy4Z9yjamXUpYun1psXUX2GqJVpC3wqCLtJQj20VF4d1K7fc2Eu3RuN9B\n I/TwNuM3OafERtEWokNnrSrqubAaX6grVdg/HNW+82jejXWNX6ip3fPQfAZXzOgRUyyW\n Fo93yH5d+1fwFyuoBAJsToxl0ZJ3oq1+nY5d7nQRt/SuZwyJul+Dhpb9tyG6wF8X3bH5\n oND1SwtW6vC56CKeqMkYcq6goMOL5LaJ0N+VF2+id5QXx89mt/A1nInEcYkI0VRyHO0F\n S6m3ExNO9hLUepxdx4o8j/UvGOPLzkBMA89vpOZuDCMZ/VnEt7MQW0VzoKl44MRCs1KT\n WNig==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775206885; x=1775811685;\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=HMpeK4MtNTzXJjiMZfUHV/B/PG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43R1gtqtFBsrO87UZc53vOHqkT6/3GrT\n dKaC3W9Fgs6ann1sqknqzMaDjvuhJ4hVh5aMBeyvnerwwdOXenslaz46UlEzI5gRxfXACkfS/0X\n Ec8UA286kNxGOO5csz6BQInnw4tTvXgo7eaHpy0PttepeAqgevYyaAMxoWmloOOo6le5NJ37cmB\n c+E9ffJkTUa3TpUylQb3XpBPZuAITjAB0fU9ekxAFnUtq/wAEN/FuuCJ2ITK8hDrXyheGkGfTBl\n KkegL05GYV8sy6iORXanMTlUmCD/THBPmQTgKyt4VSwKe9AiDFEDBe/4uiW6erhVUBH+C0swWhY\n 7qQ1JVzaEq55k9Tqk/43sfRCTjPrwjTNaVqBwyG0/aGq71HrYZLuKHgf+IvBsu", "X-Received": "by 2002:a05:600c:4593:b0:488:9696:488a with SMTP id\n 5b1f17b1804b1-488997e7dc7mr36672755e9.30.1775206884976;\n Fri, 03 Apr 2026 02:01:24 -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 v1 2/4] common: move ram_base calculation to independent\n INITCALL()", "Date": "Fri, 3 Apr 2026 12:01:04 +0300", "Message-ID": "<20260403090109.3564638-3-ilias.apalodimas@linaro.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260403090109.3564638-1-ilias.apalodimas@linaro.org>", "References": "<20260403090109.3564638-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\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 91c569da9682..7df92281c35a 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -329,6 +329,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@@ -348,9 +356,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@@ -960,6 +965,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": [ "v1", "2/4" ] }