get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216418,
    "url": "http://patchwork.ozlabs.org/api/patches/2216418/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260326115111.1631261-4-ilias.apalodimas@linaro.org/",
    "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": "<20260326115111.1631261-4-ilias.apalodimas@linaro.org>",
    "list_archive_url": null,
    "date": "2026-03-26T11:51:09",
    "name": "[v1,3/3] common: Allow relocations on the top of the last bank",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "ed09e75fe589202860374d765c09ef0f7253fc84",
    "submitter": {
        "id": 74147,
        "url": "http://patchwork.ozlabs.org/api/people/74147/?format=api",
        "name": "Ilias Apalodimas",
        "email": "ilias.apalodimas@linaro.org"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260326115111.1631261-4-ilias.apalodimas@linaro.org/mbox/",
    "series": [
        {
            "id": 497576,
            "url": "http://patchwork.ozlabs.org/api/series/497576/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497576",
            "date": "2026-03-26T11:51:06",
            "name": "Relocate U-Boot in the last bank",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497576/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216418/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216418/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 (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=g2nmLbaI;\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=\"g2nmLbaI\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhMZV0KGwz1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 22:52:02 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 27F5A83EAC;\n\tThu, 26 Mar 2026 12:51:37 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 79F0383CD3; Thu, 26 Mar 2026 12:51:36 +0100 (CET)",
            "from mail-wm1-x332.google.com (mail-wm1-x332.google.com\n [IPv6:2a00:1450:4864:20::332])\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 5EBEA83A1B\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 12:51:34 +0100 (CET)",
            "by mail-wm1-x332.google.com with SMTP id\n 5b1f17b1804b1-482f454be5bso18236965e9.0\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 04:51:34 -0700 (PDT)",
            "from hera ([94.131.143.12]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4871fb3d09dsm25968005e9.0.2026.03.26.04.51.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 04:51:32 -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=1774525894; x=1775130694; 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=3NRNe0tsv7xdwn6TailZS7sFZ+Z82CCtkQxhMibYX3s=;\n b=g2nmLbaIxUuYV57n452FklEr0yKpKkHGzPUbZu2Ssm/TIdGPGJVMUdZO15vouaI3zh\n BcjGbTCt2OSNNIKnoHvoyaM8UR9mLnMXZ8qSRoRohFaFOXOhprFIoq7Ysi3iDbNYwnK0\n RRRHpQT29zgaCBv7ISXcypPbPlmMFHGDO2BnxYz7WdkF6auiEbEnp/nkEV/T51U+LgUI\n iQuMkUepCh6C47oRAPGusmBqUtaQf42QOQ9paaHnOA3/2BP6AADZQEOOpJR01mSBWGWA\n 3gQr7dTVwtU3CyWh0Szyj2M5ZgjQi83BnsS26EEtYm87agkCtCHQnaLhHMhV5b3CiuRf\n qtYg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774525894; x=1775130694;\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=3NRNe0tsv7xdwn6TailZS7sFZ+Z82CCtkQxhMibYX3s=;\n b=cOeHhLT20srY1mjbBW8XZ2Fj6purQ5DmaxbpRGJBuR6BJyrSgr5qIrZfPtDEvTr5el\n ZF0cJgUqa8+qvgJS7lzb26fzvxIOsSxPf85CF+eVrgXLIw721RNLsxz0+UyHfLXCO4g9\n ODmwYu55zDDpCwab1G0EddaP7OLFXhKAKB2ZVwE1qo8tJ9mQ4Mv72IwpTrVDyg47YOH/\n NtomyzLZ3Zu7XHWWo6bKevV3N+72JHJHUaL1ZjLqzOO40qLNhUmub1zA7us34lJLcaC6\n d7Jz5TM9IJ8YteM+dAyMGELtUSE4CEkM95P96BVVOOHItRUc1HGWFNKF+0VFbGXhv4jD\n PwlQ==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCXQKeUaBd8YVHKMMnzA08Ip8dTix+llI0/jQbajkuySTvfMdQwpL6fs7gFOgfILpLGh0iDz0TE=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0YxHF3XBg/CAOlK8FDS4NTY1iAW1aV044ANPKyUVqIyh5XEWn2nQ\n WMz/q3kmRo1I7YcRv2eraa0ZVtn8DW70yka0v7xtG3oaW4omUkKwGHAGOSs8htG5rWU=",
        "X-Gm-Gg": "ATEYQzyWay/hHnZoP92pJLvkOuehXI01qxaGkxNh4BNkJIe2HX5ZPvVURRU3F1cfD5c\n DvgDO9qMgLZjoOPvM5uRJavOFk2SGBR9VktZ8t1nv8XkDhRHD7yPolvprCApRNXjxc6b8OO2NiY\n 625Al2IxKoAyodDEscH7oh4U9HsB/b1bcqy5H1fsE3O3Wu56wf1Sz+K3PvrZb+og3yFfGTubvp9\n raHnn86ty+kvkZn6H55XCx6gwyQtlL7Lx8/2j0kRkLGpGb5G8hiUDQdZAcvLy15NAuZulC6owXi\n PPaPC7jW0pW162bzCiFA+S9TpUtD8RdOOnnMXC5ICrBKDZX1DxsAzPhRza8ecqlLxDKo+9Cicmo\n JveODUJiGMkbjG0Z8EIwawtk8oeo1UHn9rszgXXVjyCOKOVFPRvvg1O0HQKQzQAIoBk6M0RHfKy\n O+4Br2be5BRkD1xuRm+qaQ22Rhr3uSwKRzaKbub54JD/ady2BLRY10e4m4C70HSJsuumzZLSHTZ\n T3vw761f5JNGu9VxSdlJiRO4jbqNQZoJgokUDS3JTaDIR4jzR65UXscHWBnJ6D4lpppvcE8eBcM\n c+p5nqQdWxXiOmrVrOEEymZXTHGrKtRB3EOAAqVcR9LJIIsdz1BZqov21chrN0n0V0lHTIveZ/+\n hZbBqqIZdSut8nXWqcd0P28vBJjG3QMtm7YssVQvnzEW2E9jWHfwP2iznnH2uky2l6VnJAwbDt1\n NIjVdkPo9dM523IGcpwYFAF9ybblsD1s96bSqglRlT9lqiXO69Dqa89mXyctYO",
        "X-Received": "by 2002:a05:600c:8b85:b0:487:12c:e7ea with SMTP id\n 5b1f17b1804b1-48722ba914dmr19132935e9.5.1774525893401;\n Thu, 26 Mar 2026 04:51:33 -0700 (PDT)",
        "From": "Ilias Apalodimas <ilias.apalodimas@linaro.org>",
        "To": "marek.vasut+renesas@mailbox.org,\n\ttrini@konsulko.com",
        "Cc": "Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n\tu-boot@lists.denx.de",
        "Subject": "[PATCH v1 3/3] common: Allow relocations on the top of the last bank",
        "Date": "Thu, 26 Mar 2026 13:51:09 +0200",
        "Message-ID": "<20260326115111.1631261-4-ilias.apalodimas@linaro.org>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260326115111.1631261-1-ilias.apalodimas@linaro.org>",
        "References": "<20260326115111.1631261-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": "Right now we only relocate u-boot to the top of the first\nmemory bank unless the board specific code overwrites it.\nThis is problematic when loading big binaries as it\nfragments the contiguous memory space for no apparent reason.\n\nIt's worth noting that there are cases where we must not relocate\nabove the 4GB boundary (e.g 64bit hardware with 32bit only capable\nDMA).\n\nAdd a Kconfig option and allow the common code to relocate U-Boot\nto the top of the last discovered bank.\n\nSigned-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\n---\nChanges since RFC: \n- new patch\n Kconfig          | 7 +++++++\n common/board_f.c | 2 ++\n 2 files changed, 9 insertions(+)",
    "diff": "diff --git a/Kconfig b/Kconfig\nindex ce25ea24a60f..b9144878ce0b 100644\n--- a/Kconfig\n+++ b/Kconfig\n@@ -474,6 +474,13 @@ config SKIP_RELOCATE\n \t  Skips relocation of U-Boot allowing for systems that have extremely\n \t  limited RAM to run U-Boot.\n \n+config RELOCATE_LAST_BANK\n+\tbool \"Relocate U-Boot to the top of the last memory bank\"\n+\thelp\n+\t  When U-Boot relocates, it chooses the end of the first memory bank.\n+\t  Enable this if you have multiple banks and want U-Boot to relocate\n+\t  to the top of the last available bank.\n+\n endif # EXPERT\n \n config PHYS_64BIT\ndiff --git a/common/board_f.c b/common/board_f.c\nindex df2b0dc899bf..7c3fbeab17ec 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -321,6 +321,8 @@ __weak phys_addr_t board_get_usable_ram_top(phys_size_t total_size)\n \t\t */\n \t\treturn 0;\n #endif\n+\tif (IS_ENABLED(CONFIG_RELOCATE_LAST_BANK))\n+\t\tfdtdec_setup_mem_ram_top();\n \treturn gd->ram_top;\n }\n \n",
    "prefixes": [
        "v1",
        "3/3"
    ]
}