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 E920C43FC9; Tue, 7 May 2024 14:46:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0F5E43401; Tue, 7 May 2024 14:44:37 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2067.outbound.protection.outlook.com [40.107.93.67]) by mails.dpdk.org (Postfix) with ESMTP id 4BF3A43401 for ; Tue, 7 May 2024 14:44:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lhimsWcH8mv57vMRRbbVQKZC0iZyzObMvdC93+XR+DQrVFgJn67Jvkv3+qmJw49QxfYVfcrYAE+PhEn+MgyLhlZFL7/os6cXogNYfeLtV9MDE+qNK5wXi1gcM1xQXKMQkwY19AqrnOOr9Slu8FQ0KQQFhK19JiUA7+aINpmgwtaFtulHcw53YwJfplVKAzhUgCFiLEMr8h1ZJM26tCchn5oOEfmUjr6f3y+8TTxs/G/L/V0snqVGLoe+SyAZsZ/VXK/uAwCMr67WxIFkUQC4Nyb5zFWvQqgmRM9WeuE6AsPA7xgasuweRwIkIs5MZA+1PWoSfhU4TrvnIdvJSVU1QA== 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=phCG9qlMYwZEesJ6rUpikGO+a5n50+63upUY/QNqTWg=; b=ZC3+gtiQq35MrNK1q9ca0CrfKYvnVRwEbCLP3CX8rn/Rg/0ojwA8Y4mlGJ6MhP2f+STym8kvTJjAs/eLs1jrwd0ebXUts2v69ojpcLVkIclPNwEJymcg6nj7AASDiu7HR7UdeXfJ11KvbKNSLKcdHrGE/t0BYPh2seSPARRYSZrpDppTQDDJrviECshYRqMD5NJqkpl9uvEZMVqInWvIS79ydg2/w18Zt9X2eq7fYqrO1buBHKmr44/nDYWoYSF51QONiepoEcidDs6L9wUhOp0qzTL2lFdYjrzETe3kQQb4yvptZ2YTpB0MGd7sMqGvxKB/sBkEzpYgPgBUes/yoA== 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=phCG9qlMYwZEesJ6rUpikGO+a5n50+63upUY/QNqTWg=; b=Y34DLrAqiWFBnTf6SCI9BmIEsLpZ2bgN9r7y6klAUWP+ZJfc7tMFRZ+bTeQGN837VN9ZUFkYUM03vrmnbgD3tL+TKGGe5am8iZLXmegIkZaHQKxoKkYX4zSxNa5cDl+CPE0tzKYpLjY8uN07/ZJTp4UR+dWNh8j5riMOwNuIHik= Received: from PR2P264CA0009.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::21) by MW3PR12MB4427.namprd12.prod.outlook.com (2603:10b6:303:52::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Tue, 7 May 2024 12:44:33 +0000 Received: from SN1PEPF00036F42.namprd05.prod.outlook.com (2603:10a6:101:0:cafe::bb) by PR2P264CA0009.outlook.office365.com (2603:10a6:101::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41 via Frontend Transport; Tue, 7 May 2024 12:44: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 SN1PEPF00036F42.mail.protection.outlook.com (10.167.248.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 7 May 2024 12:44: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, 7 May 2024 07:44:23 -0500 From: Venkat Kumar Ande To: CC: , Venkat Kumar Ande Subject: [PATCH v2 21/25] net/axgbe: add 2.5GbE support to 10G BaseT mode Date: Tue, 7 May 2024 18:13:01 +0530 Message-ID: <20240507124305.2318-21-venkatkumar.ande@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240507124305.2318-1-venkatkumar.ande@amd.com> References: <20240412125013.10498-1-VenkatKumar.Ande@amd.com> <20240507124305.2318-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: SN1PEPF00036F42:EE_|MW3PR12MB4427:EE_ X-MS-Office365-Filtering-Correlation-Id: fe172d80-e8b7-49ef-7e2e-08dc6e9370cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|82310400017|1800799015|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?uNp4rdGkiTKC+plvo3PStYnRsxrFjNROMFgDPw9e+q7RNCirGqXqXJCu28rh?= =?us-ascii?Q?GQWBtR9DQwe0hgatglShBgf/Cbr7pWMqAJeum+g9Uwy2Eh5tLwTn93gkCjvl?= =?us-ascii?Q?7FMEcln5ABf5a2kDWDBA40W0qRvmuGeSu1puSQ1iFrklX2m2PWTqZgD2neo0?= =?us-ascii?Q?0rgiWmDOoFfxQZj5isCdYr0jhFCvkxOxHpjlYcA5IoC+vGvig56TsJ3qGuHJ?= =?us-ascii?Q?XK1E5g3LDTTE3IZ34/ma7xGJDJwn1hunQf5VwNOguOQme3iaal0ZzAlRsAFO?= =?us-ascii?Q?diFlJ+66Z1sgkTzzeFOH1dyqO1yTO9QgvehTLkTAo7HWpQrfxNNI20q9/ej8?= =?us-ascii?Q?VBLMsQfqw/TRUt1iHp9frhTuBzona+ZW7hskotPjRIZUq5fcduFTpm6I1doK?= =?us-ascii?Q?1RdD5VNZ8+zRM5j1MB84vWA+Ut6Gq/FEWsVYQp/Rk49KQhywJFCd19v6wyAp?= =?us-ascii?Q?MV8DQzZ/edNzYB50uGLmXr8QU2HmkHLjrb0bgPo8jDSMwnZfZJYk+AI9wCgC?= =?us-ascii?Q?wHGvyJQ2jUT5Wxw8S9HKenKLHzSEQX4fF2xDv6NEVTIDc2hPjaqBHJbBF7VY?= =?us-ascii?Q?8uj7m2btiPMr2KsRksPRUhztIWoWwhG6PlhFaDSzaehaP65N7d1offMwaOn/?= =?us-ascii?Q?LvdPrcGMDU46N5fZbT+FCBhsKA6ggArqJ4b7WhzuYLtHddGmhYoBliF+dvUp?= =?us-ascii?Q?dm8TjtIxZ+EZtGHJ6Q017YkaczDDByXHAfx60nMIMuTx7MHX+XXca0SUS3Jq?= =?us-ascii?Q?qBOA6bGbrUmwvgrREul2XvBiB7OqBjSxSI90v3AhlW6mNas8q4kuUbfsj/1+?= =?us-ascii?Q?xIlFoURFhkh/JZ8nsYUtFvU+FPAoePKXoyjaWyd9uLvqdt8LOnGw9tzo00Fc?= =?us-ascii?Q?C70Fi6a6ltNU9oENfhI8KQONlkJCAgCyH+CSN3ij3HXg7mmYNcfa1Mj1b2GO?= =?us-ascii?Q?sUbvCG2C6rVk+YdMD/0wrILPkPqgWjDNevVOl6cf1vIr9nUu5OJGg58rrYBv?= =?us-ascii?Q?nx11cVb+GMBaTM3cGJekJpbCGHFI1Qi1AFcjGrOHcR9omIAaw2kH2i8+K+OT?= =?us-ascii?Q?2U/J1C70/+W9nioGGBxPc/48o6re3rQ7leumBbZXiowz/qAf1uFatEyFhX5X?= =?us-ascii?Q?FJOuIG4JlRzrH9tBi9TPVwVficte23vZ+Sb++spbz8Ww4BlLy0gPuKTz6pDb?= =?us-ascii?Q?awzrVHMEAc8tEh8i/QsNGIZ4/15ja7uDJZLHkYixLtOptLYwRiYp04DLHZMz?= =?us-ascii?Q?bCEBrqGNTAT7A0ZOD5uYbi/MqdCLzUAv54tqLb8kLARn2I6x0HjaZOLJ8RAD?= =?us-ascii?Q?iW2BSkPwAjT4tYpMT64fI3S1Mm3c3/tJX8/QBgHIeVZ3iRCpH7JN097SG0na?= =?us-ascii?Q?p+aX8mAmQIMkmfuxTAT6BvsrMurw?= 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)(36860700004)(82310400017)(1800799015)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 12:44:31.0676 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe172d80-e8b7-49ef-7e2e-08dc6e9370cc 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: SN1PEPF00036F42.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4427 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 Add support to the driver to fully recognize and enable 2.5GbE speed in 10GBaseT 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_phy_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(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