Skip to contentSkip to conversation

xen/PCI: Update ACPI Check to include SGI Ux3

PATCH New Boris Ostrovsky 1 participant 1 message Aug 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/PCI: Update ACPI Check to include SGI Ux3

From: root <[email protected]>

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.

---
 xen/arch/x86/x86_64/acpi_mmcfg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
xen/arch/x86/x86_64/acpi_mmcfg.c +1 -2
index f01ad70..3ce85c9 100644
@@ -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 &&
Signature · 7 lines
1.8.3.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel