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 D0EBC41E29; Fri, 10 Mar 2023 07:26:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADDF240A81; Fri, 10 Mar 2023 07:26:15 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2139.outbound.protection.outlook.com [40.107.92.139]) by mails.dpdk.org (Postfix) with ESMTP id CFC5040150 for ; Fri, 10 Mar 2023 07:26:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dCGsA6uBG363N0s07XsNd3D4lpumkUVpMKIK6V6G7dA3RUpXDUaa88+Cte6mOD4JqskOZg+3K6YO+X/BFmk3yltt27MXz44E8g4FS7grxAZ4KgdVDm6JOvC/IpSZW73q/m71u7aHKf83Vcv8pWBjF9S/r/BW0/tXpGDfnVIt8142SefP7EJzISwbQQDs5HPhHeBf5fCQxXqiXFKH+xf8zboNDKKKkW2W5tENc+e8Zdw4+ZQ4aqEhH91hUtVeN0P/gEeb1mpP3dVMmqa1JJXw/PNc/W9W8cFlI6ueDBYyG/+rf0nxwwa47F3mvI7Tz6YQXpnmGL+ag/7JSc/uRTKGAA== 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=PLb7YiTdEoXzwOrExDWv7DTWjQj0H+DiaShQj9jdijs=; b=T5d/D+Y2edrx0v0jYOJZHZeC+vxhb2n5ZQQCyF6jozQxfoCTgUIo37YMGfQuD+xMZPxxuXs+rZ7zDjxRCkaiZ0uHUQ6+KGVqAZMG9c27L+iNaK4VZgtoEEsr2W8yEx7RUO0nA38PmtEqX1UNYUGopRECuCDrjat4mLG2bjQoAfdxmxWRnewB1fr2Um8cLKJTMExT9f4YR932t8/yPUdRnXHUDGHMf9aqjyMXJ9Tu+jGGmpcL1NYGToRRAdqDIe8gRrDJqRQlIxhFBd9m71Xa9qHp4DNoTgtixK+KdGCPkeexEb9i6bvLKjcxLNwiE2jd93aWZdb3lmVTBOb3Z5DHCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PLb7YiTdEoXzwOrExDWv7DTWjQj0H+DiaShQj9jdijs=; b=gxSot5sGHoCTu5T3oGOoMYsHasUC1jF9IcE4Fh9J2/NQxx9BPxe68eEyIxhHK7GbuifBX+kHVpCcxEl72KEGZw147h6LOOgMzmDGpEPdDbQwTfyqma104XuR62jFHq0LIiUhz78T0T/md+3c92G0dIqj++oGRJ7TUkKHX+uIYJw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by PH7PR13MB5913.namprd13.prod.outlook.com (2603:10b6:510:158::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.17; Fri, 10 Mar 2023 06:26:11 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b19d:4343:f34f:a817]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b19d:4343:f34f:a817%3]) with mapi id 15.20.6178.017; Fri, 10 Mar 2023 06:26:11 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v2 0/2] write link speed to control BAR Date: Fri, 10 Mar 2023 14:25:40 +0800 Message-Id: <20230310062542.817107-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221062955.34210-1-chaoyong.he@corigine.com> References: <20230221062955.34210-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR06CA0007.apcprd06.prod.outlook.com (2603:1096:4:186::9) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH7PR13MB5913:EE_ X-MS-Office365-Filtering-Correlation-Id: 4bd02612-546e-480d-409e-08db213056f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f1GqDT9RlDsBz1mlv3GmXqtVLALK6USfwfU3bicyHJZ83HL6zWCfJMusGFJT4O09X40eAnjKJyRyC2IahY/hjkCoEGCuoOs/7qN0xghwoTq3NdK53z1hduRJ0utOvhtsptwrkuVleauVwme/tCL9BSpYRbR0u3I1e40KtiQNZmSB0Vdj3oRD9UTUmBU6uGwlNjy+XKtwHRVnPXAqYSZywHHNx9ZVfBjKfeMtjRREhJRYI33iJ7lcrXXBpE2vCENGh1ez6uA1yoRk3mNMghvcjROffsvOya8loxRalp5mC0PPg7Q9sqkcW6KUx1zzjWUhn88hMXk7sQid96ccr1+5P2XTzt9vciA43eShl6VQAF6XMh3N9+wSdmYFL4wDgHlP543URBJt48q71r6MEl6rYojue3/2kWUB9S4nFiB0BECuTjs4Kfat6j+3rCeOG2hGc2cdcnjRXmCZHUTOZLx/+mWKRmx8tbiPULkFzWmfV0R/iZgAevJgzDH6dLVnFzG1edykVke2PCKDWBRAsoVGJ4yZvdeec+cu15ThfUKshrtKJ7f24csNULcmSFc+/C5WhAZBpi1rvJ0uhXDjtxLirD9axiIqa5NghQw/VuV+BCUN0EEa37POWQ6JXiV4eTzEUnAiYbS+BHBgVhXB1RwkSlz4yXXC1f8Re7SYNFTLx25NpP5BsK+pfC1DSQyuSGeK63/brvvR5fp4BfTf5euxew== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(366004)(39840400004)(396003)(136003)(376002)(451199018)(36756003)(478600001)(44832011)(66476007)(107886003)(6486002)(52116002)(316002)(5660300002)(8936002)(2906002)(66946007)(66556008)(4744005)(6916009)(8676002)(4326008)(41300700001)(1076003)(6512007)(38350700002)(38100700002)(86362001)(186003)(6666004)(2616005)(6506007)(83380400001)(26005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T2lhMldPYVRjcUU3K1pLTUIweG8yOGxTOWhEVUEvckg2T1gwVEgwaEcyd3Ru?= =?utf-8?B?OXk3U2c5cnZyWXpIMTZDbnAxYkYzWXhxeHNibFNyTlJUYmc5NGd6Z2ZGQXJ4?= =?utf-8?B?OGplWGU5c1Jyblh5ZDRCSTl5Q0FPb0xDQ0ZSb1dONDdCWHAyRjZlZzN1NmVD?= =?utf-8?B?WDFzRHRIY1lVcUVwbE1CNFZrTDQ1N1R6QSt4ZWJlVGo1L0d6dytxVzdMMzR5?= =?utf-8?B?dnJPdnFoRExpOVA5Rmg4aXNYOGtKRHZzczJDWjNGSDgyQmFGMEJQL3VoVnVY?= =?utf-8?B?MFdaWXliVGxadHRTcnUvVEtKbTQydldRMFg1eFhydi8ybXcrSkhZOENSQ2Yx?= =?utf-8?B?aG9FWU5WRm5USTc5aTVIakx6NkpIcVYwQ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kE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4bd02612-546e-480d-409e-08db213056f3 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2023 06:26:10.7891 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +PgAH5tfn+mwWO7TcnNNCb21eZObP0l5gLo9KL7n88zmqC/B9xZ3FXqEMuLcdbLpX+1yKLEAMB6lejPBifvTYvHjRVw1s7yE4cuEuwX8y+Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5913 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 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 drivers/net/nfp/nfp_common.c | 104 +++++++++++++++++++++++------------ drivers/net/nfp/nfp_common.h | 17 ++++++ drivers/net/nfp/nfp_ctrl.h | 9 +++ 3 files changed, 94 insertions(+), 36 deletions(-) -- 2.39.1