From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rondra.lf-net.org (rondra.lf-net.org [188.68.36.203]) by mx.groups.io with SMTP id smtpd.web12.7466.1648030966480069961 for ; Wed, 23 Mar 2022 03:22:47 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@lf-net.org header.s=2021 header.b=OMZw8W7l; spf=pass (domain: lf-net.org, ip: 188.68.36.203, mailfrom: littlefox@lf-net.org) Received: from localhost (localhost [127.0.0.1]) by rondra.lf-net.org (Postfix) with ESMTP id 40EAF5FDB7; Wed, 23 Mar 2022 10:22:44 +0000 (UTC) Authentication-Results: rondra.lf-net.org (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=lf-net.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lf-net.org; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=2021; t=1648030964; x=1649845365; bh=rMIs3 Ux0HHJG3nw3X07gRNTLjq7YHKY5qiWC7eNgbxk=; b=OMZw8W7lEecL/AV7NeX3O eOZn1DMsNTJMy6yz+W9HU77orj10USTBaLNiSLkZKDBEhd3j+EXg4GRhXP9Mry8R +55hIot9/ybWQmNzLcbWlZ7PxDIhO5cjRH6tYZkpWWTC1q9E8+nJbHJoFPo9AOnQ SK1+dyzel00wU1qxDrBqv8ISA7thqJgCOAwVTkhP7MM3/hyvzSyr1IuWkyILK8/n DYEjbroeN3cVq9VHjt3+yU2KZ2rstfnbTnQXPLfABkAs7jEfDkGo1D5d7jfzuOBQ g+QaE4dUK8sC9IzxB9GZTkONMqzcTtd4/Up44do1juixTNfairOX21xlJAYzyfOE A== X-Virus-Scanned: Debian amavisd-new at rondra.lf-net.org Received: from rondra.lf-net.org ([127.0.0.1]) by localhost (rondra.lf-net.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id c8w4fud-QHxn; Wed, 23 Mar 2022 10:22:44 +0000 (UTC) Received: from LF-T470.home.lf-net.dn42 (unknown [IPv6:2001:16b8:5549:3f01:4a51:c5ff:fe7a:408b]) by rondra.lf-net.org (Postfix) with ESMTPSA id 077925FDB2; Wed, 23 Mar 2022 10:22:44 +0000 (UTC) From: "Mara Sophie Grosch" To: devel@edk2.groups.io Cc: hao.a.wu@intel.com, Mara Sophie Grosch Subject: [PATCH v2 2/2] MdeModulePkg/NvmExpressPei: fix check for NVM command set Date: Wed, 23 Mar 2022 11:22:34 +0100 Message-Id: <372688a6aef1874fb3b933ba2a0b0a31772391ce.1648029370.git.littlefox@lf-net.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: <16DE909798871558.18232@groups.io> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Previous commit fixed that check in DXE, this one now for PEI. Signed-off-by: Mara Sophie Grosch --- MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c b/MdeMod= ulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c index ac956bdce4..bff5cfd0d5 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c @@ -571,7 +571,7 @@ NvmeControllerInit ( // Read the controller Capabilities register and verify that the NVM com= mand set is supported=0D //=0D NVME_GET_CAP (Private, &Private->Cap);=0D - if (Private->Cap.Css !=3D 0x01) {=0D + if ((Private->Cap.Css & BIT0) =3D=3D 0) {=0D DEBUG ((DEBUG_ERROR, "%a: The NVME controller doesn't support NVMe com= mand set.\n", __FUNCTION__));=0D return EFI_UNSUPPORTED;=0D }=0D --=20 2.35.1