]> xenbits.xensource.com Git - xen.git/commitdiff
x86/PCI: update ACPI Check to include SGI Ux3
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 2 Aug 2016 15:52:44 +0000 (17:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Aug 2016 15:52:44 +0000 (17:52 +0200)
These systems use variations of SGI3* for ID string.

Instead of adding abother set of strings do what Linux did
in commit 526018bc and look at first three letters.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/acpi_mmcfg.c

index f01ad70f96a2f8029b46a1c61d4b624ebf48af5f..3ce85c91adb27c141c1b9d5916b37063eeb4a789 100644 (file)
@@ -55,8 +55,7 @@ static int __init acpi_mcfg_check_entry(struct acpi_table_mcfg *mcfg,
     if (cfg->address < 0xFFFFFFFF)
         return 0;
 
-    if (!strcmp(mcfg->header.oem_id, "SGI") ||
-        !strcmp(mcfg->header.oem_id, "SGI2"))
+    if (!strncmp(mcfg->header.oem_id, "SGI", 3))
         return 0;
 
     if (mcfg->header.revision >= 1 &&