[PATCH 4/5] framework/dut: add longer timeout for loading driver and firmware
Niklas Söderlund
niklas.soderlund at corigine.com
Wed Feb 8 17:46:23 CET 2023
From: Qin Ke <qin.ke at corigine.com>
Nfp NIC may take a long time whiling loading its driver and firmware
at probe time. Add longer timeout to ensure that these operations can
excutes successfully and stably for all NIC.
Signed-off-by: Qin Ke <qin.ke at corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund at corigine.com>
---
framework/dut.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/framework/dut.py b/framework/dut.py
index df6986ed450c..ed69046db6a5 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -424,9 +424,10 @@ class Dut(Crb):
)
# bind to linux kernel driver
if not self.is_container:
- self.send_expect("modprobe %s" % driver, "# ")
+ self.send_expect("modprobe %s" % driver, "# ", timeout=30)
self.send_expect(
- "echo %s > /sys/bus/pci/drivers/%s/bind" % (pci_bus, driver), "# "
+ "echo %s > /sys/bus/pci/drivers/%s/bind" % (pci_bus, driver), "# ",
+ timeout=30,
)
pull_retries = 5
itf = "N/A"
--
2.39.1
More information about the dts
mailing list