Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2225280/?format=api
{ "id": 2225280, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2225280/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260420192520.1444749-7-rs@ti.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260420192520.1444749-7-rs@ti.com>", "list_archive_url": null, "date": "2026-04-20T19:25:20", "name": "[PATCHv4,6/6] memory: reserve from start_addr_sp to initial_relocaddr", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "bdbcfde56464376b8a471b44491787184815e752", "submitter": { "id": 88727, "url": "http://patchwork.ozlabs.org/api/1.2/people/88727/?format=api", "name": "Randolph Sapp", "email": "rs@ti.com" }, "delegate": { "id": 68728, "url": "http://patchwork.ozlabs.org/api/1.2/users/68728/?format=api", "username": "xypron", "first_name": "Heinrich", "last_name": "Schuchardt", "email": "xypron.glpk@gmx.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260420192520.1444749-7-rs@ti.com/mbox/", "series": [ { "id": 500668, "url": "http://patchwork.ozlabs.org/api/1.2/series/500668/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500668", "date": "2026-04-20T19:25:18", "name": "various memory related fixups", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500668/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225280/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2225280/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=TIoNVT3r;\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=\"TIoNVT3r\";\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 4fzwTR4y2lz1yHB\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 05:26:35 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 45118843C7;\n\tMon, 20 Apr 2026 21:25:37 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id B965B84319; Mon, 20 Apr 2026 21:25:35 +0200 (CEST)", "from PH7PR06CU001.outbound.protection.outlook.com\n (mail-westus3azlp170100009.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c107::9])\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 901DE84390\n for <u-boot@lists.denx.de>; Mon, 20 Apr 2026 21:25:33 +0200 (CEST)", "from PH7P221CA0077.NAMP221.PROD.OUTLOOK.COM (2603:10b6:510:328::12)\n by BY5PR10MB4180.namprd10.prod.outlook.com (2603:10b6:a03:211::9)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9818.33; Mon, 20 Apr\n 2026 19:25:29 +0000", "from MW1PEPF0001615C.namprd21.prod.outlook.com\n (2603:10b6:510:328:cafe::ec) by PH7P221CA0077.outlook.office365.com\n (2603:10b6:510:328::12) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9791.48 via Frontend Transport; Mon,\n 20 Apr 2026 19:25:29 +0000", "from flwvzet200.ext.ti.com (198.47.21.194) by\n MW1PEPF0001615C.mail.protection.outlook.com (10.167.249.87) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9870.4 via Frontend Transport; Mon, 20 Apr 2026 19:25:28 +0000", "from DFLE212.ent.ti.com (10.64.6.70) 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; Mon, 20 Apr\n 2026 14:25:23 -0500", "from DFLE203.ent.ti.com (10.64.6.61) by DFLE212.ent.ti.com\n (10.64.6.70) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Mon, 20 Apr\n 2026 14:25:23 -0500", "from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE203.ent.ti.com\n (10.64.6.61) 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; Mon, 20 Apr 2026 14:25:23 -0500", "from rs-desk.dhcp.ti.com (rs-desk.dhcp.ti.com [128.247.81.39])\n by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 63KJPNh93399024;\n Mon, 20 Apr 2026 14:25:23 -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.1 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=lX53xXF5AKONQb8Ewi3xnprKgO+DrDIbTSRVLPRxeagoQZrai5VP14ti0TU4qZ4NefvX5DWeXrEcSaPHm6+Rp/RMVys1H9BH1q52rA0ObrKLDWaB2nH8L5g8TD/2dPh6IfzR200Bs9R7dHd/x5aXO53WWr+u0N9xWiRZpmyKs2JC774S/r73n8dzqR4uGp1wIVYpc2i+lGmDULMyOboCkKT5vPVKerlJd8sGjK+MEyWSrwG2YBzyWc90yrIljcfr0jl5CEn93rdqkJXcyDyq1tpzdO6CllTfUPa0lX7TdFHxXYCgwjnmfU6QIaaXN1Bqk0LbcaCuxzwcMYby1FKbIw==", "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=zAVHUzxuYt4R5Mzk60HO+SBvO3WCjNtjdILPXrnaJDk=;\n b=O4XIHDBf4xRztZT5p95FEDYsR+xrBrgUDfxlorVQwXt0GxzM0ImNhW361voPOC3Jz5IpmSjEvMyRW0M58s421kQTuMtK5wLETyJCylV2ZN7fm1eSRoqh4AOWJYWKtj8ilwwzpbnOAUAQ4f87NLci1ODZBAafT6I+HIKOx2y78UMavxjM0kBZkmVEUfGYXOidgBSIqAqJZndD8FS4/35q/FAxD6SLoLtsbGhS6vR0SeAhR65jNTtanJjle0YnJvEKxwX8DC6OAs+REKD9g7CKrI3Aag68/6Gu+ZcTprX5JSwNUV2nHt44dILa7a5jWXhasioQg/HzD+NG+Mt4spqqFg==", "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=zAVHUzxuYt4R5Mzk60HO+SBvO3WCjNtjdILPXrnaJDk=;\n b=TIoNVT3rSkVbA1BEcxFdXsNz/3EDZCN2URroTvaWt5H/5QfBW1wj65MN06fRzTS/FYEF35X+zLT10ZHXaJw/u16pFF16dMlCgPo+Ty5p4cNmhAlYx02ZpOcKVkVbEwzV5/pV3ZqV8JS8kseLqn90WQuqytUC+QEpe2J4+LPfT2U=", "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": "[PATCHv4 6/6] memory: reserve from start_addr_sp to initial_relocaddr", "Date": "Mon, 20 Apr 2026 14:25:20 -0500", "Message-ID": "<20260420192520.1444749-7-rs@ti.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260420192520.1444749-1-rs@ti.com>", "References": "<20260420192520.1444749-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": "MW1PEPF0001615C:EE_|BY5PR10MB4180:EE_", "X-MS-Office365-Filtering-Correlation-Id": "4cc30fcb-fe8e-4891-58f2-08de9f1294b6", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|376014|36860700016|82310400026|1800799024|56012099003|22082099003|18002099003;", "X-Microsoft-Antispam-Message-Info": "\n VoP01dpnbx5rtnaszgzV29wVgq3Cor2U3diNOxdiDICGNsgdDi+cZKbLjSl7DQ97jkCqfZEsuetT89NaRgde2fYt6N7FIBLxD3Jl2jtkaV9aJwk3joGlunTwrmw6P+CqqxcF5H159+gKMMoAiX/mqkOuq6O1EbY29CgSHTZPRHw71/DWmmvbEUDMX/SHjPmLGJ09Ew1A9IcD7Y0BDMIQ5BtTAUsqwHP2xk7GHs231SWMVtXmx9NWV7+HSx0nrAXCT1qwSQBasHNeMvzugwdvAdKmcRFipBE+uDxbZEqQtFnmhGhsCbQZdca/uBCAp1I3YmS9AFJFiXKBfFsdcqZ4kmJl1F1oKhc9TJsM+fxrwgiZ86ZIL82qOlMj2HlHylhPX1+deKCFU1YK8yesvBDOS5ZW3lFzDpvDqzeqh0kEGnln8TfzX6M1/YiIz79TqXOBwGRYqP1+30De26wo31GInYvHmaDx3iP9s414AoEtc3YztEGPxE/r7s0mAoJrPi9WqH76FQndhetU8cSNFHUGPGEaE3RaDDuCX2N5n/ziSLKaM9pQ9tzSm2eJFpEjGfzzct/RCuElF1jiaMB6cT8BEYqM4pgGbOl03MrXw1iFYP+RhU+OAVlLUiWBR5oD0dpr93PkBm8VnBCQ+nMwglCygek1sHbxMbCSnouspFVc76dPaGRN3H/1L1+UOd+yXrr4y+ZcwdKPFPs9SSKpoIj2gJ991qJs2okpnN0LhsXZ4awlrrL0JGH+Egk3Rnh5AXSD0MCs7du6KLQn5VqX/K513w==", "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)(376014)(36860700016)(82310400026)(1800799024)(56012099003)(22082099003)(18002099003);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n /1Ms32n7YvjhHB3X5aOaqsCN0L2+3ZsK0w8+2wMW0Y47hX5ikrvw/LL0QaIdEB44ITQe4kPK22mrdD3CR60kbEnScVEBUdQTHR6sajfw7oAMsswy8Pw7eGr1w9Px9AzEzfJxBvrhOD/jAyI0Iu25z1cdWDYbilgAdzu7Y16DSOnp7nSIlgX2zvuamJA2yjqctYzt8SBM/9LS+7VLQSLXXBQlDdODCSV4QG8AnQGLOu+VPRmilsKrkLexCELl6yzqHDOMxrFHPRiRJISCZrJa+jZQBsiZJv91bzAYkh9gIc844FYj5mmlTiPGwYkN4yoXnaPPyQcaNiWEb21qbZQ2bn4J2VTvYO8N9BEmaSxjDssQqfl/TagOeq722CSP9xgl+rzlhM6B/zXRU+/mbXWFHAn6VRkHv7AqoFapxPzev0dAwgrfZmVNjXPPkJNhKf8Z", "X-OriginatorOrg": "ti.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "20 Apr 2026 19:25:28.5138 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 4cc30fcb-fe8e-4891-58f2-08de9f1294b6", "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 MW1PEPF0001615C.namprd21.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BY5PR10MB4180", "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\nAdd a new global data struct member called initial_relocaddr. This\nstores the original value of relocaddr, directly from setup_dest_addr.\nThis is specifically to avoid any adjustments made by other init\nfunctions.\n\nReserve the memory from gd->start_addr_sp - CONFIG_STACK_SIZE to\ngd->initial_relocaddr instead of gd->ram_top. This allows platform\nspecific relocation addresses to work without unnecessarily painting\nover a large range.\n\nSince PRAM comes out of this initial area up to initial_relocaddr, we no\nlonger need to account for it separately.\n\nSigned-off-by: Randolph Sapp <rs@ti.com>\n---\n common/board_f.c | 9 ++++++-\n include/asm-generic/global_data.h | 7 ++++++\n lib/efi_loader/efi_memory.c | 9 ++++---\n lib/lmb.c | 39 +++++--------------------------\n 4 files changed, 27 insertions(+), 37 deletions(-)", "diff": "diff --git a/common/board_f.c b/common/board_f.c\nindex 11ad5779115..9943411ce7f 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -330,6 +330,8 @@ __weak int arch_setup_dest_addr(void)\n \n static int setup_dest_addr(void)\n {\n+\tint ret;\n+\n \tdebug(\"Monitor len: %08x\\n\", gd->mon_len);\n \t/*\n \t * Ram is setup, size stored in gd !!\n@@ -356,7 +358,12 @@ static int setup_dest_addr(void)\n \tgd->relocaddr = gd->ram_top;\n \tdebug(\"Ram top: %08llX\\n\", (unsigned long long)gd->ram_top);\n \n-\treturn arch_setup_dest_addr();\n+\tret = arch_setup_dest_addr();\n+\tif (ret != 0)\n+\t\treturn ret;\n+\n+\tgd->initial_relocaddr = gd->relocaddr;\n+\treturn ret;\n }\n \n #ifdef CFG_PRAM\ndiff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h\nindex 745d2c3a966..6c60a79c2ab 100644\n--- a/include/asm-generic/global_data.h\n+++ b/include/asm-generic/global_data.h\n@@ -107,6 +107,13 @@ struct global_data {\n \t * GDB using the 'add-symbol-file u-boot <relocaddr>' command.\n \t */\n \tunsigned long relocaddr;\n+\t/**\n+\t * @initial_relocaddr: end of memory currently in use by uboot\n+\t *\n+\t * This should be the original value of relocaddr before any other\n+\t * allocations or reservations shift it.\n+\t */\n+\tunsigned long initial_relocaddr;\n \t/**\n \t * @irq_sp: IRQ stack pointer\n \t */\ndiff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c\nindex 046a2bb4641..46a806aca61 100644\n--- a/lib/efi_loader/efi_memory.c\n+++ b/lib/efi_loader/efi_memory.c\n@@ -868,9 +868,12 @@ static void add_u_boot_and_runtime(void)\n \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+\t\t uboot_stack_size) &\n+\t\t ~EFI_PAGE_MASK;\n+\tuboot_pages = (((uintptr_t)map_sysmem(gd->initial_relocaddr, 0) -\n+\t\t\tuboot_start) +\n+\t\t 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 9a8c70b778a..e5d4d726ab1 100644\n--- a/lib/lmb.c\n+++ b/lib/lmb.c\n@@ -534,46 +534,19 @@ static long lmb_reserve(phys_addr_t base, phys_size_t size, u32 flags)\n \n static void lmb_reserve_uboot_region(void)\n {\n-\tint bank;\n-\tulong end, bank_end;\n+\tulong size;\n \tphys_addr_t rsv_start;\n-\tulong pram = 0;\n \n \trsv_start = gd->start_addr_sp - CONFIG_STACK_SIZE;\n-\tend = gd->ram_top;\n+\tsize = gd->initial_relocaddr - rsv_start;\n \n-\t/*\n-\t * Reserve memory from aligned address below the bottom of U-Boot stack\n-\t * until end of RAM area to prevent LMB from overwriting that memory.\n-\t */\n-\tdebug(\"## Current stack ends at 0x%08lx \", (ulong)rsv_start);\n+\tdebug(\"## Current stack ends at 0x%08lx\\n\", (ulong)rsv_start);\n \n-#ifdef CFG_PRAM\n-\tpram = env_get_ulong(\"pram\", 10, CFG_PRAM);\n-\tpram = pram << 10; /* size is in kB */\n-#endif\n-\n-\tfor (bank = 0; bank < CONFIG_NR_DRAM_BANKS; bank++) {\n-\t\tif (!gd->bd->bi_dram[bank].size ||\n-\t\t rsv_start < gd->bd->bi_dram[bank].start)\n-\t\t\tcontinue;\n-\t\t/* Watch out for RAM at end of address space! */\n-\t\tbank_end = gd->bd->bi_dram[bank].start +\n-\t\t\tgd->bd->bi_dram[bank].size - 1;\n-\t\tif (rsv_start > bank_end)\n-\t\t\tcontinue;\n-\t\tif (bank_end > end)\n-\t\t\tbank_end = end - 1;\n+\tlmb_reserve(rsv_start, size, LMB_NOOVERWRITE);\n \n-\t\tlmb_reserve(rsv_start, bank_end - rsv_start - pram + 1,\n+\tif (gd->flags & GD_FLG_SKIP_RELOC)\n+\t\tlmb_reserve((phys_addr_t)(uintptr_t)_start, gd->mon_len,\n \t\t\t LMB_NOOVERWRITE);\n-\n-\t\tif (gd->flags & GD_FLG_SKIP_RELOC)\n-\t\t\tlmb_reserve((phys_addr_t)(uintptr_t)_start,\n-\t\t\t\t gd->mon_len, LMB_NOOVERWRITE);\n-\n-\t\tbreak;\n-\t}\n }\n \n static void lmb_reserve_common(void *fdt_blob)\n", "prefixes": [ "PATCHv4", "6/6" ] }