From patchwork Sat Mar 25 16:10:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1761172 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=gmx.de header.i=xypron.glpk@gmx.de header.a=rsa-sha256 header.s=s31663417 header.b=k711EiEn; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PkPF82MWPz1yY7 for ; Sun, 26 Mar 2023 03:10:34 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3238185F39; Sat, 25 Mar 2023 17:10:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=gmx.de header.i=xypron.glpk@gmx.de header.b="k711EiEn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 333C885F3C; Sat, 25 Mar 2023 17:10:18 +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, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2D91785F31 for ; Sat, 25 Mar 2023 17:10:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1679760613; i=xypron.glpk@gmx.de; bh=RmNOCpbMaCSMlf402MeB3AjtC2ZifsfMhwKTqzKwz0U=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=k711EiEnkc9WxBSO04SXNLg+fN/xOxTiSer+h0scpUmnunikBFmopK7MC3a7q2RWb Y/htqdGCo/UWMaKfDBKhl3yOIwLlRXZSQCSQhU0LnhTGIcBJpdfSaSPNfVC5dhr76d XzNGHEaM8c+up3x90ovGpjrqtrUTOMYOO+NVqmLndCFTkknM3x4udYsUFaqg0nm7zu rAz4jLD4BdAD87jTRB/6sLbvLmhUJKw9HGeWtJqeqlOnDy1e/Fy5aaNtZj6P4e9NYG /sxHpUadHbz1xSAh3mugDXOzzB2K7WFBZgUVoR+jkcBWtBvwMluvMzjT/wkXrkfk0r SeEsLBVBzCJaQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.123.94] ([88.152.145.137]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mo6ux-1qGpCA3775-00pgCw; Sat, 25 Mar 2023 17:10:13 +0100 Message-ID: <39a08171-6add-0227-35fb-b10c69af7174@gmx.de> Date: Sat, 25 Mar 2023 17:10:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US To: Tom Rini Cc: U-Boot Mailing List , Ilias Apalodimas , Simon Glass From: Heinrich Schuchardt Subject: NEXT: Pull request for efi-next-20230325 X-Provags-ID: V03:K1:pKLGoYmOUpX+HtS+iPmS8Nu/EFySqnBUxGLsuAOp72zXITUwtup a7suDiACs6kP+igq7uqnKY96hY83mA+GtuYujtLAG3JDCP3OEdYnPfcY2qWrNZ8L3wR1LVd kQUV6dHP/kquouBwFG9wLVAX1jSP7vTFzo0Po5/C8YM/3H1Egmgcc2Ve7UDmwbeMqn7SDqf O1dfrvQYUOuUvAu3CB/Sg== UI-OutboundReport: notjunk:1;M01:P0:xYYQuU6cy1Y=;NNxMXeT3fvyTxE2LtMca71S2Tn7 OQRxhSUnp3eltyqjmFY7e6s/0wGZHUG/D7lBgzQzE9DIQUvYX3ZPc81LFWk0KkI5s8UOj8ll7 HdzDRlcp0daA+WfEsHIQDUff14JnbQhHL53M8arG+KUbnetNA3ImiaN/sqkWbJ2t33iRTq761 XDrY540bjeoZ+ncTQPX0NsF7bPKT3ZbAHjs7zAtm3ER6fmY5MAk5fdAGO0vcw2Cz3LKebIWJM dDbSXMXaJPLFbfAG+70JVG9swz2vBaDA70bAGH3g+Lsn54NC/bbYUeXIeGQSoGBKm8+LQfw0v XoM4+VMmBQn0+LCTtDcjlyi41t5HTZYvC3GPVxpGn4ezcJZdbqc8E1sK/gt9aSgVOLjYGbOcV rDquiLAViICYp6K5uNeXJXCpa73RuWYhsPlp+SeAART6u/UFaXutlPKbNLgV1oJ1ot1Pmei0/ Jxp93hMR1G9REE+p/umBqmuFZtK+XQwZhWyhPXkBjQfgnWsHJRVbEQoqtcl6xxwHa+r2rRzr+ XTXbYykssrY+rqvG4Ves/3DowYA4pYy3ssna3l4fdNrp6XKyRJ9K/EysqWxlyV7JZw1NCNaM4 9qjW6iSm5jLoV8C1pS2p3jPnaH9JudEW33grmIPxTzaZCCXdR2y+fPXrOWky7CkWKIl41CuqU vmP77J02r+vGpMaUN8ssHIs5+kl9MJ1i58F5GsyBWzYAvJ6QwhSOfNsj3Uo+l78UfRySCA+PF q7GGsnmV9xFYARyKRrX9SUu3e981F7EOreAgF+EoZCfAiK8V2acmVaAwKMHWsQf9SHO1ivbtD mqhn4lwdHXJ6NFVZPfsTzylovtAv6OIW9EjH+3gFIcqLjGmBHnhMIY2Xao3i0qGpadNK8yeng elOr5TQdAQRD6AzuNAy9AwgdaOgLo/2FRQYI7/ALVJOkTmpASh0MTxXcnAZc5UWgk/bUsbpi2 Slp/SWO4dgeifLA+ul0ufKxOo5E= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Dear Tom, The following changes since commit 884d626d8357853c012d535bf26c143bb7b5e6a5: Merge branch '2023-03-22-assorted-minor-code-cleanups' into next (2023-03-22 20:57:39 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-next-20230325 for you to fetch changes up to 93e3364804ffd4a5d4a0df9c750a1859f9fe298b: cmd: bootefi: allocate device-tree copy from high memory (2023-03-25 12:04:49 +0100) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/15736 ---------------------------------------------------------------- Pull request for efi-next-20230325 Documenation: * add man-page for efi command UEFI: * Let EFI app call ExitBootServices() before legacy booting kernel * Support zboot and bootm in the EFI app * Let efi command show configuration tables * Support booting a 64-bit kernel from 64-bit EFI app * Allocate device-tree copy from high memory * simplify efi_str_to_u16() ---------------------------------------------------------------- Heinrich Schuchardt (6): efi_loader: support for Ctrl() device path node efi_loader: fix device-path for USB devices efi_loader: move struct efi_device_path to efi.h efi_loader: move dp_alloc() to efi_alloc() efi_loader: simplify efi_str_to_u16() cmd: bootefi: allocate device-tree copy from high memory Simon Glass (12): efi: Set RUN_64BIT correctly for the EFI app x86: Adjust bootparam.h to be more like linux x86: Add return-value comment to cpu_jump_to_64bit() x86: Support booting a 64-bit kernel from 64-bit U-Boot x86: Exit EFI boot services before starting kernel x86: Support zboot and bootm in the EFI app efi: Add another tranch of GUIDs efi: Include GUID names with EFI app and payload doc: Add help for the efi command efi: Split out table-listing code into a new file efi: Support showing tables efI: Allow packaging a kernel in the debugging script arch/x86/Kconfig | 4 +- arch/x86/include/asm/bootm.h | 12 +- arch/x86/include/asm/bootparam.h | 70 ++++++---- arch/x86/include/asm/cpu.h | 1 + arch/x86/lib/bootm.c | 43 ++++-- arch/x86/lib/zimage.c | 17 ++- cmd/Makefile | 4 +- cmd/bootefi.c | 19 +-- cmd/efi.c | 31 ++++- cmd/efi_common.c | 26 ++++ cmd/efidebug.c | 6 +- configs/efi-x86_app32_defconfig | 2 +- configs/efi-x86_app64_defconfig | 3 +- doc/usage/cmd/efi.rst | 219 +++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + include/efi.h | 22 +++- include/efi_api.h | 31 ++++- include/efi_loader.h | 4 +- lib/efi_loader/efi_device_path.c | 85 ++++++------ lib/efi_loader/efi_device_path_to_text.c | 12 +- lib/efi_loader/efi_memory.c | 46 ++++--- lib/uuid.c | 10 +- scripts/build-efi.sh | 14 +- 23 files changed, 539 insertions(+), 143 deletions(-) create mode 100644 cmd/efi_common.c create mode 100644 doc/usage/cmd/efi.rst