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 64D0441E86; Mon, 13 Mar 2023 11:18:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3DE54406BC; Mon, 13 Mar 2023 11:18:37 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2040.outbound.protection.outlook.com [40.107.243.40]) by mails.dpdk.org (Postfix) with ESMTP id F2D7540151 for ; Mon, 13 Mar 2023 11:18:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W4ALPBx3dzvFQyIQu9YLCGhuJIvc3jnv9Wfs7I5I6BZg3KQjq/BpkazdChMuWuHR/DLAePGHRRDwb1fSprffSb1NpI4Oyb0tBlbjXyRasyk9/By96iTSKHuEuEvfOzuOPM5aMdmdVf2LbrirHhJXY/EZh1tte8gnpPhKLdtjA1NAjDcqg4unoBS3RRUnp1aNNhr6FCAWgYVEwoPu8OTUvnn1EwPPXo/9naXq7I9SOmpnSERhaLSv4t1OiZIqe/EfyzfbuglO7Sts9sw7yYvyhh+vOxDu3NeWI5MZcwPYCnshxd+nWIYYIkHUpgAK4AB5kPIf0pHuVKO43gsQKhdXeA== 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=Nr5udUnTcUw/UJPeH8rRarQzdRADMQi6homLOA+MVyg=; b=W49+kgSEZ+oFFU2poewjhx5pGpxPqitPtk9iTY8Cvd7X2bGuiWQoU7mc1fiaQ72JEFLBKSCt2ww41SHsrWUHgAdxLnTDNybDoYPe/8T59WI4nNd1C/fnBJxwIqv2o1yleAW+DHpTepIbfOX6/fl9n+CVzpqvwtFHh65G7EbE+WfPSDjLB4Xdj3ap8kn4YoFCGZhljE66GmXYqDGXX/sHLWMI2i2EvSWaCqNswhtksiIKo/FNS7rhVTZ5V1fmFSwR5tTYLfTelIKuw96SArRoZz+wg3lPfVrMnvf8ApCm3OWssOzKzcw1vbra9gB4VcT3npbEeDLB9iE6EikvxEya/w== 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=Nr5udUnTcUw/UJPeH8rRarQzdRADMQi6homLOA+MVyg=; b=dTyxBbSCT0LkET/FWuLFeMUTc25A6zKKJ5mZruIFlrE9VDXv8TfD5F+QqWs7l7/pqtUSuDLIWEpYMKja5uKkETROyaIt0IFXV68c04s1p7zpQSvQCyHHub1za07Nkte00PNnjNXG5uQJ0cdFYBQKqlzIdiADLSCOyr5DRokQC9o= 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 SN7PR12MB7324.namprd12.prod.outlook.com (2603:10b6:806:29b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 10:18:34 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640%6]) with mapi id 15.20.6178.024; Mon, 13 Mar 2023 10:18:34 +0000 Message-ID: <65b65271-eaaa-a4aa-72f9-aa3e69c39c81@amd.com> Date: Mon, 13 Mar 2023 10:18:28 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2 0/2] write link speed to control BAR Content-Language: en-US To: Chaoyong He , dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com References: <20230221062955.34210-1-chaoyong.he@corigine.com> <20230310062542.817107-1-chaoyong.he@corigine.com> From: Ferruh Yigit In-Reply-To: <20230310062542.817107-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0116.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c3::16) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SN7PR12MB7324:EE_ X-MS-Office365-Filtering-Correlation-Id: c872cc60-a9f5-4eee-f5a4-08db23ac4ce2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8Mx5lcRwELnbjJXKp38kK4Wupb0aD38Umd6wQYRCQwqJORZB6YeXPZwW2Dwri8zkBHhxHuRspUGVaOCY4hOrnUrtqQK8QPXvx8cU0wgZuEaEzYfWHJs/JWamu8CMe9ar89kIslZ3OTXFq8HTvNRZiAScWGL48zFUucLlFuf4vWHyQoSFSp1stXCfvRd8Y+2ZyLZCxA9Ki7Fh1baFau+Sz/8MWqt6kJbOYaUvSAj4T+d5UBbd8l/uZBmjtJZWOXHw/a5QtVOp4H+I4NZXllnzx1AC1f7EkyiuuQrfaKlyjldXQw5K2y+IZoUvWz5AWaOdeURPn0S7nGxkIMYj0EH1b+4NrRW/14Q4bbANDTtjx1BMPxXqJPK4ArEakXjmb0a+Q0m+f4/7h58GzC4QrOyuK+VR5age7i3KnSaMy2fbnkFMMI1eGE/6KQycQgJMpD8R7CJCCIGOCxpXmmnLJuO17ARuPSLuYZAseCmILXCKmYR+UiA5EgRAlwyPLFBxlSiYc8qlogPZiE4qkKaOyFSui8z3Luv/wZ0V1JBEuArxQx3682xnD49B42lEzkkMGvPsbpdrwkZECX11pR3j7zcGet9Aoj2IbUGAphhsffb+3k4TsFtZMwcN+zsMdcFKXE17ts+irNGu0WOMGCEZn6pGTOwvvm+RHVLiit+wJtjJQONy+Yze2gOZ+2AX/eTV8hgXkqqn8URTwOefvBQAyiDypre/pP1OkZNvdUXdmC/zZq0= 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:(13230025)(4636009)(396003)(136003)(376002)(346002)(366004)(39860400002)(451199018)(2906002)(31686004)(36756003)(44832011)(4744005)(5660300002)(8676002)(66556008)(66946007)(41300700001)(31696002)(8936002)(4326008)(66476007)(38100700002)(316002)(86362001)(478600001)(2616005)(186003)(53546011)(6486002)(6506007)(6666004)(26005)(6512007)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N3VZSFplaDJpWFg5OWpqY2p5ZUFDOTB0RTRuRUFkRFRtZytZNGdkMjU3RGxu?= =?utf-8?B?VXdHOVZuUytPYWQyZWlPMFM1bnJ2bkZRU1A3aE9Rdk05RVFTanpjTWFZLzlv?= =?utf-8?B?UG1odHEvelBIVlJuRTdVUGl5ejkvQklkdlcyYUkrWEVCZ3M2V3Q0bXFYZm9W?= =?utf-8?B?NHc0QktTdXdhSUNOWlVHZi9XK3lnVzNpTzVWNHExQ1pRNVdSTDJxRlBkYnkv?= =?utf-8?B?YWVtZWJYU2dwRElDMmVvdGFXL28rRU1xZHBIWEN6S2N6RjFjVENpTjlvL3Vp?= =?utf-8?B?Uz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wTVA1QkF5Sk53aitz?= =?utf-8?Q?vJ41xfY+fmZdDZKExrQ9pR8lJ?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c872cc60-a9f5-4eee-f5a4-08db23ac4ce2 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2023 10:18:33.7314 (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: 9JiVAlBXwMlUL1FaRFF4NK5hr0QwR1dE+zpq09FcUeNjmf5vSUqhcRPSNqsoRV9m X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7324 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/10/2023 6:25 AM, Chaoyong He wrote: > Due to changes in the firmware for NFPs, firmware will no longer write > the link speed of a port to the control BAR. In line with the behaviour > of the kernel NFP driver, this is now handled by the PMD by reading the > value provided by the NSP in the nfp_eth_table struct within the pf_dev > of the port and subsequently writing this value to the control BAR. > > --- > V2: > * Using the 16bit read/write helper functions > --- > James Hershaw (2): > net/nfp: add helper functions for read/write 16b values > net/nfp: write link speed to control BAR Series applied to dpdk-next-net/main, thanks.