From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.58]) by mx.groups.io with SMTP id smtpd.web12.6750.1665067494025312789 for ; Thu, 06 Oct 2022 07:44:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=QY5CdcOD; 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.220.58, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bC72pZ6gMGrGlo7VM0rwHeFR8uDJlDHW/1HqBF2LuF9KZQPpcEtH0P6rS1k3P8iklU01AsyUpoBwDcY3i2+qzN71JRmLgjRtReSevEEG4M5HU924/OPFTLyXraQ/y266KpOEatOZ/XbrqkG/WHd5mNxfo/8nFE/uA/BylhnwNe2u5Nvf8Z2KvKKIPHiG0QsTDvh2GzrwnMDHzp9X4XtRsc9rN6cHkoJcQwhLuDWh7T7vVkKta2wjBSW+p43AaoDT9X/s3Hf1KX94sN/4qkBeCNvwFt1yUeOk6fgUyEVn7TP1HiquCWvmiIvpbsErLkYi6CtGdJNnVc02Roqc2j1PSg== 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=lKxa7iY2nyVHaFDpB33VSg7gWCaJUBoY3mOnYO/BPCE=; b=ZM4CzGpdSnEAXb1p0swhluPFmOP7wX74qisEliUJNUqs4sYDWu8QDSkMU3EmPFn/4ALaNrZ28H6yhKRce6PMhOtonrR0SWpK1gQEUWr1B7Nf9Cis8h/iGCeaTA5sdc5o5DAeyRgN56dGo5O6qdOxcOFKSkVH+VqAayDBD7cVr33VXBZeJiWU8AO/NJVLCh7dY5gxL53i2lNgzZZdlewkpYXCZOHgkWTWE056q9MgzIj2AOFObNI1JRNIO0JEBzd/4Pgo2eUW/vYMfqz+ENNRyEIoDWqCBx/xU709Cj/nxRqdaBY+dc2dJe/bJ5NP8SyPTeAJ6FJPSVQbwvXZEAg2Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=edk2.groups.io 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=lKxa7iY2nyVHaFDpB33VSg7gWCaJUBoY3mOnYO/BPCE=; b=QY5CdcODO2q2aGqo/up0Kk/hXc7A69I+TlOO2CBpfsoFzCSD6t0qiKoB2kiDE2OuBo25CaqKCn9xjyXn/fPGiP8g2jZVVhRzDL/sJcFzwGaYDk1ocTC/6xhVrlzurgmMQH6f7AHKHuNsMgFtnJc09T4mv6z7NhtgHUx336uAhOZ1bnq2c98NywHusIrlgS1ISz29xoeprdkUTIIohQQy+/r2i2l77otcrBUHySR5ZYTuvY8J6gFMgsoZQKxXD2O3y6jni4LbIuo2B3ra5jcl0df5NL+YYwQpF+QS7nUdhdDVtV8LkAoeyRAFuedLfYbnKQCKiwci8n45/UH3sGjX/w== Received: from MW4P220CA0007.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::12) by MN0PR12MB5978.namprd12.prod.outlook.com (2603:10b6:208:37d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.36; Thu, 6 Oct 2022 14:44:52 +0000 Received: from CO1NAM11FT104.eop-nam11.prod.protection.outlook.com (2603:10b6:303:115:cafe::85) by MW4P220CA0007.outlook.office365.com (2603:10b6:303:115::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.32 via Frontend Transport; Thu, 6 Oct 2022 14:44:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT104.mail.protection.outlook.com (10.13.174.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.10 via Frontend Transport; Thu, 6 Oct 2022 14:44:51 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Thu, 6 Oct 2022 07:44:46 -0700 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 6 Oct 2022 07:44:45 -0700 Received: from localhost.localdomain (10.127.8.10) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Thu, 6 Oct 2022 07:44:45 -0700 From: "Jeff Brasen" To: CC: , , , , , Jeff Brasen Subject: [PATCH v2] MdeModulePkg/UefiBootManagerLib: Add Disk Info support for Ufs Date: Thu, 6 Oct 2022 08:44:38 -0600 Message-ID: <5fe03c70ba8a5937210bab6ff10ff2cf6b72ff12.1665067370.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-TrafficTypeDiagnostic: CO1NAM11FT104:EE_|MN0PR12MB5978:EE_ X-MS-Office365-Filtering-Correlation-Id: c49180f3-7bcb-4d6c-c32d-08daa7a95384 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vBfTeChHEvhymHtn+7mEXeYsnfLrPQMVrOXJjs5zEsnzmvKsKKsSNlv4fjk1Dw8mKV1A23fxrU8/hdXDDLK+LRfgt2lVXT+6TKAcRu0FNjP2a2tVEGVog/Vwmjhh7jNflZYSU6rCAQVo9TxCTEejgSJ9UkIczifroDiFv1fwVTQDBmI0G37/M6lqjXMV4dpL2I8WHIZXycDiStp7miLWvKR9Qd3/ggcea3mDfHDOYU6UzbOF9dGUTN06F/nnrQakC/gcBHp44ahkfFaX1dnHNAC8+VSK3EYYHjJsrdlUCuq/DHdWT2OTXeQ/A1+ZX8oDAPygrVl2yZMw361QY8A9ZC82gzw67wC0i2MvhxShdBMbK0mRnU9SHEtldPKeBnYj09fFJ4bUZBcElKJL73JSktzCJb4GjGoye5TZ1dHEj3PSPeHiEd/XYSkBq1dPVhGQW30iOgdZ2/6AB/MVUxibI4JZLnyPOFacGDAu0i+/FRBNfzfGyMuwpUdkzpzTS4e3SUaffE8DmSwqOoSracPxwEgl2btjYg9nF7moe1bFNUIsxYj85dArnjy/iwWJ6su3OtyL+xhpAPyhD1ecvNP31oPBvIgYztLrqKx6lrbabn/wflaMNd/y68dDFcn50OXnhRWV2FxKOLUx4GAXFBm7oEJuM5lMPKY2SyCWy4vMFEfiXVAAcHTtDo4K+1dshWNjfqv2NDcLgHFVYmwKsdoSuHvAt2zc70aS8izlKAfdkfvo6E3t1t+p0L9nT4Q7JXTl5Np791iYP3OfYSvoqMC6OQ== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(346002)(376002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(47076005)(8676002)(26005)(82740400003)(6666004)(107886003)(70206006)(356005)(40460700003)(4326008)(70586007)(7636003)(478600001)(36756003)(36860700001)(86362001)(82310400005)(54906003)(336012)(426003)(316002)(186003)(83380400001)(6916009)(2616005)(41300700001)(8936002)(2906002)(40480700001)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2022 14:44:51.6992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c49180f3-7bcb-4d6c-c32d-08daa7a95384 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT104.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5978 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 | 4 +++- .../Library/UefiBootManagerLib/UefiBootManagerLib.inf | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c b/= MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c index fac33b9ee9..030b2ee3ec 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c @@ -195,7 +195,9 @@ BmGetDescriptionFromDiskInfo ( =20 BmEliminateExtraSpaces (Description); } - } else if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoScsiInterface= Guid)) { + } else if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoScsiInterface= Guid) || + CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoUfsInterfaceG= uid)) + { BufferSize =3D sizeof (EFI_SCSI_INQUIRY_DATA); Status =3D DiskInfo->Inquiry ( DiskInfo, 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 gEfiDiskInfoScsiInterfaceGuid ## SOMETIMES_CONSUMES ## G= UID gEfiDiskInfoSdMmcInterfaceGuid ## SOMETIMES_CONSUMES ## G= UID + gEfiDiskInfoUfsInterfaceGuid ## SOMETIMES_CONSUMES ## G= UID =20 [Protocols] gEfiPciRootBridgeIoProtocolGuid ## CONSUMES --=20 2.25.1