Message ID | 20250902152158.2285264-19-sjg@u-boot.org |
---|---|
State | New |
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826573; bh=N0bEIz5THbWDUugjXJ1FJMOi+nuRRigfcT+LYdO0dq0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=i198A1GzFkAARekYclUasqpVnUEoD4eYwTp6uFhBpbQq1nrgUKvPUA4aQBJr9aBRI ibprx+e30WrU8FOVs4N1TB7ThEUCNb1rCNPtNjwpCRvvTc3rexZ1SsGhHRPhGe4pAk tR3W/RhwQcrYK/21v8d8NrN8dY6woQAGsphHDK75Ld3eX+3CULr8r3ZniulNPS4BGD Hhgs0Z2CUN+2K2sPpoZu6Cq43HiCDPOn0o+/Q/wkb6dH1NTAqeYoyXKJNR3m+t4j+s gZ7iyWYsw5tMa3YIa+lX9pRdb4kEuZNv4HcaPSyTrso3lEOZ+fOtGPJ4gw00Z1saix z/PDa3TMjQIjg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8710A678E2 for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:53 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ggZyGCAGH8VM for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:53 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826572; bh=N0bEIz5THbWDUugjXJ1FJMOi+nuRRigfcT+LYdO0dq0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=IsISLkYCsnsvZfYwHU1WbupBXfYQ7wHAQMoyLeyBBoBdSibv5ZRroygm2SnH+PVSr zeHh3rtrytJ+3B7y315ln0B3WDGWAko+beKRKuwfJj4i2mPe4v4Xnd4lSkb6dNN2rZ 66FQPQMafVkf4yvgTINRf5N/AhkZuMtHjYwM6zQMtR1VGoHtfeeCOIpPx7Npnplg3E 0v1ORcVeKhfoUUyK1I/ih5vLqwwb+GlJxwhCPQvf9ahLYNa6Mg3pxrP/LeOsKVMRmM EXILudLHezCxNKmrhdQtoOro2KeWkis7zQtQUsbG2chPCvYVBRBmifIPPul4i6fB/5 nBbC4i4SEBnxw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2447B678F3 for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826569; bh=vF//Oo5GZGeQd1bo6b4lTNSGerpyvArpNeuqck+z498=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jWmBlOwK+5RtBp+it7UPtHbmGxLRKPYOVxMRjSqTpnkad9jFfmJ8k1++rDR8mkrfy HA2UIuyczPQt9yrnTAc4nob/LhVCN8wwFvDU3QRllyA/oWMcDCjSxsVFFgHe4Mkmu7 JaP0DAdTNQIiPnvC/1RDO7yASBfMnC1F6qbuZ6S4hy/MZBBo/QHsni5z47PLFlHlZK ce8+95lRbxH5fb6DIqdBJ7CTeF6ElDYSDnjysWufaKcf+AWQ+qVRfX8HAoEcGbIMA1 dzk2TWkG03OODHmSadbLvJrbBl1XDi0+pVXAWY+5onWhZ+ty+hMXjxZaROHr5yd6K9 Hk+N9THqq+FoQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 71E0C5FE1B; Tue, 2 Sep 2025 09:22:49 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id HCkiVlNYqMdL; Tue, 2 Sep 2025 09:22:49 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826569; bh=JGbau+7SPpKz1UEX01dcGtWjgZwJ9WV0w35t8lTci7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mt0JBzXhIbQdN1g3fiy2/d6OhMS2DapqhuwuDb+T0YfDORnp7c9IM3hRoYdgf9aTr Sjt6iOArz71jg3lPoYTziLE/FhFse89spC5ORIS2tuaatBJqmPFbPBPbHOITmgUxjT L4iEAQ8okiDHBpKdQISW0+sBK430M1+DK/ZxmixMDrsso0W+CwvUX8+HgnsMsSc2Qt K/8zNlqP9uc18yVRoSUdGyySzuV95iK79aEut1NKnL35eadbZHB2Ow13f7T4wj+nFj 3bPblSZPqX++3lbR2xnREJSa2eUb1EgwtEvOyRW+v8Yo/2WOGHmpK83Sazc4EWhoec 41VVPrpKNPPCw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C477167864; Tue, 2 Sep 2025 09:22:48 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 2 Sep 2025 09:21:50 -0600 Message-ID: <20250902152158.2285264-19-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250902152158.2285264-1-sjg@u-boot.org> References: <20250902152158.2285264-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 3U2EWN37IGHKVASNKVDXC7VWH4NGUIEE X-Message-ID-Hash: 3U2EWN37IGHKVASNKVDXC7VWH4NGUIEE X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 18/18] sysreset: Add -c flag for explicit cold reset List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/3U2EWN37IGHKVASNKVDXC7VWH4NGUIEE/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
efi: Improve integration of the app with a Shim environment
|
|
Commit Message
Simon Glass
Sept. 2, 2025, 3:21 p.m. UTC
From: Simon Glass <sjg@chromium.org> Add support for reset -c flag to explicitly request cold reset. This provides symmetry with -w (warm) and -u (firmware UI) flags. For EFI apps, this performs EFI_RESET_COLD which does a full system reboot without going to firmware setup interface. Signed-off-by: Simon Glass <sjg@chromium.org> --- doc/usage/cmd/reset.rst | 2 +- lib/efi_client/efi_app.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/usage/cmd/reset.rst b/doc/usage/cmd/reset.rst index 190f3281d78..d3923c3e8a9 100644 --- a/doc/usage/cmd/reset.rst +++ b/doc/usage/cmd/reset.rst @@ -11,7 +11,7 @@ Synopsis :: - reset [-w] [-u] + reset [-c] [-w] [-u] Description ----------- diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 1afccc8c8c7..25fc2e9cade 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -254,6 +254,10 @@ static int efi_sysreset_request(struct udevice *dev, enum sysreset_t type) struct efi_priv *priv = efi_get_priv(); switch (type) { + case SYSRESET_COLD: + /* Perform a cold reset */ + priv->run->reset_system(EFI_RESET_COLD, EFI_SUCCESS, 0, NULL); + break; case SYSRESET_TO_FIRMWARE_UI: { efi_status_t ret; u64 osind;