]> Pileus Git - ~andy/linux/commit
PCI: Differentiate ACS controllable from enabled
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 27 Jun 2013 22:39:54 +0000 (16:39 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Jul 2013 18:27:01 +0000 (12:27 -0600)
commit83db7e0bdb70a9bb93cd000fefc3fbac3394f516
treeada06647d4b4e5577f7a6b4642256e1dcd988f83
parent0a67119fce8e0246ce7c448e3db12afd57857ac0
PCI: Differentiate ACS controllable from enabled

We currently misinterpret that in order for an ACS feature to be
enabled it must be set in the control field.  In reality, this means
that the feature is not only enabled, but controllable.  Many of the
ACS capability bits are not required if the device behaves by default
in the way specified when both the capability and control bit are set
and does not support or allow the alternate mode.  We therefore need
to check the capabilities and mask out flags that are enabled but not
controllable.  Egress control seems to be the only flag which is
purely optional.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Donald Dutile <ddutile@redhat.com>
drivers/pci/pci.c