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 231B4A0350; Tue, 23 Jun 2020 04:23:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AD6D01D559; Tue, 23 Jun 2020 04:23:01 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0D0381D555 for ; Tue, 23 Jun 2020 04:22:59 +0200 (CEST) IronPort-SDR: cWyhAgwocdWJeBljZ6CygA2TREtlrt5U6YKfipiPq7/J6hw92EJxl5cOTzHdjNdFjC4QQ0yA9Q y2yjn/OInTDg== X-IronPort-AV: E=McAfee;i="6000,8403,9660"; a="143917202" X-IronPort-AV: E=Sophos;i="5.75,269,1589266800"; d="scan'208";a="143917202" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2020 19:22:58 -0700 IronPort-SDR: sWW4yR6zREeB3mLKmt453fT8uqF/ERSOD07j0AqqeTvs7nqNVVxjQGNeLfizhcwFYVFR10z06f HggJKsATqigg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,269,1589266800"; d="scan'208";a="478692743" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga005.fm.intel.com with ESMTP; 22 Jun 2020 19:22:58 -0700 Received: from orsmsx162.amr.corp.intel.com (10.22.240.85) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 22 Jun 2020 19:22:58 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX162.amr.corp.intel.com (10.22.240.85) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 22 Jun 2020 19:22:58 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 22 Jun 2020 19:22:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hLtjxvfN5wnT17GlnqU6B5msGSR4M3uXwSy3CVCWlHNbXCSrSzAJFF69tufQ7+u+q65rWDt4Lc31Ja2JAqVnkiUOBFlq147OKAYRytMMivInMXjjuf5ylcztFpiVGFSoyFOLYndhZBuoqlShz5iCLsnlllmer2ITw6nYvv839+PkwlQ0qpH8GVSZN/JV4HzDRcsI+EtdK04mi/5VUd4r8stq6DrjmNsncqZcFCkMz3j687xh0TcRJZEPxdyYzdmYJHcbEMW0oE9d4DWKAELTLErUYuUj9W1t5hP7D+OeS0BAUAnlQlkWvcEamjPG0AwZBzi21lpc3LOFcQuM4VF/Yw== 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=joPBAh80TAucOZNCYq7PKKFWmVo50vyO7pyLOKUygnE=; b=Fy31/MZjLZTGEqMBlR+tGcr7EGjs2KodjyAeqq4nkHuHPodyZ/vxmF8zeVpCsBQ0d50DzJeZH07T2LLfI4wjpq2B4kuyNkj8k+JYaXru8un8Vq6DDRR4130cDhWjiWxLprXul+zVVpL8HuSxIhLpF6wdYhxaUDTRbQFbgmdTfAD9E5uV9VoxPGeycG/TwEc2fxnacPpcRo5m0I56iNOzk1wv4Vt3htXa9rr1YE0Pf4v+U0A5KIHc41U646GogV5e4zvpOhs4TkBybwCe4mWEcEy3//rHqY4LLQtFpH4PdQuTFrgjJtJErSyMd41sQUp2QTMw76C/Fgy7d4DOBNoAWQ== 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=joPBAh80TAucOZNCYq7PKKFWmVo50vyO7pyLOKUygnE=; b=KtXlsZ2dHz1uZM+t4AE7EaLok6U70y92t9dQ3k2McGo3QWxueIjSWt6//uGd+gzXIlIeQyHeEx8CTcWj5VbTKJ57yBeq60M/WKS2YqSeP0z55QfcuUdkqX6f1Xn8lQ/sr6PX4f7yTlOVh4DuXs0uv41wK454VCXdJ0RAowzXpH0= Received: from MWHPR11MB1391.namprd11.prod.outlook.com (2603:10b6:300:23::15) by MW3PR11MB4617.namprd11.prod.outlook.com (2603:10b6:303:59::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Tue, 23 Jun 2020 02:22:55 +0000 Received: from MWHPR11MB1391.namprd11.prod.outlook.com ([fe80::f8f5:b48c:be92:ac17]) by MWHPR11MB1391.namprd11.prod.outlook.com ([fe80::f8f5:b48c:be92:ac17%3]) with mapi id 15.20.3109.027; Tue, 23 Jun 2020 02:22:55 +0000 From: "Zhao1, Wei" To: "Sun, GuinanX" , "dev@dpdk.org" CC: "Guo, Jia" , "Trakhtenberg, Dany" Thread-Topic: [PATCH 15/70] net/e1000/base: setup copper link function for i225 Thread-Index: AQHWSGOR/uG+WrH42Ea4cHz81rEJ26jleURA Date: Tue, 23 Jun 2020 02:22:55 +0000 Message-ID: References: <20200622064634.70941-1-guinanx.sun@intel.com> <20200622064634.70941-16-guinanx.sun@intel.com> In-Reply-To: <20200622064634.70941-16-guinanx.sun@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGY2M2VlZWEtMzdlYi00ZjkxLTkwYzktMjc0ZmVjOTE2NWFhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicUFLSUNZS0ZTS2dia1V0NUo5Ryt6M2pqcXNna0QxaW1LQlBJVXgyS2lNMURaUmx2TW5zc2ZZUmdCeWRPdGN3byJ9 dlp-version: 11.0.600.7 dlp-product: dlpe-windows x-ctpclassification: CTP_NT dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3c8925d0-5d9e-4d05-9263-08d8171c5703 x-ms-traffictypediagnostic: MW3PR11MB4617: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1002; x-forefront-prvs: 04433051BF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ffVEkkm3o8X7a70GDdY7DQ1RukihN5ujbxwskAQ6ZxZ7yDQz95hBi1lcyyTXgswdS6fVaf0CExjghj5jmjRfdARuXi1vLFzSzWFEMxK+MDiwFVzkcYqtk3IWhV6saMzzXXoNRjGOUiGauH/h0ywTM+iu9ytAYAHUhfGP1GfVMeKaE5h8YZP9PJUxoMGjg5DOpXGiVt83cRJQl0qbT3DsZJz7cvhIH8QN9x4nH76io5xwNbxcCa5Z+AZe1j74JQMMwqWuaCnI/LD+X9gur2VNMftzaNWluiik+pUqZT6fa2twl4tH/8gYPvrdLO8vsv2doCTo+1qZVosv8aSMoVNeVA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1391.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(136003)(376002)(396003)(39860400002)(366004)(76116006)(54906003)(66946007)(66476007)(66556008)(64756008)(66446008)(110136005)(8936002)(8676002)(33656002)(9686003)(53546011)(107886003)(6506007)(26005)(186003)(55016002)(4326008)(2906002)(86362001)(83380400001)(478600001)(316002)(71200400001)(52536014)(7696005)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: mXs1tqTq5U52jlidCJIwmKOzOv0GONuG9MdDv1Lv+Lw2530p1ImYrwe8EUT5qaDNG43xEEW0WM43qu3wX/VX9ZYb99iqH9YtE1Xq/GGMaPLG0DVT7/FyXxPBif25TRqbOECrwomoXhFVLfyNjvHSEV2SFyfw45TV5XyOU1V7k+h8o4g2PRJGoZ9V8Kb6khsJOcBpTiCZ2UMaYMyOTvtb7hiAnqFrQlV2IJsnGztALtexLGtPn3NYGFMh7rzsddcMicyzo5LUkA3zyuRFv8NePGmzQ9FDMJ4TyUKrMJ7LIAT/wmq3JTAzjY5hd2RoGu8Yb3wjwK7awz2KzqvA6k8WEXX9nGi1QepCbWfBpKNfpncs+v0ikLRRyddoiphwnc9uhTjWvU/lWjRt397/f3NmDTdqUS+65+cxWHfQ5u9vMqq79B2xpq3glkBC3JVqk6jdurYpu/dlzagj9425FOY+3XrCKy1kgMoYEZXpKmaYonzpb4pumHghPII0oY+/9fLV Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 3c8925d0-5d9e-4d05-9263-08d8171c5703 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2020 02:22:55.7530 (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: HpxBEmEO1QBzF6VgafZG4ryBuOWLHjd8PJGMh77vZsRwx9ejlFsK4IGkuP4pESK+TglX03NlGiZJ2DbhN089kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4617 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 15/70] net/e1000/base: setup copper link function for i225 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" Hi,=20 > -----Original Message----- > From: Sun, GuinanX > Sent: Monday, June 22, 2020 2:46 PM > To: dev@dpdk.org > Cc: Guo, Jia ; Zhao1, Wei ; Sun, > GuinanX ; Trakhtenberg, Dany > > Subject: [PATCH 15/70] net/e1000/base: setup copper link function for i22= 5 >=20 > A dedicated function for i225 that Configures the link for auto-neg or fo= rced > speed and duplex. It was taken from the > e1000_setup_copper_link_82575 function in e1000_82575 file and was > refactored for i225 only. >=20 > Signed-off-by: Dany Trakhtenberg > Signed-off-by: Guinan Sun > --- > drivers/net/e1000/base/e1000_i225.c | 30 > +++++++++++++++++++++++++++++ drivers/net/e1000/base/e1000_phy.h > | 13 +++++++++++++ > 2 files changed, 43 insertions(+) >=20 > diff --git a/drivers/net/e1000/base/e1000_i225.c > b/drivers/net/e1000/base/e1000_i225.c > index 4ba6c45be..621dc6863 100644 > --- a/drivers/net/e1000/base/e1000_i225.c > +++ b/drivers/net/e1000/base/e1000_i225.c It seems we should commit to folder dpdk/drivers/net/igc/base not in e1000 = folder for i225 > @@ -124,6 +124,36 @@ void e1000_release_swfw_sync_i225(struct > e1000_hw *hw, u16 mask) > e1000_put_hw_semaphore_generic(hw); > } >=20 > +/* > + * e1000_setup_copper_link_i225 - Configure copper link settings > + * @hw: pointer to the HW structure > + * > + * Configures the link for auto-neg or forced speed and duplex. Then > +we check > + * for link, once link is established calls to configure collision > +distance > + * and flow control are called. > + */ > +s32 e1000_setup_copper_link_i225(struct e1000_hw *hw) { > + u32 phpm_reg; > +