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 5F04AC433EF for ; Wed, 16 Feb 2022 06:15:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2009D838F4; Wed, 16 Feb 2022 07:15:44 +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="X7I/31Zo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 93F9980820; Wed, 16 Feb 2022 07:15:42 +0100 (CET) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (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 CA6FD80820 for ; Wed, 16 Feb 2022 07:15:38 +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-pg1-x535.google.com with SMTP id p23so1276330pgj.2 for ; Tue, 15 Feb 2022 22:15:38 -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=hV9oI7kp78olDWmI8OPX5SXIsidqDpuCYpuXI5qKJOc=; b=X7I/31ZoFdWOmbrrk4arhogqcz9le5VgXlSR0u9IQtk1aoufX45Zv7Hwhks40a1IiV y0N2QWKZw68p2fVCowqLM8gh/LC3QMWhuFhDx8sHXmYmoQwl+j6EQ08CGyJNk1hmzHcE T3Oez9KtzbUj5jBXgFsYlEKc8R1BxX1bNDWPWMyij+cl+9I69Nuaoki0Z3/jooDg+JBf hvje/tiJZ90fJxciSLcd2el+ZB/QwOEXdn1PNFeBD8TBJDKJRMpP1ab5EL6HpoMzK8OL HnRbBH7Y6UQa9fqDefFJBhFktNoeq4w5b89NAQOhmhKuzBuUJW8hd0i3ogSTQJyLhYVh eunw== 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=hV9oI7kp78olDWmI8OPX5SXIsidqDpuCYpuXI5qKJOc=; b=MaZOX3Ka4pIKC0rILhz3xZU2+OvZpEVw2oviHnBfNsghi5Q5u+jpZxcKr2qx4M9PtL 0h3sRcUD9QDuinp8sl+x+ZPwqkRL+K8P4RmMC46Y0tTk3Ry1vHeYmGPQhKD3pzkVUn/v QGNr4FFTlOizDvb+p5oqPAOE7Luud8df5DZ4qk7LvpYDnKq2+vZHDil02fDrFp4bDha2 Afls6CqLBn7bpF7dUFLnIBWywzEfzQsKCV7h6YaiQh8iC1kxpnfgs0lP20Uxp5O3U8i8 k/vEdwvYkIa+2rLpEOleGeC9SsChDlKCuTW5A4BW50pFQOsoBBzdyLqQL/14XM0p7RoD fO6A== X-Gm-Message-State: AOAM531QAFSNb8lt3DX0K7Ae+dAng3uyKN5Xjaf3RSQGJJQPj2qybW0q +2VP9Nt1tOBpfUXQjzGst4pAaMnW8cUI5g== X-Google-Smtp-Source: ABdhPJy9d9DltLBL1CalARSeL3OvknIp3Pr9E3L2FOcqDowl0BfZJrXc7GbEYm36acCoTSasIgE7MA== X-Received: by 2002:aa7:9735:0:b0:4bd:b258:e872 with SMTP id k21-20020aa79735000000b004bdb258e872mr1220856pfg.46.1644992136659; Tue, 15 Feb 2022 22:15:36 -0800 (PST) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id o5sm41321553pfk.172.2022.02.15.22.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:15:36 -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 v5 0/4] EFI: Reset system after capsule-on-disk Date: Wed, 16 Feb 2022 15:15:32 +0900 Message-Id: <164499213192.688621.17382243642029677399.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 5th version of the reset after capsule-on-disk. This version includes the test updates for this new behavior. I finally split the test update patches into 3 parts. ConsoleBase::run_command() update [2/4], ConsoleBase::ensure_spawned() update [3/4] and the test code update. The last part is merged into the reset after capsule-on-disk patch [4/4]. 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 (4): efi_loader: use efi_update_capsule_firmware() for capsule on disk test/py: Handle expected reset by command test/py: Handle expected reboot while booting sandbox efi_loader: test/py: Reset system after capsule update on disk lib/efi_loader/efi_capsule.c | 20 +++ .../test_efi_capsule/test_capsule_firmware.py | 37 ++++-- test/py/u_boot_console_base.py | 115 ++++++++++++-------- test/py/u_boot_console_sandbox.py | 7 + 4 files changed, 115 insertions(+), 64 deletions(-) -- Masami Hiramatsu