From nobody Tue May 7 06:14:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+79564+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79564+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1629364687; cv=none; d=zohomail.com; s=zohoarc; b=AIpFClcsAcxIuN/3HdD8v6gsrJlhDn14lhsL7Xl0HrfqmTlXiQA7TDsRJItsfSTdZBh4s05pGbL8sshgkU+gyxWsUsdN/pcWQ1e8a+4o7hhAO0K4LTD8CxEear3gWq0nufgXFCAroJ21SvrjSCTPrf5gw21i/It8O0blgXiEFkE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629364687; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=JE4jeMCEpotxGdgUs3QWbDvzBZ/FyE02yIptbqusL6U=; b=IrF4WhcsFWVJd+8Vcl6y4sWn/jb1IyINrTYKkfvhBF1NB2v+G+C9Z1H8Z4GMFnoD5FakwkHhaGpxkCmMvQePEx7+J5Ws+v8dyqW17dWMjv6aD5jsPRuTkZ9Fp1mxEIef0nJwQEYNO6sY2DwBSRKA99YO5ptxsmEePp2gCcKjLDE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79564+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1629364687723331.5221928308698; Thu, 19 Aug 2021 02:18:07 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id jlr2YY1788612x9vNIfZehfd; Thu, 19 Aug 2021 02:18:07 -0700 X-Received: from zg8tmty3ljk5ljewns4xndka.icoremail.net (zg8tmty3ljk5ljewns4xndka.icoremail.net [167.99.105.149]) by mx.groups.io with SMTP id smtpd.web10.66633.1629358265018861989 for ; Thu, 19 Aug 2021 00:31:10 -0700 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-1 (Coremail) with SMTP id AQAAfwC3h7R+CB5ho0SEAg--.38426S2; Thu, 19 Aug 2021 15:30:06 +0800 (CST) X-Received: from ubuntu.localdomain (unknown [106.19.30.100]) by mail (Coremail) with SMTP id AQAAfwCnbyu1CB5hXykAAA--.148S3; Thu, 19 Aug 2021 15:31:02 +0800 (CST) From: "zhoucheng" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v1 1/2] MdePkg:Update IndustryStandard/Nvme.h with Nvme amdin controller data Date: Thu, 19 Aug 2021 15:30:55 +0800 Message-Id: <20210819073056.3996-2-zhoucheng@phytium.com.cn> In-Reply-To: <20210819073056.3996-1-zhoucheng@phytium.com.cn> References: <20210819073056.3996-1-zhoucheng@phytium.com.cn> X-CM-TRANSID: AQAAfwCnbyu1CB5hXykAAA--.148S3 X-CM-SenderInfo: 52kr3upkhqwqxsk13x1xpou0fpof0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7Cr1rWryxWryDCw1kAr18Zrb_yoW8Xr1rpF Z8uayxG3yDXFW7ArW7uF4aqrZrWw4kGw18uFZrZFn09F98tFykWr4qkr4DJr1rZry7C3sr ZF1qgryruw4kGFDanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj DUYxn0WfASr-VFAU7a7-sFnT9fnUUIcSsGvfJ3UbIYCTnIWIevJa73UjIFyTuYvj4RJUUU UUUUU Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhoucheng@phytium.com.cn X-Gm-Message-State: kmdZvaZ8yO4LlIyuGpCvEdabx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1629364687; bh=g8hhBgUodkUOFIWnDMaHlLiUMFOWkCLtGNfu2JyAwtw=; h=Cc:Date:From:Reply-To:Subject:To; b=Yh0W33shMiiMxzaa586iQJl9JvQX0qmzTCIjZNrzsDXlrjhumm14iISDDDotb64p6S+ ct8MT8v7E2i5u8SwQUq/2ZVbZYjqAFPFJu+BD5zxZakGaicnpShLLm0yo6/ylzQ2TJEj5 SD3T9O6r8/CM53u8OEJD/CamamD/bEV+4Fc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1629364688705100008 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Update Nvme data structure Signed-off-by: Cheng Zhou Reviewed-by: Liming Gao Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Reviewed-by: Hao A Wu --- MdePkg/Include/IndustryStandard/Nvme.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/Nvme.h b/MdePkg/Include/Indust= ryStandard/Nvme.h index 9b19a2074b0d..f7a1a9f6ca32 100644 --- a/MdePkg/Include/IndustryStandard/Nvme.h +++ b/MdePkg/Include/IndustryStandard/Nvme.h @@ -353,7 +353,16 @@ typedef struct { UINT8 Npss; /* Number of Power States Support */ UINT8 Avscc; /* Admin Vendor Specific Command Configurati= on */ UINT8 Apsta; /* Autonomous Power State Transition Attribu= tes */ - UINT8 Rsvd2[246]; /* Reserved as of Nvm Express 1.1 Spec */ + // + // Below fields before Rsvd2 are defined in NVM Express 1.3 Spec + // + UINT16 Wctemp; /* Warning Composite Temperature Threshold */ + UINT16 Cctemp; /* Critical Composite Temperature Threshold = */ + UINT16 Mtfa; /* Maximum Time for Firmware Activation */ + UINT32 Hmpre; /* Host Memory Buffer Preferred Size */ + UINT32 Hmmin; /* Host Memory Buffer Minimum Size */ + UINT8 Tnvmcap[16]; /* Total NVM Capacity */ + UINT8 Rsvd2[216]; /* Reserved as of NVM Express */ // // NVM Command Set Attributes // --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79564): https://edk2.groups.io/g/devel/message/79564 Mute This Topic: https://groups.io/mt/84992874/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue May 7 06:14:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+79563+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79563+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1629364686; cv=none; d=zohomail.com; s=zohoarc; b=cFtxgAKgH9SKxw7Lw+kRq5unYDdgHhW9vRTX2wptOvCR8sznVJZI3MYNp8LBqEadOHX8dLECuvOUVv9cHytCi95+3bC+QXQgcO/TkIXHCUDcalR+3HjfNkoImpXv6qKwMDhHlw9PCYnGPEBzi6DjhLCN7HBr40q3HIVwvZspduU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629364686; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=QChQO22ArEtPv5u6xdtWTK4bXpQ/4WKD9NA2uQ2Z5zg=; b=RPMeexdHNNiI8oCuanhe/L/GwC66f23YuCtvVLgysLvt5W0vImnnnAxC5Hk4+Dof8YLZ01NLRYWwUyhNGvCxn0sAZ3rNN/1RU1tfBWBrMPtWfCY4/YKq1srqC3Yh0ESUAFVEFC2ON/hNI5erSsgzzYssu9i8WNayZZ4q41c69MU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79563+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1629364685744149.74922759102242; Thu, 19 Aug 2021 02:18:05 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id BLoxYY1788612x9d46DeY4xU; Thu, 19 Aug 2021 02:18:05 -0700 X-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 X-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) X-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: [edk2-devel] [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> 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/ X-Coremail-Antispam: 1Uk129KBjvJXoW7Ww17Jw4rtr1DGF45KF45Wrg_yoW8GrWrpa ykAayxWFWrKasxta17XFyakF10gayDC3W5GrWSy343AF13tFsxXry3Gw1fG3yUJF4Sv34r Cr48uF9Yvrs8AFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj DUYxn0WfASr-VFAU7a7-sFnT9fnUUIcSsGvfJ3UbIYCTnIWIevJa73UjIFyTuYvj4RJUUU UUUUU Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhoucheng@phytium.com.cn X-Gm-Message-State: dGAWb3CprJsVAXzV37NU7F4zx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1629364685; bh=JT+SV0+efObBFZuCWDxK5yA6ruCfY5DpKjv+d2SCw7Q=; h=Cc:Date:From:Reply-To:Subject:To; b=q+nW/ICdQK59DBJx+uDXOMemgSLVEYlgNQFRVSdA/ORRsZvm+HLIOutlBPFy4LZdaHu KvOljPwiJuOQSeFjLsJitqTRo3eXJ/FJYflHjbsjNFlJpQMYaYoqlcGStl0h6kysCWOsv Fpeo0Yh0Vvoqjm7juTz+hYGrIVAZE0ga/Ys= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1629365590068100002 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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/MdeModule= Pkg/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->Contro= llerData->Fr))); + DEBUG ((DEBUG_INFO, " TNVMCAP (high 8-byte) : 0x%lx\n", *((UINT64*)(P= rivate->ControllerData->Tnvmcap + 8)))); + DEBUG ((DEBUG_INFO, " TNVMCAP (low 8-byte) : 0x%lx\n", *((UINT64*)Pr= ivate->ControllerData->Tnvmcap))); DEBUG ((EFI_D_INFO, " RAB : 0x%x\n", Private->ControllerData->R= ab)); DEBUG ((EFI_D_INFO, " IEEE : 0x%x\n", *(UINT32*)Private->Control= lerData->Ieee_oui)); DEBUG ((EFI_D_INFO, " AERL : 0x%x\n", Private->ControllerData->A= erl)); --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79563): https://edk2.groups.io/g/devel/message/79563 Mute This Topic: https://groups.io/mt/84992872/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-