]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: Increase VPD access timeout to 125ms
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Tue, 29 Nov 2016 18:00:40 +0000 (12:00 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 3 Feb 2017 17:16:30 +0000 (11:16 -0600)
commit4f69bd16df1a38c32d5d207a96d1d86df4808f87
tree6f53a8e698b90159bb13f54d2d0ebd70a757364c
parent7ce7d89f48834cefece7804d38fc5d85382edf77
PCI: Increase VPD access timeout to 125ms

The PCI core uses a fixed 50ms timeout when waiting for VPD accesses to
complete.  When an access does not complete within this period, a warning
is logged and an error returned to the caller.

While this default timeout is valid for most hardware, some devices can
experience longer access delays under certain circumstances.  For example,
one of the IBM CXL Flash devices can take up to ~120ms in a worst-case
scenario.  These types of devices can benefit from an extended timeout.

To support devices with a longer access delay, increase the timeout in
pci_vpd_wait() to 125ms.  The PCI specification is silent with respect to
VPD delays, therefore there is no concern for violating a threshold.

Tested-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
drivers/pci/access.c