From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 88403A04B5 for ; Wed, 9 Sep 2020 09:33:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 680FE1C0CD; Wed, 9 Sep 2020 09:33:14 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id CCAE41C0BC; Wed, 9 Sep 2020 09:33:11 +0200 (CEST) IronPort-SDR: gcKSHAobjKlPEuU2EED8ARMCiHForY0a6XF3FkKLnQiH5UUCW8v3xfa0Qt0PpoW8KRnFve9o7Q oKu4E0DW6PjQ== X-IronPort-AV: E=McAfee;i="6000,8403,9738"; a="137802039" X-IronPort-AV: E=Sophos;i="5.76,409,1592895600"; d="scan'208";a="137802039" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2020 00:33:10 -0700 IronPort-SDR: 7KOIRMAN3QDLQC4sLaa42mxKbqpHlawjlOqaVUTvR3bMJEDzQKoW5czX2usQWvZNKp9Op0Md/c KuMPCTv4i3QA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,409,1592895600"; d="scan'208";a="317464151" Received: from unknown (HELO localhost.localdomain) ([10.240.183.65]) by orsmga002.jf.intel.com with ESMTP; 09 Sep 2020 00:33:08 -0700 From: yanx.fu@intel.com To: qi.z.zhang@intel.com, jia.guo@intel.com Cc: dev@dpdk.org, FuYanX , stable@dpdk.org Date: Tue, 8 Sep 2020 22:47:14 +0000 Message-Id: <20200908224714.91088-1-yanx.fu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [dpdk-dev][PATCH v1 1/1] net/ice: fix link status down X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: FuYanX 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 --- 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