From patchwork Wed Mar 20 19:39:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13598133 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2056.outbound.protection.outlook.com [40.107.105.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D8B285282 for ; Wed, 20 Mar 2024 19:39:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963599; cv=fail; b=esYbzwTa5eYbUhBHYzvVTOUGkzaL+KnjMAxhRGNKz0YmoNCosufYz5bP9r0u2lanTR46dVPiIbZ32oZQ2VlZMa0Dw0nQTbTUrqmn93sEYdpTBWKXgHYgdRA648+4f3rqW3m3XEThA5dIY5dE3oo//z7vuIyWjQCAfl4K+PMu8PA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963599; c=relaxed/simple; bh=nqEZmsoTJgvbC/BiKVxws5nME5nmhJSAj6NYePbtTaM=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=V6+GwdTEkDLCs0VcFT1EBY3RE7/6A9iWohc4rmZYPj+C7OmqcGy7XtTHMNFNFBQCJBC3KQWSvsDmANPHn34BpLHtU3nCpfwBSuGDce33Rkn6IuC9tfvmt5lSCY5s1Xig7ZOdoe0B027tahhsUK8zpFc/lv55j/Uy0vhPCZ/Ocjw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=HqkCYBrz; arc=fail smtp.client-ip=40.107.105.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="HqkCYBrz" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TfYVl/psyEADLRqiK4pKcviabRs8eXow0XWUpek2+DcZKGNZ/cZk4HcmEycWizH5yuBwHVBJBj249i0iyRa+iVsWRT+BhaYXDq6rjIfkZQj4cTAeilFbU4mMJ4ktNnYksEY3vy9w0aqZTIHPuVDRYnJhbyl9ugVoLEN6PJ2s/J9J5Cf/aGg7L35hHqy82+4cy2YvTgeQKEndwdv2gbK4S6pSf9e20JR/EQz4uFppwYob6/VcXJKPWF0WEMsEEEZ0K/ZD5FdtfDG+NbY2SIu9pPDs4vev20ZnOuQGIe6uL98kSplwtHMszRavoXupLkEXgOEZ52YNq/tXRCsK7UIPFg== 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=XSKelCysyfllOWLixp/XcTtoIo5A+PDC03HkVb61vto=; b=j7u1mFsMYQqGdqddOdx4d2nT8P72g5zMd0k3aWvxDM3rxancLiI5b62QAWIM8yDvCxCJIem+Fx8Qaev/R6TNxk0frXeT+kSOpqQk5Uq+dCgzJdaFnbpjwQXWRf6IxRLrzuS8+P647r02+j2eQBAsGsKikFgre5UYtJA6ietnl4fqPN2/L6g3D8M71/K/oVIhaUhTbpGWGTsA2PXYGbBu7lrAD+8uNA6lCrL6i168TBigIIebmpOCQa9jfRcY1ZCjqVQ4a2Fk4hXRHf6GgK/8CGHk3ZRA6/fa272dktRvRXH593AcPTD7KDetXrPyPdb7mIo2qnbmCPZWGI+/cmXUNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XSKelCysyfllOWLixp/XcTtoIo5A+PDC03HkVb61vto=; b=HqkCYBrz+xrdkvcJsCLYNjcZ0CO42uvppiPzILvdK2FQKckRm7D2rbeAh/g4DuiVr+xz+a9T7lBdffm5297R4Vx9i9atqgsVRaAlqJuDB1dswRbtgPlPF7Cis5silmRgjjo42XINs1NY9V/4oWfJIRPlKPG/BxVhtAzMvsXT/4I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PAXPR04MB9326.eurprd04.prod.outlook.com (2603:10a6:102:2b8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.31; Wed, 20 Mar 2024 19:39:51 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6%3]) with mapi id 15.20.7386.025; Wed, 20 Mar 2024 19:39:51 +0000 From: Frank Li Subject: [PATCH 0/4] dmaengine: fsl-dpaa2-qdma: Update DPDMAI to support MC firmware 10.1x.x Date: Wed, 20 Mar 2024 15:39:18 -0400 Message-Id: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> X-B4-Tracking: v=1; b=H4sIAGY7+2UC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDYyMD3ZSCxEQjXYMUCzPDZCNzU7OUVCWg2oKi1LTMCrA50bG1tQDF9+b 2VwAAAA== To: Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1710963589; l=1014; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=nqEZmsoTJgvbC/BiKVxws5nME5nmhJSAj6NYePbtTaM=; b=WJpJVybr69XW1VeJ6NmpDCoQpRP9vSx51kv9zWsBoHzmJprmfgQnulL2+2zVXTWgO9XUGqskt SxkZRj4Vfe1DAu9o5PQ2Pmh1xVjuMKOv5dsUuzJWDtoSbsczpDfFWNa X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0058.namprd05.prod.outlook.com (2603:10b6:a03:33f::33) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB9326:EE_ X-MS-Office365-Filtering-Correlation-Id: 24b43204-e2d9-485d-a36d-08dc49158278 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4pS0tg5FLMW/dvwMoEf96gJByn7DJioF6ByUb3+V6sfBzHQgx9Se6m3JX1mOdaH4EZt1XpnJG+Pb1dv8fQL3FWf+0BYsIEAork41MPSJH/iRfrxvJj1uSBZqwhoGm52hlW6u4ymklLifaLXaBhUJ/Ph/D/NZla2YU7anl13vtu/yeGyqr33H1kDOeqdNmQllQ74wsycGiiladksD3XrjLBGVC7TjEZ8Md4PJKBRBec7/rkWDJZeKBoiIjO6AM+u1QIYh3ak6JpC4nPSBpQacCHCyl6pm/xY4US6J7Fvx2arshHcnQHPUxGOsF3PFzjpd1Xb/7jAjsraUVcMkNF4eNMF4nU9ouA1s+w1o40QoQfr88e1+cIg4Dmff5k/MB6gEex6/7bzvIYsvkDqAjlmVKRCJBpO/k+QGe1PExzZZf8OQdazgd8eJnga/D44Dar4vO21ArO0nZSn1vIi9Mt4FIwnbPN0vnIhOmc4AeB6VIxifv+rVhUFwzd5g0QrqeO/frhr0XZUct6gL4v93c83ul+G8lmkgoFKnidf3IpuSWS6QlW+kQXgFiOcRDckHW1kTg/qFoWC9MSSPPpIiHEcloqxOKipySRX5pB+jMOkiq3tQ/42+DIHarM6fNzSn6oFxMoQ7WVaRUENiT/aV26rqT8t3l3n9L3H0nmwXRE28/rHn/qvLYZ6cBhv2Ey/G3Ab6WCOTonww4QPs14G1zdzcwQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(52116005)(1800799015)(376005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?JRHQawe2epWTefYcuNBl95wbmAfp?= =?utf-8?q?9agvGdLhfhc/ZAGnd8819GS6Y+L2JQ5vMa9mEzkPetDH2LVUuT4cNxDje5mgX/aLP?= =?utf-8?q?5TjeXsXcc2PhIx6pHRVM/oR3QOxw7VammmULA17i5A6uheM8XGjhC/IH0vUqpWAp8?= =?utf-8?q?YI/BMyMbW3jqQ68uBkV7/GnISg2evummHXYVxk8BK4Bb0apK9IP8yswRVTOKMXh7u?= =?utf-8?q?5OzBnHMwCRlx+oiero4emhGIGi4FqAsl5jgIAwhL2EaUSMEFuHjXqjRLYy0yL9EfS?= =?utf-8?q?nrTsbLSpAXFdboiVUguq8iZXkNaBmanjUrB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KH3sodYKpfekJDPi?= =?utf-8?q?HQACOkCUYHiqyS4FWKoCOxQqVneunjCOG7RRUJz/LLQYZueWyWsbIWSE0bY0mTVJ3?= =?utf-8?q?JN/xWaaiTK8OnqOJisMOmMmp2QVSw+exUWxQ+O2UA9XaBjzWPLwhvYzyohI2N5gfC?= =?utf-8?q?AP/Vgf+JkdgqfH+Gkk8F+5QHEfWhIinq5OjloMkOTDAmytWTLDqGzsJgp9xGb1OzT?= =?utf-8?q?GtuCRbR5lwVxmu66giONnPNfVCItDuykaFtI6NCafibh8KWqMUPG8Xl116BrttV7/?= =?utf-8?q?Bit28YehGzalerCHkwt0c4nktL6aCnDTBvdHllUdHvG6q3wiMUae8aXU=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24b43204-e2d9-485d-a36d-08dc49158278 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2024 19:39:51.2759 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K+eSMxgBjcsZrhKR59A7tSUS+tgWAD9Ir+Hgk4A45I78ISQbcL0Q9T8hux1DE4WW21WobRULHiXYIeLQufNKjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9326 First do some clear up. Remove unused macro and function Then update DPMAI API to support MC firmware 10.1x.x To: Vinod Koul Cc: dmaengine@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: imx@lists.linux.dev Signed-off-by: Frank Li --- Frank Li (4): dmaengine: fsl-dpaa2-qdma: clean up unused macro dmaengine: fsl-dpaa2-qdma: Remove unused function dpdmai_create() dmaengine: fsl-dpaa2-qdma: Add dpdmai_cmd_open dmaengine: fsl-dpaa2-qdma: Update DPDMAI interfaces to version 3 drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c | 14 ++-- drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.h | 5 +- drivers/dma/fsl-dpaa2-qdma/dpdmai.c | 113 +++++++++++++------------------- drivers/dma/fsl-dpaa2-qdma/dpdmai.h | 46 ++++++------- 4 files changed, 77 insertions(+), 101 deletions(-) --- base-commit: f4385d26e50bac22f8dba08727e9a32a0ab6b9ea change-id: 20240320-dpaa2-0d861c2756de Best regards, --- Frank Li