From: "Wu, Hao A" <hao.a.wu@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"Zhu, Weipu" <weipu.zhu@intel.com>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
"Gao, Liming" <gaoliming@byosoft.com.cn>,
"Liu, Zhiguang" <zhiguang.liu@intel.com>
Subject: Re: [edk2-devel] [PATCH 2/2] MdePkg: Add NVMe boot partition header definition
Date: Thu, 2 Feb 2023 02:41:17 +0000 [thread overview]
Message-ID: <MN2PR11MB40312FFFA4351813BE90DCEBCAD69@MN2PR11MB4031.namprd11.prod.outlook.com> (raw)
In-Reply-To: <16678aa67fac85fd6daf80d63b40a55d9785e517.1673939866.git.weipu.zhu@intel.com>
Add MdePkg maintainers & reviewers.
One inline comment below:
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Weipu
> Zhu
> Sent: Wednesday, February 1, 2023 2:27 PM
> To: devel@edk2.groups.io
> Cc: Zhu, Weipu <weipu.zhu@intel.com>
> Subject: [edk2-devel] [PATCH 2/2] MdePkg: Add NVMe boot partition header
> definition
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4304
>
> Add NVMe boot partition header definition to NVMe.h
> according to NVMe spec 2.0.
>
> Signed-off-by: Weipu Zhu <weipu.zhu@intel.com>
> ---
> MdePkg/Include/IndustryStandard/Nvme.h | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/MdePkg/Include/IndustryStandard/Nvme.h
> b/MdePkg/Include/IndustryStandard/Nvme.h
> index c37cd762b9..41d40edbba 100644
> --- a/MdePkg/Include/IndustryStandard/Nvme.h
> +++ b/MdePkg/Include/IndustryStandard/Nvme.h
> @@ -546,6 +546,17 @@ typedef struct {
> #define RPMB_RESULT_AUTHKEY_NOT_PROGRAMMED 0x07
> #define RPMB_RESULT_INVALID_DCB 0x08
>
> +//
> +// Get Log Page - Boot Partition Log Header.
> +// (ref. NVMe Base spec. v2.0 Figure 262).
> +//
> +typedef struct {
> + UINT8 LogIdentifier; /* Log Identifier, shall be set to 15h */
> + UINT8 Rsvd1[3]; /* Reserved as of Nvm Express 2.0 Spec */
> + NVME_BPINFO BpInfo; /* Boot Partition Information, Brs in
> NVME_BPINFO is not available here */
I suggest to not directly use NVME_BPINFO here.
Since the 'Boot Partition Information' within 'Boot Partition Header' is not
exactly the same with the one defined for controller properties (no BRS field
like you mentioned in the comment).
How about adding field definition for 'ABPID' & 'BPSZ' instead?
Best Regards,
Hao Wu
> + UINT8 Rsvd2[8]; /* Reserved as of Nvm Express 2.0 Spec */
> +} NVME_BOOT_PARTITION_HEADER;
> +
> //
> // NvmExpress Admin Identify Cmd
> //
> --
> 2.37.1.windows.1
>
>
>
>
>
next prev parent reply other threads:[~2023-02-02 2:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 6:26 [PATCH 1/2] MdePkg: Add RPMB related commands and DCB definition for NVMe Weipu Zhu
2023-02-01 6:27 ` [PATCH 2/2] MdePkg: Add NVMe boot partition header definition Weipu Zhu
2023-02-02 2:41 ` Wu, Hao A [this message]
2023-02-07 1:45 ` 回复: [edk2-devel] " gaoliming
2023-02-02 2:40 ` [edk2-devel] [PATCH 1/2] MdePkg: Add RPMB related commands and DCB definition for NVMe Wu, Hao A
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MN2PR11MB40312FFFA4351813BE90DCEBCAD69@MN2PR11MB4031.namprd11.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox