From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from walk.intel-email.com (walk.intel-email.com [101.227.64.242]) by mx.groups.io with SMTP id smtpd.web10.36011.1658195032150882757 for ; Mon, 18 Jul 2022 18:43:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=oYnolAqo; spf=pass (domain: byosoft.com.cn, ip: 101.227.64.242, mailfrom: gaoliming@byosoft.com.cn) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 8003ACD1F677 for ; Tue, 19 Jul 2022 09:43:49 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1658195029; bh=qmsPeCSa8N80bkTHaoiGd3W4wSpvCFdNpBZFIZ1AO/U=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=oYnolAqoqaOk3aP7XKivrYQYifNHO0WvyHC0j1Rv8oSl6QINPYGdTStbRsqvqfPXt 41RuFyCBh5DRM6SfmGVkHJkcdNrFLk+satCS57RrEoWwbsIW20IUas+U3VdA0UXHxy carv9IsvELbbVQXmcycthfUnCSwPIXmcuYhrLz6A= Received: from localhost (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 7BBE1CD1F65D for ; Tue, 19 Jul 2022 09:43:49 +0800 (CST) X-Virus-Scanned: by SpamTitan at intel-email.com Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 430A5CD1F78A for ; Tue, 19 Jul 2022 09:43:49 +0800 (CST) Authentication-Results: walk.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by walk.intel-email.com (Postfix) with SMTP id CFC18CD1F6D2 for ; Tue, 19 Jul 2022 09:43:45 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 19 Jul 2022 09:43:43 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: , , References: <9c52d44c283b1c42de20ee373be1d4994c4daf35.1655229046.git.jbrasen@nvidia.com> In-Reply-To: <9c52d44c283b1c42de20ee373be1d4994c4daf35.1655229046.git.jbrasen@nvidia.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIXSBNZGVNb2R1bGVQa2cvVWVmaUJvb3RNYW5hZ2VyTGliOiBBZGQgRGlzayBJbmZvIHN1cHBvcnQgZm9yIFVmcw==?= Date: Tue, 19 Jul 2022 09:43:46 +0800 Message-ID: <001001d89b10$fc9254a0$f5b6fde0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQH6rmcMzouP6kauSyWinFoD0vOi3a1AxCjg Sender: "gaoliming" Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Jeff: I want to confirm why UFS apply the same rule to SCSI. Does UFS follows SCSI spec? Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED Jeff Brasen > via groups.io > =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA6=D4=C215=C8=D5 1:54 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: jian.j.wang@intel.com; gaoliming@byosoft.com.cn; > zhichao.gao@intel.com; ray.ni@intel.com; Jeff Brasen > =D6=F7=CC=E2: [edk2-devel] [PATCH] MdeModulePkg/UefiBootManagerLib: Add D= isk > Info support for Ufs >=20 > Add support for getting disk info from UFS devices. >=20 > Signed-off-by: Jeff Brasen > --- > MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c | 3 > ++- > MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git > a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c > b/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c > index fac33b9ee9..87b82f299f 100644 > --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c > +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c > @@ -195,7 +195,8 @@ BmGetDescriptionFromDiskInfo ( >=20 >=20 > BmEliminateExtraSpaces (Description); >=20 > } >=20 > - } else if (CompareGuid (&DiskInfo->Interface, > &gEfiDiskInfoScsiInterfaceGuid)) { >=20 > + } else if (CompareGuid (&DiskInfo->Interface, > &gEfiDiskInfoScsiInterfaceGuid) || >=20 > + CompareGuid (&DiskInfo->Interface, > &gEfiDiskInfoUfsInterfaceGuid)) { >=20 > BufferSize =3D sizeof (EFI_SCSI_INQUIRY_DATA); >=20 > Status =3D DiskInfo->Inquiry ( >=20 > DiskInfo, >=20 > diff --git > a/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf > b/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf > index fe05d5f1cc..2fc0a80a4e 100644 > --- a/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf > +++ b/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf > @@ -85,6 +85,7 @@ > gEfiDiskInfoIdeInterfaceGuid ## > SOMETIMES_CONSUMES ## GUID >=20 > gEfiDiskInfoScsiInterfaceGuid ## > SOMETIMES_CONSUMES ## GUID >=20 > gEfiDiskInfoSdMmcInterfaceGuid ## > SOMETIMES_CONSUMES ## GUID >=20 > + gEfiDiskInfoUfsInterfaceGuid ## > SOMETIMES_CONSUMES ## GUID >=20 >=20 >=20 > [Protocols] >=20 > gEfiPciRootBridgeIoProtocolGuid ## CONSUMES >=20 > -- > 2.25.1 >=20 >=20 >=20 >=20 >=20 >=20