aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Kay <allen.m.kay@intel.com>2009-10-07 13:27:51 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-04 11:47:26 -0500
commitdf0e97c6f1f2fdca686036998fe816cefd8e27d7 (patch)
tree8cef3a9d3dc141b804507fd8eed195ff8196a7c8
parentae21ee65e8bc228416bbcc8a1da01c56a847a60c (diff)
PCI: add xen dom0 checking before ACS initialization
This patch is predicated on Jeremy's patch in include/xen/xen.h. It'll prevent ACS init unless the platform has both an IOMMU and we're running as dom0. Signed-off-by: Allen Kay <allen.m.kay@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--drivers/pci/probe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index aac5b156a5c5..bb2cc39b64ff 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -11,6 +11,7 @@
11#include <linux/cpumask.h> 11#include <linux/cpumask.h>
12#include <linux/pci-aspm.h> 12#include <linux/pci-aspm.h>
13#include <linux/iommu.h> 13#include <linux/iommu.h>
14#include <xen/xen.h>
14#include "pci.h" 15#include "pci.h"
15 16
16#define CARDBUS_LATENCY_TIMER 176 /* secondary latency timer */ 17#define CARDBUS_LATENCY_TIMER 176 /* secondary latency timer */
@@ -1007,7 +1008,7 @@ static void pci_init_capabilities(struct pci_dev *dev)
1007 pci_iov_init(dev); 1008 pci_iov_init(dev);
1008 1009
1009 /* Enable ACS P2P upstream forwarding */ 1010 /* Enable ACS P2P upstream forwarding */
1010 if (iommu_found()) 1011 if (iommu_found() || xen_initial_domain())
1011 pci_enable_acs(dev); 1012 pci_enable_acs(dev);
1012} 1013}
1013 1014