From nobody Thu May 2 05:43:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+47304+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+47304+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1568673565; cv=none; d=zoho.com; s=zohoarc; b=bkNhw5ZOeXNUe+x6BYtWXix00lqN7HsabDX7sSpJXCV5fAl/Kwdt4fzMBpT5uR405QZfy6o/mN78N06/BSs/rF+weLlgwDTWmOqO9GjDucwj24EGZ2yNhLolLF5sQom8G/xXguxXC1xSb2Y0zd4UNwaalDK6eomztPBgp1Slogw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568673565; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=4Zc31HIL/TmNnestyaLJH0dfCRcv9HyZZFl11P/sWPk=; b=hi14YbL5c1HctRnOkTKXIp8E7cLoQU2NkTeh4F7ZEbpts0I14vBzqNfS4krTXzTQ+Fj37BcKINIbVJB83hf9spuUqddmN16Rn2Tg4oDTyOMIHP6gfgeob/wvqFS+pqcqu+k+McCJthD6RIYDa6swCHnJw5g+B1F7v+zTMDzsIVI= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+47304+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1568673562789322.9162406873113; Mon, 16 Sep 2019 15:39:22 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id SVuaYY1788612xUm822vqwc4; Mon, 16 Sep 2019 15:39:21 -0700 X-Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by groups.io with SMTP; Mon, 16 Sep 2019 15:39:20 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2019 15:39:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,514,1559545200"; d="scan'208";a="177188957" X-Received: from ydwei-desk.amr.corp.intel.com ([10.24.15.168]) by orsmga007.jf.intel.com with ESMTP; 16 Sep 2019 15:39:19 -0700 From: "David Wei" To: devel@edk2.groups.io Cc: Hao Wu , Liming Gao , Ankit Sinha , Agyeman Prince , Kubacki Michael A , Nate DeSimone , Michael D Kinney Subject: [edk2-devel] [edk2-platforms PATCH v2] SimicsOpenBoardPkg: Always set the boot priority by default Date: Mon, 16 Sep 2019 15:39:19 -0700 Message-Id: Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,david.y.wei@intel.com X-Gm-Message-State: tSb0eh7APyGKuoLClJdWMaCmx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1568673561; bh=gM7SjRhItsQMVyCQNbrqJv8VCgEReoGaDu2wlUCN5R4=; h=Cc:Date:From:Reply-To:Subject:To; b=Brxb45xaF6juD0d36Rfliivs8Sp+x8Xuvk6qWEqhP88WH18OyO31dtjGiBJpU4YrMPu Lr+rTh4wExcNLIYI6HIs4GNFWchyBC62ZUAhrCaZzXmoEG+hlVycllxRft6m5VIhvK4Cr TeUJkiC1XGBco8gZ5XHwrvrC5SGNBYPvFCQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" When running networks of multiple machines, Simics assigns different disk IDs to each disk created.this change the boot priority and can't boot from SATA HDD directly. Clear boot priority in NVRAM can fix this issue. Cc: Hao Wu Cc: Liming Gao Cc: Ankit Sinha Cc: Agyeman Prince Cc: Kubacki Michael A Cc: Nate DeSimone Cc: Michael D Kinney Signed-off-by: David Wei Reviewed-by: Michael Kubacki Reviewed-by: Nate DeSimone --- .../Library/PlatformBootManagerLib/BdsPlatform.c | 14 ++++++++++= +--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootManagerL= ib/BdsPlatform.c b/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootMa= nagerLib/BdsPlatform.c index 953a4a6c15..6644ce124e 100644 --- a/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootManagerLib/BdsP= latform.c +++ b/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootManagerLib/BdsP= latform.c @@ -338,10 +338,18 @@ PlatformBootManagerBeforeConsole ( VOID ) { -// EFI_HANDLE Handle; -// EFI_STATUS Status; + EFI_BOOT_MANAGER_LOAD_OPTION *NvBootOptions; + UINTN NvBootOptionCount; + UINTN Index; + EFI_STATUS Status; + + DEBUG((DEBUG_INFO, "PlatformBootManagerBeforeConsole\n")); + + NvBootOptions =3D EfiBootManagerGetLoadOptions(&NvBootOptionCount, LoadO= ptionTypeBoot); + for (Index =3D 0; Index < NvBootOptionCount; Index++) { + Status =3D EfiBootManagerDeleteLoadOptionVariable(NvBootOptions[Index]= .OptionNumber, LoadOptionTypeBoot); + } =20 - DEBUG ((EFI_D_INFO, "PlatformBootManagerBeforeConsole\n")); InstallDevicePathCallback (); =20 VisitAllInstancesOfProtocol (&gEfiPciRootBridgeIoProtocolGuid, --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47304): https://edk2.groups.io/g/devel/message/47304 Mute This Topic: https://groups.io/mt/34170508/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-