PCI: ARI is a PCIe v2 feature
authorChris Wright <chrisw@sous-sol.org>
Wed, 13 Jul 2011 17:14:33 +0000 (10:14 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 22 Jul 2011 15:41:51 +0000 (08:41 -0700)
commit864d296cf948aef0fa32b81407541572583f7572
tree67d2cee99f6a5f591bcd6a19bb5333f6c4234598
parenta8c7ef3187a266d201af887fd48afbef3598825a
PCI: ARI is a PCIe v2 feature

The function pci_enable_ari() may mistakenly set the downstream port
of a v1 PCIe switch in ARI Forwarding mode.  This is a PCIe v2 feature,
and with an SR-IOV device on that switch port believing the switch above
is ARI capable it may attempt to use functions 8-255, translating into
invalid (non-zero) device numbers for that bus.  This has been seen
to cause Completion Timeouts and general misbehaviour including hangs
and panics.

Cc: stable@kernel.org
Acked-by: Don Dutile <ddutile@redhat.com>
Tested-by: Don Dutile <ddutile@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c