]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
PCI: Limit config space size for Netronome NFP4000
authorSimon Horman <simon.horman@netronome.com>
Fri, 11 Dec 2015 02:30:12 +0000 (11:30 +0900)
committerKamal Mostafa <kamal@canonical.com>
Thu, 15 Sep 2016 16:33:49 +0000 (09:33 -0700)
commitb44cebae3776f63370936953599d340d98f29643
tree733f4d1ca79e248909f6854dce2a8e2ae6fb85c2
parent49faf55e4e7dd258fb2e36611103bb95665be1ca
PCI: Limit config space size for Netronome NFP4000

BugLink: http://bugs.launchpad.net/bugs/1621113
commit c2e771b02792d222cbcd9617fe71482a64f52647 upstream.

Like the NFP6000, the NFP4000 as an erratum where reading/writing to PCI
config space addresses above 0x600 can cause the NFP to generate PCIe
completion timeouts.

Limit the NFP4000's PF's config space size to 0x600 bytes as is already
done for the NFP6000.

The NFP4000's VF is 0x6004 (PCI_DEVICE_ID_NETRONOME_NFP6000_VF), the same
device ID as the NFP6000's VF.  Thus, its config space is already limited
by the existing use of quirk_nfp6000().

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/pci/quirks.c