{"id":2196876,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2196876/?format=json","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.0/projects/18/?format=json","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":"<20260216113017.4135639-3-vincent.stehle@arm.com>","date":"2026-02-16T11:30:17","name":"[2/2] efi_selftest: test specific LoadImage() case","commit_ref":"02b74a786354db961f3e057f671d60fad9a17515","pull_url":null,"state":"accepted","archived":true,"hash":"8591df409fd45eaad7d68c73d610952a1c4b48dc","submitter":{"id":77169,"url":"http://patchwork.ozlabs.org/api/1.0/people/77169/?format=json","name":"Vincent Stehlé","email":"vincent.stehle@arm.com"},"delegate":{"id":68728,"url":"http://patchwork.ozlabs.org/api/1.0/users/68728/?format=json","username":"xypron","first_name":"Heinrich","last_name":"Schuchardt","email":"xypron.glpk@gmx.de"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260216113017.4135639-3-vincent.stehle@arm.com/mbox/","series":[{"id":492295,"url":"http://patchwork.ozlabs.org/api/1.0/series/492295/?format=json","date":"2026-02-16T11:30:15","name":"efi: test and fix specific LoadImage() return code","version":1,"mbox":"http://patchwork.ozlabs.org/series/492295/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2196876/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 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=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 dmarc=fail (p=none dis=none) header.from=arm.com","phobos.denx.de;\n spf=pass smtp.mailfrom=vincent.stehle@arm.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fF0vd0q3qz1xtN\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 16 Feb 2026 22:30:53 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2ABDB83CB5;\n\tMon, 16 Feb 2026 12:30:46 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id C4FAD8063E; Mon, 16 Feb 2026 12:30:44 +0100 (CET)","from foss.arm.com (foss.arm.com [217.140.110.172])\n by phobos.denx.de (Postfix) with ESMTP id C2E528063E\n for <u-boot@lists.denx.de>; Mon, 16 Feb 2026 12:30:42 +0100 (CET)","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 C5B4F150C;\n Mon, 16 Feb 2026 03:30:35 -0800 (PST)","from debian (unknown [10.57.12.11])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 04A763F632;\n Mon, 16 Feb 2026 03:30:40 -0800 (PST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-1.9 required=5.0 tests=BAYES_00,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","From":"=?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>","To":"u-boot@lists.denx.de","Cc":"=?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>,\n Sathisha Shivaramappa <sathisha.shivaramappa@arm.com>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>, Tom Rini <trini@konsulko.com>","Subject":"[PATCH 2/2] efi_selftest: test specific LoadImage() case","Date":"Mon, 16 Feb 2026 12:30:17 +0100","Message-ID":"<20260216113017.4135639-3-vincent.stehle@arm.com>","X-Mailer":"git-send-email 2.51.0","In-Reply-To":"<20260216113017.4135639-1-vincent.stehle@arm.com>","References":"<20260216113017.4135639-1-vincent.stehle@arm.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","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":"Add a test calling the LoadImage() UEFI function with both its SourceBuffer\nand DevicePath input arguments equal to NULL.\n\nThis test can be run on the sandbox with the following command:\n\n  ./u-boot -T -c \"setenv efi_selftest load image from file; \\\n                  bootefi selftest\"\n\nSigned-off-by: Vincent Stehlé <vincent.stehle@arm.com>\nCc: Heinrich Schuchardt <xypron.glpk@gmx.de>\nCc: Ilias Apalodimas <ilias.apalodimas@linaro.org>\nCc: Tom Rini <trini@konsulko.com>\n---\n lib/efi_selftest/efi_selftest_loadimage.c | 7 +++++++\n 1 file changed, 7 insertions(+)","diff":"diff --git a/lib/efi_selftest/efi_selftest_loadimage.c b/lib/efi_selftest/efi_selftest_loadimage.c\nindex 967eaa58c69..0e8fc6216f0 100644\n--- a/lib/efi_selftest/efi_selftest_loadimage.c\n+++ b/lib/efi_selftest/efi_selftest_loadimage.c\n@@ -562,6 +562,13 @@ static int execute(void)\n \t\treturn EFI_ST_FAILURE;\n \t}\n \n+\tret = boottime->load_image(false, handle_image, NULL, NULL, 0,\n+\t\t\t\t   &handle);\n+\tif (ret != EFI_NOT_FOUND) {\n+\t\tefi_st_error(\"Unexpected load_image return value\\n\");\n+\t\treturn EFI_ST_FAILURE;\n+\t}\n+\n \treturn EFI_ST_SUCCESS;\n }\n \n","prefixes":["2/2"]}