Message ID | 20200722060539.15168-9-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp254131ilg; Tue, 21 Jul 2020 23:07:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB9amF3hRHDb207My7UNNkBe58lc6Nu1XNWC0YnzjdbZPmXB1i40Jcv5CIX3/isMe8QNrT X-Received: by 2002:a17:906:1499:: with SMTP id x25mr27971987ejc.406.1595398075852; Tue, 21 Jul 2020 23:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595398075; cv=none; d=google.com; s=arc-20160816; b=yXChVEt5JDfDDPglSiApMt3uGc168J9NyD04A84MO0HboIWBB5dLFBABhRvOeKzcgc YWMuhU8tG6JAqv7eipKWf2pw+k05o+Dz8gFNlZeQA1XW1rIsVkIoKDJ/zyITjehEDhto c72igRxcnhA2xOdQuSdJZf5s7f6gHiNye4660Mwb6XMkqKHziyZGdAWwmI387DVII1SV s3IBZawHD4dInL2cc40DoNwrdo7tBwBbEtP8NUqw5RBBMC8sht8/5aCEEfSwMgLhtt9Z +xE+73nDrrYjJQJkWp7YB9cbNEJUumjBL+XdGp4ax46qkhPwolQ5wUIHAC4MYdzbkDcN ET6A== 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=QvC4g/ZznbjL/zvakGSpo3Xuz/OEzaQoN1PXjNrC/+A=; b=zLQuknHzxCISNgTFUqFXr7J6iL3JHelBS/2AdKI6D305Iaj6y/oa043PWDJoduUnkE f3Mv+EjldBI7WNUBeavrs+RFTEyxRQSb3raDweN3sEFXqXzyjtUk6XpIhfIGV/gnKLbs 7C8UL00KgcHZ+yCBJf1FUtCDC9wR9yeiJ46inMWwzJjyH75LViQtn8nctPGrkjA2nAJz 3zXvafg7ESYpVFQmM2QiGRP+2t7YwX2QWKp1GDjJHq5jkSA7QbBLE/KErItLrckawTIP zr+PaGq6ayyLti+QZ4qTg01jpuNWCntaT8FfktgIXZbJgczJgXnakF7Mc3FLE1zQokCV RG6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kBIPQPiC; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id v24si13179452ejx.229.2020.07.21.23.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 23:07:55 -0700 (PDT) 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=kBIPQPiC; 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 A556E81D9E; Wed, 22 Jul 2020 08:06:53 +0200 (CEST) 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="kBIPQPiC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0FAB981F56; Wed, 22 Jul 2020 08:06:44 +0200 (CEST) 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-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (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 8C27381F2D for <u-boot@lists.denx.de>; Wed, 22 Jul 2020 08:06:39 +0200 (CEST) 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-pf1-x441.google.com with SMTP id a24so608526pfc.10 for <u-boot@lists.denx.de>; Tue, 21 Jul 2020 23:06:39 -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=QvC4g/ZznbjL/zvakGSpo3Xuz/OEzaQoN1PXjNrC/+A=; b=kBIPQPiCRmPlwnzZj62FQDTO7vF1j8Zvk8rmvNz4l7klZcX1SI7iWrxpoOyWRW2Q6V oE40HXTpmyswqNc6X+Aep32RgKtMEPXPCh6vG+gi2baHMkoxgeqNzT292mK0mzdETpkO Xl8Ka0ypc3PErHixVM6dE4uOFT0vWun/0ZNngPTCKvtZ/8CPAzZmB+ZqWzw14EtmI+ZC /9puN0QX9aSH4zKakSG3xfH/cotzdgfmf0pYQreP5FSfz5vf0ws+3L4Zd8FOdbJJ5A4R XeeBboR5Z02Cs+hTLMcyTeT6hsIA3qhrG5l3u8GfD3adSzglHfxkXE9rptqD4+uA68aA XzlA== 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=QvC4g/ZznbjL/zvakGSpo3Xuz/OEzaQoN1PXjNrC/+A=; b=bgc2kT5a1ullTsf+n6KL+vys+xfL8MtugjTk+HpkJ/Fjgfx4aNuN3+l7Vi+WhHNEeJ wI6YEi2ezKD2lbU0Pl+psJlVU/DrKNQCdACkoMfJSSjGWfESJGT3e3kcZddzoUvTDTt7 1x3/RpfRvSqPfCTopGqh3gpTqdu8/GkUVBIqh2+SIDmf4z1uTdqniNF5YicnfFSjKqg+ 79eI49hm9m2FKUhZSOryTDRT1GrmlVjyE77xEtNoohqzis7uBIl3gs1YBlRrdRr893X9 58MQFJ1h1sSLKEXNHHuadYnusV6+QtFPV7lDkxvL2nl8Gh077NELFBpWtUb7aZnhOxWP 20ZQ== X-Gm-Message-State: AOAM530vZktLP/5TTjyt7GqmW4PF/oHMzccO903/SARVwSYh1UFf3fBR Z3mo+K5mV+86L8vHunUu6h3FMA== X-Received: by 2002:a62:ceca:: with SMTP id y193mr26421786pfg.11.1595397998075; Tue, 21 Jul 2020 23:06:38 -0700 (PDT) Received: from localhost.localdomain (p6e424d9a.tkyea130.ap.so-net.ne.jp. [110.66.77.154]) by smtp.gmail.com with ESMTPSA id p10sm19578759pgn.6.2020.07.21.23.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 23:06:37 -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: [PATCH v4 08/16] efi_loader: capsule: add memory range capsule definitions Date: Wed, 22 Jul 2020 15:05:31 +0900 Message-Id: <20200722060539.15168-9-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200722060539.15168-1-takahiro.akashi@linaro.org> References: <20200722060539.15168-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.27.0