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 2CC5EA0573; Wed, 4 Mar 2020 22:08:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3EEF22BB8; Wed, 4 Mar 2020 22:08:12 +0100 (CET) Received: from us-smtp-delivery-181.mimecast.com (us-smtp-delivery-181.mimecast.com [63.128.21.181]) by dpdk.org (Postfix) with ESMTP id D029BFEB for ; Wed, 4 Mar 2020 22:08:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rbbn.com; s=mimecast20180816; t=1583356090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xMYDt4nrs7Y3VXKXiuDLUgdMORPcDzDkjmnU3EAGg4w=; b=Cb+J/1I7iiI1XfZNy7w2IMHXsaVFK4bFSpPlrNDu5JkRam22aK/5zGscpY2jjoFUPhsdFv SjIBwu3b07n54X4WBZtN98tn63CXR9DlLrSk666kFVCFZGrp9HDEd8Fzu5cAwLJHUf/KYP N+faZ+BJTxuPriZ91uBWyInfcEFk2fs= Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2177.outbound.protection.outlook.com [104.47.55.177]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-330-fVxMymuuOZKSHub9bIoAag-1; Wed, 04 Mar 2020 16:08:07 -0500 Received: from DM6PR03MB4777.namprd03.prod.outlook.com (2603:10b6:5:18b::26) by DM6PR03MB4425.namprd03.prod.outlook.com (2603:10b6:5:107::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15; Wed, 4 Mar 2020 21:08:05 +0000 Received: from DM6PR03MB4777.namprd03.prod.outlook.com ([fe80::8a1:2fec:6da4:5789]) by DM6PR03MB4777.namprd03.prod.outlook.com ([fe80::8a1:2fec:6da4:5789%5]) with mapi id 15.20.2772.019; Wed, 4 Mar 2020 21:08:05 +0000 From: "Dey, Souvik" To: "dev@dpdk.org" CC: "xiaolong.ye@intel.com" , "xiao.zhang@intel.com" , "users@dpdk.org" , Stephen Hemminger , Ferruh Yigit Date: Wed, 4 Mar 2020 16:08:04 -0500 Thread-Topic: Issue with X550 link status Thread-Index: AdXyT8/bQlsnsGziSD2jyQ8c0WwhlwAGOUbw Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-originating-ip: [208.45.178.4] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6e44af94-42c9-48fc-7038-08d7c08021e4 x-ms-traffictypediagnostic: DM6PR03MB4425: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0332AACBC3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(189003)(199004)(86362001)(2940100002)(53546011)(966005)(4326008)(5660300002)(6506007)(498600001)(71200400001)(7696005)(66476007)(54906003)(66556008)(64756008)(8676002)(26005)(186003)(66946007)(81156014)(66446008)(55016002)(33656002)(52536014)(8936002)(2906002)(76116006)(81166006)(6916009)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR03MB4425; H:DM6PR03MB4777.namprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ifm1ft6blkK/Gs9/d08Eu80sl2Rg5k4D8Epr4bquy8Yx8yaGgJW0DBIoVEY02/+A1twR5HezSPLMf3AvbF6eFHl5B9yrzHYi97wHPSAsuUHxY6tjBWB1FF0swsllSr0yrc2JK4kjt8Jn1tMzKjXdaRtwxHJ4EZ3vpPzFT28XT1W0ThD+CTaFgx93O3NAJJXSFhfVL64/Qhxr+4BCfSNd4mrkmq0+0nO53XfnGDEfzfwDA0FcfQUZnMlUYGPyXj1AixENfapie+C6MtTztH2bRwsd2wFZtFLQ7IYfghfq1/uQV75S6gaOKVpnWP/Lj9P2Y3jJby57OfxqQQElsqPGbhxc/jHoZrlg69+1hN4Vk0uoxQw9ggyNv5YfwAzUo9C7Zp15WRTUqaNBg+qX/vsUnHOjC2bxOsoQTw1oHFOlkteiF1T5YjjBvFktP+u+SXh5zyfbIQvAJ5jieFJifIBzbR9rF/2bQVTwbvZJ29/Yf7eNyyTPiQEdiynkCKfhNOSeQ+qDYz+yn+RlJja/DGiIOA== x-ms-exchange-antispam-messagedata: nkkb61ny3PdQK2oxWdA7chIYzaKbMlrk4KarySyZyxR/TnlmD7/y3UChlbf0u4ssbzb980QcJATWB0fZhj37raPubZXLnp9hTIwm46XM7kVekBr0I7pW2lJOWJqGInbO/afY/sFpmQyQyhrlNybILw== x-ms-exchange-transport-forked: True x-mc-unique: fVxMymuuOZKSHub9bIoAag-1 x-originatororg: rbbn.com x-ms-exchange-crosstenant-network-message-id: 6e44af94-42c9-48fc-7038-08d7c08021e4 x-ms-exchange-crosstenant-originalarrivaltime: 04 Mar 2020 21:08:05.0881 (UTC) x-ms-exchange-crosstenant-fromentityheader: Hosted x-ms-exchange-crosstenant-id: 29a671dc-ed7e-4a54-b1e5-8da1eb495dc3 x-ms-exchange-crosstenant-mailboxtype: HOSTED x-ms-exchange-crosstenant-userprincipalname: eRB6u2P2OZLSHf6a7TeEuqnPCmtsLrivCNMuYBL4SRYtL4P0cJf0/37+dJwyqKq1 x-ms-exchange-transport-crosstenantheadersstamped: DM6PR03MB4425 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: rbbn.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Issue with X550 link status 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" The X550 NIC is of the below device id. [root@stdell10 ~]# lspci -nnn | grep -i ether 19:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 1= 0G X550T [8086:1563] (rev 01) 19:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller 1= 0G X550T [8086:1563] (rev 01) 19:10.0 Ethernet controller [0200]: Intel Corporation X550 Virtual Function= [8086:1565] 19:10.1 Ethernet controller [0200]: Intel Corporation X550 Virtual Function= [8086:1565] 19:10.2 Ethernet controller [0200]: Intel Corporation X550 Virtual Function= [8086:1565] 19:10.3 Ethernet controller [0200]: Intel Corporation X550 Virtual Function= [8086:1565] So the mac_type is ixgbe_mac_X550_vf in the below case. -- Regards, Souvik From: Dey, Souvik Sent: Wednesday, March 4, 2020 1:17 PM To: dev@dpdk.org Cc: xiaolong.ye@intel.com; xiao.zhang@intel.com; users@dpdk.org Subject: Issue with X550 link status Hi All, After upgrading to DPDK 18.11.6 LTS release from 18.11.2 the = link_update call for link status update is not working for X550 NICs SR-IO= V enabled. On debugging it looks like the change introduced as a part of th= is patch is causing the issue. https://patches.dpdk.org/patch/62140/ @@ -4135,6 +4138,10 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev= , return rte_eth_linkstatus_set(dev, &link); } + esdp_reg =3D IXGBE_READ_REG(hw, IXGBE_ESDP); + if ((esdp_reg & IXGBE_ESDP_SDP3)) + link_up =3D 0; + if (link_up =3D=3D 0) { if (ixgbe_get_media_type(hw) =3D=3D ixgbe_media_type_fiber) { intr->flags |=3D IXGBE_FLAG_NEED_LINK_CONFIG; I can see that the esdp_req is coming as 3735928495(0xDEADBEAF) and due to = which the link_up is set to 0 even when ixgbevf_check_link returned link_up= as 1. Along with this patch I also see a path_fullchk patch introduced , d= oes that play any role in this ? Can someone please let me know if the patch has got some issues or it is be= having correctly and the link_status is failing for valid reason. As mentio= ned earlier the same HW with same NIC acting in SR-IOV works fine with 18.1= 1.2 DPDK . I am blocked at a customer bug dew to this and any urgent help w= ill be much appreciated. -- Regards, Souvik ---------------------------------------------------------------------------= -------------------------------------------- Notice: This e-mail together with any attachments may contain information o= f Ribbon Communications Inc. that is confidential and/or proprietary for the sole use of the intended recipie= nt. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly= prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies,= including any attachments. ---------------------------------------------------------------------------= --------------------------------------------