This is an issue with Grub, ConsoleControl was part of the EDK implementation 
and is not in UEFI or PI specs.



Sent from my iPhone

On Oct 1, 2012, at 2:43 AM, Laszlo Ersek <ler...@redhat.com> wrote:

> Hi,
> 
> during my recent testing with Fedora 18 Alpha on qemu-kvm + OVMF I
> noticed that there's a very short graphics glitch on the *textual* grub2
> welcome screen. Basically one or two lines are printed, one of which
> looks like "Welcome to GRUB!", and then the screen falls apart like in a
> packed vs. planar pixel format misunderstanding [1]. It goes away in
> less than one second and the graphical grub2 UI works fine.
> 
> I think it happens in
> 
> grub_main                      [grub-core/kern/main.c]
>  grub_machine_init            [grub-core/kern/i386/efi/init.c]
>    grub_efi_init              [grub-core/kern/efi/init.c]
>      grub_console_init        [grub-core/term/efi/console.c]
>        grub_efi_set_text_mode [grub-core/kern/efi/efi.c]
> 
> The last function calls
> EFI_CONSOLE_CONTROL_PROTOCOL.SetMode(EfiConsoleControlScreenText) [2].
> 
> According to [3], this protocol is not supported anymore by edk2, but
> the referenced grub2 code neither returns cleanly nor crashes, it
> changes the video mode to something wrong (for a very short while). When
> I grep the edk2 tree for EFI_CONSOLE_CONTROL_PROTOCOL, the only relevant
> hits seem to be
> 
> EdkCompatibilityPkg/Foundation/Library/Dxe/Graphics/Graphics.c
> EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.c
> EdkCompatibilityPkg/Foundation/Protocol/ConsoleControl/ConsoleControl.c
> EdkCompatibilityPkg/Foundation/Protocol/ConsoleControl/ConsoleControl.h
> 
> none of which is built for OvmfPkg.
> 
> Is this a problem with grub2 or OvmfPkg?
> 
> Thanks,
> Laszlo
> 
> [1]
> http://people.redhat.com/~lersek/Screenshot-fw-ovmf.g-f18xfcealpha.e-rhel63%20Virtual%20Machine.png
> [2]
> http://bzr.savannah.gnu.org/lh/grub/trunk/grub/annotate/4542/grub-core/kern/efi/efi.c#L119
> [3]
> http://sourceforge.net/mailarchive/forum.php?thread_name=EC94AF25-B8AA-43DB-905F-67D42330A5C4%40apple.com&forum_name=edk2-devel

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to