From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jingjing Wu Subject: [PATCH 47/52] i40e/base: Increase pf reset max loop limit Date: Sun, 6 Sep 2015 15:12:01 +0800 Message-ID: <1441523526-26202-48-git-send-email-jingjing.wu@intel.com> References: <1441523526-26202-1-git-send-email-jingjing.wu@intel.com> To: dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9FF27935A for ; Sun, 6 Sep 2015 09:13:59 +0200 (CEST) In-Reply-To: <1441523526-26202-1-git-send-email-jingjing.wu@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" With latest LANconf and NVMupdate tools, pf_reset failed due to Firmware not being ready, so this patch increases I40E_PF_RESET_WAIT_COUNT to 200, using original value defined for A0 silicon, in order to make sure that FW is ready. Test result indicates that firmware became ready at the loop count of 114. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index 023dcbc..d7c940d 100644 --- a/drivers/net/i40e/base/i40e_common.c +++ b/drivers/net/i40e/base/i40e_common.c @@ -1281,7 +1281,7 @@ STATIC enum i40e_media_type i40e_get_media_type(struct i40e_hw *hw) return media; } -#define I40E_PF_RESET_WAIT_COUNT 110 +#define I40E_PF_RESET_WAIT_COUNT 200 /** * i40e_pf_reset - Reset the PF * @hw: pointer to the hardware structure -- 2.4.0