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 F0913A0547 for ; Thu, 9 Sep 2021 11:14:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB71E4003E; Thu, 9 Sep 2021 11:14:08 +0200 (CEST) Received: from mail-m971.mail.163.com (mail-m971.mail.163.com [123.126.97.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C1764003E for ; Thu, 9 Sep 2021 11:14:06 +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=CcgJp X/niDAy876bfNwFy5HwAlbxc8kdCfoG7n05Jko=; b=mXS+PIW6etxjvWcGR9Qkg WP5ws07bfuKVT6U5mlCuGjM8NvKduLzsheIZ8yQqu4rOOTGUYjfA/Yeuuh1PEMle sswtoALlJ+B8l9JUy0SJHIsTTVyGDKsZWUvlvYPVI0YBm3OzDZuAk121bjvTZA7M ZKqb+t2NZ1YyZeF0z+U2AE= Received: from localhost.localdomain (unknown [124.160.214.74]) by smtp1 (Coremail) with SMTP id GdxpCgCnjFda0DlhlF9LAw--.469S2; Thu, 09 Sep 2021 17:14:04 +0800 (CST) From: Qiming Chen To: stable@dpdk.org Cc: beilei.xing@intel.com, Qiming Chen Date: Thu, 9 Sep 2021 17:13:20 +0800 Message-Id: <20210909091320.10736-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: GdxpCgCnjFda0DlhlF9LAw--.469S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7CFyxWrWxtw45uF45ZFWUurg_yoW8Gw1rpF 4xJFyakF4DtwsrWay8JF4xuFWfX395G34YkFsxG3sY93yFk3WUZFW5KF4jgF1qvr1kWF1a qr90kw17CFZxJa7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j-Z2-UUUUU= X-Originating-IP: [124.160.214.74] X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/1tbiNhwJoFWBoDjx+QAAsH Subject: [dpdk-stable] [PATCH 20.11] net/i40evf: extend the polling times of vf reset X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" 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. The version matching is no problem, and there is no substantial progress. 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. Fixes: 4861cde46116 ("i40e: new poll mode 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