get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2235232/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2235232,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2235232/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260508222911.450165-4-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": "<20260508222911.450165-4-rs@ti.com>",
    "list_archive_url": null,
    "date": "2026-05-08T22:29:11",
    "name": "[PATCHv6,3/3] memory: reserve from start_addr_sp to initial_relocaddr",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d8ce531e7100fbcb44d497b5304ac9e85ec46b55",
    "submitter": {
        "id": 88727,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/88727/?format=api",
        "name": "Randolph Sapp",
        "email": "rs@ti.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260508222911.450165-4-rs@ti.com/mbox/",
    "series": [
        {
            "id": 503455,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503455/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=503455",
            "date": "2026-05-08T22:29:09",
            "name": "various memory related fixups",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/503455/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2235232/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2235232/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=o+1oZKnv;\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=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=\"o+1oZKnv\";\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 [85.214.62.61])\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 4gC3hp0jMqz1yHW\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 09 May 2026 08:30:02 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 5255384CF2;\n\tSat,  9 May 2026 00:29:33 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 6E85F84CC0; Sat,  9 May 2026 00:29:32 +0200 (CEST)",
            "from CY7PR03CU001.outbound.protection.outlook.com\n (mail-westcentralusazlp170100005.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c112::5])\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 51DAD84DEE\n for <u-boot@lists.denx.de>; Sat,  9 May 2026 00:29:30 +0200 (CEST)",
            "from CH5P223CA0023.NAMP223.PROD.OUTLOOK.COM (2603:10b6:610:1f3::28)\n by IA4PR10MB8611.namprd10.prod.outlook.com (2603:10b6:208:564::18)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9891.16; Fri, 8 May\n 2026 22:29:24 +0000",
            "from CH1PEPF0000A34B.namprd04.prod.outlook.com\n (2603:10b6:610:1f3:cafe::32) by CH5P223CA0023.outlook.office365.com\n (2603:10b6:610:1f3::28) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9891.20 via Frontend Transport; Fri,\n 8 May 2026 22:29:24 +0000",
            "from lewvzet201.ext.ti.com (198.47.23.195) by\n CH1PEPF0000A34B.mail.protection.outlook.com (10.167.244.10) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9913.8 via Frontend Transport; Fri, 8 May 2026 22:29:24 +0000",
            "from DLEE213.ent.ti.com (157.170.170.116) by lewvzet201.ext.ti.com\n (10.4.14.104) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37; Fri, 8 May\n 2026 17:29:23 -0500",
            "from DLEE202.ent.ti.com (157.170.170.77) by DLEE213.ent.ti.com\n (157.170.170.116) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37; Fri, 8 May\n 2026 17:29:20 -0500",
            "from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE202.ent.ti.com\n (157.170.170.77) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37 via Frontend\n Transport; Fri, 8 May 2026 17:29:20 -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 648MTKZ42507774;\n Fri, 8 May 2026 17:29:20 -0500"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SPF_PERMERROR autolearn=no\n autolearn_force=no version=3.4.2",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=X2F4I4PpDDayCRtinwnajmV8X90CIc1ZNA2W5kI45+o4qglMWbwSRFNuFjL9/luKniZ96UpcGuxy2dN2+0N6uYenrrTmX/7KcMOu/oV/S0UFdDX6d4k5tkiSvyb8y97xGkyO0Y/UV54EfKEEH4LZbuCQ4U/N+CvuZv0TnAHwHvAsgs873r8pOvGSr3SvAKdVXKharMg093bZ7DjX50tV4vnhfZKlynOZXAXyrT8sXJrQFFDBkbcW8eFGC8nqrMraYoAwIE+y4gVtnR9HsHfZts7ZkIhtyZn3oSTC6nmOyUkFKfmr1dfofsiwttkWYYkCA1q5a/Ybjc8f9QufLnU4hg==",
        "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=pT/c6/NGZeQal8nRm/a3SFsWtawskiy30y2Xvy0UXP4=;\n b=n2a+IM1dZLJo6GprE0F+3ep5RnFRExUYE8eGINBfzV8ilPzPU31lojW+/lFWt++SBs+Fo0FZJ/BfD83S20lDO7yUjVa585wGxj7HC3o6sqJsDI2uot8se+Jw1k5PtJ4f68BDV25T3UPyWS5GABvWtZIM63GToAu/OicXLGoeTxNZy7zqhQLkXGnClC9gJcFI0ztthtBDeq3P1Z2J1GrX8HObzPEqSte4CX/CD5eF4gjPFsj82zOMHgoG3Qpw8DWhktAsVgVV0O5eKotjo2iUj6Ru21Dyfv3RJzrUKwyNGhtvJbPyo4KkdyuUOr+J+dCZ4e5VUU/zuQGRt4/b8819pQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 198.47.23.195) 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=pT/c6/NGZeQal8nRm/a3SFsWtawskiy30y2Xvy0UXP4=;\n b=o+1oZKnvwe57cwwCeJ0mp5bbK/XTe86HsF5uuvIT08lEWWgjsAENY6q/q/wK0YHVJJjTCGohJXQLKZlsjHQ2KGf3CAFHhdT60VPupejXF8nYv8Sryx0Cae5A1Tob3HeqIxjzsJIr5NCGFX5j/LIRd+mRulv5eQKAkFyRo/N2py4=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 198.47.23.195)\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.23.195 as permitted sender) receiver=protection.outlook.com;\n client-ip=198.47.23.195; helo=lewvzet201.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>, <sjg@chromium.org>",
        "CC": "<u-boot@lists.denx.de>",
        "Subject": "[PATCHv6 3/3] memory: reserve from start_addr_sp to initial_relocaddr",
        "Date": "Fri, 8 May 2026 17:29:11 -0500",
        "Message-ID": "<20260508222911.450165-4-rs@ti.com>",
        "X-Mailer": "git-send-email 2.54.0",
        "In-Reply-To": "<20260508222911.450165-1-rs@ti.com>",
        "References": "<20260508222911.450165-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": "CH1PEPF0000A34B:EE_|IA4PR10MB8611:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "cae834a8-ffed-4dde-d098-08dead51420c",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|36860700016|376014|82310400026|1800799024|18002099003|22082099003|56012099003|921020;",
        "X-Microsoft-Antispam-Message-Info": "\n q3Mx2FHA8zsCCQKnMyxN7E5fgjmS19hJExYzl3wqfMO5MoMeVkBfSgCyMd/XrTYLlPqmmWcoY8+0fGwdFKwItUW/lQrXUobjlu40+vQNJz7lQsVxxZhfbzJ8b6h0/NPnC1UWNuoRm5Snw4gPPchGHW8gYWkeENmmPe+qfmDh+wYtGHBO5wanIDR8slQGZr5cotegDvqnFy3PhexOJIn7juU40Hhi2DoYT+Wv+8F92KdKfh/lwbJiU5KjXt52XubRfwrDN2AvSRyuz8HOxFk/aT382yCl4J756MSJ32Rt1gQUEW3P6Yu2LAhSYCLHiXxNrBPAFXRRadgia9A4c629vR5LBwSDaGooRAeuBVtbVrFd+mMKpsJxkmvUFo08WlTjV4pUkLmtZkLhnF6o8I8+O813Csft0SgrBEt8vnr3mVl/CzucwPZkWM+zAWzkOC0LYJPE9IFVN5iSU0lXESJQv1TIXAAUrXzJVNGxMtLSdF/thSfUxKk5z/IjGCYlWIOnO4txah80gx8uHYoe5OH14tvjYlF58M7I+00/VCwxw6hJtXNwcCc1+AzTLygCR7xHQ/Vyw6uG5BRe4ElZc8+gBTGld+DUP8Q/QUOOlJK4mgm4LPhP3qHAyOFrgfpWQLNwgAGEEVO/sDIUi4ooz3bHL446N247vkAH5vi1A0DN5WeWpPovty5W1xggLU87CphQdG2rZqRJDcSV4jYd6FUt9kGqn7I/+pmiK/RoVfRIi30/xXcoSiUXswNaUn1GuVSU/3fO7ewsce43VbXnTMGDcQ==",
        "X-Forefront-Antispam-Report": "CIP:198.47.23.195; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:lewvzet201.ext.ti.com; PTR:InfoDomainNonexistent;\n CAT:NONE;\n SFS:(13230040)(36860700016)(376014)(82310400026)(1800799024)(18002099003)(22082099003)(56012099003)(921020);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n CnM0I79ap0dy6RwNQ+UM7N77SC9wFtg4gawy5BMpYMZFfyW9UeRlIqCi4RN7/DjXSCVsByTN8FUmiGpZ/ZDMRhk49u85GY5aOcX5ww3jSEP8P9gfi259AuUGr9jYd4ikdBnurQj1+u6Bbv+ZxEVjQboAIgCIbOx2Gfmga7IrX+GWrQYZEvfGuqRQvpVFzrFSd/e3TPf/qOvyC/21VGOQV/CCoV6a5jGTAoalTZ4vZeMOoIuM5IvcM0INr1+pr81Ys2h809cnoU+BwXjqZFRIHcdPpD6ZoPMipr+yaMIveL4KTVnUQTXEB3dJ1OF5o4Jq8IQ4h01jfwqfTEPtJkVWYaw15tZkxeyOx/qZE4dZY6mNX0Trvs/fsr21gIbGPc0YFxtfiiIdp92CkUVDaw4sPO9IUPSQ0m9lDATcuqDfpSrzxI8/gQoBpuvCZSJoHrR3",
        "X-OriginatorOrg": "ti.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "08 May 2026 22:29:24.4276 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n cae834a8-ffed-4dde-d098-08dead51420c",
        "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.23.195];\n Helo=[lewvzet201.ext.ti.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n CH1PEPF0000A34B.namprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "IA4PR10MB8611",
        "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       |  2 +-\n lib/lmb.c                         | 39 +++++--------------------------\n 4 files changed, 22 insertions(+), 35 deletions(-)",
    "diff": "diff --git a/common/board_f.c b/common/board_f.c\nindex ce87c619e68..31c6eb725fb 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..ece05c142f0 100644\n--- a/lib/efi_loader/efi_memory.c\n+++ b/lib/efi_loader/efi_memory.c\n@@ -869,7 +869,7 @@ 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+\tuboot_pages = ((uintptr_t)map_sysmem(gd->initial_relocaddr, 0) -\n \t\t       uboot_start + EFI_PAGE_MASK) >> EFI_PAGE_SHIFT;\n \tefi_update_memory_map(uboot_start, uboot_pages, EFI_BOOT_SERVICES_CODE,\n \t\t\t      false, false);\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": [
        "PATCHv6",
        "3/3"
    ]
}