get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217988,
    "url": "http://patchwork.ozlabs.org/api/patches/2217988/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260331080117.2370092-3-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": "<20260331080117.2370092-3-ilias.apalodimas@linaro.org>",
    "list_archive_url": null,
    "date": "2026-03-31T08:01:12",
    "name": "[v2,2/4] fdtdec: Introduce fdtdec_setup_mem_ram_top() to determine end of topmost DRAM bank",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9533719ef82ddcd91d60c2af702ebf8c1276d057",
    "submitter": {
        "id": 74147,
        "url": "http://patchwork.ozlabs.org/api/people/74147/?format=api",
        "name": "Ilias Apalodimas",
        "email": "ilias.apalodimas@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260331080117.2370092-3-ilias.apalodimas@linaro.org/mbox/",
    "series": [
        {
            "id": 498138,
            "url": "http://patchwork.ozlabs.org/api/series/498138/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498138",
            "date": "2026-03-31T08:01:10",
            "name": "Relocate U-Boot in the last bank",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498138/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217988/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217988/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=XyNvGJfe;\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=\"XyNvGJfe\";\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 4flLDm2b9Nz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 19:02:00 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 733BD84011;\n\tTue, 31 Mar 2026 10:01:42 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 99B0084073; Tue, 31 Mar 2026 10:01:40 +0200 (CEST)",
            "from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com\n [IPv6:2a00:1450:4864:20::32d])\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 10B858406D\n for <u-boot@lists.denx.de>; Tue, 31 Mar 2026 10:01:36 +0200 (CEST)",
            "by mail-wm1-x32d.google.com with SMTP id\n 5b1f17b1804b1-486fd3a577eso48849845e9.1\n for <u-boot@lists.denx.de>; Tue, 31 Mar 2026 01:01:36 -0700 (PDT)",
            "from hera ([94.131.143.12]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4887c9250afsm10087065e9.36.2026.03.31.01.01.33\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 31 Mar 2026 01:01:34 -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=1774944095; x=1775548895; 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=CeaoR1w/uoH2kKTsfBU7MmAQaua1/dgiLsTbTtFYatY=;\n b=XyNvGJfe91ByIFJs2BLF/YL0h/1RrdWa3Yh9qmE6jwWVY5z21vQCm8TrnQ4msuvwMx\n CMPjRntUTMe13dc9t0HW2GyzaWO3N5JfRmkvYKWuhS8cW4chKOHDawy7TDc8E1lpW3DA\n eb4QvuBRcVGsPPB1ZcptLJBm/U0w8uyugA5BMvq+QFRcIXDty8cSQHMVAH4tM0XBh1bS\n awpdhhzssevdk19uUALI0PDGqP657ZbSd5mfWPeXS/0Sw0MG1mEgbh/ctQDJomnXkIcb\n f9bUqp8kpnh+lgq2SqGg4GPm3bEFSbX4JFdpnk5HMKNTMsVsqiezXYCuTKqXranl2mqv\n 0FsA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774944095; x=1775548895;\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=CeaoR1w/uoH2kKTsfBU7MmAQaua1/dgiLsTbTtFYatY=;\n b=Xb4TvZ9NufAF82EG6eFoSXQ9fx/2yqziYa6yDVa/zwUfBrKYPlVwrwj9IlFl2+NdPb\n VZGfTEEGCqvexvKXKityZpFNuz7XBJHH2Yk9BnkFw5z9CKVLV/ABX1lFoEw+SdyDWyoi\n gPQcxe3w+bhwqypgUsT8I+A66AJk9RrPltzIqTZ1fFQB+szP+S3EP6d6kj2prIvZPisp\n smPkjcMEcKSVyPC1rfhqv7+845I5OKi4YdxvKjcC+Ywv+XK7zR9Q7vtPnClqn7ETfpVB\n votG46UKVJ7E1VBk4LjYjAufry9B1ZyMHFQYs/QNPunBfTwphEQZgpjJJamzuD2Hgj3Y\n iCdA==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWiNTZ6FJ77JJZHRk2yr5MrNLugbtZyj26jILH1u9WbbWLGK+bth7ffY67ZhSSIfc0kOt5h25A=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0YyUepcZFS8ofOI4IaYUUtkQqpEMxrUfPc2Ba7S8RxV+DO5t1d89\n Q9kAyN2F6hGWTvkAhm/4WBm/1scle33ol8nDf3RIQ25isIWh9GH7uooNiIPjF59mo5/nBtYQMTh\n wE2V1",
        "X-Gm-Gg": "ATEYQzwlOYefQd8oNlbz8Y2CM9QYzlUUpQAoCsmI4I0bWEzBPX8kLEy70JedPNaS6gk\n AqyeY7QPNr7e2WJZXMRkOfXWkgTtwktBdpbBYLqaqpjhw1jervap9dhSuibIxEIrn6mSlL8AeoO\n Pl2uj7seQUGANXHLJKi2RGdIkInE9KTrPgs0cGbMNoUUx25Aq+e6Rxx6lHxXJ6gsbqfftLcbLy4\n QtDASb57efy67xc4FQ8ZRnMGeMZUoa+wL0HW0SDkDxq7dTAx9fk4dm5/K6uXnPdRQOCbvXgxwt+\n tjHzD5OqPaYuNkwhxncTjYNnsx27rCXfAtymYYLigGkwYbLME6WH/je5PBRr/AxbJyJYHmDD3yg\n 0Lk+1zPs6MG+f2HNYTH0PGFFioSwe3ybGTGhtM6NYlhnpa22Ng9HGfA5NgPe3lhIg/Irc6yKoF4\n 2vWmM2hIov2WIRqq0TFhF1yicgBi7KC/H7F0dGFLmqN/vJta23Ca8aRSiWIrERQaAX3iTevocl7\n 7f08Fa1vzvzt9iYQYxBIQ4X0lN4us6+zZxtuPFJwj5FChwiUJ08PQT38pEYFNQ9JvOVMWmHntsO\n xQZCS1gtqIglRYbz6SNDeDbSoygss6yUPlEA5FIuY5CCfWeK81739Y3fW6dB5e2YMxywqOs26p7\n uP2UBIKSrVyr86dqIV2sB9KXbi8xo8PKtQ0/e7moJVAYmyRIXtOKE9J+cu05rnPPWnHN+tzORqS\n nNFPVmjUVLg/gVCx/84E/tIPVy+ffhiPxp/e7Rw5cVa+C7gr/aPy5KOkZLYsd5zp5FDDttoc4=",
        "X-Received": "by 2002:a05:600c:810a:b0:487:2e8:69c5 with SMTP id\n 5b1f17b1804b1-48727e909b0mr235658915e9.15.1774944095303;\n Tue, 31 Mar 2026 01:01:35 -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 v2 2/4] fdtdec: Introduce fdtdec_setup_mem_ram_top() to\n determine end of topmost DRAM bank",
        "Date": "Tue, 31 Mar 2026 11:01:12 +0300",
        "Message-ID": "<20260331080117.2370092-3-ilias.apalodimas@linaro.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260331080117.2370092-1-ilias.apalodimas@linaro.org>",
        "References": "<20260331080117.2370092-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": "From: Marek Vasut <marek.vasut+renesas@mailbox.org>\n\nIntroduce function fdtdec_setup_mem_ram_top(), which determines the topmost\naddress in the last DRAM bank, to be assigned into gd->ram_top in order to\nrelocate U-Boot to the actual end of all DRAM. This makes use of iterator\nfunction fdtdec_setup_mem_for_each_bank() introduced in previous commit.\n\nReviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\nSigned-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\nSigned-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>\n---\n include/fdtdec.h | 16 ++++++++++++++++\n lib/fdtdec.c     | 18 ++++++++++++++++++\n 2 files changed, 34 insertions(+)",
    "diff": "diff --git a/include/fdtdec.h b/include/fdtdec.h\nindex d9fcd037ed26..26e40c3cdb46 100644\n--- a/include/fdtdec.h\n+++ b/include/fdtdec.h\n@@ -933,6 +933,22 @@ int fdtdec_setup_mem_size_base(void);\n  */\n int fdtdec_setup_mem_size_base_lowest(void);\n \n+/**\n+ * fdtdec_setup_mem_ram_top() - decode and setup gd->ram_top to highest address\n+ * available in any memory bank\n+ *\n+ * Decode the /memory 'reg' property to determine the highest end of the memory\n+ * bank and populate the global data ram_top with it.\n+ *\n+ * This function should be called from a boards board_get_usable_ram_top().\n+ * This helper function allows for boards to query the device tree for topmost\n+ * DRAM address.\n+ *\n+ * Return: 0 if OK, -EINVAL if the /memory node or reg property is missing or\n+ * invalid\n+ */\n+int fdtdec_setup_mem_ram_top(void);\n+\n /**\n  * fdtdec_setup_memory_banksize() - decode and populate gd->bd->bi_dram\n  *\ndiff --git a/lib/fdtdec.c b/lib/fdtdec.c\nindex d820f75b031d..bdb26d8fb75b 100644\n--- a/lib/fdtdec.c\n+++ b/lib/fdtdec.c\n@@ -1162,6 +1162,24 @@ int fdtdec_setup_mem_size_base_lowest(void)\n \treturn fdtdec_setup_mem_for_each_bank(fdtdec_setup_mem_size_base_lowest_bankfn);\n }\n \n+static void fdtdec_setup_mem_ram_top_bankfn(struct resource *res, int bank)\n+{\n+\tif ((res->end + 1) > gd->ram_top)\n+\t\tgd->ram_top = res->end + 1;\n+}\n+\n+int fdtdec_setup_mem_ram_top(void)\n+{\n+\tphys_addr_t old_top = gd->ram_top;\n+\tint ret;\n+\n+\tret = fdtdec_setup_mem_for_each_bank(fdtdec_setup_mem_ram_top_bankfn);\n+\tif (ret)\n+\t\tgd->ram_top = old_top;\n+\n+\treturn ret;\n+}\n+\n static int uncompress_blob(const void *src, ulong sz_src, void **dstp)\n {\n #if CONFIG_IS_ENABLED(MULTI_DTB_FIT_GZIP) ||\\\n",
    "prefixes": [
        "v2",
        "2/4"
    ]
}