PCI: Enable PCIe Extended Tags if supported
authorSinan Kaya <okaya@codeaurora.org>
Fri, 20 Jan 2017 14:16:51 +0000 (09:16 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Thu, 9 Feb 2017 23:11:21 +0000 (17:11 -0600)
commit60db3a4d8cc9073cf56264785197ba75ee1caca4
treef44f1f765bbc8bb22874b7cb751eb2dc2385ba1f
parentcdcb33f9824429a926b971bf041a6cec238f91ff
PCI: Enable PCIe Extended Tags if supported

Every PCIe device can generate 5-bit transaction Tags, which allow up to 32
concurrent requests.  Some devices can generate 8-bit Extended Tags, which
allow up to 256 concurrent requests.

Per the ECN mentioned below, all PCIe Receivers are expected to support
Extended Tags, so devices are allowed (but not required) to enable them by
default.

If a device supports Extended Tags but does not enable them by default,
enable them.  This allows the device to have up to 256 outstanding
transactions at a time, which may improve performance.

[bhelgaas: changelog, check for PCIe device]
Link: https://pcisig.com/sites/default/files/specification_documents/ECN_Extended_Tag_Enable_Default_05Sept2008_final.pdf
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c