[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
EFI_CONSOLE_CONTROL_PROTOCOL in OvmfPkg / grub2
From: |
Laszlo Ersek |
Subject: |
EFI_CONSOLE_CONTROL_PROTOCOL in OvmfPkg / grub2 |
Date: |
Mon, 01 Oct 2012 11:43:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120825 Thunderbird/10.0.7 |
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
- EFI_CONSOLE_CONTROL_PROTOCOL in OvmfPkg / grub2,
Laszlo Ersek <=