diff options
author | Matthew Garrett <mjg@redhat.com> | 2012-07-27 18:58:53 +0200 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-09-17 14:29:23 +0200 |
commit | f462ed939de67c20528bc08f11d2fc4f2d59c0d5 (patch) | |
tree | 4e1021c98cf298c5c4fc0257cb5999f200d84331 /drivers/video/efifb.c | |
parent | efi: initialize efi.runtime_version to make query_variable_info/update_capsul... (diff) | |
download | linux-f462ed939de67c20528bc08f11d2fc4f2d59c0d5.tar.xz linux-f462ed939de67c20528bc08f11d2fc4f2d59c0d5.zip |
efifb: Skip DMI checks if the bootloader knows what it's doing
The majority of the DMI checks in efifb are for cases where the bootloader
has provided invalid information. However, on some machines the overrides
may do more harm than good due to configuration differences between machines
with the same machine identifier. It turns out that it's possible for the
bootloader to get the correct information on GOP-based systems, but we
can't guarantee that the kernel's being booted with one that's been updated
to do so. Add support for a capabilities flag that can be set by the
bootloader, and skip the DMI checks in that case. Additionally, set this
flag in the UEFI stub code.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'drivers/video/efifb.c')
-rw-r--r-- | drivers/video/efifb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index b4a632ada401..932abaa58a89 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c @@ -553,7 +553,9 @@ static int __init efifb_init(void) int ret; char *option = NULL; - dmi_check_system(dmi_system_table); + if (screen_info.orig_video_isVGA != VIDEO_TYPE_EFI || + !(screen_info.capabilities & VIDEO_CAPABILITY_SKIP_QUIRKS)) + dmi_check_system(dmi_system_table); if (screen_info.orig_video_isVGA != VIDEO_TYPE_EFI) return -ENODEV; |