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 ADE22A0C56 for ; Wed, 8 Sep 2021 05:17:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9787B4003E; Wed, 8 Sep 2021 05:17:17 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 0931B4003E for ; Wed, 8 Sep 2021 05:17:15 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10100"; a="207485731" X-IronPort-AV: E=Sophos;i="5.85,276,1624345200"; d="scan'208";a="207485731" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2021 20:17:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,276,1624345200"; d="scan'208";a="580217342" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga004.jf.intel.com with ESMTP; 07 Sep 2021 20:17:14 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 7 Sep 2021 20:17:14 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 7 Sep 2021 20:17:13 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 7 Sep 2021 20:17:13 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Tue, 7 Sep 2021 20:17:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QWGHaCNz5E5aaJhEH5oG8DZ14rpJHeDQfoXnVa3EJonDLYkVrPRyjrt78aMBv10WJ1+f1U81SpepDU6jvAgW1L+q6PcXgK+cRXbN+xDXBOc+Us/jwVS543jE2qQ4lGDfsVlVxjV/GsAQhRUp5G6HKzTWnGZnTzMEbLz53ABMOGhky4fSkYB3VoJXGZ5Y5z+DUdio5al3gtTFHe+5TsDDGD0EJXxv//AWln4ep9NBM48K9cganzU9c8KMpdtZRNWqK485dkEE3QiGGIksjaEtV0682sUItYGyovZjNdZUQ8EAEbayV9CWYzZR9rxizAr/gcGnUv+2Vneq6o2X0kAA4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V4dq620ZfkSx2RhbFdJouqu1vrZl/8eod5MQhP8nIpw=; b=V0kp9vBq9kcmPYSVTDAl24k1zjH90h6JWo8Thy/aGrb4kzpe+08z9/Hn5bhSeVEyDlfoEsZNeH3DO7F//B/InYvdWQJL3xFuV5u5/xh9Q7ki/RbX4tCmHc2AyGKS+NgEHsdafQsP/ox0pIfJfL0z+PbR3JxW2uKS1YlyqDkmE3ISulM10bilyOCxp/tMfh3+/LVfKSUnSiCrN/SYyb2Bz9ui2Q+NOhw2nP8zLzMppvNBCYohOc7l5Uo1jf/K/LxWRqQZ3J5Zbced3DtKjGV6ZY2llbsl6xDsbySilC6LxFJvBdNNowjvFCXogucLLlWNb561VUAiPW8zLD9eiIXiAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V4dq620ZfkSx2RhbFdJouqu1vrZl/8eod5MQhP8nIpw=; b=tGEPgSX2ObB10Xzz9xZXaiuVFwJulW6sKj7Xz1/gyQzSe6079X40jzk2HyrzBGUZLinzfpnO2Nv9CTdGgCTdIRqxgN+m1DA8l2b0eyh2qYQn4VUH3WBlm7GXYDin5OAupTMNbwtrxnDh43dwZ09t+6fgSJ9YiG22/7KxXe+LF6s= Received: from MN2PR11MB3807.namprd11.prod.outlook.com (2603:10b6:208:f0::24) by BL1PR11MB5542.namprd11.prod.outlook.com (2603:10b6:208:31d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Wed, 8 Sep 2021 03:17:12 +0000 Received: from MN2PR11MB3807.namprd11.prod.outlook.com ([fe80::197b:884c:3d10:ee6a]) by MN2PR11MB3807.namprd11.prod.outlook.com ([fe80::197b:884c:3d10:ee6a%5]) with mapi id 15.20.4478.025; Wed, 8 Sep 2021 03:17:12 +0000 From: "Xing, Beilei" To: Qiming Chen , "stable@dpdk.org" Thread-Topic: [PATCH 20.11] net/i40e: extend the polling times of vf reset Thread-Index: AQHXou7eKNbIDzuZ+k2V9i5Ol8y3DquZecew Date: Wed, 8 Sep 2021 03:17:12 +0000 Message-ID: References: <20210906071345.9939-1-chenqiming_huawei@163.com> In-Reply-To: <20210906071345.9939-1-chenqiming_huawei@163.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: 163.com; dkim=none (message not signed) header.d=none;163.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c6c5d009-0dc9-4fca-a587-08d9727726bd x-ms-traffictypediagnostic: BL1PR11MB5542: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3KyOzwDxOHjazoLD6ly+i7k1zvwhPMckvFZV4bg2cXZm295YJArNnsKQiku96gK/Eh2LSAQic1dgwEybogZXFOAh/oktCTP6wmgRltYt1jwrKe0kNtwH51JPq4wbDVvUqFZkZ36F8mR4J7KzkIuHPWyq5jA0TjB1u1t8C8KW8Iwf82NwIPCcCnG9JY30TBilmg2hqHw0W5Zo3+VrZEcEgc8KW09iE0qsIkowAgMmnm9vphI1G2Fk382I/VgrP7EtwtblyyNaYmqxf8KQaPJu3xIiASLYXraa9CXB6QlE1CNXqUFJBpYcZM/Sf4ZyBTdxtXfZpuTHcCRA1Id78eFHWuoRvX/yQqgRqk725+1QcJnWkPPpO7fPXxJ+bPhMdCtpapafR+ed42GW+eznzSMCNgaxsK3YZduCorP4bPUBys2p0Cn7E93TuLxUYqfl8QeqvBnSV3l9LVndbjle6YgWsY5k7HJcqe63mZP+ltmlTPMp1LX7DmxClPEboP42GcXrt5A343KKGbSdmwDnEuG43MHb2OkzoAHMdgcarpxjxm9+pRfnckrZj2chXw6D31R9qWRD6Zd2O8dhtsTR0Uj4vN3mtyw3Ex7lc8bN9R2eszmmsf1PqATW+UG623srhQb2c6VBO8R5YMrfx9qYzrzBCEUo/S+cluK6ImOelOz4veZfcCNBaI7ZfwkUZf+8yXWCTENd+jbutR7BmCitWeMKOQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3807.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(39860400002)(346002)(396003)(136003)(366004)(55016002)(66446008)(38070700005)(66946007)(66476007)(64756008)(186003)(6506007)(76116006)(26005)(478600001)(66556008)(38100700002)(71200400001)(122000001)(83380400001)(9686003)(33656002)(8936002)(8676002)(110136005)(5660300002)(2906002)(316002)(52536014)(7696005)(86362001)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OrHTtohcyKlnHYHg1EC5ugC/tznTxHMOUxv2U8RysO17JfZHpt08L3YJskQJ?= =?us-ascii?Q?GrfBPLu/pwokBFJah/pMqHMxMICrAwnGjsVVUA3ToiFqY0wSmVLg7VNlExFs?= =?us-ascii?Q?Xk6+OoSKu7vvsZ+M1G/15O9VqaKE24cvFs4Yte/rO97gVtSfp17rP1jPZd+g?= =?us-ascii?Q?jQFqZA63VV0LYM5N647SCgHaTZmY2OUwMheMxsKLl+FP+py344HGvhGrO/Q5?= =?us-ascii?Q?DoZx5AchPwyHATvz8xs63UhC/6TtU8aPXW8plMkeTRmeZlAzXSZQMaZcBeje?= =?us-ascii?Q?KYEDeaHJFZ2MKSZP4q7LWWF8gizph2OQGHBEasGPZpkxmoj5vMC69nnqBc0q?= =?us-ascii?Q?e3ISYZWbiAXFKTtkt94d2/2o2twNLtA6Zs768RUYMU2TGhrOyd2xUlFZ2nqe?= =?us-ascii?Q?b+FUslbEQmeieCc7C4kR9P9u+Iii2aN+8VyGmb096ZHXiqKOydhwazRrH87N?= =?us-ascii?Q?PccLsIUo3ZxWKh0MxtHQK+8vTE/qjuDuhiuDR3GbTRTwxn6nBq65/WZf6nZq?= =?us-ascii?Q?riaIKqPH2UGBIAhDqUFoy5ylZyBifUrP6xoKR60dPzZAF57zoQ8LwJQJNe1k?= =?us-ascii?Q?pXZ8OgBAy+Sv0BPyeLVYnCx4Hcdx4p+YDuP+Cj4DOVLwu9YGzfcMhh36OENG?= =?us-ascii?Q?IyBLBsQBwdViQLgKdSEQCT2QJXhffObQUAyR71rkkl9ViDwBrDoOio9FLZYp?= =?us-ascii?Q?dLfqBtsSsDH4HsVHEB1/Zz2DYe7+M7uuZClDy06qB185+ipK4RrJgpZsEdFs?= =?us-ascii?Q?i0siFkPtjn+vo4U4YHwNqEnjeqE7mfjnMfRHxIF6eCr3i/pjCw+kcz8fCizk?= =?us-ascii?Q?Jr12rR/ju5/9BSqGtpG4/6gz2aXzGEipRqaorm5ENzPjj4aIhMfZeFZNWPaq?= =?us-ascii?Q?CoHY2GXkyoEbqSvNLPUyia6vn2WNR19zzoQ6mXbeMJXnAiRtEbWhKm/QZkBf?= =?us-ascii?Q?QOwT6o10IThz03nCTCCLDS5W7bT3W6bEamoDXwEuXoIc6tJDQ+EOtxEme00i?= =?us-ascii?Q?dCxlYrbqxyrwDBJlPqQsSUA/0fXTWf79+QhPHWGBwEyT5VJLqCxpK9G6Q/3e?= =?us-ascii?Q?baUoFpML4RhfCfUJTkwynFQXGSoAQ32BvjMAqfBzpa5e2AUqXb4yjyX/moMW?= =?us-ascii?Q?+v0q4UiUjzLTN34AgH2LvgWyF8Xu92FNFQAOGgACA+iUeNVM+ICYI3TmEYmD?= =?us-ascii?Q?mqtX7fnaUGoLUW+ACPsN83J6b0iy6a+Mwk0i1HBEPWlkHeUn/JbbBdisRHTR?= =?us-ascii?Q?Ekeg/VU3bieVVbHqoHaE/I8kkQgkPqyp/xAovVy9nV0jmfbEpNgQ+SItyzWK?= =?us-ascii?Q?zYVMxhs1SwtDarjfMKPSOeQI?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB3807.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6c5d009-0dc9-4fca-a587-08d9727726bd X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Sep 2021 03:17:12.4884 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ct9Pk9AWlostIHTY3sxoWKWHmLmWdu6m2EXv26Exn9yMNZ73Sqm2elSfL+9OgyxsEEtm2OWYXg3wdCn7oJfd6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5542 X-OriginatorOrg: intel.com Subject: Re: [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" > -----Original Message----- > From: Qiming Chen > Sent: Monday, September 6, 2021 3:14 PM > To: stable@dpdk.org > Cc: Xing, Beilei ; Qiming Chen > > Subject: [PATCH 20.11] net/i40e: extend the polling times of vf reset Besides, the title should be net/i40evf: xxxx This comment is for all you fix patches for i40evf. >=20 > In the embedded RTOS environment, the x722 controller Ethernet card of th= e > d2146nt chip, the vfio user mode driver takes over 8 vf ports in turn, bu= t > i40evf_check_vf_reset_done will probably fail. >=20 > 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 progr= ess. > The official website contacted external experts, but there was no respons= e > afterwards. Learning from the implementation of the i40evf kernel driver > locally, after modifying the polling time from 1 second to 5s, the repeat= ed > 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. >=20 > The patch cannot fundamentally solve the failure problem, but it greatly > slows down the probability of the problem. The modification is based on t= he > i40evf kernel driver. >=20 > Fixes: 5c9222058df7 ("i40e: move to drivers/net/") > Cc: stable@dpdk.org >=20 > Signed-off-by: Qiming Chen > --- > drivers/net/i40e/i40e_ethdev_vf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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 >=20 > #define I40EVF_ALARM_INTERVAL 50000 /* us */ >=20 > -- > 2.30.1.windows.1