From patchwork Wed Feb 16 06:15:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 543039 Delivered-To: patch@linaro.org Received: by 2002:ac0:e142:0:0:0:0:0 with SMTP id r2csp1090415imn; Tue, 15 Feb 2022 22:15:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHs+UZ9HO2OZLsHfLdxQf6u3RuSXqQDrWMhIrEdFQ0R55x+VANvZG5a7zaDmKWiaNxPZYP X-Received: by 2002:a05:6402:d64:b0:40f:3ef3:a160 with SMTP id ec36-20020a0564020d6400b0040f3ef3a160mr1356631edb.141.1644992148291; Tue, 15 Feb 2022 22:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992148; cv=none; d=google.com; s=arc-20160816; b=vziHMDt9jiisNpLEy6NApZjrfKjD+4VqoawTt94PmSjkgpJ4Wtj5rvtpeph0EynkV7 MuTWXiOu916cau4dHkX7uFm+qXQWeyIUtSqjCNoHiixFLzOY8DNyTDUH4Eqv/8FSIrvd 4BBlYAEXkBXKTm8/EJlBKKr1+n7cKncbc966DZuMuABQTs3WJjMKuVeGwmwf4ttJt0t0 jbYNxeUFsZ94QcJSTHNtPDhrZXoPfB6DIdy5ZbF8g+4jA/GW96/xVEKoznOVpHGHtVvL Kon0obOBx6tB0eVFUC+5ZpnAa4qBjQBsXZkjOFpmgSpp1fQH2fGUYVpuuWTMP9d6Bf4W uREA== 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=hV9oI7kp78olDWmI8OPX5SXIsidqDpuCYpuXI5qKJOc=; b=jYpjyTAEsm5CD6lEnc5M9yUGPF56Nz3zhSg0kA5QXwQZYy7WbcmGGurdLxWzdd17nU ZbKT34LKVqsS2AywVzqHOC3IwrI0rhR2kltYhhJLUxVog8/CDsiFUjUknZ0J35dM8K2B s3xSWaVo6aafjHZqabfsG3tzY9YiF4yDX6iy9nPJW0esuANC23ogDe6jv26oWdmSIvzv 5xjqmfyC+iRGa3WhPDtOBOzOae8hrCxd35+RQXAoI5SDAf15RknetcmCn3gcQGySyybo cHdu5u1q9uqYptHxZW+luubzV7sMSmyyuRaJc+r4ejAFXn6pTnGRw1VoEHORjhXkNNOv N9MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="X7I/31Zo"; 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 nc37si25185572ejc.697.2022.02.15.22.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:15:48 -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="X7I/31Zo"; 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 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) 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-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-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 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