patches for DPDK stable branches
 help / color / Atom feed
* [dpdk-stable] [dpdk-dev][PATCH v1 1/1] net/ice: fix link status down
@ 2020-09-08 22:47 yanx.fu
  2020-09-15  6:54 ` [dpdk-stable] [dpdk-dev] [PATCH " Mei, JianweiX
  0 siblings, 1 reply; 2+ messages in thread
From: yanx.fu @ 2020-09-08 22:47 UTC (permalink / raw)
  To: qi.z.zhang, jia.guo; +Cc: dev, FuYanX, stable

From: FuYanX <yanx.fu@intel.com>

Add delay to ensure that the hardware FLR is completed.

Fixes: f9cf4f864150 (net/ice: support device initialization)
Cc: stable@dpdk.org

Signed-off-by: FuYanX <yanx.fu@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 8d435e889..20bd85e62 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2176,6 +2176,11 @@ ice_dev_init(struct rte_eth_dev *dev)
 
 	ice_init_controlq_parameter(hw);
 
+	/* The driver e.g. vfio-pci may triggle a FLR reset.
+	 * The operating system is required by PCIe specification to wait 100 ms
+	 * before it can assume that the FLR sequence is completed by hardware.
+	 */
+	rte_delay_ms(100);
 	ret = ice_init_hw(hw);
 	if (ret) {
 		PMD_INIT_LOG(ERR, "Failed to initialize HW");
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-08 22:47 [dpdk-stable] [dpdk-dev][PATCH v1 1/1] net/ice: fix link status down yanx.fu
2020-09-15  6:54 ` [dpdk-stable] [dpdk-dev] [PATCH " Mei, JianweiX

patches for DPDK stable branches

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ http://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/ public-inbox