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 2EE02C433EF for ; Wed, 2 Feb 2022 13:54:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DDE4F838C9; Wed, 2 Feb 2022 14:54:41 +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="Gwre+4pO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C709838CC; Wed, 2 Feb 2022 14:54:40 +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 9B763838C8 for ; Wed, 2 Feb 2022 14:54:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pl1-x632.google.com with SMTP id c9so18270932plg.11 for ; Wed, 02 Feb 2022 05:54:34 -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=vrlTmsyc1FdwcGkKUR4zy42UNwzFE52/Hgaj+Uv1S3o=; b=Gwre+4pOYQKcepML4+BZAWEBEAL5F/sqEHIcRjwlEROgZT6WYRglhTpZVHk5OgVxC5 9MIttM3IMi7CjEq/YpTT7znMfTqpeZr5ESkysBx1SEMyN+qanQL2kSeGa3Ff1xw5M037 0ha/ywk7d7ASmiWxJrNjpzBFLsb6rMpnisFY4zXaWrgQFzNrr4cCpYXPz9uuBFubNWXH bmOz74NzVLSsTJxm+/rRQLmVZF3mOgcEY0GxBTNjg+ABjnCpt97UAQqGZzZAZh+aA4Pv qBUDrpSxeLNKqlB7WNjaSFhjOwmplRusDrSXYmSznTJKgbuur8qZjivbGxjtptd3zphL h9lg== 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=vrlTmsyc1FdwcGkKUR4zy42UNwzFE52/Hgaj+Uv1S3o=; b=xFcdPLG59Vp3I9aZxJy5clL+ce4jGtKqM/Bmv431YqdflXptoRPU+b+UCdEmluNMlC KADPgOdkeQxzUZz6OtKR2IfHalE8hN5u2yuR581t0hfPTOxsxUpaiYtsNzV/dgFJlfbY n8ooEMblncMIyJ5w1CbVJ3Bs9XXa2qFGaTe3IPbHT1VP0QVxu5SNuyC9v44ITq4HLol3 Gy24GtFizVA2/5fgATGU3ch56KgENU5QQDephP/Np5xfHFxerlEQyD+Ca6boGZKAJ92C vaNCkb1eAltOKmgt3nPY/J0+MdZ1J+HO9bMhmTEh16ZW1qsVepUeEwYfxSe+CCvMc5nh g/aA== X-Gm-Message-State: AOAM5313YspfMdap4eDZchSNX+Ha0GbqN4bqbdFIl/iC4PMZb3OziKBy Sa0V0Vc8CZ9uONfqzwE4vxYov0dZGdd/pw== X-Google-Smtp-Source: ABdhPJxoW9Pr8GdNuNb4hYYvlmbUG3WjNkCpYxJflM9dngVhwslrjVUnpqXv8uiHnqiNHdgwXobUmw== X-Received: by 2002:a17:90a:154e:: with SMTP id y14mr8364795pja.180.1643810067646; Wed, 02 Feb 2022 05:54:27 -0800 (PST) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id r11sm25836194pff.81.2022.02.02.05.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 05:54:27 -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 v2 0/2] EFI: Reset system after capsule-on-disk Date: Wed, 2 Feb 2022 22:54:22 +0900 Message-Id: <164381006265.420956.16575397258903175632.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 3rd 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 | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) -- Masami Hiramatsu