Message ID | 20201113041511.48207-10-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp899411ils; Thu, 12 Nov 2020 20:17:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwl5x+Cxzh836bcZwFSt9H3DNGqMzhR9RYjSYmPOTAdqWYgsdHXOGHMnLiC6ItQSoT8PI+Q X-Received: by 2002:aa7:d5d7:: with SMTP id d23mr607010eds.203.1605241076525; Thu, 12 Nov 2020 20:17:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605241076; cv=none; d=google.com; s=arc-20160816; b=AsWUMHLNfHJ4ngF1EGUPyl3pPO/6XXcMWT6rHU0dAPfyoBo6fnEOKanSemeiln3Wek imjx2xQujcCN8tUDZxyz/HuqUSO2sioZcgC8avHBRfI47xk0iLTtdJCsyVBf+/qEdhHS TJ2oNVGPeRxKW3w2j5e2clRtaWvbFRdnbv8vlaDEiMGpFvGsRfDmxQNWZubFSKjlaSWC /fodY92h5+vzjjC/NtAB2ZdeNdGHP+VQRk59FSJn6RyGhdb+NX5eWElWsdQi7nnR5p9s O6EMtiXEKTCNzMCnCM/u7AW05VfG7jRSmbCmN8yJB9Ay6Efd40e8TqIQSayFhoFdBajV ufmA== 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=oFhtk/D8qzvDv2S9zj69UbrHBPxWoyC5VEMgGVF4YgZnvRD/WiUvNmB+g8Ln7k+MkC 9QVZH3f5CucysJZIVbwXYSDEOdKR7kHWvvSnO8a1aI3o2LPGmYCdTPvFmQXw4DLuHY7f M+DI4Bk121Od8vniV/SHLG2gPGqvxoaHw5mzU5oYNMbxe6zcelyDqZL0emqGdLLl/sc6 6Jeuz0s1qr2dcVu9L60tgkd/OSA+rBLF1QIrR8fRTsJSQtZ7GtqIF5Y0uVDZPSK2mAbb 4JwP0whdcsLtsbLU4bKd482obuaO1kvteVqp5qBZCWf+tBX/JEF10xn7sLO7x5aHfcaU yH+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jyzud+5s; 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 s8si5578222edc.481.2020.11.12.20.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 20:17:56 -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=jyzud+5s; 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 11DA88254E; Fri, 13 Nov 2020 05:16:57 +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="jyzud+5s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9241482575; Fri, 13 Nov 2020 05:16:12 +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-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (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 CA76082556 for <u-boot@lists.denx.de>; Fri, 13 Nov 2020 05:16: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=takahiro.akashi@linaro.org Received: by mail-pg1-x541.google.com with SMTP id f38so6079018pgm.2 for <u-boot@lists.denx.de>; Thu, 12 Nov 2020 20:16:00 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=pfzS9a249CGCsTB62oWKa+nEqo4kbxAX5xW5fvW6X+k=; b=jyzud+5s2F7Tr3SgRnFKDA5geyAFQjKYpHCGSv4rfd+dnmWZ8emTdwMx3SfbPi9/B9 PI2OhCJ1o6PVw7Wfh0jB75iy+4OlNhEY2eck4t3N/Lhs+U1nAYHB39CbDBMLtdN/pezg 54ifxpx+H45nBOWYFOd6i15NnmsxjbsVDlDexh/hyUPw4fXc90LUTSI0yMIje9poXhxA Ap7ukcf2ZhJUxmmbjNnQZDhKWlzekG9F5Qh0jHqZSHG2hEI/crl1Yuvn2kwrpvjtUJ0B jMvwDf3rky68hKlT/TG1GmyVX+qxtzo7ttVbgKrDzygevnh74wtvfzCQ1bZ/FsEKv/gx Ygvw== 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=UAo2YhkHNOwBChMRrUJaaoiKzK925CuM0epDsjE0Rn/B3zOWZO41uHx8ItY9AsWHOh aNi6W26GkaJTsi5/i1pEGaiFd0KuGVDJf21WFuHn9m8SB3Kw4FMTFGdd3ebaaYwnsFKA m+RbzV+SNUb7dHig3eddFyxqyctnbndbV6ipUomiVdE6HsOqDg/s0KRZWS8t+VOVvMdd lhc9zNhNCFf7MoAsG9qKF8f7/xDYAOrRcMvu0JcyiaZiOqH24mXEPRPQyBhPVqheSqxv N6npIiBf5jF4vfvgYZwL6jwLV6Aj8GQX+Ooe3thMq/GoC/4Ci6lAA9tmOfzRCVGij+FJ 02OQ== X-Gm-Message-State: AOAM533LeGLyTS6C3KNJVz2kfRQ57rhd5AbPguuyp0ecEo6qu5EHKz+V 5puoSCiG0toWUaQrKr0+7/j0kg== X-Received: by 2002:aa7:8d14:0:b029:18b:8e8d:81e8 with SMTP id j20-20020aa78d140000b029018b8e8d81e8mr345389pfe.14.1605240959375; Thu, 12 Nov 2020 20:15:59 -0800 (PST) Received: from localhost.localdomain (p784a5642.tkyea130.ap.so-net.ne.jp. [120.74.86.66]) by smtp.gmail.com with ESMTPSA id s10sm4588340pjn.35.2020.11.12.20.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 20:15:58 -0800 (PST) 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: [PATCH v8 09/18] efi_loader: capsule: add memory range capsule definitions Date: Fri, 13 Nov 2020 13:15:02 +0900 Message-Id: <20201113041511.48207-10-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201113041511.48207-1-takahiro.akashi@linaro.org> References: <20201113041511.48207-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