Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2228248/?format=api
{ "id": 2228248, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228248/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260424173151.371134-2-harsimransingh.tungal@arm.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260424173151.371134-2-harsimransingh.tungal@arm.com>", "date": "2026-04-24T17:31:40", "name": "[01/12] efi_loader: add runtime memset helper", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c5a9e207c6d4c12dae2d2f68209d5727e923c379", "submitter": { "id": 88701, "url": "http://patchwork.ozlabs.org/api/1.1/people/88701/?format=api", "name": "Harsimran Singh Tungal", "email": "harsimransingh.tungal@arm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260424173151.371134-2-harsimransingh.tungal@arm.com/mbox/", "series": [ { "id": 501471, "url": "http://patchwork.ozlabs.org/api/1.1/series/501471/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501471", "date": "2026-04-24T17:31:50", "name": "arm64: FF-A runtime transport for EFI variables", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501471/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228248/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228248/checks/", "tags": {}, "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=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256\n header.s=foss header.b=Oxv4NoFr;\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=fail (p=none dis=none) header.from=arm.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=arm.com header.i=@arm.com header.b=\"Oxv4NoFr\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=arm.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=harsimransingh.tungal@arm.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 4g2yPZ4bGlz1yHS\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 04:03:46 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9FD9984479;\n\tSat, 25 Apr 2026 20:02:46 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id EBAE784401; Sat, 25 Apr 2026 19:01:49 +0200 (CEST)", "from foss.arm.com (foss.arm.com [217.140.110.172])\n by phobos.denx.de (Postfix) with ESMTP id A2CEC842BF\n for <u-boot@lists.denx.de>; Sat, 25 Apr 2026 19:01:45 +0200 (CEST)", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AB5AA359F;\n Fri, 24 Apr 2026 10:32:30 -0700 (PDT)", "from e132995.arm.com (unknown [10.57.64.144])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A99F3F7B4;\n Fri, 24 Apr 2026 10:32: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_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss;\n t=1777051956; bh=SU3t9/b5wqBQManKzNE4+/TWOZ5f/ZdxutQr9S0dqnk=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=Oxv4NoFrS5b7JwpqKEpaOwrIkiEu8uxZu9N5Kf8u9poP04YH5im3cc/QmO7emtHnV\n Abs+xVOFNyyQR+zByVpUWU2SC1ljoZE5Gv/MKY+TqfyfNB8nvqizhDqa7HWNswo/WI\n QadKKVLgrK+S3jvB1i+Bw27wf+bbAzNhl46QgZmQ=", "From": "Harsimran Singh Tungal <harsimransingh.tungal@arm.com>", "To": "u-boot@lists.denx.de", "Cc": "Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>,\n Tom Rini <trini@konsulko.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Hugues Kamba Mpiana <hugues.kambampiana@arm.com>,\n Simon Glass <sjg@chromium.org>,\n Harsimran Singh Tungal <harsimransingh.tungal@arm.com>", "Subject": "[PATCH 01/12] efi_loader: add runtime memset helper", "Date": "Fri, 24 Apr 2026 18:31:40 +0100", "Message-Id": "<20260424173151.371134-2-harsimransingh.tungal@arm.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260424173151.371134-1-harsimransingh.tungal@arm.com>", "References": "<20260424173151.371134-1-harsimransingh.tungal@arm.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Sat, 25 Apr 2026 20:02:44 +0200", "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": "Add efi_memset_runtime() for EFI runtime paths\n\nThis keeps buffer initialization in runtime-resident code after\nExitBootServices() and avoids relying on non-runtime helpers.\n\nSigned-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>\n---\n include/efi_loader.h | 3 +++\n lib/efi_loader/efi_runtime.c | 21 +++++++++++++++++++++\n 2 files changed, 24 insertions(+)", "diff": "diff --git a/include/efi_loader.h b/include/efi_loader.h\nindex 3a4d502631c..63944192aeb 100644\n--- a/include/efi_loader.h\n+++ b/include/efi_loader.h\n@@ -1151,6 +1151,9 @@ void efi_memcpy_runtime(void *dest, const void *src, size_t n);\n /* runtime implementation of memcmp() */\n int efi_memcmp_runtime(const void *s1, const void *s2, size_t n);\n \n+/* runtime implementation of memset */\n+__efi_runtime void *efi_memset_runtime(void *dest, int c, size_t n);\n+\n /* commonly used helper functions */\n u16 *efi_create_indexed_name(u16 *buffer, size_t buffer_size, const char *name,\n \t\t\t unsigned int index);\ndiff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c\nindex 73d4097464c..d9604399209 100644\n--- a/lib/efi_loader/efi_runtime.c\n+++ b/lib/efi_loader/efi_runtime.c\n@@ -233,6 +233,27 @@ int __efi_runtime efi_memcmp_runtime(const void *s1, const void *s2, size_t n)\n \treturn 0;\n }\n \n+/**\n+ * efi_memset_runtime() - fill a memory region with a byte value\n+ *\n+ * At runtime memset() is not available.\n+ *\n+ * @dest: pointer to the block of memory to fill.\n+ * @c: value to be set. The value is passed as an int, but the\n+ * function fills the block of memory using the u8 conversion of this value.\n+ * @n: number of bytes to be set to the value.\n+ * Return: dest is returned\n+ */\n+__efi_runtime void *efi_memset_runtime(void *dest, int c, size_t n)\n+{\n+\tu8 *d = dest;\n+\n+\tfor (; n; --n)\n+\t\t*d++ = c;\n+\n+\treturn dest;\n+}\n+\n /**\n * efi_update_table_header_crc32() - Update crc32 in table header\n *\n", "prefixes": [ "01/12" ] }