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 0870DA04C7 for ; Tue, 15 Sep 2020 08:54:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CA06EE07; Tue, 15 Sep 2020 08:54:39 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 03414E07; Tue, 15 Sep 2020 08:54:37 +0200 (CEST) IronPort-SDR: 5FviRtYhmNF0CM8ISoLY9MtMNVIeZ24xSGKZ3ZKv/aRvlE4/bUC1gVr5ZsSEtNYJ8aVQw3V4tJ 6bIGzy50sgBA== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="220766310" X-IronPort-AV: E=Sophos;i="5.76,429,1592895600"; d="scan'208";a="220766310" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2020 23:54:36 -0700 IronPort-SDR: zjKBGaYo5S6rX3bB+BS32TBgLPjzuw8TC+fED1yBOD4Y+3/FgiGrRAYHR5VM9GIW0JrR5jnPJ6 XzmLyfGPqi6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,429,1592895600"; d="scan'208";a="379640313" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga001.jf.intel.com with ESMTP; 14 Sep 2020 23:54:36 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 14 Sep 2020 23:54:35 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 15 Sep 2020 14:54:32 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Tue, 15 Sep 2020 14:54:32 +0800 From: "Mei, JianweiX" To: "Fu, YanX" , "Zhang, Qi Z" , "Guo, Jia" CC: "dev@dpdk.org" , "Fu, YanX" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1 1/1] net/ice: fix link status down Thread-Index: AQHWhnuF2uQJ1A47rEyksSl4GZQXlKlpTLtg Date: Tue, 15 Sep 2020 06:54:32 +0000 Message-ID: <473cff3b0cab4136a4d37a29d27ab50d@intel.com> References: <20200908224714.91088-1-yanx.fu@intel.com> In-Reply-To: <20200908224714.91088-1-yanx.fu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by: Mei,JianweiX < jianweix.mei@intel.com> -----Original Message----- From: dev On Behalf Of yanx.fu@intel.com Sent: Wednesday, September 9, 2020 6:47 AM To: Zhang, Qi Z ; Guo, Jia Cc: dev@dpdk.org; Fu, YanX ; stable@dpdk.org Subject: [dpdk-dev] [PATCH v1 1/1] net/ice: fix link status down 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 in= dex 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) =20 ice_init_controlq_parameter(hw); =20 + /* 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 =3D ice_init_hw(hw); if (ret) { PMD_INIT_LOG(ERR, "Failed to initialize HW"); -- 2.25.1