From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 27C85236; Wed, 22 Nov 2017 02:18:31 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2017 17:18:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,435,1505804400"; d="scan'208";a="179107335" Received: from kmsmsx155.gar.corp.intel.com ([172.21.73.106]) by fmsmga006.fm.intel.com with ESMTP; 21 Nov 2017 17:18:29 -0800 Received: from pgsmsx112.gar.corp.intel.com ([169.254.3.145]) by KMSMSX155.gar.corp.intel.com ([169.254.15.35]) with mapi id 14.03.0319.002; Wed, 22 Nov 2017 09:18:29 +0800 From: "Dai, Wei" To: "Lu, Wenzhuo" , "dev@dpdk.org" CC: "Lu, Wenzhuo" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/ixgbe: fix VF RX hang Thread-Index: AQHTYbDM7xX2bhcLhEKVCvJpWhpA56Mfm1/w Date: Wed, 22 Nov 2017 01:18:28 +0000 Message-ID: <49759EB36A64CF4892C1AFEC9231E8D6515653D6@PGSMSX112.gar.corp.intel.com> References: <1511149065-15646-1-git-send-email-wenzhuo.lu@intel.com> In-Reply-To: <1511149065-15646-1-git-send-email-wenzhuo.lu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWIxYzU0MTgtZWRjOS00YjAyLTlkZWQtZjE0Y2I3Yzg4NjEwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InBcL2hjdzQ3a3U5czFnb0RjcDRoOGZvTzQzejZEem9GZWg1Q2tnZWN6WUdZPSJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: fix VF RX hang X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2017 01:18:32 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Monday, November 20, 2017 11:38 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] net/ixgbe: fix VF RX hang >=20 > The datasheet says, if using MSI-X mode, the PBA support bit of the GPIE > register must be set to 1. > DPDK uses polling mode, we cannot hit this issue in the scenario DPDK PF = + > DPDK VF. If we use DPDK PF + kernel VF, as the kernel driver uses interrp= t > mode, VF may hit RX hang after running hours. >=20 > Fixes: 00e30184daa0 ("ixgbe: add PF support") > Cc: stable@dpdk.org >=20 > Signed-off-by: Wenzhuo Lu Acked-by: Wei Dai Thank you, Wenzhuo. This bug-fix address to Rx hang after long time running. It has also been confirmed by Intel NIC firmware team and tested by one of = our customers. > --- > drivers/net/ixgbe/ixgbe_pf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c = index > 676e92c..0114694 100644 > --- a/drivers/net/ixgbe/ixgbe_pf.c > +++ b/drivers/net/ixgbe/ixgbe_pf.c > @@ -273,7 +273,7 @@ int ixgbe_pf_host_configure(struct rte_eth_dev > *eth_dev) >=20 > gpie =3D IXGBE_READ_REG(hw, IXGBE_GPIE); > gpie &=3D ~IXGBE_GPIE_VTMODE_MASK; > - gpie |=3D IXGBE_GPIE_MSIX_MODE; > + gpie |=3D IXGBE_GPIE_MSIX_MODE | IXGBE_GPIE_PBA_SUPPORT; >=20 > switch (RTE_ETH_DEV_SRIOV(eth_dev).active) { > case ETH_64_POOLS: > -- > 1.9.3