Message ID | 20201029002528.34408-10-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp15606ilc; Wed, 28 Oct 2020 17:27:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXt33Bif8ihVgttJ5Ns9b1+hAT6rKJgrvZZXvsgr9ns7+OCpgLdRGb3iGOVI0mA4KlplVg X-Received: by 2002:a17:906:b1c9:: with SMTP id bv9mr1612311ejb.495.1603931259007; Wed, 28 Oct 2020 17:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603931259; cv=none; d=google.com; s=arc-20160816; b=AGLuEBtwmVzFSjtqXURQUi0gpd+X3fMBo2JhkkaGOhSM6XfT6JirsZ+8up3g4ySY5j BcYC+Y0v1NdCLRZvJzYhW1M+cwwhnnNbdU5B9MkY4A49tYXzET5nFkzZ3x4yhYpXRxZE qEOvrthbNE6rDPTUjQAidItJFPVwssN64MLwp5zPlYnd4G8iTt+01vVpqXde18iqm0bf lnKXH0m+DlsA57qL28Vcmoqa4yD7H2IlsFZRrVqC9MI4gy97djYOLOw2YF0UX30igDmV c8/4zCzcLgPWd1c3YL8FMKHvW78e2nXX9cZYnN3c+lA8QStMlVxOnL/TSlybfTjBrq3j ExNw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pfzS9a249CGCsTB62oWKa+nEqo4kbxAX5xW5fvW6X+k=; b=B0oku3sEtKAOBPmewilrMltZW1ApDl0bM2XJE+X6g23ItZEyuG90SvOiZb89tzzHGp xylNAprEqKbWlGXXy8XdUwVko5ddLTx8gC6vp4bOSHuCmtGjqUN7Z42JZNiOc63l9CWm 80RC3KC5BjWz3bCTgFW86raBJ7bpyWNPq7uLh1cd8T7HJNbhOP75JUbfGCgwIB8W8sMs +9P0XN/07C1xIN3PoapgvNNz1ovi7uu1fwIaFJQ4/1YLs391uuHr5lYgZxBAwl8UYzVN wYLm+aXgZ899GlQl4Dk7uJW0snaVklPZYk/S7gLNSEXOntGgP2kTtr+V/1fITQUUjm4P xOWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dEikyGdV; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id k2si823734edx.333.2020.10.28.17.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 17:27:38 -0700 (PDT) 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=dEikyGdV; 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 A2CC382518; Thu, 29 Oct 2020 01:26: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="dEikyGdV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F7CD824DA; Thu, 29 Oct 2020 01:26:24 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (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 F2D59824A8 for <u-boot@lists.denx.de>; Thu, 29 Oct 2020 01:26:20 +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=takahiro.akashi@linaro.org Received: by mail-pg1-x544.google.com with SMTP id s22so890763pga.9 for <u-boot@lists.denx.de>; Wed, 28 Oct 2020 17:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pfzS9a249CGCsTB62oWKa+nEqo4kbxAX5xW5fvW6X+k=; b=dEikyGdVVC1Ft8TiL/AweAIReTd2k7QlRywhkwhFU5psePSzkPkS0LC8Pwfz51wHCX wksmQgK3AOpI/2t/iaKlkKbx6aQGqJLTMhbv/trwhJ0zOM9ZC2B9ixG3EJVcaKClYQa+ vUa6amX5t9+HkBs6T5rV7nL7szKzYey2XmPug/J0JxqMKIdIAKZfyHlXOix5mgKblcH0 54ywOvJb+i1Gb5bKQlT6uJNClxFCc2VlZYBBGsU0S+EDj4+NwtX9gvzZiyGKB5V7yKOJ ZTz8EvEJHKQWLlInB6a8L/Pttu5ZdqAEDMIp1v9iPD7ca07TVwXSl9ThUYSd/9MAHx8H xL9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pfzS9a249CGCsTB62oWKa+nEqo4kbxAX5xW5fvW6X+k=; b=LBLvjZ0HOk5qmg9+gQt6r3xYyQqfJq66RE5kVFq1+U0nsuSvRQX9lrS+DFgTxllQKa iAQZ1F4gqwAbxH+L9I6Aw5Avnay1ZI1arcjwjEFnwlBU4m6ED1/uR9XChUKwwkK+MlJx ahAQ8Zk4YHxyLClC784EwefnmGghjr8PRWms5yiG0NeIpQnrVW9nFScwI/Jf8HhvHytD 3aIuf2JCUOEaMAE/Yy2DI/HUqAYLr1HJKfNMX7kA5N8rszEQOnqLg02Z+M1U2BU/j7Ys 4DDcH+OenAosAZdMvyzxqJR+BiAvy+ESU6qzx6OMYA1vvgu97UmslUtCs2NSD4605+dJ 2RLA== X-Gm-Message-State: AOAM532vEYR5lfMmLdOfn0lRlkX2374bkCnIlawlWTb9mTi613yhZ6Ex GOJbzNp+F8P3KbHqFfuc+u19m8FBPfDu6A== X-Received: by 2002:a65:4cc1:: with SMTP id n1mr1668788pgt.404.1603931179553; Wed, 28 Oct 2020 17:26:19 -0700 (PDT) Received: from localhost.localdomain (p784a66b9.tkyea130.ap.so-net.ne.jp. [120.74.102.185]) by smtp.gmail.com with ESMTPSA id s22sm731502pfu.119.2020.10.28.17.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 17:26:19 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: lukma@denx.de, trini@konsulko.com, xypron.glpk@gmx.de, agraf@csgraf.de Cc: sughosh.ganu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [RESEND PATCH v6 09/17] efi_loader: capsule: add memory range capsule definitions Date: Thu, 29 Oct 2020 09:25:20 +0900 Message-Id: <20201029002528.34408-10-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029002528.34408-1-takahiro.akashi@linaro.org> References: <20201029002528.34408-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi_loader: add capsule update support
|
expand
|
diff --git a/include/efi_api.h b/include/efi_api.h index c128a0a66ce8..7a2a087c60ed 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -221,6 +221,10 @@ enum efi_reset_type { EFI_GUID(0x39b68c46, 0xf7fb, 0x441b, 0xb6, 0xec, \ 0x16, 0xb0, 0xf6, 0x98, 0x21, 0xf3) +#define EFI_MEMORY_RANGE_CAPSULE_GUID \ + EFI_GUID(0xde9f0ec, 0x88b6, 0x428f, 0x97, 0x7a, \ + 0x25, 0x8f, 0x1d, 0xe, 0x5e, 0x72) + struct efi_capsule_header { efi_guid_t capsule_guid; u32 header_size; @@ -236,6 +240,19 @@ struct efi_capsule_result_variable_header { efi_status_t capsule_status; } __packed; +struct efi_memory_range { + efi_physical_addr_t address; + u64 length; +}; + +struct efi_memory_range_capsule { + struct efi_capsule_header *header; + /* EFI_MEMORY_TYPE: 0x80000000-0xFFFFFFFF */ + enum efi_mem_type os_requested_memory_type; + u64 number_of_memory_ranges; + struct efi_memory_range memory_ranges[]; +} __packed; + #define EFI_RT_SUPPORTED_GET_TIME 0x0001 #define EFI_RT_SUPPORTED_SET_TIME 0x0002 #define EFI_RT_SUPPORTED_GET_WAKEUP_TIME 0x0004
Memory range capsule gives us a way to notify that some memory regions should be left untouched across the next reset. See UEFI specification, section 8.5.3. Since how we should handle this kind of capsule is totally up to the system, no implementation will be added in this commit. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- include/efi_api.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.28.0