From mboxrd@z Thu Jan 1 00:00:00 1970 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 24DFEC433F5 for ; Tue, 1 Feb 2022 08:33:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E42178018F; Tue, 1 Feb 2022 09:33:00 +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="kC7nd2C9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 40EDF80202; Tue, 1 Feb 2022 09:32:59 +0100 (CET) Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (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 6445C8018D for ; Tue, 1 Feb 2022 09:32:56 +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-pf1-x433.google.com with SMTP id e28so15207278pfj.5 for ; Tue, 01 Feb 2022 00:32:56 -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=Ew8g34oQco3pcZZcwdjbDE5koAFy2+zS+x2R6+yDS+Q=; b=kC7nd2C9q1ezEN/zBkrgUrtRMpkw2fmpVwWyq1GfjoRAopQRK2Z+YCnOP4+xzKVQes oYDpPO1oZAZnXU7oN7rrw/4FwU+Wf7K3SP4e6XNu2AZoK7t4ftM+KfTxdOqEp/VgfYYy vwHM0vp2qbtp3L7Z3iVNbmbPMf6G3HW+dBHc+1LH6ebdwbmejm168CJHmjJfXvMINLVT L2++VnDVVqNlMvudOsDyk9JIo9vsZKYKXvIR48W246yoyDVisxeUZ1yxFyt1dkwy3x+U LI7ZwtBheuTjBhmdGuTtMghHLeRW8WXJSMWfctSmZFbrTmgKRZ8coszFyYo7F9bpEhq4 pVjA== 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=Ew8g34oQco3pcZZcwdjbDE5koAFy2+zS+x2R6+yDS+Q=; b=Ovj+hyfV2Km3hWVmNW3t+6mulxLQOh2OwnIS6jqo0iz20TzkgKIrFpbnNmhIJK1NP/ CqkiylKkM3pI09l9+poOYY+Qwqf25eHasMRc9+LbHPJd2msS1nWQU0U0f+3MXdyw5FZd pu4mQLaHtsR5oerz54282fdduIrhis6Pxp/LUFnt2LBwSKsWsN2wCUvVxH8TY8hvqtnH szRQ/MI5sTMhVN5/NdYhs475pMgbnf4MoRT9mdWSbbL+qRhOKO1RMvSpFXR+S6KflIuK UbP3kIGsScMafgGaRqQW/10WDfqbI5ozBkfMPNyJsx0w7hutMEzcvCY5/GKRNts96ER7 O85A== X-Gm-Message-State: AOAM531SPyF1X++UqZz/69H1FrX9M2t1uwK17WV0G3o/LO0eTNhb/E5s XqQGWwoVIMkwqcQ71TGODiSVH394vpXapg== X-Google-Smtp-Source: ABdhPJyXrbX6zpV9mlMidUqDwp6I6ZkVn1LKXJ1NViu/SNvx5g+SppcUgepd4Hx6Xx46gRqhyXEy4g== X-Received: by 2002:a63:3f4a:: with SMTP id m71mr19819008pga.138.1643704374358; Tue, 01 Feb 2022 00:32:54 -0800 (PST) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id h2sm1831026pjc.31.2022.02.01.00.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 00:32:53 -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: Tue, 1 Feb 2022 17:32:49 +0900 Message-Id: <164370436957.365087.15139421656192351360.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 patch to reset after capsule-on-disk. This version fixes some bugs and remove kconfig for the reset (which uses panic). 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: Avoid using efi_update_capsule() from update capsule on disk efi_loader: Reset system after CapsuleUpdate on disk lib/efi_loader/efi_capsule.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- Masami Hiramatsu