From: Matt Fleming <matt.fleming@xxxxxxxxx> The efi_enabled variable has come to mean "Do we have EFI runtime services available?". However, lack of EFI runtime services does not mean that we should switch to using the VGA console. Provided that the boot loader passed the dimensions of the EFI framebuffer there is no reason we can't use efifb. There's also no reason to check the memory type of 0xa0000 - whether or not that memory region is EFI_CONVENTIONAL_MEMORY is immaterial - the EFI framebuffer device will still work, and checking the EFI memory type of a memory region on a non-EFI machine is illogical. Cc: H. Peter Anvin <hpa@xxxxxxxxx> Cc: Matthew Garrett <mjg@xxxxxxxxxx> Cc: Olof Johansson <olof@xxxxxxxxx> Cc: Peter Jones <pjones@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Signed-off-by: Matt Fleming <matt.fleming@xxxxxxxxx> --- arch/x86/kernel/setup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index f4b9b80..29dc30a 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -1021,7 +1021,7 @@ void __init setup_arch(char **cmdline_p) #ifdef CONFIG_VT #if defined(CONFIG_VGA_CONSOLE) - if (!efi_enabled || (efi_mem_type(0xa0000) != EFI_CONVENTIONAL_MEMORY)) + if (!screen_info.lfb_base || !screen_info.lfb_size) conswitchp = &vga_con; #elif defined(CONFIG_DUMMY_CONSOLE) conswitchp = &dummy_con; -- 1.7.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html