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 783A6A0C4D for ; Mon, 6 Sep 2021 09:14:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69C7440C35; Mon, 6 Sep 2021 09:14:33 +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 8308740C35 for ; Mon, 6 Sep 2021 09:14:31 +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=LGyFS oJ45XeN21xVEYjXpFEwlJw0bfK6Ufk7BksUInY=; b=pIGvGvrw8gnTdOrvwkfd2 jHkXSfmOgwemOv6pqBYfNMbCLNcYCoaYRguJaFqnvl0TGO3kddCzrKiwUdMSmwTw /t95o+xhD4vOx5czD3IZLQmwU7cmwD0vE8VQdvxk7T7JLSfbBy/zMDzQJFgPFNio KmaDrXUZMOmVg3D7LmMFmE= Received: from localhost.localdomain (unknown [124.160.214.74]) by smtp3 (Coremail) with SMTP id G9xpCgAnNofTvzVhu_XhFw--.2394S2; Mon, 06 Sep 2021 15:14:30 +0800 (CST) From: Qiming Chen To: stable@dpdk.org Cc: beilei.xing@intel.com, Qiming Chen Date: Mon, 6 Sep 2021 15:13:45 +0800 Message-Id: <20210906071345.9939-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: G9xpCgAnNofTvzVhu_XhFw--.2394S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7CFyxWrW5Zw4UAryfXw1fJFb_yoW8WF1rpF 4xJFyakFs8tanrW3y8JF4xuFWfZ393G3yUGFZ3C3sY9390ka45ZFy5KFWjgFyqyr4kWFnY qrZ0kw1UCa98ZaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jaLvtUUUUU= X-Originating-IP: [124.160.214.74] X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/1tbiQAMGoFSIj-EvpwAAsP Subject: [dpdk-stable] [PATCH 20.11] net/i40e: 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. 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. Fixes: 5c9222058df7 ("i40e: move to drivers/net/") Cc: stable@dpdk.org 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