EFI: warn only for pre-1.00 system tables
We used to warn unless the EFI system table major revision was exactly 1. But EFI 2.00 firmware is starting to appear, and the 2.00 changes don't affect anything in Linux. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Andi Kleen <ak@suse.de> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f038f9a361
commit
873ec74615
@@ -445,11 +445,11 @@ efi_init (void)
|
||||
panic("Woah! Can't find EFI system table.\n");
|
||||
if (efi.systab->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
|
||||
panic("Woah! EFI system table signature incorrect\n");
|
||||
if ((efi.systab->hdr.revision ^ EFI_SYSTEM_TABLE_REVISION) >> 16 != 0)
|
||||
printk(KERN_WARNING "Warning: EFI system table major version mismatch: "
|
||||
"got %d.%02d, expected %d.%02d\n",
|
||||
efi.systab->hdr.revision >> 16, efi.systab->hdr.revision & 0xffff,
|
||||
EFI_SYSTEM_TABLE_REVISION >> 16, EFI_SYSTEM_TABLE_REVISION & 0xffff);
|
||||
if ((efi.systab->hdr.revision >> 16) == 0)
|
||||
printk(KERN_WARNING "Warning: EFI system table version "
|
||||
"%d.%02d, expected 1.00 or greater\n",
|
||||
efi.systab->hdr.revision >> 16,
|
||||
efi.systab->hdr.revision & 0xffff);
|
||||
|
||||
config_tables = __va(efi.systab->tables);
|
||||
|
||||
|
Reference in New Issue
Block a user