From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: suse.com, ip: 15.124.2.85, mailfrom: glin@suse.com) Received: from m4a0039g.houston.softwaregrp.com (m4a0039g.houston.softwaregrp.com [15.124.2.85]) by groups.io with SMTP; Fri, 26 Jul 2019 00:10:48 -0700 Received: FROM m4a0039g.houston.softwaregrp.com (15.120.17.147) BY m4a0039g.houston.softwaregrp.com WITH ESMTP; Fri, 26 Jul 2019 07:10:42 +0000 Received: from M9W0067.microfocus.com (2002:f79:be::f79:be) by M4W0335.microfocus.com (2002:f78:1193::f78:1193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 26 Jul 2019 07:06:38 +0000 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (15.124.72.12) by M9W0067.microfocus.com (15.121.0.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Fri, 26 Jul 2019 07:06:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VgLIGgQ3H4XKx64YbE1E32CpDRkVUegzIMYPzYRMilv7r2yYTvw2rQN4volTpPFJvtUkilaYb++wPRed3dy7PdXJC0bs7ArdYjJPs7GDGd4G38yc1Pnd3SqmRlxQVW8DNt2m5+TKR9p1sNHCkpO9Q95gbOvxQTjWCZrtplTxNcsFeaHbIn5//mcl+ImydxFf4WiPbLQ4/3ou8/JEdeOvxYsvePQaTBPlSfAUoMCVOs3/ml7uJk9jact0cOhLRe6w8TD2Rp8HcJri6urM2SOQlDrzoUognjGaehIqNcUjBCzWKY0+b9PK4WcAWU3ieT5yqISEAypKCvPNtd888E3Tzw== 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-SenderADCheck; bh=VoGdRvGzR03gprrDW31Oyu/VetQpkwtWjSLVbcbWtw4=; b=hU8PrmRiSDAg1J6gSMKW6fjKwDBPQ4UsAzoCquw2ICIlm91sX/e396U31MLvPw58841zHp4DFR4NyG1XvRrDY/zhW5Eel4TOSUl7xdocZGjQnD5wfm0Gpm64ptbzwMQyZ1smk5J8UpFefAghFw/CAqeDS1nmPjcPV0BrxYn4Q/9159/hkCHZqr+F2gwlJ92D5Lp1DXrTvYNPYBMQOlMRSKrOYM1nORQT+wMBFqDOT38qUsEuTBwufAJGOGV0fBC5pbum2aGsd8TbZY5XzXxdh4QQzXdsQtnHpqq7M+ZSalL4iZ7D0L+lXmdm8WZ85ulbvlCf17WDTh26T2ZZN4UaQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none Received: from DM6PR18MB2489.namprd18.prod.outlook.com (20.179.105.16) by DM6PR18MB2923.namprd18.prod.outlook.com (20.179.51.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.14; Fri, 26 Jul 2019 07:06:38 +0000 Received: from DM6PR18MB2489.namprd18.prod.outlook.com ([fe80::ac83:47c9:cebd:9f0]) by DM6PR18MB2489.namprd18.prod.outlook.com ([fe80::ac83:47c9:cebd:9f0%7]) with mapi id 15.20.2115.005; Fri, 26 Jul 2019 07:06:38 +0000 From: "Gary Lin" To: "devel@edk2.groups.io" CC: Zailiang Sun , Yi Qian , Michael D Kinney Subject: [PATCH edk2-platforms 1/4] Vlv2TbltDevicePkg: Adjust the device priority Thread-Topic: [PATCH edk2-platforms 1/4] Vlv2TbltDevicePkg: Adjust the device priority Thread-Index: AQHVQ4Cqgvcqcz2L9EuHy9s23emOmw== Date: Fri, 26 Jul 2019 07:06:37 +0000 Message-ID: <20190726070612.3649-2-glin@suse.com> References: <20190726070612.3649-1-glin@suse.com> In-Reply-To: <20190726070612.3649-1-glin@suse.com> Accept-Language: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR01CA0004.apcprd01.prod.exchangelabs.com (2603:1096:203:92::16) To DM6PR18MB2489.namprd18.prod.outlook.com (2603:10b6:5:184::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=GLin@suse.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.22.0 x-originating-ip: [202.47.205.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d3966c2e-5688-4ffc-cdb1-08d71197cd3e x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:DM6PR18MB2923; x-ms-traffictypediagnostic: DM6PR18MB2923: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:173; x-forefront-prvs: 01106E96F6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(199004)(189003)(52116002)(4326008)(478600001)(25786009)(316002)(50226002)(6512007)(53936002)(54906003)(68736007)(6916009)(8676002)(8936002)(1730700003)(81156014)(81166006)(2351001)(71190400001)(36756003)(66066001)(71200400001)(6116002)(66946007)(64756008)(66556008)(66476007)(66446008)(3846002)(305945005)(7736002)(256004)(86362001)(2906002)(80792005)(14454004)(6486002)(186003)(11346002)(476003)(102836004)(2616005)(446003)(5640700003)(1076003)(386003)(6436002)(99286004)(6506007)(2501003)(76176011)(5660300002)(26005)(486006);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR18MB2923;H:DM6PR18MB2489.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: suse.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: APpg1sQtZEpfrjWi/PwuSehBIFMSGTcfNuHyYUx/Uv6fHpn23gkg8OfptLAmp21rUReKBoqXREASXfDguqNyW6b8134xVoJ+EOAtzy9Ofzq01s9CKAIWtnyh84loQ84do4emWc0/oPGwKCna53evxUKYsQmXXqPjPR1ZwSwOq+gRh3Q1y9S3dFFvndKMQgNhESmW8JfJXD2YqvVwCj9xA//BTW6DLT1DuillFA9oAOrYacRItEqJahbFhc61A4VBRIzjfSj3wYpaBYQ2hhURDbSM0X3fENKTp64JGa3aSCG/JNOPuFrdaFSHam9s3aVvEg8uZ+13kt1k8PYC1lLSISLAeUzvtlpNBqiGcO9FeWAR4Psfs46jsMSBg/C4EdhyzawBdhQk0ngKn98z43RvjrDec0jvW5gHn0sZHUe9LlE= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: d3966c2e-5688-4ffc-cdb1-08d71197cd3e X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2019 07:06:37.8942 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GLin@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2923 Return-Path: GLin@suse.com X-OriginatorOrg: suse.com Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In BootOptionPriority(), the higher number implies the lower boot priority. This commit lowers the priority of network booting and raises the priority of the local devices. Besides, SD and EMMC are also added to BootOptionPriority() since Minnowboard comes with a SD card slot. Cc: Zailiang Sun Cc: Yi Qian Cc: Michael D Kinney Signed-off-by: Gary Lin --- Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/Platfor= mBootOption.c | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManage= rLib/PlatformBootOption.c b/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePla= tformBootManagerLib/PlatformBootOption.c index 84aa097d58..a73d54a97d 100644 --- a/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/Pl= atformBootOption.c +++ b/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/Pl= atformBootOption.c @@ -499,11 +499,10 @@ BootOptionType ( Returns the priority number.=0D OptionType EFI=0D ------------------------------------=0D - PXE 2=0D - DVD 4=0D - USB 6=0D - NVME 7=0D - HDD 8=0D + HDD 2=0D + USB 4=0D + SATA/NVME/SD 6=0D + PXE/HTTP 8=0D EFI Shell 9=0D Others 100=0D =0D @@ -518,21 +517,22 @@ BootOptionPriority ( // EFI boot options=0D //=0D switch (BootOptionType (BootOption->FilePath)) {=0D - case MSG_MAC_ADDR_DP:=0D - case MSG_VLAN_DP:=0D - case MSG_IPv4_DP:=0D - case MSG_IPv6_DP:=0D - return 2;=0D + case MSG_USB_DP:=0D + return 4;=0D =0D case MSG_SATA_DP:=0D case MSG_ATAPI_DP:=0D case MSG_UFS_DP:=0D case MSG_NVME_NAMESPACE_DP:=0D - return 4;=0D -=0D - case MSG_USB_DP:=0D + case MSG_SD_DP:=0D + case MSG_EMMC_DP:=0D return 6;=0D =0D + case MSG_MAC_ADDR_DP:=0D + case MSG_VLAN_DP:=0D + case MSG_IPv4_DP:=0D + case MSG_IPv6_DP:=0D + return 8;=0D }=0D if (StrCmp (BootOption->Description, INTERNAL_UEFI_SHELL_NAME) =3D=3D = 0) {=0D if (PcdGetBool (PcdBootToShellOnly)) {=0D @@ -541,7 +541,7 @@ BootOptionPriority ( return 9;=0D }=0D if (StrCmp (BootOption->Description, UEFI_HARD_DRIVE_NAME) =3D=3D 0) {= =0D - return 8;=0D + return 2;=0D }=0D return 100;=0D }=0D --=20 2.22.0