From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D8D413977; Wed, 19 Jul 2017 11:22:30 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2017 02:22:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,380,1496127600"; d="scan'208";a="1174313581" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by fmsmga001.fm.intel.com with ESMTP; 19 Jul 2017 02:22:28 -0700 Received: from pgsmsx106.gar.corp.intel.com ([169.254.9.158]) by KMSMSX152.gar.corp.intel.com ([169.254.11.97]) with mapi id 14.03.0319.002; Wed, 19 Jul 2017 17:22:27 +0800 From: "Dai, Wei" To: "Yang, Qiming" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Lu, Wenzhuo" , "Yang, Qiming" Thread-Topic: [dpdk-dev] [PATCH v2] net/ixgbe: fix Rx/Tx queue interrupt for x550 devices Thread-Index: AQHS/29H+WoPhzRq8kCmJbZQ68qaQ6Ja4fDg Date: Wed, 19 Jul 2017 09:22:26 +0000 Message-ID: <49759EB36A64CF4892C1AFEC9231E8D650B650CB@PGSMSX106.gar.corp.intel.com> References: <1500269687-73277-1-git-send-email-qiming.yang@intel.com> <1500344914-15473-1-git-send-email-qiming.yang@intel.com> In-Reply-To: <1500344914-15473-1-git-send-email-qiming.yang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjA4MmY5OTItMGVhYy00YTU3LTlhMjEtNDQ4YTg0NGI0MGQxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlVLSHZtQlRoMmlrc2lVcWF2dXVlSDVleXFJUmNYT3hJVUdUREFJVHZmT1U9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix Rx/Tx queue interrupt for x550 devices 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, 19 Jul 2017 09:22:31 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Qiming Yang > Sent: Tuesday, July 18, 2017 10:29 AM > To: dev@dpdk.org > Cc: stable@dpdk.org; Lu, Wenzhuo ; Yang, Qiming > > Subject: [dpdk-dev] [PATCH v2] net/ixgbe: fix Rx/Tx queue interrupt for x= 550 > devices >=20 > x550 devices not do interrupt vector mapping before enable Rx/Tx queue > interrupt, makes interrupt mode can't work neither with igb_uio or VFIO. >=20 > Fixes: d2e72774e58c ("ixgbe/base: support X550") >=20 > Signed-off-by: Qiming Yang Have looked through datasheet of 82599, X540 and X550. Acked-by: Wei Dai > --- > v2 changes: > * fixed other cause interrupt vector map and typo issue > --- > drivers/net/ixgbe/ixgbe_ethdev.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c > b/drivers/net/ixgbe/ixgbe_ethdev.c > index 9b06ac1..0caafd5 100644 > --- a/drivers/net/ixgbe/ixgbe_ethdev.c > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c > @@ -5611,7 +5611,8 @@ ixgbe_set_ivar_map(struct ixgbe_hw *hw, int8_t > direction, > tmp |=3D (msix_vector << (8 * (queue & 0x3))); > IXGBE_WRITE_REG(hw, IXGBE_IVAR(idx), tmp); > } else if ((hw->mac.type =3D=3D ixgbe_mac_82599EB) || > - (hw->mac.type =3D=3D ixgbe_mac_X540)) { > + (hw->mac.type =3D=3D ixgbe_mac_X540) || > + (hw->mac.type =3D=3D ixgbe_mac_X550)) { > if (direction =3D=3D -1) { > /* other causes */ > idx =3D ((queue & 1) * 8); > @@ -5719,6 +5720,7 @@ ixgbe_configure_msix(struct rte_eth_dev *dev) > break; > case ixgbe_mac_82599EB: > case ixgbe_mac_X540: > + case ixgbe_mac_X550: > ixgbe_set_ivar_map(hw, -1, 1, IXGBE_MISC_VEC_ID); > break; > default: > -- > 2.7.4