]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98d03a9e64e9a668a7f83e4b83ddc007bf321763
tree8fd7355ae2d677342a6dd2c2f7afb6e0e9db98f8
parentb8a354ffbf254ead83d963e77a454acb985fa0e3
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