Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196900/?format=api
{ "id": 2196900, "url": "http://patchwork.ozlabs.org/api/patches/2196900/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260216-feature_fwumdata-v3-4-9ecc5b10456d@bootlin.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": "<20260216-feature_fwumdata-v3-4-9ecc5b10456d@bootlin.com>", "list_archive_url": null, "date": "2026-02-16T13:35:34", "name": "[v3,4/6] tools: mkfwumdata: Add bank count validation for FWU metadata v2", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0d25d09f61c9a5377170e87023b1c6d22e1b4822", "submitter": { "id": 80520, "url": "http://patchwork.ozlabs.org/api/people/80520/?format=api", "name": "Kory Maincent", "email": "kory.maincent@bootlin.com" }, "delegate": { "id": 96103, "url": "http://patchwork.ozlabs.org/api/users/96103/?format=api", "username": "apalos", "first_name": "Ilias", "last_name": "Apalodimas", "email": "apalos@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260216-feature_fwumdata-v3-4-9ecc5b10456d@bootlin.com/mbox/", "series": [ { "id": 492310, "url": "http://patchwork.ozlabs.org/api/series/492310/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=492310", "date": "2026-02-16T13:35:30", "name": "Add support for fwumdata", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/492310/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2196900/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196900/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=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=EyD/cUO+;\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=reject dis=none) header.from=bootlin.com", "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=bootlin.com header.i=@bootlin.com header.b=\"EyD/cUO+\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=kory.maincent@bootlin.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 4fF3hf6V6rz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 00:36:34 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id B5F9D83C6C;\n\tMon, 16 Feb 2026 14:36:14 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 8C76583B8A; Mon, 16 Feb 2026 14:36:08 +0100 (CET)", "from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4])\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 5D69683B8A\n for <u-boot@lists.denx.de>; Mon, 16 Feb 2026 14:36:04 +0100 (CET)", "from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n by smtpout-03.galae.net (Postfix) with ESMTPS id F074D4E40E69;\n Mon, 16 Feb 2026 13:36:03 +0000 (UTC)", "from mail.galae.net (mail.galae.net [212.83.136.155])\n by smtpout-01.galae.net (Postfix) with ESMTPS id C58B4606CF;\n Mon, 16 Feb 2026 13:36:03 +0000 (UTC)", "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 833C81036914F; Mon, 16 Feb 2026 14:35:59 +0100 (CET)" ], "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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n t=1771248962; h=from:subject:date:message-id:to:cc:mime-version:content-type:\n content-transfer-encoding:in-reply-to:references;\n bh=H6eANGEZqLlTrROt4is2CaAPAuVK1VG7ko0TOaWvLqs=;\n b=EyD/cUO+zHFe0pSpkYdZXWI3WV4fG6oW/5EgXGZ1Hb/hN4Pna56ZRFpErArWbyO3PJnWN2\n Q7D4xldtJSDmaipdY+atbXm2ko032UU8HuF98wQfwlVkAf3qmqppX1MdlXgFwY1ccqEC6T\n WgRzsAysUFxxbttSIk7u7+FMOwFDd0TvKp0Bn/FE0Ba89UBglIUjE5DA2h0Lgjt2CwvwN6\n O4YXlFE0FUbzOb3oHfaUBAtuXLd9ydA3ATCTiqX77BWcijyTsI16QZX9hGq4Q1AoPuUWae\n Sp7+Rkw1eubXy6E0a4kYso7C/DScmsjCwMR/HQbkne0EA7cnWpxrHeYWQA4t3A==", "From": "Kory Maincent <kory.maincent@bootlin.com>", "Date": "Mon, 16 Feb 2026 14:35:34 +0100", "Subject": "[PATCH v3 4/6] tools: mkfwumdata: Add bank count validation for\n FWU metadata v2", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260216-feature_fwumdata-v3-4-9ecc5b10456d@bootlin.com>", "References": "<20260216-feature_fwumdata-v3-0-9ecc5b10456d@bootlin.com>", "In-Reply-To": "<20260216-feature_fwumdata-v3-0-9ecc5b10456d@bootlin.com>", "To": "u-boot@lists.denx.de", "Cc": "Thomas Petazzoni <thomas.petazzoni@bootlin.com>,\n Tom Rini <trini@konsulko.com>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Paul HENRYS <paul.henrys_ext@softathome.com>,\n Sughosh Ganu <sughosh.ganu@arm.com>, Greg Malysa <malysagreg@gmail.com>,\n Arturs Artamonovs <arturs.artamonovs@analog.com>,\n Vasileios Bimpikas <vasileios.bimpikas@analog.com>,\n Utsav Agarwal <utsav.agarwal@analog.com>,\n Nathan Barrett-Morrison <nathan.morrison@timesys.com>,\n Peng Fan <peng.fan@nxp.com>, Simon Glass <sjg@chromium.org>, =?utf-8?q?Duj?=\n\t=?utf-8?q?e_Mihanovi=C4=87?= <duje@dujemihanovic.xyz>,\n Stefan Roese <stefan.roese@mailbox.org>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Sumit Garg <sumit.garg@kernel.org>, Heiko Schocher <hs@nabladev.com>,\n Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,\n E Shattow <e@freeshell.de>, Raymond Mao <raymondmaoca@gmail.com>,\n Jan Kiszka <jan.kiszka@siemens.com>, Shiji Yang <yangshiji66@outlook.com>,\n Daniel Golle <daniel@makrotopia.org>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Leonard Anderweit <l.anderweit@phytec.de>,\n Kory Maincent <kory.maincent@bootlin.com>, Yao Zi <me@ziyao.cc>", "X-Mailer": "b4 0.14-dev-d4707", "X-Last-TLS-Session-Version": "TLSv1.3", "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": "The FWU metadata specification version 2 supports a maximum of 4 banks.\nAdd validation to enforce this limit and prevent creation of non-compliant\nmetadata structures when using version 2.\n\nWithout this check, users could inadvertently create invalid metadata by\nspecifying more than 4 banks, leading to potential compatibility issues\nwith FWU-compliant firmware update implementations.\n\nSigned-off-by: Kory Maincent <kory.maincent@bootlin.com>\n---\n tools/fwumdata_src/mkfwumdata.c | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/tools/fwumdata_src/mkfwumdata.c b/tools/fwumdata_src/mkfwumdata.c\nindex 5ceec7a2980..8b25539fd57 100644\n--- a/tools/fwumdata_src/mkfwumdata.c\n+++ b/tools/fwumdata_src/mkfwumdata.c\n@@ -471,6 +471,12 @@ int main(int argc, char *argv[])\n \t\treturn -EINVAL;\n \t}\n \n+\tif (version == 2 && banks > MAX_BANKS_V2) {\n+\t\tfprintf(stderr, \"Error: Version 2 supports maximum %d banks, %ld requested.\\n\",\n+\t\t\tMAX_BANKS_V2, banks);\n+\t\treturn -EINVAL;\n+\t}\n+\n \t/* This command takes UUIDs * images and output file. */\n \tif (optind + images + 1 != argc) {\n \t\tfprintf(stderr,\n", "prefixes": [ "v3", "4/6" ] }