From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5C669A0C54; Mon, 23 Aug 2021 05:47:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D89D340143; Mon, 23 Aug 2021 05:47:25 +0200 (CEST) Received: from mail-m973.mail.163.com (mail-m973.mail.163.com [123.126.97.3]) by mails.dpdk.org (Postfix) with ESMTP id D165A4003E for ; Mon, 23 Aug 2021 05:47:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=8VK1h ondd5Q2uj85otw0NUDr0kKzQwonc5X6NyFHfF4=; b=OHYZi/+WNaUjSBRkkSTYY RsT3G1TwYVUBKXO9NQ7AXCNf6KxClvM+WlEIeR45nlSuA9G17eB8a0aiMrVgIzM+ E5f4RUW2eRSK8wdTI8x3NSsU8I3X+yP4XzIhcFuNiptJynL11Q3NoJ5L9YIJZid8 dQX+yKdcMz9F1PYDtK2fzo= Received: from localhost.localdomain (unknown [124.160.214.99]) by smtp3 (Coremail) with SMTP id G9xpCgBHEZJFGiNhBYsaDw--.64S2; Mon, 23 Aug 2021 11:47:20 +0800 (CST) From: Qiming Chen To: dev@dpdk.org Cc: beilei.xing@intel.com, Qiming Chen Date: Mon, 23 Aug 2021 11:46:23 +0800 Message-Id: <20210823034623.7467-1-chenqiming_huawei@163.com> X-Mailer: git-send-email 2.30.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: G9xpCgBHEZJFGiNhBYsaDw--.64S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7CFyxWrW5Zw4UAryfXw1fJFb_yoW8Xw1UpF 4xGFW3CFs0qwsrW3y8JF4xuFWfX395G3y5GFWfG3sY93yYka45ZFW5KFWjgFyqvr4kWF1Y qrZ0yw1UCFZxX3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jltC7UUUUU= X-Originating-IP: [124.160.214.99] X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/1tbiQB73oFSIj3fbWQAAsv Subject: [dpdk-dev] [PATCH] net/i40e: extend the polling times of vf reset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" In the embedded RTOS environment, the x722 controller Ethernet card of the d2146nt chip, the vfio user mode driver takes over 8 vf ports in turn, but i40evf_check_vf_reset_done will probably fail. This issue has been discussed with intel&dpdk experts for 3 rounds before, and the version matching is no problem, and there is no substantial progress. The official website contacted external experts, but there was no response afterwards. Learning from the implementation of the i40evf kernel driver locally, after modifying the polling time from 1 second to 5s, the repeated restart process took over the start port test, and it was found that this probability was reduced to an order of magnitude acceptable to the user. The patch cannot fundamentally solve the failure problem, but it greatly slows down the probability of the problem. The modification is based on the i40evf kernel driver. Signed-off-by: Qiming Chen --- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index f64db72e9a..924da8dfb4 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -42,7 +42,7 @@ /* busy wait delay in msec */ #define I40EVF_BUSY_WAIT_DELAY 10 #define I40EVF_BUSY_WAIT_COUNT 50 -#define MAX_RESET_WAIT_CNT 20 +#define MAX_RESET_WAIT_CNT 100 #define I40EVF_ALARM_INTERVAL 50000 /* us */ -- 2.30.1.windows.1