* [PATCH] xen/PCI: Update ACPI Check to include SGI Ux3
@ 2016-08-02 14:34 Boris Ostrovsky
0 siblings, 0 replies; only message in thread
From: Boris Ostrovsky @ 2016-08-02 14:34 UTC (permalink / raw)
To: xen-devel; +Cc: andrew.cooper3, boris.ostrovsky, jbeulich
From: root <root@ovs104.us.oracle.com>
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>
---
xen/arch/x86/x86_64/acpi_mmcfg.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xen/arch/x86/x86_64/acpi_mmcfg.c b/xen/arch/x86/x86_64/acpi_mmcfg.c
index f01ad70..3ce85c9 100644
--- a/xen/arch/x86/x86_64/acpi_mmcfg.c
+++ b/xen/arch/x86/x86_64/acpi_mmcfg.c
@@ -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 &&
--
1.8.3.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-02 14:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 14:34 [PATCH] xen/PCI: Update ACPI Check to include SGI Ux3 Boris Ostrovsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).