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 B2C15458ED; Tue, 3 Sep 2024 07:53:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3203240E36; Tue, 3 Sep 2024 07:53:11 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2127.outbound.protection.outlook.com [40.107.94.127]) by mails.dpdk.org (Postfix) with ESMTP id 2A6684029A for ; Tue, 3 Sep 2024 07:53:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MIamaCLGvrfvF1QiE9hVSxx3odIY47DeRFyaPkq67Dg1LaUZRpTSgB0FDVnq9/xMoobFt/dvix7ZcVg5OobHC8IXbnGwvfytDii77mBTerw/jHs8BwQWc5phN7s5X4qegp2bTq0dLgErpEIjnvV5w7jSFNr9b+fS5bN8cpAQywByBCrQq7kusz2qi0hGpqM0uVozy6sJdb5Ecd2k+KpUyMuqfdJ74y7pEMUJAa+qR/Jn1+HnQ060tPvi5TiFy+ccBWKSCQzhyCOq+yHeaGZ+JMlizQlm4yHB61hdeI79Rtv7cDG5YX9I03jbGF2ilGLj0+EmRvN+PGnmjzA71KE7LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=JJpnw7vCDOz1Ym5bBUC1EEol+WWrlq2mxd+2Aj1jbKY=; b=dOENOrNq7+oeSfU42IaKX2woZeUCCENGmynO8Ou764ocP68u0+FFyTZT5l6PoY+YJjnx8ZtpbSyGkBuGuYYriZVbqar6a1KE4P9qwEJv63T3W3gftOrM6+jJeKCaQubbL5Eys00xypa0LbJmxAJBsmSMuyimW98dn3iXmMihWzgIYcgksXOi/FLvZSLRGbTdbva5TyD8GjKSCZ6IAzYYLbv7vQXZHCC6ZVpdtzqZs2KOANjFer5kTj8wVjoHRZhxIEaWYaVeCux0JGvRewrL/TTHIix8mA9qc+kZoGKFePNw1HnrypH6nOxqoYWa2R4biFjq7GdkXhDfs/fb4loAxQ== 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=JJpnw7vCDOz1Ym5bBUC1EEol+WWrlq2mxd+2Aj1jbKY=; b=NTfOM59YfaEiTnPa46HCMvhFMW1A34e7kFU4WpnNsNd8sbW7+BbgbgJ+fKuaCSlNAgfsXZnD5ezcPu3MtZvHOYE4RExvxUD8y09sSI6PYlLZVxBciP2JYpiCrkijhOwbBiLOwb7vSsnhWgjRIwLWq0bQKPW7nm634nUDB6fMXkk= 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 SA1PR13MB6126.namprd13.prod.outlook.com (2603:10b6:806:335::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Tue, 3 Sep 2024 05:52:59 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7918.020; Tue, 3 Sep 2024 05:52:58 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 0/3] support load firmware from flash Date: Tue, 3 Sep 2024 13:52:36 +0800 Message-Id: <20240903055239.2642656-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0334.namprd03.prod.outlook.com (2603:10b6:a03:39c::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_|SA1PR13MB6126:EE_ X-MS-Office365-Filtering-Correlation-Id: 1eaa4e41-adc9-48a0-5ca4-08dccbdca9ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?pSDFyyguBcIj6K7sSwk3HldK4/lgb1GN4HfjphrB0pFdF1w6gPPCPEmFka5c?= =?us-ascii?Q?FbsDxJslSXOUIOM49XI8YRL8xvwZGvSW4M8hPUU6E7uoVGoMEJW0McSZ6UAu?= =?us-ascii?Q?VCEBCibWBt2kqFVza+uwjl/+OypOJ8/rYzAkMHDWYR1WCCj8aKbCYbfWMHzD?= =?us-ascii?Q?kumM1jMzEoccZ/86f2pKKGWtGlOJDrwwwuWuSS0LjbyDM9tll1Dqoq8S1Upb?= =?us-ascii?Q?rG+mR3eE3ufQq5fja27+J+cme/C4mb8bKwzrnx7OkTA1JNVzFlTeTEeJnJTl?= =?us-ascii?Q?L/LSwGbnI5BhVIsGnZW5dFsJZ0ixbnc6C2SbibuY/gk3T7EE7xpf/4m04NmN?= =?us-ascii?Q?mjAfyfq/0mr4FPfvD7ICZZ4WBbfTFX8UoKjBFxispZvNT/SS7mYVZOcVpu2m?= =?us-ascii?Q?gaj02Wj+VAKPq9dR6dX/PAzcBb6P00ssw+qWvBe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TzcMdAhnV9zhYbBkg7wEIzG+dZQK/PaqvLgfB5iO?= =?us-ascii?Q?jgHdLL3QWKn9AaIdQ8PfdASCl0OSJqgdQhwVFJkK4UryZojBJg=3D=3D?= 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:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?itVP/UYoX+RJryvXf8g1RpEX2qrWSN8Xz7jaY8tULW4TDOd/qUGtIumfzsEv?= =?us-ascii?Q?+f46/9EYkNO8sDrLPi4CxJWMFZIms+SkihNwEqDrKcUXGjhaVJb9qtnlb7bL?= =?us-ascii?Q?igoSqARQjqp4tHvdG8BjpIhpq6Kr4PAZBm3BgSrIGrAYRG5Jax2XmuwKpSe5?= =?us-ascii?Q?v91H5sX1cJc7Xr/6998iB67X96NXffG4cw3KqSlEqLF+hXkfVh/8jB5Y2m2v?= =?us-ascii?Q?+s0SZcYYKUErAMjvLeoA/tsM3bbpXDQQ3cMzYWPKSPJ1MyMkkrj68uN0VO3s?= =?us-ascii?Q?n4f00lRS9H8iKMDhHa+PwP07Z0r1qcGpiQNJ9lwGQxg4scwedVJxg7h/3pWi?= =?us-ascii?Q?Zf8HR2V359InwTi9a0EIXRBYK9A5KWeBSLHZRphggdQ9LVBfm83N3izJWsQf?= =?us-ascii?Q?GeaB/5sqkznoR+XMWj7W4pt9YUoDL+nT8KmxWvetyvha0L762S/6GZtHZwUg?= =?us-ascii?Q?s8B2s9PD29vox2oYIOnL4LD9EsTOQQAhN0AZSrSqkRTiYcpaY7ZL3om6Hcrq?= =?us-ascii?Q?X28NLN+SnfvkVHJocf/E52jxFlmnLAWAVBa/Q0a/hkowV7ggFMicQjVjaCXE?=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L5RDbQxIRVX+nLfy5h8raHlwdLbA?= =?us-ascii?Q?B8/fBeA+aVJW0b5Ih6/xJ45PrSNjA4R7TxXlSzhF1WuKcK4a3SCDrnIPRjzb?= =?us-ascii?Q?seMpx3zSduu0A1htJ0HmorIcKZl3tbjN2dE7HfieT7w7FLOSOspRZZhiAeUU?= =?us-ascii?Q?sg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eaa4e41-adc9-48a0-5ca4-08dccbdca9ae X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 05:52:58.3257 (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: NLJWt4GPtd31z7OppadNXMCmQREqMYh7HkFEo5SFq+1LJ9CuJXipGnhXig6ou4jMgPmOoZhabaDkDosb44zriC5Ki9wjxKqJpkCieokEAzQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB6126 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 This patch series add the needed logic to support load firmware from the flash in card. Chaoyong He (3): net/nfp: fix potential problem on certain version BSP net/nfp: add two APIs of the NSP module net/nfp: support load firmware from flash drivers/net/nfp/nfp_ethdev.c | 235 ++++++++++++++++++++++++++---- drivers/net/nfp/nfpcore/nfp_nsp.c | 86 ++++++++++- drivers/net/nfp/nfpcore/nfp_nsp.h | 15 ++ 3 files changed, 303 insertions(+), 33 deletions(-) -- 2.39.1