Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218885/?format=api
{ "id": 2218885, "url": "http://patchwork.ozlabs.org/api/patches/2218885/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260402001410.3736815-7-rs@ti.com/", "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": "<20260402001410.3736815-7-rs@ti.com>", "list_archive_url": null, "date": "2026-04-02T00:14:10", "name": "[6/6] memory: reserve from start_addr_sp to relocaddr", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "767ae7c27ebbb1918787c718acc79826570de712", "submitter": { "id": 88727, "url": "http://patchwork.ozlabs.org/api/people/88727/?format=api", "name": "Randolph Sapp", "email": "rs@ti.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260402001410.3736815-7-rs@ti.com/mbox/", "series": [ { "id": 498412, "url": "http://patchwork.ozlabs.org/api/series/498412/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498412", "date": "2026-04-02T00:14:04", "name": "various memory related fixups", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498412/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218885/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218885/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 (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256\n header.s=selector1 header.b=ZVy9oSru;\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=quarantine dis=none) header.from=ti.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.b=\"ZVy9oSru\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com", "phobos.denx.de; spf=pass smtp.mailfrom=rs@ti.com" ], "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 4fmMnP42HGz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 11:15:21 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id D3F9D840F5;\n\tThu, 2 Apr 2026 02:14:37 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 1500580212; Thu, 2 Apr 2026 02:14:33 +0200 (CEST)", "from PH8PR06CU001.outbound.protection.outlook.com\n (mail-westus3azlp170120001.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c107::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id F185F839DF\n for <u-boot@lists.denx.de>; Thu, 2 Apr 2026 02:14:30 +0200 (CEST)", "from PH7P220CA0082.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:32c::17)\n by PH5PR10MB997759.namprd10.prod.outlook.com (2603:10b6:510:39e::6)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.17; Thu, 2 Apr\n 2026 00:14:28 +0000", "from SJ1PEPF000023D5.namprd21.prod.outlook.com\n (2603:10b6:510:32c:cafe::61) by PH7P220CA0082.outlook.office365.com\n (2603:10b6:510:32c::17) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.18 via Frontend Transport; Thu,\n 2 Apr 2026 00:14:28 +0000", "from flwvzet200.ext.ti.com (198.47.21.194) by\n SJ1PEPF000023D5.mail.protection.outlook.com (10.167.244.70) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9791.0 via Frontend Transport; Thu, 2 Apr 2026 00:14:27 +0000", "from DFLE210.ent.ti.com (10.64.6.68) by flwvzet200.ext.ti.com\n (10.248.192.31) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 1 Apr\n 2026 19:14:21 -0500", "from DFLE204.ent.ti.com (10.64.6.62) by DFLE210.ent.ti.com\n (10.64.6.68) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 1 Apr\n 2026 19:14:21 -0500", "from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE204.ent.ti.com\n (10.64.6.62) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend\n Transport; Wed, 1 Apr 2026 19:14:21 -0500", "from rs-desk.dhcp.ti.com (rs-desk.dhcp.ti.com [128.247.81.39])\n by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 6320EKsG1004385;\n Wed, 1 Apr 2026 19:14:21 -0500" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,T_SPF_PERMERROR autolearn=ham\n autolearn_force=no version=3.4.2", "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=JkzKC4sNxL4v9PjPAKXJQyuX3qnI655voJMxq32698dvwMxBe7abyHDbxfCPQw42RIog2mgffvCaFbaLgMvM1JYPYx1KwqUjC/EAnjmqlwUedWsPaB1Psaq734jrn4FBB66+0jiDPwg1JYRWODp8T/Q3ytA7SWZxyTpC4P3B4JocHjdUEfvXqKguG+HojmogD/lnlP2DIZVJJCPEbJZCqvQqYH/70LtU6/CiGP+upJMFSSW8ito5YrXGuo8J5yrds8fLiCzVq2YFwysTM8NtHF9knPcot7t91poQY29PL6cK94Bm1FnsLMqSO1qddosoMP2B29xP5HkJl76RsxojPQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=D0JmfRwFk2njrc8sCMXBKKS7zsoyFcP2UD2r3dQeG+I=;\n b=Qv+n6tc6/QhkTlV3yqckGqJb/6Fe3LWEG5Z1HMm+X/Ap9iL15qb4YJ04Mh99ykz5HHWaI4+URxgn37EDEYpdbYmjTbc8jXrOj2lQNf/5qDBIz2uqx+/4+5Fm8fbyQYezxDleny8sl6b+GQ+Acq+xBEmNxrmoHjcUYgaReTO5RxrpE7DdeL6BG7XHme80FqdsfDMe9A9+0LxJ3+gQZBTYim6lByBTqmoEZQQAp2Sp1ZE1jZ8PFwAfMaDrg7YoEW5Oa/tCaczKww1UHcHdAARknIIzZeR7F+NjZcTQWvcLhjhMCAqDgWJHy+EoE23ttdNaKwqwYa8GdjzvaWUoP01jIw==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 198.47.21.194) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=ti.com;\n dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com;\n dkim=none (message not signed); arc=none (0)", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=D0JmfRwFk2njrc8sCMXBKKS7zsoyFcP2UD2r3dQeG+I=;\n b=ZVy9oSrunR1Gq10S+89buSJD7jfuVF/TZhxFrj9UK2zxla+ZmuBGq9luYVkTFSAFEcyJtTzbhs77bewaD0W+21zRoyIbqiALtOQUlvZ3tSVWSnyYlHxzAlIRv59edoFgFsnWCFt2d1/9R6lZGHq6JoF9kD2VoUMbJBuXc7jjpng=", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 198.47.21.194)\n smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;\n dmarc=pass\n action=none header.from=ti.com;", "Received-SPF": "Pass (protection.outlook.com: domain of ti.com designates\n 198.47.21.194 as permitted sender) receiver=protection.outlook.com;\n client-ip=198.47.21.194; helo=flwvzet200.ext.ti.com; pr=C", "From": "<rs@ti.com>", "To": "<robertcnelson@gmail.com>, <ayush@beagleboard.org>,\n <Erik.Welsh@octavosystems.com>, <anshuld@ti.com>, <bb@ti.com>,\n <trini@konsulko.com>, <afd@ti.com>, <xypron.glpk@gmx.de>,\n <ilias.apalodimas@linaro.org>", "CC": "<u-boot@lists.denx.de>", "Subject": "[PATCH 6/6] memory: reserve from start_addr_sp to relocaddr", "Date": "Wed, 1 Apr 2026 19:14:10 -0500", "Message-ID": "<20260402001410.3736815-7-rs@ti.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260402001410.3736815-1-rs@ti.com>", "References": "<20260402001410.3736815-1-rs@ti.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-C2ProcessedOrg": "333ef613-75bf-4e12-a4b1-8e3623f5dcea", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "SJ1PEPF000023D5:EE_|PH5PR10MB997759:EE_", "X-MS-Office365-Filtering-Correlation-Id": "ff68787a-458a-40cb-0f6e-08de904ccd73", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|36860700016|376014|1800799024|82310400026|18002099003|22082099003|56012099003;", "X-Microsoft-Antispam-Message-Info": "\n vz00xvI/XNmQQLOYJLSil2N631oPJyS/nOs1yPoKtpr78oUBE/idGTYtAZ1OuRa6gi1e2ty/z9I5IFu2KT8BChR10bN3QuNmtTHLGqemLwc8lm24vX4DSs4PGUqPhm77TNKyrMNtK1x4U+5teBLG/wcas4YAlBBdZGTctXxfs3FSIzLE+dnBarcA/hmSGW6Uk0+DShF/JCcHbQ2Ax+VrZgyL+KoFogoxIct/ENZHKn54ugs5W6rbmzpds6gV2qTi1xod7HgJslNeZs29sywJDgHnvWbPKybgWqn/SiI0d+mrmvabtq98oLgdlprJ0QhUH38YcqmYwRSjkB6ZkQKmHch8hIyFfEpDgbMy0ZKnOJAjPtOtWTRpIWdKhQSv6T18/JesAMTNH/01E27TlcQzApu547cG3fkBhLQhjSQdsUCoPeDdy/NKz7yAa5WA9AtVH9QFMsBTNFcjs4tRBcDsJgBbosJ5AUtdJbdiM4nXi6JP1nFgh009cZJ56QtuOBRDLDLpeJlQ1r3OZjqkhdTdKt33Efisvtl1ntl7LYy0WKNosiVtFQ3NsrYzwEMJ/fiujMlZ5+JDuIJnNZOHVewKXnCio8QIVjqFdvxmHCZGydfZ3QzCBMl3vuQtAv9hEpBqXG4F2iWO7uoNUH443pp+D1Bb29CpEFsd+OYyoNhJ3jdneIZt9Zpymc/N9GS60u5f6yQq14EIrYK1R0fAxgK2OP/LOhR7Zsz95bRGd+4cewzPfemoR95myU1gvsXDUk9dkUFr8IQoeuz2x/fstkyInA==", "X-Forefront-Antispam-Report": "CIP:198.47.21.194; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:flwvzet200.ext.ti.com; PTR:ErrorRetry; CAT:NONE;\n SFS:(13230040)(36860700016)(376014)(1800799024)(82310400026)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n qzgPx5FwkJUZoB9qphl3Zar/4f/Moq1JLW2Y8Am/xsmiqlhMGAxP/UM1YMO2+bug/8b9eBidAvclI8EAgU0+fwtsuKfFwPhAlGxoNXQSO5TuqaKR5Kt7nMYCWi8Pn8WEwEo+GcigtOkU3Vp/oXNcKv9Pvh0LQMyuOcu8M7U61JlSn7SHtcE85KwRyoMq7YyZBv1oV3ns1xwgzVlLTXcBdNmR/8tVvX2P3WvsXDtE46sbHwe17FrJFlsvqW+Sv8ZHPCziYNhZw2PJLDNldRPPMi5tZugvJvjIvxkHaNvvM61CM834ipe6G4AKj70QVVc+7xPgmjbXXTJtHg/59uoQpZ6byZw2UJo1ysjzfxi/8LFjDbxh2YWZVCwioRxhQJFrL4S2/PJPnF95AtjaYQKZRiAlf2m/AO0Dlwr2QZAMmysTUwHqyJHN1i9c2xHTaYUS", "X-OriginatorOrg": "ti.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "02 Apr 2026 00:14:27.0724 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n ff68787a-458a-40cb-0f6e-08de904ccd73", "X-MS-Exchange-CrossTenant-Id": "e5b49634-450b-4709-8abb-1e2b19b982b7", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7; Ip=[198.47.21.194];\n Helo=[flwvzet200.ext.ti.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n SJ1PEPF000023D5.namprd21.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PH5PR10MB997759", "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: Randolph Sapp <rs@ti.com>\n\nReserve the memory from gd->start_addr_sp - CONFIG_STACK_SIZE to\ngd->relocaddr instead of gd->ram_top. This allows platform specific\nrelocation addresses to work without unnecessarily painting over a large\nrange.\n\nSigned-off-by: Randolph Sapp <rs@ti.com>\n---\n lib/efi_loader/efi_memory.c | 4 ++--\n lib/lmb.c | 2 +-\n 2 files changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c\nindex f07cc39b157..57691d15758 100644\n--- a/lib/efi_loader/efi_memory.c\n+++ b/lib/efi_loader/efi_memory.c\n@@ -915,8 +915,8 @@ static void add_u_boot_and_runtime(void)\n \t/* Add U-Boot */\n \tuboot_start = ((uintptr_t)map_sysmem(gd->start_addr_sp, 0) -\n \t\t uboot_stack_size) & ~EFI_PAGE_MASK;\n-\tuboot_pages = ((uintptr_t)map_sysmem(gd->ram_top - 1, 0) -\n-\t\t uboot_start + EFI_PAGE_MASK) >> EFI_PAGE_SHIFT;\n+\tuboot_pages = ((gd->relocaddr - uboot_start) + EFI_PAGE_MASK) >>\n+\t\t EFI_PAGE_SHIFT;\n \tefi_update_memory_map(uboot_start, uboot_pages, EFI_BOOT_SERVICES_CODE,\n \t\t\t false, false);\n #if defined(__aarch64__)\ndiff --git a/lib/lmb.c b/lib/lmb.c\nindex 542bb11dcf5..0df8157db7f 100644\n--- a/lib/lmb.c\n+++ b/lib/lmb.c\n@@ -540,7 +540,7 @@ static void lmb_reserve_uboot_region(void)\n \tulong pram = 0;\n \n \trsv_start = gd->start_addr_sp - CONFIG_STACK_SIZE;\n-\tend = gd->ram_top;\n+\tend = gd->relocaddr;\n \n \t/*\n \t * Reserve memory from aligned address below the bottom of U-Boot stack\n", "prefixes": [ "6/6" ] }