From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.63]) by mx.groups.io with SMTP id smtpd.web10.14.1655229243255322158 for ; Tue, 14 Jun 2022 10:54:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=selector2 header.b=TsIMSM/s; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.223.63, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bjo1BTAfLr44Whg8mfGRaUSaGOuYgDjMzZiyBCSKkp838EnsFUQfwTOtNjFP/O/XaErerzKIsFvdkWkUDoIApRDee2CSazLVmtAsQaoxBSoYjAwNOZSB+Iydb3VORlsIpSAMhH+fEBj/YbrHN5dVLRTzxXU+R/3sYU0jlSSxAPUmwrFIGwaneuNUenFVLBG1+41yJI3viFcnEJhaEEZcBKnxJnmwLmCRLxTgfMtQfxY0lXHsrTYX10PpI21BkO/wTNqU4MirWnZPdBv3Kd+se1Pjywkd21RZH9Tn1EvpXjvwyBq/ZdD3DkhpKemGHASPRYGGAgCqG4YnBMoGBVeKzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QzjrWrRI69bO7dHw3d+Jn0rtbZq9v8Uf6cK4MinXqzg=; b=gtOzt6twQAr5cYMy75lnC8HWaufi0CM7LMEslyVyRQ/pnoDNnnIQUUCdts5BRmRWW4zh3qfyYWNoVeWqSNIJdFnz+as5OBsPnBradBh5BxPKEkQp9dbqgBUBf0TL8VEw4f/0m19bZ8D/mw6S8mXo88mnq92ihPS8Qm3KQCS2U0uCKEx3nJiSaO/R+frZnTbEvC5np5gCNAWHsAbK/KsLuiM4/GSdafYgvqhhEIxieps8UzMQmPw+u/KjByxmYR8n3QoEO8gjoN0t3TLrvOA2SV6QcChhw0HIDUqQd86rhzJL/KnokMYE+J5q2wQW4CskYNEnpH7xdKVhk2HaaunC2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QzjrWrRI69bO7dHw3d+Jn0rtbZq9v8Uf6cK4MinXqzg=; b=TsIMSM/s+tHvRChZ0BL1Qi3LEP2Z1bK+jYQtklBvzlcEjVZzml9U/9CMZ73jacTGtMCZ3aPuVJNf7AH+zUVe8HDMTBqF38Zh30xENy/ZMhfU5O7fKbxtBgyHL7x4TZF7ROMJRtKjXul2yDIlDVoZ+yo+8u1oBzKzn95dIkSmCtiL+IG7Z9cAKuFWtJUgrP/JQQYOCYPOOCEDfTgetwARkdTssnmuJh3ki68rXDbgFzRflP7/KFeMFzuC/b4VMkbpZ0M2BkgsoUdHOU5YzSKoZaNKx8R59gULfi6U598kuspwvi0Sxn6sEk9eF5gg3a6Nqb5T+Tl5FJxlzDJUKdiVPw== Received: from BN0PR04CA0080.namprd04.prod.outlook.com (2603:10b6:408:ea::25) by DM6PR12MB4187.namprd12.prod.outlook.com (2603:10b6:5:212::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.14; Tue, 14 Jun 2022 17:54:01 +0000 Received: from BN8NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ea:cafe::97) by BN0PR04CA0080.outlook.office365.com (2603:10b6:408:ea::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.16 via Frontend Transport; Tue, 14 Jun 2022 17:54:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.235) by BN8NAM11FT020.mail.protection.outlook.com (10.13.176.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5332.12 via Frontend Transport; Tue, 14 Jun 2022 17:54:00 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 14 Jun 2022 17:54:00 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 14 Jun 2022 10:53:59 -0700 Received: from perses.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.22 via Frontend Transport; Tue, 14 Jun 2022 10:53:58 -0700 From: "Jeff Brasen" To: CC: , , , , Jeff Brasen Subject: [PATCH] MdeModulePkg/UefiBootManagerLib: Add Disk Info support for Ufs Date: Tue, 14 Jun 2022 11:53:36 -0600 Message-ID: <9c52d44c283b1c42de20ee373be1d4994c4daf35.1655229046.git.jbrasen@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e206c628-11cc-4ac5-d035-08da4e2edd06 X-MS-TrafficTypeDiagnostic: DM6PR12MB4187:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3DRaH9md5T376RcnGC9nHJie1Mq7j8uLPzvicLHGOcuBJkJjH3fxzpQNfSoczoZRwQ0pH1+F5+0Vad+Fhl1AZefCyVgChByEu8sRZQJxcts6seCoax9Y0wc7jRn3LebDJrGSmwy0aNeoaf2FGFadMibhkmAQtx9JiskFg2Rm59XOgK0Vf5Iv9gUSSuFXQeg8ezPkIBmEMawf6IAeq8BVDYiSAy2fb2JHSI9kT0rXShO3BZVhTrcd2OWYm4JGDnwHIFOpy5JzGszQthctqTK3/87GF1r0rmuBn2jwfiBG4FFAwu0EGys7g5MiV6QxQuk01CX04MANy6+1TQBzuP6vrl1eCPFdKe4gxlOiWSVMIa60WdDS3n9houSpT1RtsldLTZIGTjQoDZy2G3HTBxNq8kStiC1Zd/FapgzpsOkpgO8i0Gf3MpWPk2cqx5H/5wXzeqAmnEGSmN22Pl726LzRfCr1/Up3P4XUUACVVJ+xOIAXxT6DTZmdfd5ZarxCUmHxcfggHfrfK1JOQSgkVIzDWr27ZApvrZg/AtR5BHhqYMmg24uMGR/NuA2H/uNpFvIaxqbsDcuti7sFoZaKeYwqRGXsPFQ7QUOfn1c1QF1oUcLmHluGkL6DSr/No7sJioq4u7MYdm99bK5o1rRNeig8cMfIwbleSQtOUkUHzM6844NVUEHVEwFZX+zKjIj3owrrZm4+zJHhUFiShiAfurbhnQ== X-Forefront-Antispam-Report: CIP:12.22.5.235;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:InfoNoRecords;CAT:NONE;SFS:(13230016)(4636009)(36840700001)(46966006)(40470700004)(6916009)(508600001)(54906003)(316002)(2906002)(6666004)(8676002)(4326008)(70586007)(5660300002)(70206006)(82310400005)(8936002)(186003)(36860700001)(26005)(83380400001)(356005)(86362001)(36756003)(40460700003)(81166007)(2616005)(107886003)(7696005)(426003)(336012)(47076005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2022 17:54:00.8301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e206c628-11cc-4ac5-d035-08da4e2edd06 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[12.22.5.235];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT020.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4187 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Add support for getting disk info from UFS devices. Signed-off-by: Jeff Brasen --- MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c | 3 ++- MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 ( =0D BmEliminateExtraSpaces (Description);=0D }=0D - } else if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoScsiInterface= Guid)) {=0D + } else if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoScsiInterface= Guid) ||=0D + CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoUfsInterfaceG= uid)) {=0D BufferSize =3D sizeof (EFI_SCSI_INQUIRY_DATA);=0D Status =3D DiskInfo->Inquiry (=0D DiskInfo,=0D 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 ## G= UID=0D gEfiDiskInfoScsiInterfaceGuid ## SOMETIMES_CONSUMES ## G= UID=0D gEfiDiskInfoSdMmcInterfaceGuid ## SOMETIMES_CONSUMES ## G= UID=0D + gEfiDiskInfoUfsInterfaceGuid ## SOMETIMES_CONSUMES ## G= UID=0D =0D [Protocols]=0D gEfiPciRootBridgeIoProtocolGuid ## CONSUMES=0D --=20 2.25.1