From patchwork Thu Feb 3 09:23:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 539591 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp2252991imr; Thu, 3 Feb 2022 01:23:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJQ4S5Zd85u6Dqqzu3h3r4Q4sEjlxgOnxuEEfm2MGQOWUWi8cX3qfdkdMaFm9zQ86XCmH7 X-Received: by 2002:a17:907:9619:: with SMTP id gb25mr28447509ejc.426.1643880200980; Thu, 03 Feb 2022 01:23:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643880200; cv=none; d=google.com; s=arc-20160816; b=g0hfj7ao4vL5l1q9XB/OhyoTuXJYEFW+nCEn2cjy5hf+xdhcSmMyZk1Z4K9ZEvVMUP 1QorGkryLA/MKx8i238JGalWutW9PUmy6w9Zv5znrS/XseNU7V9jW7aCmINEv4axZ5cC C3vDOs7m+ZzJaNbZ46OCVIPbEUNJiS6xAKt7G8nSObqgF4sqea+syyRIluz1JCE4Kuwa Hr9eQumwU2K2HE/epWNlx6wg3FQBQOkShzTeYFtG65AuVcNvBn3LCpHKzyMoUhcoq0cX 2XWRjznVzJ+9QPp1xMVvWVwHYHEoIDBkxwydE8Qo8bZVErSVTQsWhMNkXnkQyztnVAji kJ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:user-agent:message-id:date:subject:cc:to:from :dkim-signature; bh=5/E4bnSsdRyIkIsegz5HxE9v8vIzJSakb2pvF8/c0hA=; b=szGrKYAC58JNGUjczInkote5Eko5Tll/e1pXAFsMLmvVuYxA0dXOxoiV25Du2QGgIk 2gtpUAL5F9jJmxRaMhr8lJg/h3DJU1BmnZXLFZ8ZnhIJHSlyh5UGWzZ7Y2c85kvFRGZW jHMbd8cgAtux7Zay2T6tc3v5tw0BjVNhJuPxG4eu/Nc/6blz7GO2YpDUFb1rgmJZ3PEQ 1v0yCAydd6AciTLHLyekamvWQIsoRuVO46N9A11LCA86+1xE8NDap5jpugpi8ur92Lkr D0yoHo5+1Zrejc/xeFV1zCrW4IGEgZoxA8ZPwrRv3Ea9e3rjvShK/EE9vIhUwaHCLccx 0VNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AmqON5fn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o26si13349144edq.314.2022.02.03.01.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 01:23:20 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AmqON5fn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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-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 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