[edk2-devel] [PATCH v1 2/2] MdeModulePkg:Increase Nvme capacity display

Wu, Hao A hao.a.wu at intel.com
Fri Aug 20 05:32:43 UTC 2021


> -----Original Message-----
> From: zhoucheng <zhoucheng at phytium.com.cn>
> Sent: Thursday, August 19, 2021 3:31 PM
> To: devel at edk2.groups.io
> Cc: Ni, Ray <ray.ni at intel.com>; Wu, Hao A <hao.a.wu at intel.com>; Liming
> Gao <gaoliming at byosoft.com.cn>
> Subject: [PATCH v1 2/2] MdeModulePkg:Increase Nvme capacity display
> 
> Displays the Nvme total capacity.
> 
> Signed-off-by: Cheng Zhou <zhoucheng at phytium.com.cn>
> Reviewed-by: Hao A Wu <hao.a.wu at intel.com>
> 
> Cc: Ray Ni <ray.ni at intel.com>
> Cc: Hao A Wu <hao.a.wu at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> ---
>  MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
> b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
> index 95f8b18bc4f8..450d372b2faa 100644
> --- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
> +++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
> @@ -931,6 +931,8 @@ NvmeControllerInit (
>    DEBUG ((EFI_D_INFO, "    SN        : %a\n",   Sn));
>    DEBUG ((EFI_D_INFO, "    MN        : %a\n",   Mn));
>    DEBUG ((EFI_D_INFO, "    FR        : 0x%x\n", *((UINT64*)Private-
> >ControllerData->Fr)));
> +  DEBUG ((DEBUG_INFO, "    TNVMCAP (high 8-byte) : 0x%lx\n",
> *((UINT64*)(Private->ControllerData->Tnvmcap + 8))));
> +  DEBUG ((DEBUG_INFO, "    TNVMCAP (low 8-byte)  : 0x%lx\n",
> *((UINT64*)Private->ControllerData->Tnvmcap)));


Reviewed-by: Hao A Wu <hao.a.wu at intel.com>

Best Regards,
Hao Wu


>    DEBUG ((EFI_D_INFO, "    RAB       : 0x%x\n", Private->ControllerData->Rab));
>    DEBUG ((EFI_D_INFO, "    IEEE      : 0x%x\n", *(UINT32*)Private-
> >ControllerData->Ieee_oui));
>    DEBUG ((EFI_D_INFO, "    AERL      : 0x%x\n", Private->ControllerData-
> >Aerl));
> --
> 2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#79622): https://edk2.groups.io/g/devel/message/79622
Mute This Topic: https://groups.io/mt/84992872/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list