From patchwork Tue Jan 25 11:31:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 536482 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp3625104imr; Tue, 25 Jan 2022 03:31:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxV9TCW9d5BYIBsLbyGQ+d5GLPRu6dbqnNjeSHlrL027zpUNQLaJw4DinvtvkZYEds/2pwa X-Received: by 2002:a17:907:728e:: with SMTP id dt14mr7641624ejc.333.1643110292547; Tue, 25 Jan 2022 03:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643110292; cv=none; d=google.com; s=arc-20160816; b=d0jmIwKkgiiS9/NFZ8YCpRsCs4qx5PQL8fuH3itvlrDY7Ci7kNOxXjel+W0LNc4RDn zQU6DIbgbpQEKmGY/keNGU21Tm5jPrRB06D8QykWtrSQVeyS4LGChfMK/WzYrAIB1w/4 s55zFGeKE+SPuEEoOuBwkJbzm7FeqvpoMWOjAeip+312QHvs8Uec6AoUoNPhp8iZKbiM i6JQZBJ4aDp8Oa/NhXF5LTtuM87Lrm4Oc2C9asAzJhR12iImdBW6eeYVd5LfIThvxbm8 233uT4Hh2oD47KIBCrpXdc61mzQnuaxhkvWQYkW2PMjNPVuv4q8DZFmG/eP8Xkv43kg9 6x8g== 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=GwN46lg8VhOh++yR02abgWYkLYYKIZOZbzGvSQunilU=; b=W8wpoYCf4D24pzesOKaxNDwvj/vZxf8jTOEwvHmCW46mUINzYMNsO6bRBmmUHDNEsZ GuK5h/FMsx4gXdsxXG9ERp7OHNnp2ropH9f5egFQybXet8y9bkqrv6Gx7UCEijdkT60t wrNndTzwsvJXKfF2uIg9q7vunPIYzjf5RiB6KE+r4istrCQtOY7XDRceQcuUexDILI78 +1vzBCV5P3mcw0nuY8CYa+h6ShxFYp0EraXWRwu8Li6B+boHcUen7iqwFR+s9Pl5Ggvn mLn4hh/yxajEd6KPZebeqnssaNr1Jd6/rVzWyM59YDFP+uMopr0OO/FN7VzTBtSbAHK3 J21g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XQEvOxqL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id k7si9374451edr.50.2022.01.25.03.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 03:31:32 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XQEvOxqL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 0532483106; Tue, 25 Jan 2022 12:31:30 +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="XQEvOxqL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 82B4283049; Tue, 25 Jan 2022 12:31:28 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (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 C4936832CD for ; Tue, 25 Jan 2022 12:31:25 +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-pj1-x102d.google.com with SMTP id o11so2491900pjf.0 for ; Tue, 25 Jan 2022 03:31:25 -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=GwN46lg8VhOh++yR02abgWYkLYYKIZOZbzGvSQunilU=; b=XQEvOxqLmVqBt5JvwCcQTEZQ2V2ZYoocpH8vDk3y62LMFnZh8IUu/JjDH2ZJVm2wve rNYqBbuaIfebeI0H0KWZrFc6kOAaC/4FsGL2b/DSxhznwp9lrpRp+llp2ndoF+6rbUJu Xu2XADKXUbXbbfLVFOtlm4lf2d8pP/6+XKf+0mlfkR7ztxfreHmpJDgTHVg+iOIntThn +aTg+hy0S1KbI2vW7iZBgpOW5iBC4woAzldxO5OqDUaB5RthOseltm06oQ/bpw6RccPs uUKqf2/X9UUy6r063iD9dMkT2nWAWK+xBy15uKpYTJ9ZDj/hMRPBcJdFVET0cZg3d7UU SMxA== 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=GwN46lg8VhOh++yR02abgWYkLYYKIZOZbzGvSQunilU=; b=bs2cQNjWnu8mJXJpjEJ59SPIDEIw8Ms+4rdD17E3Il2JpRw7BhGcmMDy9hjgJDPk4l b9UaE8fpH7qX4nTW90yY6S5FLWsOge7SgQLIvsgm65ZhlgtvZeg6ISRQFdQyAnfw8up1 A3Is7bFqFPnxxQ/kGg/Kx0nGMIUUPfHzO+ONwqRVvotV4U2/5BI46dGUMYWr/JEry9Yv ezyj9Cbo4T04zzCtqg4/QKx0gFeAA1PJ4BAWrlbiWPPiv+x5SN3F1V61evyUn5awbCah kyRNpODBVFbng7FYzdb7wOxxR3DLjmW/HiUMQW6ZfkFmEy5VtGfy5EocHlUW1dJxH755 xADw== X-Gm-Message-State: AOAM530cURI5mEOQiDXPpDiNXJBLtSUdaaOG5UcsmuvQlYvt/UqBrhSj 0yZLJyR5oEA4RahBd8ASmmBLU+MWZakTvQ== X-Received: by 2002:a17:90a:c301:: with SMTP id g1mr3046718pjt.132.1643110283922; Tue, 25 Jan 2022 03:31:23 -0800 (PST) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id d9sm5714853pfl.69.2022.01.25.03.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 03:31:23 -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 0/2] EFI: Add CAPSULE_FLAG_INITIATE_RESET support Date: Tue, 25 Jan 2022 20:31:19 +0900 Message-Id: <164311027891.175897.14232281505893559986.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, This is the patchset for adding CAPSULE_FLAG_INITIATE_RESET support to EFU capsule support, according to Takahiro's comment. The first patch is the core patch to add supporting the CAPSULE_FLAG_INITIATE_RESET. The system reset soon after applying the capsule file which has this flag. The rest of capsule files on disk will be applied after reboot. The second one adding "--flags reset" option to mkeficapsule tool. This might better be rebased on top of Takahiro's work, but in this version I made this series on top of the latest master branch. Thank you, --- Masami Hiramatsu (2): EFI: Support CAPSULE_FLAGS_INITIATE_RESET for capsule update mkeficapsule: Support "--flags reset" option lib/efi_loader/efi_capsule.c | 13 +++++++++++++ tools/mkeficapsule.c | 26 ++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) -- Masami Hiramatsu