From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zg8tmtm4lje5ny4xodqumjaa.icoremail.net (zg8tmtm4lje5ny4xodqumjaa.icoremail.net [138.197.184.20]) by mx.groups.io with SMTP id smtpd.web08.66246.1629358268357388928 for ; Thu, 19 Aug 2021 00:31:09 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: phytium.com.cn, ip: 138.197.184.20, mailfrom: zhoucheng@phytium.com.cn) Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-1 (Coremail) with SMTP id AQAAfwDnubZ+CB5hoESEAg--.38057S2; Thu, 19 Aug 2021 15:30:06 +0800 (CST) Received: from ubuntu.localdomain (unknown [106.19.30.100]) by mail (Coremail) with SMTP id AQAAfwCnbyu1CB5hXykAAA--.148S4; Thu, 19 Aug 2021 15:31:03 +0800 (CST) From: "zhoucheng" To: devel@edk2.groups.io Cc: Ray Ni , Hao A Wu , Liming Gao Subject: [PATCH v1 2/2] MdeModulePkg:Increase Nvme capacity display Date: Thu, 19 Aug 2021 15:30:56 +0800 Message-Id: <20210819073056.3996-3-zhoucheng@phytium.com.cn> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210819073056.3996-1-zhoucheng@phytium.com.cn> References: <20210819073056.3996-1-zhoucheng@phytium.com.cn> X-CM-TRANSID: AQAAfwCnbyu1CB5hXykAAA--.148S4 X-CM-SenderInfo: 52kr3upkhqwqxsk13x1xpou0fpof0/ Authentication-Results: hzbj-icmmx-1; spf=neutral smtp.mail=zhoucheng@ phytium.com.cn; X-Coremail-Antispam: 1Uk129KBjvJXoW7Ww17Jw4rtr1DGF45KF45Wrg_yoW8GrWrpa ykAayxWFWrKasxta17XFyakF10gayDC3W5GrWSy343AF13tFsxXry3Gw1fG3yUJF4Sv34r Cr48uF9Yvrs8AFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj DUYxn0WfASr-VFAU7a7-sFnT9fnUUIcSsGvfJ3UbIYCTnIWIevJa73UjIFyTuYvj4RJUUU UUUUU Displays the Nvme total capacity. Signed-off-by: Cheng Zhou Reviewed-by: Hao A Wu Cc: Ray Ni Cc: Hao A Wu Cc: Liming Gao --- 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))); 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