]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiPayloadPkg/PlatformBootManager: Connect console after EndOfDxe
authorGuo Dong <guo.dong@intel.com>
Fri, 12 Feb 2021 04:30:49 +0000 (21:30 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 12 Feb 2021 04:44:12 +0000 (04:44 +0000)
Currently the console is connected before EndOfDxe causing OptionsROMs
to be loaded, but their drivers aren't used and thus no GOP is installed.
To make use of 3rdparty OptionROMs connect the console after EndOfDxe.
Tested on Intel CFL board using Nvidia Quadro GPU.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c

index c5c6af0abcb2b68889a7f42e70b6a14d6ac9cdfb..7fa3a048b74184a00e05b033581931208d641765 100644 (file)
@@ -157,8 +157,6 @@ PlatformBootManagerBeforeConsole (
   EFI_INPUT_KEY                Down;\r
   EFI_BOOT_MANAGER_LOAD_OPTION BootOption;\r
 \r
-  PlatformConsoleInit ();\r
-\r
   //\r
   // Register ENTER as CONTINUE key\r
   //\r
@@ -192,6 +190,8 @@ PlatformBootManagerBeforeConsole (
   // Dispatch deferred images after EndOfDxe event and ReadyToLock installation.\r
   //\r
   EfiBootManagerDispatchDeferredImages ();\r
+\r
+  PlatformConsoleInit ();\r
 }\r
 \r
 /**\r