PCI: fix ARI code to be compatible with mixed ARI/non-ARI systems
authorZhao, Yu <yu.zhao@intel.com>
Thu, 23 Oct 2008 05:15:39 +0000 (13:15 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 23 Oct 2008 21:42:13 +0000 (14:42 -0700)
commit8113587c2d14d3be2414190845b2e2617c0aa33b
tree8fd7355ae2d677342a6dd2c2f7afb6e0e9db98f8
parentd2174c3c07adad88dd9ba37a731e0b00b746822a
PCI: fix ARI code to be compatible with mixed ARI/non-ARI systems

The original ARI support code has a compatibility problem with non-ARI
devices.  If a device doesn't support ARI, turning on ARI forwarding on
its upper level bridge will cause undefined behavior.

This fix turns on ARI forwarding only when the subordinate devices
support it.

Tested-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c