From nobody Tue May 7 20:56:34 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+47221+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+47221+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1568393877; cv=none; d=zoho.com; s=zohoarc; b=OppuFPfe4za8VL0amKLA8CywkX5XF5qI4UcjvQPPK/4d2Bc+bpsyKGD/USU+HSpKQ2r9CmllZL8IcT3oN8wRdQ7UR5Qdf9+TVCJgVg61BLxVgksmtEZDNqj5wf6lKVTy5fZmo7c8eG6yIg6BqVnirQd7aW/VKOns+ApwrU/UXSQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568393877; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=6UjvMy1PmJQhZNCa9CMO2cvjomnklA7gHIpBiqV09i8=; b=exUv4GcukIlpWPTVOnkKI/OelWk6xHRnQ967GjLbY3a0RcqP5sevEtJ0l89ROxjP3Vcos2/ig1y/vycLEl8yhI2Gj0wvxjwKNs2N6agaSdZyrgQG0/XVLxHETj411Pl3UTBP3cqTVDmITYnK5kdML0zZN/O6HaU9XRqfrMWbYcE= 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+47221+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 1568393876999630.666882793045; Fri, 13 Sep 2019 09:57:56 -0700 (PDT) Return-Path: X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by groups.io with SMTP; Fri, 13 Sep 2019 09:57:55 -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 fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Sep 2019 09:57:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="176341823" X-Received: from ydwei-desk.amr.corp.intel.com ([10.24.15.168]) by orsmga007.jf.intel.com with ESMTP; 13 Sep 2019 09:57:54 -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] [PATCH] SimicsOpenBoardPkg: Always set the boot priority by default Date: Fri, 13 Sep 2019 09:57:54 -0700 Message-Id: <075b6bb19fdbcdd6bb8415af088f6eff5e3e9c1d.1568393577.git.david.y.wei@intel.com> 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1568393876; bh=bmSv3sfKf9b9v+DVF13BX7FpYTRVr9T2SywbwujGyS4=; h=Cc:Date:From:Reply-To:Subject:To; b=JaB3RbvxOTwqI+Ft/oLilmEQXLs29OUFX8x9P4ub/vGhVwAK7ZRQr9LKfNSgOWgQ68s N+onNw6fdmWhopqNv7XkAH8jBf7xO3djEwJQdo8Yri+STwiGYJEqwalozeREdAFHS0mqk lY/5ZhwYgWcWwrxcPMs/b+9ivIR7cnmLt7c= 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 I= Ds 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 --- .../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..926ed94ca1 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((EFI_D_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 (#47221): https://edk2.groups.io/g/devel/message/47221 Mute This Topic: https://groups.io/mt/34129361/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-