From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F9E644077; Mon, 20 May 2024 12:43:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A219C40A89; Mon, 20 May 2024 12:43:14 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2061.outbound.protection.outlook.com [40.107.94.61]) by mails.dpdk.org (Postfix) with ESMTP id 398AA40A75 for ; Mon, 20 May 2024 12:43:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bkZkPAfbCmtlca73EgQdud1uHnTZwO5Grn9/C0Rvj4B6efSBaRvQueTvXHgp8l1D9ZTsVSfwq/EBJ7rLS6Hlf9kfOy25XXe6//ZrVnVLNexjcR91mE34nn3qP+DzO7jdQ+qm6nCgJWYboYBmGVx1o/dKIsoGl4VeHPAfSD4bCKRqPL/tvrNQMr3Zfgb5vutzQFzB3GvGXtma8X5FhBcBc18KqpiaWgHGMhyxbLLL///3Jtm6Iaoglb82Jg5Vs6fombhNJe8AhFWJvnlpf81NVrHMMzWs6uaAmht9V6x/xS8EpMVrdmTjl/Nes4Jrq1tj+2/Ez3I5LQc93w/xm8Tl2A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AFDUTO/gSjf7npAnE7YvDEXkg+zpRSWbjlhIfXflTLg=; b=c31iev0/UyQx5NdF2BzKjOxeMtYXByD67TpafKQIUu2n26+ULmwl1Imqc8VlP54ArA5gBI9ipZ7nnOBmmuM56XemnwRa7DjkmBf6LOiK5ZXBN6i0EH3WlNpaPwNhsUZP/EEHEWqfK4AvbOR0SMzp5BKv5kkMiW/68tgLPYV7LWjcqzfIXwIUlhJFSZjLiJHe140djfyiJfxA9QFH2q1AS99qGLqTJ4G1WhOIloyfj7opHeUt/ANeHggdI1bMAr7BajnDSzk07H+j5MScVFjhexK3OmEBdMN20ZHwPUE6lYLvYA6lTAZZOvYD2IwnbqXN/7J4gOGSh8rGXThWlJ5XLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AFDUTO/gSjf7npAnE7YvDEXkg+zpRSWbjlhIfXflTLg=; b=vtit0k+IYPmv9AMwoVopcuMKKCoXJqyQUL8eXa28Ll8CtGvTE4NcBypJBAPVokakyqFq+myLDaVf4i1NXXBw6IN/GQd9N3POU+j3DYXMEttRKHYP6lxksXQQnszZsSXcckhQWeCaNGu1teLhgwc2eIpn9d8RLEJMXG3gbcXMCJw= Received: from DM4PR12MB5055.namprd12.prod.outlook.com (2603:10b6:5:39a::20) by DS0PR12MB7607.namprd12.prod.outlook.com (2603:10b6:8:13f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Mon, 20 May 2024 10:43:11 +0000 Received: from DM4PR12MB5055.namprd12.prod.outlook.com ([fe80::acbd:ea93:4496:51a5]) by DM4PR12MB5055.namprd12.prod.outlook.com ([fe80::acbd:ea93:4496:51a5%7]) with mapi id 15.20.7587.035; Mon, 20 May 2024 10:43:11 +0000 From: "Sebastian, Selwin" To: "Ande, Venkat Kumar" , "dev@dpdk.org" Subject: RE: [PATCH v2 21/25] net/axgbe: add 2.5GbE support to 10G BaseT mode Thread-Topic: [PATCH v2 21/25] net/axgbe: add 2.5GbE support to 10G BaseT mode Thread-Index: AQHaoHxOvptNRt3hOESfByBakFUmRbGgBAeA Date: Mon, 20 May 2024 10:43:11 +0000 Message-ID: References: <20240412125013.10498-1-VenkatKumar.Ande@amd.com> <20240507124305.2318-1-venkatkumar.ande@amd.com> <20240507124305.2318-21-venkatkumar.ande@amd.com> In-Reply-To: <20240507124305.2318-21-venkatkumar.ande@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_ActionId=b3b074ef-da8a-495e-a29f-b0ca72ad14dc; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_ContentBits=0; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Enabled=true; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Method=Standard; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Name=AMD Internal Distribution Only; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SetDate=2024-05-20T10:43:06Z; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR12MB5055:EE_|DS0PR12MB7607:EE_ x-ms-office365-filtering-correlation-id: bb468d22-a0bc-441b-7a34-08dc78b9a508 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|366007|1800799015|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?neTAAhMnKgWb3WlNfrraZGuMpwfLwpDtXNe2RGx2HLtox30iqQ/lsHNrSN2L?= =?us-ascii?Q?Iak4kdC+v0I3VUv4BZaENLFhctYEdGlzgwDbGsy79xbRZSNM+JUrPlMCHKj3?= =?us-ascii?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/PVxkakLILcMnE6pZm3a8OfTe?= =?us-ascii?Q?Zp2omXsBden3yW+Xa7sbpGa86XYm7EFCicjEibTgf1T9jwvsZU1L/g1mQMwN?= =?us-ascii?Q?v2sCPhOkpE9p7Hbxls+lP/ZsOEm/tRDIVAVTbcu0dtUVk1qKXOGFIk74Ht9u?= =?us-ascii?Q?tTpWPFaua0JMk5Au/5nVcryhLZHKenhUupoObbJNNHG9flWXjH065yvoLU8V?= =?us-ascii?Q?G6tpD1laFgmDYvYu6BX+3uV/rseqb/xIPY91Wy0aLuoB/lCV/Hk0Wa1bLszY?= =?us-ascii?Q?uHgk9Jc0u8qRAdXEJnxbQ61cSkFAWL9KhU7Jo0xSSJoRnjjXhP3KndidESxY?= =?us-ascii?Q?krsFfc5choRJQvXd9YoOl+5TlAO5yoYwKERq2X4gaB2rVQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5055.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zmAdYQe/9HeEL1GH0oDGVZkm78I6F641lZkZyeozuhDjI5vY7MLDnTce1R/w?= =?us-ascii?Q?comKCmnJvGffFEhIMWEEXS2UgoZAs4RwHkrcHQWy+vADB5chCIIaEMp1G3CE?= =?us-ascii?Q?fMNoMVn1Qo9PEfYHyZu5+vn0FZy3oQPoMAIbQ/DvwAVJfISO7p2YAKUU6VfW?= =?us-ascii?Q?a5ilrj4lWur6ttQ5vhOkN67Hp3vb89E3EvqLEh+lNiYKW203sCvBPSW2zzc2?= =?us-ascii?Q?hwUARnxUOIkCFxI71BEOXnd0TeUvmVmzBS8QqKP16XDsU9EnqxOTfIP7EwRW?= =?us-ascii?Q?Drkul82FyFig2uSYrtftIl3KWvHUHkJpa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uiifIkCGDanZkO81wRoz4kdlwMyngicnI1TFRoY7mNDV6kv+?= =?us-ascii?Q?gsv40QddWQc6BqOVEfhhIC0sTK7LpcbZmSJJJxYUeOK/ZhWWd9CiajT/cIo+?= =?us-ascii?Q?H7SD4eM/RE6wz9g8nQ5AZwYm8EyTJQcdGGUbyVa0U+lJCoC9bdyJNtg+qHql?= =?us-ascii?Q?aoTJUPmYLjmWKaBFeaW2O6r8ChVk3FFjkLyE8TRI86m9aJPNXad9kCqZ5dvQ?= =?us-ascii?Q?leQ2S1WMUKSMQ3uHVxP6/BhAnzjNqGofV/uxeVL8TFMpRFs/pXwjA1L9FlwF?= =?us-ascii?Q?YafeSgE4pBxcaaLBiWh4ROFzPFUJR3s+Ek+UNUSf6eqeNa9DJIshJjFBijkM?= =?us-ascii?Q?jIz+QAzA4VquXZb5oJDk/ohZomOqh6gS2G3BJlGk?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5055.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb468d22-a0bc-441b-7a34-08dc78b9a508 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2024 10:43:11.2343 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uWPznrSHWVKhbNjQN6aq2vXRAukHU5KYYll8YTNNx0NUcKb5uBaIonhKY/cWfXXee9LW/IMFXfj8GTMJqiRpfg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7607 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org [AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -----Original Message----- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 21/25] net/axgbe: add 2.5GbE support to 10G BaseT mode Add support to the driver to fully recognize and enable 2.5GbE speed in 10G= BaseT mode. Signed-off-by: Venkat Kumar Ande --- drivers/net/axgbe/axgbe_phy_impl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/axgbe/axgbe_phy_impl.c b/drivers/net/axgbe/axgbe_p= hy_impl.c index d173545e83..13b37e9b8b 100644 --- a/drivers/net/axgbe/axgbe_phy_impl.c +++ b/drivers/net/axgbe/axgbe_phy_impl.c @@ -1392,9 +1392,11 @@ static enum axgbe_mode axgbe_phy_switch_baset_mode(s= truct axgbe_port *pdata) case AXGBE_MODE_SGMII_100: case AXGBE_MODE_SGMII_1000: return AXGBE_MODE_KR; + case AXGBE_MODE_KX_2500: + return AXGBE_MODE_SGMII_1000; case AXGBE_MODE_KR: default: - return AXGBE_MODE_SGMII_1000; + return AXGBE_MODE_KX_2500; } } @@ -1883,6 +1885,7 @@ static bool axgbe_phy_port_mode_mismatch(struct axgbe= _port *pdata) if ((phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_10) || (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_100) || (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_1000) || + (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_2500) || (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_10000)) return false; break; @@ -2270,6 +2273,10 @@ static int axgbe_phy_init(struct axgbe_port *pdata) pdata->phy.supported |=3D SUPPORTED_1000baseT_Full; phy_data->start_mode =3D AXGBE_MODE_SGMII_1000; } + if (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_2500) { + pdata->phy.supported |=3D SUPPORTED_2500baseX_Full; + phy_data->start_mode =3D AXGBE_MODE_KX_2500; + } if (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_10000) { pdata->phy.supported |=3D SUPPORTED_10000baseT_Full= ; phy_data->start_mode =3D AXGBE_MODE_KR; -- 2.34.1