From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4E535A0471 for ; Fri, 19 Jul 2019 03:02:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DF292C2B; Fri, 19 Jul 2019 03:02:13 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 798DD28EE for ; Fri, 19 Jul 2019 03:02:10 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2019 18:02:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,280,1559545200"; d="scan'208";a="179456847" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 18 Jul 2019 18:02:09 -0700 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jul 2019 18:02:08 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx162.amr.corp.intel.com (10.18.125.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jul 2019 18:02:08 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.232]) with mapi id 14.03.0439.000; Fri, 19 Jul 2019 09:02:06 +0800 From: "Wang, Haiyue" To: "Zhang, Qi Z" , "Zhang, Xiao" , "dev@dpdk.org" CC: "Xing, Beilei" Thread-Topic: [v2] net/i40e: fix SFP X722 not work with FW4.16 Thread-Index: AQHVPXCoxr72+IbphkijmbrOu3V8PabQmLyAgACG4hA= Date: Fri, 19 Jul 2019 01:02:05 +0000 Message-ID: References: <1563470021-16325-1-git-send-email-xiao.zhang@intel.com> <1563490319-53151-1-git-send-email-xiao.zhang@intel.com> <039ED4275CED7440929022BC67E7061153D69617@SHSMSX105.ccr.corp.intel.com> In-Reply-To: <039ED4275CED7440929022BC67E7061153D69617@SHSMSX105.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmZjZGI1MTItODVlZS00YWVlLThlMDItOTkxNjI3YmNkMGRiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNVhGaHpEUWFabDNQUUhxTnNVZlwvZGtKbFFic2hScHUxdkl4V3h2b2hUQXRRemdqcWdybUl1MkxHeTkxbzd6K3QifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [v2] net/i40e: fix SFP X722 not work with FW4.16 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Zhang, Qi Z > Sent: Friday, July 19, 2019 08:57 > To: Zhang, Xiao ; dev@dpdk.org > Cc: Xing, Beilei ; Wang, Haiyue > Subject: RE: [v2] net/i40e: fix SFP X722 not work with FW4.16 >=20 >=20 >=20 > > -----Original Message----- > > From: Zhang, Xiao > > Sent: Friday, July 19, 2019 6:52 AM > > To: dev@dpdk.org > > Cc: Xing, Beilei ; Wang, Haiyue > > ; Zhang, Qi Z ; Zhang, Xia= o > > > > Subject: [v2] net/i40e: fix SFP X722 not work with FW4.16 >=20 > Please add fix line and Cc stable. > Fixes: 73cd7d6dc8e1 ("net/i40e: use set switch AQ instead of register set= ting") >=20 > > > > FW4.16 of SFP X722 does not support setting TPID by set_switch_config > > adminq operation, for firmware version less than 4.16 TPID is set by re= gister > > instead. For device SFP X722, disable adminq flag to follow the same pa= th with > > old firmware version to make it work. > > > > Signed-off-by: Xiao Zhang > > --- > > v2 > > Unset adminq flag instead of only checking device id when set TPID. > > v1 > > Check device id when setting TPID, use adminq if not SFP X722, else use > > register. > > --- > > drivers/net/i40e/i40e_ethdev.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_eth= dev.c > > index 2b9fc45..2b2c877 100644 > > --- a/drivers/net/i40e/i40e_ethdev.c > > +++ b/drivers/net/i40e/i40e_ethdev.c > > @@ -1358,6 +1358,10 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void > > *init_params __rte_unused) > > PMD_INIT_LOG(ERR, "Failed to init adminq: %d", ret); > > return -EIO; > > } > > + /* Firmware of SFP x722 does not support adminq option */ > > + if (hw->device_id =3D=3D I40E_DEV_ID_SFP_X722) > > + hw->flags &=3D ~I40E_HW_FLAG_802_1AD_CAPABLE; > > + The commit log says some version like FW4.16 doesn't support ADQ, but this = line of code means all FW doesn't support ADQ. Which one is right ? :-) > > PMD_INIT_LOG(INFO, "FW %d.%d API %d.%d NVM %02d.%02d.%02d > > eetrack %04x", > > hw->aq.fw_maj_ver, hw->aq.fw_min_ver, > > hw->aq.api_maj_ver, hw->aq.api_min_ver, > > -- > > 2.7.4