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 C34D344153; Tue, 4 Jun 2024 14:15:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FBCA43705; Tue, 4 Jun 2024 14:13:38 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2040.outbound.protection.outlook.com [40.107.223.40]) by mails.dpdk.org (Postfix) with ESMTP id 1611143703 for ; Tue, 4 Jun 2024 14:13:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EF+rh87nmVpQMc3VniAPMpj1IVUrIyUTbwXVaS129VbwEbeIOxn80b9scOcRu3o/H9iNNEjRwLis75lbvc9aqYdsoFMnZZaYlmnwFh9dLyOP5yVEL4kWqeFJqbOWH/dS/SE1lg4Gyiql5jcAmZGYdZPpbOwB62Y2l5ssZCb9PBO5F6ZYZ+gLVw1/zu8+pA/dnD1tHeTljr+0uCFMXtub3htxDNjekRyyD8DXGEoRzciEx4EIbxLF77E+/zWMBiK2pWzdN+i0by0q+wR+9jN1RRXANCsBOsucZ+nXaewW3Ow7EEOhCXoEuznnVFgj2MJpOHmp4Zk3D8Wa54mYHqlpYw== 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=8BWJ/DUtHqXxOG8uop+pujyWSLqS8FUR/6MVXrMur+0=; b=Jjyez76EU14GaSZ6nTKvbt4n/CkMawGVfLgs44KWv7esOFwXSt2WB7mW5mKhqsk7oV4nG46jDj8WR0nnDTDjB7+ZisC3Fpxn4f06pcqUjGMuSBM5QwVJ/G8m12xym13rB6svewQx566X4/p/VWQ2lS5zMe0RAvg8kMx6kzj0FSdwGWFco1HwmVxnO2aLZhlh1Gq8hUjS0WQ04lNGV6V7ctFSdkzpLbTHP+zoeJBB9sYKzXPAQf5Y7Jz1VeALloOgvpb2assZi6mms0S2WKp/9kPeqmvxzY+TuKh/Qt4tGtPX9hn7y75ScSfYHx1bpcayRt29aSEppJ0b2/6LKLz4Kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) 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=8BWJ/DUtHqXxOG8uop+pujyWSLqS8FUR/6MVXrMur+0=; b=zVt8WbhqBE9qpW9GM0bZKjYd1iExnGIJY4a5Pi9Qp9UQwmfVfDnSNOMEl4a4qWkbQX2q7R9tnrQlYHztIhPBkjxnkJ0D/TbGaTd9009PKafPLsZwjp/WoM5k3NhNRzZ3odT32RElZ7OT21Btt/cr44+v4q1tDccnn+QczZoreDQ= Received: from BN9PR03CA0630.namprd03.prod.outlook.com (2603:10b6:408:106::35) by DS0PR12MB9037.namprd12.prod.outlook.com (2603:10b6:8:f1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.25; Tue, 4 Jun 2024 12:13:31 +0000 Received: from BN3PEPF0000B36E.namprd21.prod.outlook.com (2603:10b6:408:106:cafe::79) by BN9PR03CA0630.outlook.office365.com (2603:10b6:408:106::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.30 via Frontend Transport; Tue, 4 Jun 2024 12:13:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN3PEPF0000B36E.mail.protection.outlook.com (10.167.243.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.0 via Frontend Transport; Tue, 4 Jun 2024 12:13:31 +0000 Received: from cae-Lilac-RMB.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 4 Jun 2024 07:13:29 -0500 From: Venkat Kumar Ande To: CC: , Venkat Kumar Ande , Selwin Sebastian Subject: [PATCH v3 22/25] net/axgbe: add 2.5GbE support to 10G BaseT mode Date: Tue, 4 Jun 2024 17:41:54 +0530 Message-ID: <20240604121157.3052-22-venkatkumar.ande@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604121157.3052-1-venkatkumar.ande@amd.com> References: <20240507124305.2318-1-VenkatKumar.Ande@amd.com> <20240604121157.3052-1-venkatkumar.ande@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B36E:EE_|DS0PR12MB9037:EE_ X-MS-Office365-Filtering-Correlation-Id: 99f937cc-e5b4-4d27-cb0a-08dc848fbfc3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|376005|82310400017|36860700004|1800799015; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?8H36nofaC0DrWgmBVTGPkT4hE7X9ndkU2YbT/5nz2r8RGTbZIfPP7eEuHeMx?= =?us-ascii?Q?UPerI3dDhH/Pc2Ko2oxZ6rcxpEi2v/yMN1dl1qmVuvE8D5syG+0Y2FwDr/X3?= =?us-ascii?Q?UMZm0zgWMAfSnMDQ1dTQOnx5BTNNFvntYxetDjFAGTXpIN4PaSf5F9bE6kdU?= =?us-ascii?Q?vZayaH9u+xiFoqCeKI8CStzIvAzgk1rWY5+RxotXNSwGzd141qj4NvCpTny1?= =?us-ascii?Q?zz7/ES9S41sFsABSzLbZptgrwqdKDAHrpcWTltHKCiaqyQq5w/rW89S395Aq?= =?us-ascii?Q?1L7f7mh6YJPkcNfpTqLPmPEb/nuAoJAw2LMFOx8g6nS6Yq7Mu1HW7jfqvF+E?= =?us-ascii?Q?RMaNJlV0UQy6ca/XRPAzMi3Cd4yXgM+DQvKvhF52rSFOIIRgvK472xgdJdFC?= =?us-ascii?Q?6eV1eXLapcb5k7CYpXaY2FF9SNiD+KQ2URbtBcDzi2BCM1+g8yQn4GUWfSC5?= =?us-ascii?Q?E3X7GZbmij4fox7WXaUCjq7KuSlo1792Vh355IjNwdX9VQHcQlZNFWSQ7s7m?= =?us-ascii?Q?Maiszweskp0IClLjdMGbgarR7ZMDUHpvuek52D6/qzVK00Dn36p2UYBPl4hu?= =?us-ascii?Q?nAAOOfDjU2Fwg/2U23IfSOfyojB8pOzz430Z4BJlW/yUGDIkwgg3Bn6+Rgfb?= =?us-ascii?Q?LdoJf5bm1I8tVx/oDhvq6HWPpRJYqkMYTJH5504j2j6kEXiy+nLGDJsCTv7a?= =?us-ascii?Q?XculpzcfLgoO/wcQYHnL/Y5s+lKEuqEwNycjQIO95NhZfrVh2TdKuNFtB1qP?= =?us-ascii?Q?2Z8lF7XKpq2603/UJ+su57UIyKximXRYmppdodeFpohlc91MW0jGCx+z9vfe?= =?us-ascii?Q?o9wvSkdgsNM4yFyXtRtV5gLIIig2icUMQbfSio9GPWA4XUvVHLqvg9PIKd62?= =?us-ascii?Q?nzy/9xo9aDrc2KSwLB3ObU2LRDFXWMtjoRETsvHKm8GTtW+9h4rZggKSQgse?= =?us-ascii?Q?ck4LPp3EHjRjU1t6N5g5DAEFFn+k2LL5n+ziSEdheRvuxW013HY/2h9SMFrT?= =?us-ascii?Q?fbAaHGVfE4iioX18MR5+Q9WNnTKi0RIFs9cpNlrrLY8ze/NDB/QbUX6jGLlS?= =?us-ascii?Q?ni8rqpkEIYdK8kdab8g7fVrKsoHxWtOa/AqxQGcH3aaO3Wb/lqgcPFFeE+um?= =?us-ascii?Q?9SflCURUoVWO7SdcVYKSGcy7OY4r1zR6NosTab62ZZi+onRlbp2rtHcZaUTJ?= =?us-ascii?Q?UAKdF1c7zbIXK5rW8pf0FsYlz4v/7w8PlpdmNnLbi5rSQ2RtApvv4wFS5KVw?= =?us-ascii?Q?aLlR9LClgIPAJkpqnFD/vMtoDGRM6U5yk2ASaQQ4aGH3umfAwZOYr2NrHhjF?= =?us-ascii?Q?cnGjU9L3XbNB5x60V12OOP55EAw1i48PzrRW9WiwTAB5pPpaE5iRyJ3pjxxB?= =?us-ascii?Q?s+oxHyYsS+Rgs+7rCFDPvQyIVrIOwg0Ou+FhXKfroyXOPGXUZQ=3D=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(376005)(82310400017)(36860700004)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 12:13:31.1768 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99f937cc-e5b4-4d27-cb0a-08dc848fbfc3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B36E.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB9037 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 From: Venkat Kumar Ande Add support to the driver to fully recognize and enable 2.5GbE speed in 10GBaseT mode. Signed-off-by: Venkat Kumar Ande Acked-by: Selwin Sebastian --- 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_phy_impl.c index 1f45e955c4..140c9f609b 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(struct 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 |= SUPPORTED_1000baseT_Full; phy_data->start_mode = AXGBE_MODE_SGMII_1000; } + if (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_2500) { + pdata->phy.supported |= SUPPORTED_2500baseX_Full; + phy_data->start_mode = AXGBE_MODE_KX_2500; + } if (phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_10000) { pdata->phy.supported |= SUPPORTED_10000baseT_Full; phy_data->start_mode = AXGBE_MODE_KR; -- 2.34.1