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 DC6EF43CFF; Wed, 20 Mar 2024 13:31:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79015402B9; Wed, 20 Mar 2024 13:31:41 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2054.outbound.protection.outlook.com [40.107.101.54]) by mails.dpdk.org (Postfix) with ESMTP id D8FD54029F for ; Wed, 20 Mar 2024 13:31:39 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LO3kqfJ2Tgbqq2Qup1i3jBK5LJeVFDDGQuzeqZBmzUATiByKnuufo8Tp6xXHwihd+hEsTOUmd2+Lovv4Ge+m1zpqPFpfwas+KaDL2A1zZqsGZD8vxm3lefLhS0pAkfaweRpQCL6/SyHvxwLIWORLJMEIcY0h3i++s2UpzZ+Dwj7w8Dg+/6nzkYTd8hxre5rS2GSKYObhE2CzknKKV7Whq+uAGp0dS66QAVzMu/XgRertqEinqA24B05Wlc3hPvrSLIzlYhd+6/Dr54WuYDKkqI6cWwJzFl01a8JRSncQzDDpXjS1k8mUtVdPxgAvJF3LnnKhpjdVr8D03hrPiJrd9w== 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=2fgE1bfnKzX052KWKnss9VHLG9cpfiKiakESwm2o1xA=; b=TTfDLsi9d+2M7K9Ap1TU/y+SJ8Wp8ur2eI21FajRs/GAMSOgwdhlrRxR29Qr1GQjwdEH4+tCmuYcqSu0oicosq0QCJ1iR8SiKCecuJc+9GHmyrx37uch725dQW+LWY1Yi00al+euSCpdlN6Db0W+AuuUVWBrmRT++WnDUG17CqCcbiWE/+y8tqEPy6uIQRnRJ1Rii42q3By6NMBDgFKlSaWy1CGss4HoAgf9mYT689LM8eGSKXihEGs+97/P9lfmGLCb7r/DSLbyoewy2rdezI3UrLgHyzv8gweMXT+KsuXBrZkk8RZDunQKONrKDBMf930K2d4Yk42RzInuaAhcDA== 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=2fgE1bfnKzX052KWKnss9VHLG9cpfiKiakESwm2o1xA=; b=sjBuGk4Kk0bCHgij1lTHNihebnu8kAdgnjZugb6Vlt0Cjun+GiZCImTo48uofQSbJKq3Ef0NZ/hrA7U7qM3zr/bAD12RhAAFoXDNzrBgZswfQKDN2RNFc5s7uV3wviUJLtdgmxF8x1kowJhupRFKYTMeCtbO35LuOD2s2z/S0qM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by IA1PR12MB6019.namprd12.prod.outlook.com (2603:10b6:208:3d5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.26; Wed, 20 Mar 2024 12:31:32 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529%5]) with mapi id 15.20.7386.031; Wed, 20 Mar 2024 12:31:32 +0000 Message-ID: Date: Wed, 20 Mar 2024 12:31:28 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/3] support setting lanes Content-Language: en-US To: Damodharam Ammepalli , Thomas Monjalon Cc: Dengdui Huang , dev@dpdk.org, aman.deep.singh@intel.com, yuying.zhang@intel.com, andrew.rybchenko@oktetlabs.ru, liuyonglong@huawei.com, fengchengwen@huawei.com, haijie1@huawei.com, lihuisong@huawei.com References: <20240312075238.3319480-1-huangdengdui@huawei.com> <1759403.vCJZsxu672@thomas> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZ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BH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0004.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ad::13) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|IA1PR12MB6019:EE_ X-MS-Office365-Filtering-Correlation-Id: 657a36d4-8291-4fb4-44fe-08dc48d9acd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q2aj9Gau3D3hxQKzVecJZbwnVkWp/L2pssCB8tkmmyOnrKUn9PItpsOnwZd0Vk2Ee9Nfue2dfkmXQTkZ3RtlucXV1Rrj0X1poEVDFHlx+ie9LEeSBmEQaT9VAglJWolLi1kwjTO4NJ3XSOC+C5qRLMv0T/aXCxWwfWF5j2lbX7FbjcDv9Obzv8XV4v54sFm/Jfd++22wyUU8uxL948JGQk8MPMxo6CtRQgbyZSIaZwI6qE7I64WTC+vMGA/LkTieVt13nX8vPUqox9BW4ZsRqkILV2vzRrnsUQQEweKJcz4XV753paV08H58Yt5UrSN12XvXoUOelwnNg2wqzJyiRclCUT6qxvAG5mzpEWTPcNUybhTd+rq8niNHrHxLsaOg2CLS7pBNk+u+/BqgZV0MRTMqLGrEZ6xtfAcGWIak87PEzNUZ7Usm/OEkdYueG9Ad49SMjSKW65auL5YLbinBQV5PX0FW1Qkt073bedY7ProVdhO4s6raZokMfUKsgMHcJrYQu+uy3ekrJq4DALGOv0Fx0FNiCizMFVOE5hdFx57eygJxNpc5NiV4JiM2ZdGOP4WbWqr1Pt/ytVQJfuQ5JsWAg/vjOeHdb8ULInb3dyLVUK9FsIxvMjGbgOJ+Uuw9LMTzz4ci3rpLokThQaA+iK9G4oUbOfhZz8mQOuP8xds= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(366007)(7416005)(376005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NzFtQnRmWmF3dTdicENoZk1hRGJVYmNVaTl5Y0R3MUdaekhPblhuUm1jRUl1?= =?utf-8?B?UGU2K3ZaOG5FVG92cGR6ZXVhVGJrZFNFMDY3L1RER09GcGQwN3JEWWxXWlhP?= =?utf-8?B?TDhvb2Z2WGo3OExKNDFtSlE0N3o0c2c0dW5TbVN3MUZwVFFIa0wzV0Zicjlq?= =?utf-8?B?NlJXTEtGRW0xOUJ3dlB4ZDl6V3plczc1QXlzakdMdTdXajhWYmdFRDhzaW45?= =?utf-8?B?Qm02andESjZNb0w2d3lTV013Y25weDBVU2lXSG1nWVBORGNEUy9keDVhZENI?= =?utf-8?B?eFpiZ3RmdXRjOXJPNFNIRzRiWXRSZTNxMm5qUVo4ZmpPWTdSUlI3dE9DbDNP?= =?utf-8?B?NnBpUUtNWEFlVkdJdVZpVGIyZmUzY28wcHg4cFhSUFBvVm9YV2JtZGRCRW0v?= =?utf-8?B?dktIemg5cEZ4OTF0NUdRbkVyeWtURTcybDhXWkVNMDFraXBjZmRCRzdrSTd6?= =?utf-8?B?M3diZHA5RGw0WmpkZmllUEo3N2Jaa01JckI5MHFCNVVCZ2UxdTQvNkNpWXda?= =?utf-8?B?VmYzUU1lbjludTdZUU9kZ0w2Y01qandQdEJoeHRpSzZNelpISHBnVURoOTlu?= =?utf-8?B?K3lOYjdxU2IxakN4enJCYTZtVVRJSDJ5TnF2bDAwWWpTVksydVloV1FxZkQ0?= =?utf-8?B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= =?utf-8?B?ZEkxTmNERFF1d2srb05Qay9nd1pld2pGbVZaTmQ1cmg5czQ1ZWFoOWNpMzNr?= =?utf-8?B?RmExV3FvazZlTmNPaHlidWQvQTYxZHJPLzR5ZFZiSTBtb3h3TzFiUzBIMi9X?= =?utf-8?B?dU40MHRQVUI5UlZaQWFDVmdsU2ZZcEVLU3BYNVRuUk1ZbGpqVEEzejNRQklC?= =?utf-8?B?QWRjS3lFb21ZNnVEZ1BMSHlscGIvZXQ4end5Q3ZlTjRXRzUxV0dETmhUVzRm?= =?utf-8?B?TlZ6blA2b2R1d21iditwZlRmUGdNdlp3WlJiMXFxTHptMkl4S2x1SkUyeHJ2?= =?utf-8?B?L1F4M1RjbWdTejNBdmc3L2VKS0RJaXowa2w1eG9RWUR6a1JpVktjM3lVbU9S?= =?utf-8?B?eEVxc3JEb1gyV0kwMzZqQnFoUVVWNjNHM0RpZEQ4Ynl3YnM3bmx3NFhVLzBP?= =?utf-8?B?NXlKOUpsZEgyNDFJM2hObzcyNGJHbnJMMlFzWW5OT0sxWFRodTJsUGVqMXFX?= =?utf-8?B?S2ZueUpKWC9kS0FPeGFRMVJFMlJkMDFDZmJNR2RxeTgweFEzWStOQ0hsTkFo?= =?utf-8?Q?51UUr/Q/AoczSO6PSCOW3AOyx?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 657a36d4-8291-4fb4-44fe-08dc48d9acd3 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2024 12:31:32.6641 (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: dP55v83j0k2Y0R2/ndB3eDDfhZiH1CinDpXM2mkyNby6PkBxIhk9SPZgFObA0Mzy X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6019 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 On 3/18/2024 9:26 PM, Damodharam Ammepalli wrote: > On Mon, Mar 18, 2024 at 7:56 AM Thomas Monjalon wrote: >> >> 12/03/2024 08:52, Dengdui Huang: >>> Some speeds can be achieved with different number of lanes. For example, >>> 100Gbps can be achieved using two lanes of 50Gbps or four lanes of 25Gbps. >>> When use different lanes, the port cannot be up. >> >> I'm not sure what you are referring to. >> I suppose it is not PCI lanes. >> Please could you link to an explanation of how a port is split in lanes? >> Which hardware does this? >> >> >> > This is a snapshot of 100Gb that the latest BCM576xx supports. > 100Gb (NRZ: 25G per lane, 4 lanes) link speed > 100Gb (PAM4-56: 50G per lane, 2 lanes) link speed > 100Gb (PAM4-112: 100G per lane, 1 lane) link speed > > Let the user feed in lanes=< integer value> and the NIC driver decides > the matching combination speed x lanes that works. In future if a new speed > is implemented with more than 8 lanes, there wouldn't be a need > to touch this speed command. Using separate lane command would > be a better alternative to support already shipped products and only new > drivers would consider this lanes configuration, if applicable. > As far as I understand, lane is related to the physical layer of the NIC, there are multiple copies of transmitter, receiver, modulator HW block and each set called as a 'lane' and multiple lanes work together to achieve desired speed. (please correct me if this is wrong). Why not just configuring the speed is not enough? Why user needs to know the detail and configuration of the lanes? Will it work if driver/device configure the "speed x lane" internally for the requested speed? Is there a benefit to force specific lane count for a specific speed (like power optimization, just a wild guess)? And +1 for auto-negotiation if possible.