[PATCH] pci/dmar: don't complain IOPAIC is not supported

From: Yinghai Lu
Date: Sun Jun 28 2009 - 17:11:46 EST



INTR_REMAP handle that type

[Impact: cleanup]

Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>
---
drivers/pci/dmar.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

Index: linux-2.6/drivers/pci/dmar.c
===================================================================
--- linux-2.6.orig/drivers/pci/dmar.c
+++ linux-2.6/drivers/pci/dmar.c
@@ -129,9 +129,13 @@ static int __init dmar_parse_dev_scope(v
if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT ||
scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE)
(*cnt)++;
- else
- printk(KERN_WARNING PREFIX
- "Unsupported device scope\n");
+ else {
+#ifdef CONFIG_INTR_REMAP
+ if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC)
+#endif
+ printk(KERN_WARNING PREFIX
+ "Unsupported device scope\n");
+ }
start += scope->length;
}
if (*cnt == 0)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/