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 97E6B425D7; Mon, 18 Sep 2023 16:55:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 205BE4025D; Mon, 18 Sep 2023 16:55:29 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2078.outbound.protection.outlook.com [40.107.237.78]) by mails.dpdk.org (Postfix) with ESMTP id B3A944025C for ; Mon, 18 Sep 2023 16:55:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cPV7MVVmvwZRqQrgIGN4E6ZVjZT1mGxtzR2WbF1rs2j0VCH67MCJc44FBbUv/JuJrb8KsqLm97DL3kadV/Uiu13DkAdhZ+1djoldEnoqVHNvkqJ3M/YVl9e1FMGwHkBX/OK3hkLb4oijGDwlpwOdZ4L4tuSJkwdI2mWPmhWkKXiDAHq/htSPkP3aA4jZBvqDAB9YiQJVTLXjCkLQpxgEggQpAz7mnpBNHix8QRgIoS9KyXO8AwgpTQl9xfFSLxYkszjL7NBFiDPD3MOtWVcadjZ9oW6BJ6Y3i6rIKJ8HKj+HFlFrg7ByOJHuFuP8w15YTLAn4uEzyQPrdbZVVxnw5Q== 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=5sohYtByEjQXIAxejBCDf79nKtyfln85TxigfbsIjng=; b=a3H5RviyXVHI/37CsB425QE78GnSMnAbbzSr1W/TGbz+oh+DU7AtsvYl0YpRI4dzDL7ZCvmIHUy/HI9K9lMrt2di8I4XYVrVEP0cQ+wGn47wzfZZ7eP2hrEONdOqNE90szA41YPXxOr++UuAIDSE4LdbCoYgUCnqltCH7IunYVl0cN1ps+JZzHMXddUdkOC98Oot/S2M1xY19j91F+Qea46mH/ljyl0o5ib4vlL97lVhQF1eK81YZLJpzCmL4XHGjrsJzKA3S8DNIcgp8bYMLxZDfI9cfliEiSxwhK4DXSLh31RF6sSauHZz8xO0TEA5nfOtjpE2s+GtRZ9FBNqYQw== 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=5sohYtByEjQXIAxejBCDf79nKtyfln85TxigfbsIjng=; b=oNsFG5hKb6ZHiJAyMzCTnpMV8KsbxrDNoQ5XGpGZW+w21hMYpH6Z+2anXZM6qtGavnKuJMACWzXUPYOT73ccNIe15Okn8vuISS2n0FV9fPpYOr+f82N0WFQaLMTuA6czI3f7drkwFQGEfptOgoD8ocktM63eyWxK32JP/3HHZzo= 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 MN2PR12MB4301.namprd12.prod.outlook.com (2603:10b6:208:1d4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.26; Mon, 18 Sep 2023 14:55:26 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8%4]) with mapi id 15.20.6792.026; Mon, 18 Sep 2023 14:55:26 +0000 Message-ID: <2c0e0312-a858-4913-890d-901b07c90b11@amd.com> Date: Mon, 18 Sep 2023 15:55:19 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] examples/ptpclient: add frequency adjustment support Content-Language: en-US To: Simei Su , thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, kirill.rybalchenko@intel.com, qi.z.zhang@intel.com Cc: dev@dpdk.org, wenjun1.wu@intel.com References: <20230809050700.271534-1-simei.su@intel.com> <20230809050700.271534-4-simei.su@intel.com> 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 AQIeAQ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q29dihLYpzd6dqB708k7 4RBz9051oLaFVGkguFw/tXmA17nx+c2uR5jx8wb4j68umG2X++0dSta5eHAVhmtXvrqPW6Ku 3FQ= In-Reply-To: <20230809050700.271534-4-simei.su@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0638.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:296::18) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MN2PR12MB4301:EE_ X-MS-Office365-Filtering-Correlation-Id: 032479f0-ca1b-4416-7ca5-08dbb8574aaa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Cbi5LeZzxhER9eG3ZVh14IbF0o0X0077CEN8s+I/gtWMJeYWLMbSNSMvA3o+ydY6sQHtfX6kqhDBFKXOOX+YxO8YvAp6XkXXCYOsSHTTloP5jmIzhqDgx2cIz0YQJokJAYalnTl8ff773B+iHzs6I+XjjB3RK/3AdYvQcs6PQWt9PfnFwKUa5zz21/hjhYgJD5SDxWJQI+xkxQ0HMiROZmjL6UjEqJaqZrzqmuEUKw5Y0+B2YzEPBplpy7QxZN4+zeZzHfxvF177ex6zKNj6DRY5kwdZ+TcCwfD5pRNGwkTbjwaL5+2G4cWNpaL4Ec/TBLpFicab/QhZcRfquncpCfVRGF9TND3ZIOHUq7SQkv9bL/rIpdHtt7TnBmnHQJhHAYqgoPE6gi/3cbYL8rf5arMjcFif1sPq1G6XkBDj4WbaGF3RVDJ/ltpUW96Xc1XF+lAuGNqqdBzpKZZvy8zW1NRhL6JtytS96PIo787wdQOTWQF4c6LPqSa7aQjb98DKe+6qb04q8RlX4Ak7BNHvj6fCcQKwJoRfln6jzhtekaIYmF7FUPsHgDrkqFfszjdC4aLWsSEY6LGBYmOT1ZNgrS+YNT60OhxxJNyrdnamplFVSlo7E+7VCDDaMsP1nObwGdgwMBr+H6bsut29E3x4Kw== 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)(346002)(39860400002)(396003)(136003)(366004)(376002)(451199024)(1800799009)(186009)(53546011)(6506007)(6486002)(66946007)(66556008)(66476007)(44832011)(6512007)(316002)(41300700001)(31686004)(478600001)(6666004)(4326008)(8676002)(8936002)(5660300002)(26005)(36756003)(38100700002)(2906002)(2616005)(86362001)(31696002)(4744005)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QnNFaHkrOHV1YnFhTkQvSkFLeUg1Z1NZZU9kZG11c25IK1hMbzErZXViSG9M?= =?utf-8?B?bUlTTFJSRTJPTEx6UXMyOGo1WHhkY21IaGQzZ050ZWNJRHgycVNISHR4SVZ4?= =?utf-8?B?ekJ6WlYxRGFOelNrRkJ0YkhhR3VoS2VET25QeGJDZklOcGRDRDVnd1l5NWlU?= =?utf-8?B?Z3RIeStUZDI3Sm96RkxJS0ZXQ3FkcGFOM0hPRGJvUEFzMjV4MjB6eTgxRHVw?= =?utf-8?B?T2ZaUFlYcC85elo1dWVDQTE5cDB1N3BQNE1DNXhtdG5XRlUva3VkTENPd05h?= =?utf-8?B?QWpQZndDelp6NFdKQnZKeE13bHhqUUNiSUNvQTU0VXo4bDdNZ1BpMmtCSDJ0?= =?utf-8?B?Y3huU2RYY2FpNTZiQWRueUs0Q3p5VkNXTC90S2xZZDMveWVYUnRLc2VtV2ZU?= =?utf-8?B?QjVpS3djYm1qSSttZVA1OWROMUhXSml1K1ZwVEliTS95bGU2TEIwVlptL2Vt?= =?utf-8?B?cnozaWNpRzF2UHNpS3lqMEN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yM0FQVGNGRXN5c21LNVZ2RTJvL1A0TmRNeFVJLy83UmxVam1hZFhO?= =?utf-8?B?cm4rOWw4TUsxL2hOemhrczVnMUxaVjVNZnNPUkk0UC9pOGZnVHlTZzlQVllq?= =?utf-8?B?eDNWYW9jTGhhWmRiRjc4M09vTk5FNkwrM3RKaWxGa2ZJNSs3UGtwZ3RGUEVR?= =?utf-8?B?S3I4SHd2aE1QRVkzblpBdGNyOVRVRWUreGNMMHBTcmMzUzBJa3hlQ1o1YkN5?= =?utf-8?B?cVRMcHN4Yit3R20vRjE3ZFF1UjhrYk9YTmJFQzczREIvZUZpM3RoRnlQNkZD?= =?utf-8?B?L01jTVBNR3NEdVJyN0JsemJWTWU0eENMRDNlcVN5VE1mWFhoVlhPbXpIcG9O?= =?utf-8?B?NlNVZTZVSGtXRjBUc0N0enJmK0pYZTZESmZxSEpYc2tJd0ptTXVodjdPTG4z?= =?utf-8?B?NFc2R0VaMW8xL3ZuUDVWVGM3ZThvS25UOXhyemxwT1Z3Qy9CM3IvM2hOUGVm?= =?utf-8?B?bUZHRjhGSUFiNENYQ2FnbTdyUEw5SHMzN0F6Q1JpejA2OEhCTzUvOFRmMEdq?= =?utf-8?B?ZG84bVNJWmZHVTRxMUVqQTZHYVdRank4T3I2VmI4V05LQXVPVklCTG9qMjU4?= =?utf-8?B?R29kSkx4YVVwNXRsR0IraVJCN2pZL1RBTWVsZm10bHRGNEpiL1N1Yk45Rmdk?= =?utf-8?B?QmMyaXQyS0RkS3dNU2hvVXgrTHgzdndZY3hxczZpYXhBQVdaYzVSdS9MMnNO?= =?utf-8?Q?6Di2vyEyl/pLF4BdLZs/z2KTf?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 032479f0-ca1b-4416-7ca5-08dbb8574aaa X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2023 14:55:25.9792 (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: qOQqqJlkxJo7knfbmkldEYAQ+pdFt6vSedL/r4TGAgpXc0XAckxHe7h4cgj7MML6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4301 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 8/9/2023 6:07 AM, Simei Su wrote: > This patch applys PI servo algorithm to leverage frequency adjustment > API to improve PTP timesync accuracy. > > The command for starting ptpclient with PI algorithm is: > ./build/examples/dpdk-ptpclient -a 0000:81:00.0 -c 1 -n 3 -- -T 0 -p 0x1 > --controller=pi > Is there a sample application documentation to document new command line argument and document logic to select which API to use, perhaps document what is 'pi servo' algorithm is? If there is no documentation, what do you think adding one?