Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A390DC433EF for ; Thu, 3 Feb 2022 09:23:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AC47382D3B; Thu, 3 Feb 2022 10:23:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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; unprotected) header.d=linaro.org header.i=@linaro.org header.b="AmqON5fn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4EA638002A; Thu, 3 Feb 2022 10:23:16 +0100 (CET) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 26E118002A for ; Thu, 3 Feb 2022 10:23:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pl1-x632.google.com with SMTP id s6so1625233plg.12 for ; Thu, 03 Feb 2022 01:23:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=5/E4bnSsdRyIkIsegz5HxE9v8vIzJSakb2pvF8/c0hA=; b=AmqON5fnAchERVcY0VU+UyS8IF0yvDyqvoFfjVCdHr6Y/ouun2P+zQo9aHCDcHfy6E e5ycU5K7O/7UkXcPrjT1fqGTu46/hfYLAWp34YXkAwrMiNbcnkVcoELNDE0aVXo+H/JN +SZZqgf98MTIn4Swlf9Hf0qL/tQ2EJi2L/6BDlXhUP6Zv1q2Mlr4sIRfG+80gLWj/dBP cNXQWCwmap6/c8+11RxeSEkJmf5F+e40ZMlZL+ZSnOTNnZiWSCg93CVJl3Hz9K+PBxDM VCmi0biiuzkQgrNalQMRjA3Mib57sl2iGCsZe3sPyzxZso7JsBvGVwsV1D5r9XsK++Us vkOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=5/E4bnSsdRyIkIsegz5HxE9v8vIzJSakb2pvF8/c0hA=; b=KpXpsR8uUyPcnzGh4P57T4mUXGejN9MbfZEa++NhnpK7OSBulVHOnm1jERku31DlVl GYZQYzVYeBbqn4195+iYVTEozc30zDbhl/vHy5Teq2ROGL3sWUm1z/DxFSiG21ZaWUEV oWlNwM/NHoUFsU00xP/Zd1Ew7Two5O4zaqBba31WpKCXu9D8HN+Uj7j+Iqr5uJWk6m4I ysS5N6dj97LJur9VvOoEPnM6Uc1jMztWFShc+iek71kTzGnzNl1XpD53e3qVllf9fEPf ykRr7gH03Hwgwuwh/zRf4VAL5POAAxEPUtjfy5e86bWomsYAn+/+RJJFruHaaqvB06G6 Si+g== X-Gm-Message-State: AOAM531kuJC7eyUbQz+OBPmm8q77kw6N8qqJMO6rhGFIVIqa8X05eVkm 8Yecg4zuBBmCEX4kkrb/So4wDirpA2Sq9Q== X-Google-Smtp-Source: ABdhPJyKrZ+aiRgL7H3vAhhX2v0UWfGxt3i9paXa3jQJq2JcjhzPNULIp9ukpnwDmedbd3LWzvsArA== X-Received: by 2002:a17:903:32c2:: with SMTP id i2mr34347343plr.55.1643880190964; Thu, 03 Feb 2022 01:23:10 -0800 (PST) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id c20sm26595716pfn.190.2022.02.03.01.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 01:23:09 -0800 (PST) From: Masami Hiramatsu To: u-boot@lists.denx.de Cc: Masami Hiramatsu , Patrick Delaunay , Patrice Chotard , Heinrich Schuchardt , Alexander Graf , AKASHI Takahiro , Simon Glass , Bin Meng , Ilias Apalodimas , Jose Marinho , Grant Likely , Tom Rini , Etienne Carriere , Sughosh Ganu , Paul Liu Subject: [PATCH v4 0/2] EFI: Reset system after capsule-on-disk Date: Thu, 3 Feb 2022 18:23:05 +0900 Message-Id: <164388018493.446835.11931101380744085380.stgit@localhost> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 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 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.5 at phobos.denx.de X-Virus-Status: Clean Hi, Here is the 4th version of the reset after capsule-on-disk. This version updates the patch description and use do_reset() and halt or reset_cpu() if available, according to Takahiro and Sughosh's comment. The reset after completing the capsule-on-disk is stated in the UEFI specification 2.9, section 8.5.5 "Delivery of Capsules via file on Mass Storage device" as below, In all cases that a capsule is identified for processing the system is restarted after capsule processing is completed. Thank you, --- Masami Hiramatsu (2): efi_loader: use efi_update_capsule_firmware() for capsule on disk efi_loader: Reset system after CapsuleUpdate on disk lib/efi_loader/efi_capsule.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) -- Masami Hiramatsu