aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2-opencapi.c
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2019-03-12 21:35:14 +0100
committerStewart Smith <stewart@linux.ibm.com>2019-03-13 21:55:18 -0500
commitd75436f0d3d0f4b8ecdb28fb2f08dd34d2119c24 (patch)
treebe95a9bced61511064a3fd7fd9c2f934dd029092 /hw/npu2-opencapi.c
parente4efac7d8c9041a64643c28ae340e9e53d345308 (diff)
downloadskiboot-d75436f0d3d0f4b8ecdb28fb2f08dd34d2119c24.zip
skiboot-d75436f0d3d0f4b8ecdb28fb2f08dd34d2119c24.tar.gz
skiboot-d75436f0d3d0f4b8ecdb28fb2f08dd34d2119c24.tar.bz2
npu2-opencapi: Extend delay after releasing reset on adapter
Give more time to the FPGA to process the reset signal. The previous delay, 5ms, is too short for newer adapters with bigger FPGAs. Extend it to 250ms. Ultimately, that delay will likely end up being added to the opencapi specification, but we are not there yet. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2-opencapi.c')
-rw-r--r--hw/npu2-opencapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/npu2-opencapi.c b/hw/npu2-opencapi.c
index 223888e..e4e3ae6 100644
--- a/hw/npu2-opencapi.c
+++ b/hw/npu2-opencapi.c
@@ -1198,8 +1198,8 @@ static int64_t npu2_opencapi_freset(struct pci_slot *slot)
deassert_adapter_reset(dev);
pci_slot_set_state(slot,
OCAPI_SLOT_FRESET_DEASSERT_DELAY2);
- /* give 5ms to device to be ready */
- return pci_slot_set_sm_timeout(slot, msecs_to_tb(5));
+ /* give 250ms to device to be ready */
+ return pci_slot_set_sm_timeout(slot, msecs_to_tb(250));
case OCAPI_SLOT_FRESET_DEASSERT_DELAY2:
if (dev->train_fenced) {