From patchwork Wed Mar 20 19:39:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13598134 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 9106D85282 for ; Wed, 20 Mar 2024 19:39:59 +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=1710963601; cv=fail; b=COZuAJsGIzWWaS+y3enSItn0PTN4L72eDQqR/cFTCEcSxev/sAEz1XJhfFPCiZjrGujWpkp00uelXo+VGzfQQHGEFovuS9Y8SFngbd4qJYdqgjjOQvHjNjhsJ2As0EsSYnAK/cNHvFBveVjcRcTus2QvUmhlXpIS6HVb1TSvcao= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963601; c=relaxed/simple; bh=j+XZLGzpWCPwQ+2PF27NsqcbXkP+MECQkhlT1c7V/PA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=VfEcTFHdJWxdqq4DtEp00mRYw5+fwmJeOCRZ1FA5fy4r8cHMfQ88+v/I/L8n5Tqw9RvejkRHCfWpGtCvtdlWcGhc709LCKcTLHOlIKgVrayx4N3SIf3nIpPppx5LNRfJlOeD39UUFB52HP0+sYxVDF6HfX4x6C7F6pYO4Qh7C8o= 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=IfeowxZq; 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="IfeowxZq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oKz0/ZRgE7cQCS+OGinjTw5ZqagBD7CyqeI+917WNc5r4i1bb7mmz6phHfHvjNTmpT3dZhReZqGMTLvOD2c6oaVosN/PPRreKr7cWxmQY6GB65T98RfnnBZkEfPkf4lRt0LS8+SuRjn6bCm1E5o9utyrkByvlhA3tYkf0aqiYYdXLv1Rgg3bszErEL+gvz4D03ZsrtkftsqC21oFqyvbx89nUeDl2ZUcN1dCF4TIcFpxyYrDnmUC4PdY+QPqQB7mSCCmQfVrwumzOncjS65JpxJyHZR5I0yT5McZChWOKZq+pvgBq+1hUluDKDJOsmvMT9JZYtnotfkAKMX/4UTJ7Q== 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=0swDmfnhC14r+xIYakfxrFAJw3ql26gCjoT2nJQlQBo=; b=K4v/fwMjI+sdC6AKUKBuagXBa9N8FbW6yIwpy4pCjzrHNFdK8Q38e8yXilBlp5UVsJhv3xt4aDgNOvWy381uz+KKdqmUkxMzB7Qb+V7PKmgh3a2jTkkuUr9qP93/JNZi6jOx74W7hnU4Q9/s46Fp8b3xFQ5fps3xw1U6lZzetUXynPRpVACcl1iaZ0xHAhiZh4X1qBpBP2rd/wizrt3yL4wAUHlKtHmZMtMFvO0V3xk7Y9Wh6uJbwBUGG+XRIrFkxEZumiJOMlHvvLtQ3L9U2FPVHRCbdkdJ8trvf4pOglanpsy8DuszdJ0CFv6rzx98g5sMIroXdK4Y9yQyxAMXVw== 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=0swDmfnhC14r+xIYakfxrFAJw3ql26gCjoT2nJQlQBo=; b=IfeowxZqUpM73OATV5Tcad6zyZYhsZAqhqKgOrKrm9WLCtqQjJr2EDMCUw3sPUshA/9AqEQw8PFNO1VpX1cxHzHdonOSO1AIeiQQvi0SC5qUSWvMGXicxdlLmLZfTHkutI9pJYr0gcnQO4mdptt7PgahJUliTDRgqeGIQhrar3s= 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:54 +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:53 +0000 From: Frank Li Date: Wed, 20 Mar 2024 15:39:19 -0400 Subject: [PATCH 1/4] dmaengine: fsl-dpaa2-qdma: clean up unused macro Message-Id: <20240320-dpaa2-v1-1-eb56e47c94ec@nxp.com> References: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> In-Reply-To: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> 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=1318; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=j+XZLGzpWCPwQ+2PF27NsqcbXkP+MECQkhlT1c7V/PA=; b=45i8mqKGYYo04ts4VX6RvoL4VCyg3bba028IGHPXM3JS9K65ayu9blHp0j7utbPI4sdVP3nq+ ajaHV2kTTVbCWY6STNoDeech8E3WaKUvCzyB7xAB5aYCDmXLk0P9rl+ 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: d78045ca-9ccb-4141-25ad-08dc4915837e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oFvmWAhXbUMAVebrDRF/BWo8ozE/c4vAtA1QsD9AogmUTgPKvoCcOoRlK9W/ApgeFDthakyxdVLA8s7t9L+zk5B/MFspdGFDy1kIA32OQgnIWD98omWt2OINfkL/srbY3q+c1fhPTV6gZpvpmKjZqeEFP3UELhQcUrRSqnio7r2sQRo/P6NV5O5KPBgQeyzUxE7cupCvOQMzjBP7zlx+lekPc+jagqp6g0dkWNaw3gTPOvGcMpb05ZwXj9DoDywSlLYgtkXTmR5NZzIMfcP1ETzU7sXVMoOUtL42dUqGgz+7EPRtr9cs4q+SAQZVPue/EWGo6rQuT7XbaatiofR3UfXBZWdBcDgPOjmEsQXD3/9h4mGYTXmvD9eTnAMuCRQEW6w0bo0FOJMQYM0gRJLfpambfQ7iMNCN6f7wOSPFNTQiLX37bw73JMECzioY35baZnHKSyNfP42I7bO/7YTF3gvieL1QWiFUSld3hmS08+90lP+TGCmD3+a26JLTw7tfCB1YwlruYxnRD/S3HvVQy4drG794MZtmlZpov7uerQXMg4o2lIgam82GnInHHGs09fUt2EwfBMjMra+tuE8hz9Ik/upo3ke8Y/YYbghj+z8JXDaSn0mASBu9qJGHaT8THmQTufHoUwuXj9kH6eGeAQjTixFx3foWXEDtmWg4rAaNiIBasEShvUAN7r97hDvME5wtMfo/GNUsKNtmjERF4g== 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?6qjq/yXivqIXgRjmC64JBlXq6uAb?= =?utf-8?q?rXNRtKGG3N4q43u9/17bhFVvGbWghxIjkVvH3Ap16vi85RIZCDyTs9giXdFBRYFqU?= =?utf-8?q?W/oAeKK7leiVRb1e61YDnI4oUbtf9UdncXJDX6v0Iqk9dN9BmByeHCRUVIDBMH0cp?= =?utf-8?q?OBkC2a0Z8o5RJrQCoqi1M/ePYnvvaRdO/j7dJYZTFAy4tvzKff4cUkvrw2G02iaIY?= =?utf-8?q?JWDAmj9j+0Lh4iwh734N4FZW4tLT1Tj6czXMDkx+40dQ28iQN5nsjpxBLzyROoX7C?= =?utf-8?q?pHESnWxQ0rZPINrrGL3Y6j81o0hlwUYpoOrNBwQi90A83ZQoQnik+fnV1BYnTOE+J?= =?utf-8?q?5OWwSUYLiLV/N/VqnGyvnBLAExQFi2QxCW66IOlVR62mwgefqarJN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= =?utf-8?q?AzTB77iJnGlNy3zPyzk7p9DE0O60BEKzya/Qw/x8OLxkEcG9JdhcAHjPmPbUU1GIe?= =?utf-8?q?17hPLMOKbpr/ktg+6ZGt8sqFH3mFR5U70A/n9zbA/4oRY7CAIZQHU/b6vALS7MOrS?= =?utf-8?q?hqd3qCc2ZEJSFhWE/sMfcFHEwTvKBWwjAwWnSBVX0h29FtsPpqInSbPhPnf9GdQAm?= =?utf-8?q?HwSPzZBF3M87aksYOO0N6DWsjZSY5L7dBOEL4HJkBrjnzoXl5xAuNF3/K0RBAWYmx?= =?utf-8?q?iKO0VqrO8vzy?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d78045ca-9ccb-4141-25ad-08dc4915837e 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:52.9805 (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: a/VXnQsniZrd07jcvD4RYUVmwa3AaxpmYJ7PlCS0G0Y8AD+2DL5xXkYvt+w53CJQ44TT/qJLpfI81rdOSK0ICQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9326 Remove unused macro definition. Signed-off-by: Frank Li --- drivers/dma/fsl-dpaa2-qdma/dpdmai.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.h b/drivers/dma/fsl-dpaa2-qdma/dpdmai.h index b13b9bf0c003e..2749608575f0d 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpdmai.h +++ b/drivers/dma/fsl-dpaa2-qdma/dpdmai.h @@ -26,15 +26,6 @@ #define DPDMAI_CMDID_RESET DPDMAI_CMDID_FORMAT(0x005) #define DPDMAI_CMDID_IS_ENABLED DPDMAI_CMDID_FORMAT(0x006) -#define DPDMAI_CMDID_SET_IRQ DPDMAI_CMDID_FORMAT(0x010) -#define DPDMAI_CMDID_GET_IRQ DPDMAI_CMDID_FORMAT(0x011) -#define DPDMAI_CMDID_SET_IRQ_ENABLE DPDMAI_CMDID_FORMAT(0x012) -#define DPDMAI_CMDID_GET_IRQ_ENABLE DPDMAI_CMDID_FORMAT(0x013) -#define DPDMAI_CMDID_SET_IRQ_MASK DPDMAI_CMDID_FORMAT(0x014) -#define DPDMAI_CMDID_GET_IRQ_MASK DPDMAI_CMDID_FORMAT(0x015) -#define DPDMAI_CMDID_GET_IRQ_STATUS DPDMAI_CMDID_FORMAT(0x016) -#define DPDMAI_CMDID_CLEAR_IRQ_STATUS DPDMAI_CMDID_FORMAT(0x017) - #define DPDMAI_CMDID_SET_RX_QUEUE DPDMAI_CMDID_FORMAT(0x1A0) #define DPDMAI_CMDID_GET_RX_QUEUE DPDMAI_CMDID_FORMAT(0x1A1) #define DPDMAI_CMDID_GET_TX_QUEUE DPDMAI_CMDID_FORMAT(0x1A2) From patchwork Wed Mar 20 19:39:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13598136 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 B536E85941 for ; Wed, 20 Mar 2024 19:40:01 +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=1710963603; cv=fail; b=OmOPuR5uQ+fZ8bejhe3bfgldDbHZ4XQeQMMPJQMtEhtCBTm1wQC7s9YQX1jzwuyOA5NDOVfmXjof/IFbts9BezBH1xTspT0cycx/uFOcHGkHDUQoHUD+bZWYme2BLxELuA+VVXTUj/++4bbXteYghs8aX7LCpCFr1letq5fOLHE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963603; c=relaxed/simple; bh=ZonQkgN0drpydT9pv+4dLoZSXSV5xReCOgkLPNO8CeU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=WqNOdi+ZmAF2L7n/kIUlwkyM25vyUJ1sQUl4ns9dgW3TqInJRTq92LNXO7dcbBbUtA5OaIjyKsBT7iEz5qe1ZhVBngsZ144+82riqF6NWiDrEELHWjIc6TcI6GrBP5aEPBB1qQGo14beUuhmL7BQs66XNYrP78wPHeYm9kvk2xk= 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=JMf5cx4n; 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="JMf5cx4n" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XLiaU7gwRroem87dnCxkq0fxyXT/mGb+Klt1wW7XAAmldgHAFXHCAl/2D6J/jXbiUPdn7ONGDBCBPCKOpGmPmfKfM8T2AgJ3VH4VSM3E3fvatQZzA3J4myCg0GdG7lUGi36s1UqZYDPIcv76/mrS/Lj5mwxlakgEBhgs6oaJ/speqbFa/yUgXr/VwFUK8zOY60ZGUo6JLiKQRT7SQBizpP3si+IdekKMz0kwWV1a0mCEFQR3LTyH3xEoln0wzSyHGlFM3hNfm2ufmFWIF/vyZv+bO9tlIgeQlu+dB7g6NNRvoNJjyq0qdU166pn1fTFehy9jEeJRmLpAbU+iVb22IA== 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=S/cOkF6AHM9J39SwutaGCwjwJBVq4VF70gA//AEN1YQ=; b=a2M/sZdlAvA1XTBczt6tqJIZx+is22hZHRGwAMOLIRVFMehu2o5gQ+X5i1kRgb8Z5K4f4hRPsm7OK8Qpovzo7x3MUFe35ZTmDT/T+0BEwEu71ioyUURz51Yz2oHmElTxnvtDn2Fb0uoXkm64n0oSsqOhLJkPFkpOsm8WDfJClZtMFMaWCs2SvDX8x1suvNyKtkEQ/0Zbx+i+++KxD416utDCz44yEqjFQzXp4u/dn32ox+fnMXCa8E3F8lFn35E4VsVpvhW1SPC6C07JcGD6UdZC9X8m630xRMPB4YEknQ/ef6P0FyedZx469IHmEiSjNKevz3fUzLdpwVCc6phN9Q== 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=S/cOkF6AHM9J39SwutaGCwjwJBVq4VF70gA//AEN1YQ=; b=JMf5cx4n1FzbjB7T7o/esKDraezwMMxvvgsbFN1ZoUDWn21/P39M/lqSFtDbkHUHaTYIv/f198QL0S3aGwbYZC916pBdLV2UCWiSpWJaBlXvKRMBChFoj6UY3vOC5LU5mwKsluVh5QgANrcMa5UhaQeoHWyWYSa4TnH75fsF8K4= 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:55 +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:55 +0000 From: Frank Li Date: Wed, 20 Mar 2024 15:39:20 -0400 Subject: [PATCH 2/4] dmaengine: fsl-dpaa2-qdma: Remove unused function dpdmai_create() Message-Id: <20240320-dpaa2-v1-2-eb56e47c94ec@nxp.com> References: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> In-Reply-To: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> 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=3494; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=ZonQkgN0drpydT9pv+4dLoZSXSV5xReCOgkLPNO8CeU=; b=0QTdFtGEk87qRa8caAdD6r/TvwLmsHyV5DU6kgS7JTRu9ybwW/OW6wQfkMpTR+MprfazUm62W qun5BJu73VnCtKeCFdmadMYSHwBCFh932bCYtoXbWXcD0M3RESlyb5H 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: a45fc8c1-a26d-43aa-4d5d-08dc49158485 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cNk1qszmsB1nD+yJ5b3Ud+NnGwobCJiBHn43xRuPUbcubNJBgEig7D+xrtUiNnK6ZB5eT5KXzDm3YOoa/MyFtxA9zyVlupxB9IZv+3wtdO4ZBLpqw+z681D3rsDvDVr2+TPMZv/MumL8CUinMxlcqXuUJlw6H92o+97gO0NSL5jvxbu5CsPRkPj4LV2X4qLTKisgQxWeLh2cZPa9RM2pxXDLtMIIR7yd+xS3GVgdYSTuXglE5pc5MjozDGSsl2GqPKaSg7FFLaZFWSq0glyJaM63zOeFJ+fDtkx06yieMreVgzherik5oODdCRmo3Hj2Nr06a9QVLUliYqeKkq3j9MgeyiaNhRWQBxSA7l/+wi99EzbdsuQS7j+P9jvSFzWL7nqFVr2AlEZkm45Qloyvby2cXQatEGxQZaov13U+/Vk8ua7GRqeGr2OdbGGTRYSFUwe7qd4vvnksu0mVrC+oVKKi7g9lQOjar/pihkWcYJfuK+GvBnxtn8aAD7JADQV9a3Wc1NbDUVG4LqnCr5fy7aAJwPAnj8rgtN6zCX/Lh7dMJGqu8IGr/hfUb6iSI19D4kkZVvRi3R+5UL4Vnm+B5AascVFgfN/U0PfHLAyFFG8WtmrvIbX0sjA2QWevrNkCsQvymR+28xwkmReKuvFS18Rp53PW4d+XisshVl6fP5pP2vUosIJ/ODOE0Hco5TjRxYgJf/iNC24S6AV2+1zHOD+YqniKeAwgf1UiXLyEhc8= 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?abjQw6Z3ba0ZtfMY0J8qsscqotMN?= =?utf-8?q?9W0lyWlmHYjL/5qwPh4nIEdvZzJbMVoHMbwuKnjOcqk7c4F+iOl7sx+2hweh7ZvBp?= =?utf-8?q?yiF+8RQg9RhX/Nv//W4QJAoCfHJmHtZQAMBcriwGjHysXCnj8sWZHefWptHCaxCDK?= =?utf-8?q?un/rviLdPJa7S0gXwx1FU094RdEAc9Dmu7KCnoEdvVlOyIBt7gnCfJS2E7jZPZ40+?= =?utf-8?q?PWTN+HPU2mKiSEeH/Kun8HwzWNlMFMeqiNiYPw1j+THITnV1bshPI3KTBJA6TwmJ5?= =?utf-8?q?zFmaSFA6oELQ83PtAxw/X77VOq68qgtZRPn7wRopUttYWKkJanoDJjHrHrkK0rDG3?= =?utf-8?q?XIIqVgjzoaaBjHmlwwN78dznBzMJcfLSzWgoN5IMkkFcGSC0wz59JX+3wgxJ1gzKB?= =?utf-8?q?xNShkuKOtD0Va9HYPQ7cab9fqcJ79WZv9VIg8xp2XRNQgiuPzPfv+G2b7vikZ8QDt?= =?utf-8?q?RwKQG39H8vZcfCcGnr/xDA2c3/Mmyt60PoIlOp8trvBTRVx8iy5Vs76no57QYLEXw?= =?utf-8?q?4N9TuP6kaPMJXwfmyIp1MqqAAjSxvll1Zc4dXV2xIbi6wxkWI32pyIuGb72Bpanzg?= =?utf-8?q?i/WOWqSiPF3MlRlF4O7RCAuxfUBUgadv2mMlDcJs0q2qeQ1UFtyldxjD7F/k3KPu8?= =?utf-8?q?yE5XNjwUp8t+0axD39hZFcr6AnCwu1xMDZrUWcRyrKG0og6ZrQGUvH3xWAUx9D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: a45fc8c1-a26d-43aa-4d5d-08dc49158485 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:54.7163 (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: kNVlOZBrcJqUZMXpdeIAkY0rS79Q2rplqityxbtXdTxavrkbMMmiCazi9tCOkH09exnx/8SLQuYy6T8McR7pSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9326 Remove unused function dpdmai_create(); Signed-off-by: Frank Li --- drivers/dma/fsl-dpaa2-qdma/dpdmai.c | 54 ------------------------------------- drivers/dma/fsl-dpaa2-qdma/dpdmai.h | 2 -- 2 files changed, 56 deletions(-) diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c index 878662aaa1c2f..66a3953f0e3b1 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c +++ b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c @@ -33,16 +33,6 @@ struct dpdmai_rsp_get_tx_queue { __le32 fqid; }; -#define MC_CMD_OP(_cmd, _param, _offset, _width, _type, _arg) \ - ((_cmd).params[_param] |= mc_enc((_offset), (_width), _arg)) - -/* cmd, param, offset, width, type, arg_name */ -#define DPDMAI_CMD_CREATE(cmd, cfg) \ -do { \ - MC_CMD_OP(cmd, 0, 8, 8, u8, (cfg)->priorities[0]);\ - MC_CMD_OP(cmd, 0, 16, 8, u8, (cfg)->priorities[1]);\ -} while (0) - static inline u64 mc_enc(int lsoffset, int width, u64 val) { return (val & MAKE_UMASK64(width)) << lsoffset; @@ -115,50 +105,6 @@ int dpdmai_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) } EXPORT_SYMBOL_GPL(dpdmai_close); -/** - * dpdmai_create() - Create the DPDMAI object - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @cfg: Configuration structure - * @token: Returned token; use in subsequent API calls - * - * Create the DPDMAI object, allocate required resources and - * perform required initialization. - * - * The object can be created either by declaring it in the - * DPL file, or by calling this function. - * - * This function returns a unique authentication token, - * associated with the specific object ID and the specific MC - * portal; this token must be used in all subsequent calls to - * this specific object. For objects that are created using the - * DPL file, call dpdmai_open() function to get an authentication - * token first. - * - * Return: '0' on Success; Error code otherwise. - */ -int dpdmai_create(struct fsl_mc_io *mc_io, u32 cmd_flags, - const struct dpdmai_cfg *cfg, u16 *token) -{ - struct fsl_mc_command cmd = { 0 }; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPDMAI_CMDID_CREATE, - cmd_flags, 0); - DPDMAI_CMD_CREATE(cmd, cfg); - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - *token = mc_cmd_hdr_read_token(&cmd); - - return 0; -} - /** * dpdmai_destroy() - Destroy the DPDMAI object and release all its resources. * @mc_io: Pointer to MC portal's I/O object diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.h b/drivers/dma/fsl-dpaa2-qdma/dpdmai.h index 2749608575f0d..3f2db582509a1 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpdmai.h +++ b/drivers/dma/fsl-dpaa2-qdma/dpdmai.h @@ -153,8 +153,6 @@ int dpdmai_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpdmai_id, u16 *token); int dpdmai_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); -int dpdmai_create(struct fsl_mc_io *mc_io, u32 cmd_flags, - const struct dpdmai_cfg *cfg, u16 *token); int dpdmai_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); int dpdmai_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); int dpdmai_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); From patchwork Wed Mar 20 19:39:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13598135 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) (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 D768985934 for ; Wed, 20 Mar 2024 19:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963602; cv=fail; b=gacQgNhobgWPHSomPPNIZJjgHocnUVJqssy+YOJWLt0WjdkVHt1h7gSZq4FC92dK3yevnLgoOOz2yekCf8XRUeBEfK3W/cdv0/wmvMjYH9MGsyg2bmV98uihlJkgkCBZWbEOPbu1OG2pYfbR3TdaSYFzG/fm9jnanxPyULilXBs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963602; c=relaxed/simple; bh=PM+2i/0mOaaCSuGjf/8vF0iv8tBZkwUTW+fJPBRs1I0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=n/9FlWLKeA59RZBkghRbjOvm+tietu8wnptry6ObzXYoq9f+Xiue4YajT2suK/rLfwUhB9P2IYIN0g2Ly74wjlKgeUI7VdQ0wxyTsHzTR6aO7Sa9E/pW1dXh36K9MJH6i7OvQSomAvyDGcQB0uVy3i9CSEWrJdskgO2a2F3nTlI= 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=UZ13dJKv; arc=fail smtp.client-ip=40.107.21.62 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="UZ13dJKv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N1yKFP5aECFksNcr2Ha1qBuPVJAk+PDy4npB0bhVyN6aNjIVovK6pnxXH2k24PHo6jn7R/bJbeGNwQdN+TmhgHXZCmnB+COiozUHL6qXADojH+tuYrzPuXhfPjCGEmHZIRmQKPDZJNlJvnPnEL2ujQ+gTMc3EVs49Tz9KJfAZgyU0J9L93S7EpGj+Kq5c2+2ZmLRtpGgKpFUq/OuNSyVfRK7r+ZabKwNNPDB3zDVoAeYMKZiTe1I7LHDglelXBD7ZO7YhuTNTzq7KdKm19MMuYbc9XLukHsalZ2GghO5LCuvVTqYcgLiaCes5G6wnHNpGKK4GdoNfhdvYWEqcwmUmA== 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=Ti2uGerYJpXRpmSl/dtZN+v2nK4MazVUHmqKDC7W08s=; b=Ykrkxo4cywAXGKhAgLBgkWkox9kU0xkQ48OoWvThoP+XwrdFB2B3WRidfzPlYcX0InI/NdMqvXsrhCfOb981x1dXA3FMySTbeWrRL6arAKST9+Nr7b2XE1C4YKymLs6AxkJQv8rV1X52EgHFnE78witNlobvUAKilxoYdVvjSC0XqY98Xv4+A0tQK4Ouv/XHroCugjAM00k6yD8DZtmoxJseGKGGVfjp4hpgnyDMEjRwkDMPoBAeAYxnTs7ovgFdHfGD5IwhIVESmdXown2X2iZzlvrgR9ztIYJZa3UF4LjVRUb2wpU5COC/bzQ0w0FKLGhi+yrEAudaZghwa4w4Tw== 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=Ti2uGerYJpXRpmSl/dtZN+v2nK4MazVUHmqKDC7W08s=; b=UZ13dJKvGfzrOkc+nYKWtZ1LDvgTrrclJ2TwEwiQWvV7MduFdWGrrm2uz1jTpLnUAvxQzsRUMTQ/WuuAje6vJ5dalhFjw+La/zsNulFinSURCD31dTHkhNJTXGiZ+T9ULxaJvUNFL3C7ceC5y6nJjakcG+93DdvWAh45MQEMuds= 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 VI0PR04MB10176.eurprd04.prod.outlook.com (2603:10a6:800:244::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.30; Wed, 20 Mar 2024 19:39:57 +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:56 +0000 From: Frank Li Date: Wed, 20 Mar 2024 15:39:21 -0400 Subject: [PATCH 3/4] dmaengine: fsl-dpaa2-qdma: Add dpdmai_cmd_open Message-Id: <20240320-dpaa2-v1-3-eb56e47c94ec@nxp.com> References: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> In-Reply-To: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> 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=1399; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=PM+2i/0mOaaCSuGjf/8vF0iv8tBZkwUTW+fJPBRs1I0=; b=TqoZIUsA9kvg53jtUQ6UoU/ux9iNpnUdiNAeAn0xiynQr4UaZaKbE4820PeCCY3JwRpx6oZsr iLtN7M+p3sjASBrgFKOt6CrPDAfYRlLDQAh9ru2umlwwLzmNIF3dDd3 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_|VI0PR04MB10176:EE_ X-MS-Office365-Filtering-Correlation-Id: 264e8227-3b95-4006-f8d4-08dc49158592 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KNZnGBFRBU32OkG+UswjQSKPxiG7UcfmjgcxSYAGdxXrel47qUzUWFUm23UY+Fr4jb7W01ZwlhJri3Uun6sXtT4Ra/EGbsD/oVDhuU24x1ldCLQnqKPVApcIW6hg7LqFtxcKQEE5c2ey93TEBPLIl0k7f3TGv8ErkPXJqDFR0Zq/bimV+yMYutufzNML0n50YFCSPYi2XNw0ZAQp4LS6XGIkBwomVz6rl5+D+Hp2tmD37pAIokDEQqQXJ+ZIYdZuXtsg1Q5uVSSAUqBPfY14T/UdWbihJQmPlnPpFR8oHgy4Zl+lZQLNNocHcwgU3Z5L3xWyGXeavESf7Qj957Bj5THBGDgkUAMoG3aSeB579/Oz62K5skYByEzje/Wv03XDyFYbK7kaUD6GOL9J+JOtXF0N04PTeh/BAWqXzUvhhYCda4vSC767ub5pK+EAjyJaiNmvKWaso36hdimUF4MBZ/3kDKsgefKZ5fmWlpc9pBNyyEg58xHmzUvwQ1qJ/fkLXCIk+ep+SojsX5n5QIGPNiogs1jcdbWinZsEKXP7duTJANbd1gdyxlfK4TRLTmkid7czHnSNcX5P9VNuYK7BZ6aOERjhAmiRBHyOk3fY6FCssKdKUD6IojyOWySs80/b6jI/yavaIpSjwGaYrcUHKSbY4isu5XHtALd529c0fb3b9eGGxXAF0VhpmIA9QzNp0wshwZaMQ4jl9wY54TnaXA== 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)(1800799015)(52116005)(366007)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/p1QY46908UlpqqaQCiQBbyIl8hg?= =?utf-8?q?w3l2GAb3ZbIB2P3lnruHDv8+t+gV7AirEGUmzN/N7Qwx0Zs+VJsABFaEvpLlixYm2?= =?utf-8?q?P4EjO0RHoBR0UNIbKMPk/Buf5FIorytdpTJRMjIRtIZWJtVeo3DFUKLiSALhvyMeW?= =?utf-8?q?PswaDww81p/iSbXuOXqiabBF6HGKZL4luyXMGBGcNxDEHWDhWLvTJB0ukjOYnw9D3?= =?utf-8?q?WKNIofDVbufyw7qwxVXlThMgSEHoXGUHRqSaJmQcLux67gjeSq/TPAJxD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nBR2F0tt?= =?utf-8?q?t3KI9e15J4raj+Dv6RjSFRiRNr7D1/2NCKEsB2AUDHp48IU72tcTQxrPH4wRedtlq?= =?utf-8?q?3ZZEntFWjahZWmP7rB//sAXzkf1vL0gWJduBWJJezoVLbBBkCkGWHAmz/Aopq/G45?= =?utf-8?q?Vogi6bZE/wp7XgxA0ej99a1pnr8UozHi/7Yc/ynSIs+cw8yAI3r0Xo+eLE1DKZQDx?= =?utf-8?q?ftZWAT7MqnZimFVEIz1NR2rw0q9xdIqMLkpUxzd8kVvkrqV/ubkvz+RLbiLeftc8K?= =?utf-8?q?atFbMjluTa9SrzfiBAJ60NwIZSdaeuzTngEN1JxI0j1IHUC0UFaMqTOfjLVwWRkuS?= =?utf-8?q?/Lnjr3WDKxaGXE1TeE4dLOU2tcJCkIwsnk8owACPGyvT11sHz5AkDWdzezGNUqDOS?= =?utf-8?q?KzsHzaPkTTIs?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 264e8227-3b95-4006-f8d4-08dc49158592 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:56.5798 (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: GtLY4CiU9xcb5rIqUagsIB8icaRUheG6gLtEQLK7tU2oYuzmn93gtUksyNKR+wovi3zkTItfXWnT7+B1o/538Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10176 Introduce the structures dpdmai_cmd_open to maintain consistency within the API calls of the driver. Signed-off-by: Frank Li --- drivers/dma/fsl-dpaa2-qdma/dpdmai.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c index 66a3953f0e3b1..610f6231835a8 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c +++ b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c @@ -33,6 +33,10 @@ struct dpdmai_rsp_get_tx_queue { __le32 fqid; }; +struct dpdmai_cmd_open { + __le32 dpdmai_id; +} __packed; + static inline u64 mc_enc(int lsoffset, int width, u64 val) { return (val & MAKE_UMASK64(width)) << lsoffset; @@ -58,16 +62,16 @@ static inline u64 mc_enc(int lsoffset, int width, u64 val) int dpdmai_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpdmai_id, u16 *token) { + struct dpdmai_cmd_open *cmd_params; struct fsl_mc_command cmd = { 0 }; - __le64 *cmd_dpdmai_id; int err; /* prepare command */ cmd.header = mc_encode_cmd_header(DPDMAI_CMDID_OPEN, cmd_flags, 0); - cmd_dpdmai_id = cmd.params; - *cmd_dpdmai_id = cpu_to_le32(dpdmai_id); + cmd_params = (struct dpdmai_cmd_open *)&cmd.params; + cmd_params->dpdmai_id = cpu_to_le32(dpdmai_id); /* send command to mc*/ err = mc_send_command(mc_io, &cmd); From patchwork Wed Mar 20 19:39:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13598137 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) (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 EA95585955 for ; Wed, 20 Mar 2024 19:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963605; cv=fail; b=QyOytIHuxSwRMmfDfX1sUQXxQ5ONbdSEswY/7l8wpulDyTadFIyjmg8v8rZ4wH0m+4yPrFxq0hmXzygUYduUFJPWFK9PIu4Km6SI0Y83FSl0SHPa2oaIu480JjuU1qaFgrm9ag/3koIRYPGV98UV76rEuGYP3hqw9k3e/zZqtwc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963605; c=relaxed/simple; bh=RD54fy6EvB5yA1cGot29fboTtdoZAtYLVbDbCQcCHEk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ccecWJ44swwVws90ihtaNWmULjZFLr3mxUA1TPjgzoaxEzlXmaiXlFBP110TQ13PyWgzAaaWWdVyCZH+74Q3dgoNCtvBiXjZ8d1Qcku8G5TFriGI78/6NVFx4W0jcO6KWS3lgnYLsajFdlMY4lBvx0PzNHwI2tOvK1sCc0dlaFc= 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=DOHFq484; arc=fail smtp.client-ip=40.107.21.62 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="DOHFq484" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IJqUWUoU5GMt4VyPZ3E5yqedcVUO1E6wyJJEDnH8mXr+m8XJyZ+PDChITBYNHOv7v8uz38xl7S56nTWCOD8xqHouQEX/gt2si5nviIjxkobd+34qwzeI1OfjI/vnZfiUaG45ni5F5kxBirByL3p3TcAoxbiio7YE0O2BQYkvOZ4QpKjwIQjey9mrIFYDoTv/sOk6fWPJgmWuJBPK7FXrInCNgfaL5mKiGboRdPt/ZJvjugYOilqi/XfD+E3ouRZPoZDp95/7FJ5Nn1tS0hpZEFq0wH1ym7LuusTLqyKffjHmHS1lbXatfy0A3oegYx3nrXlIhyG1KL6+O0lEe6p7YA== 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=TIZ6EwRFrxO5P85FAmjT2lH54p4aOD47pKj2tw1B83o=; b=WuP4X0wNmaAeRdmppZIguB2YdNOTEndzeQTgoRHmrY9PHFDCnbyxIMnr9ssGF0lrgfa7hlSnNoTf24p+cQmC74rEGLbH8lujDQQnqX0M1cNbPDDpS3/hpUDaN07GfWlGOINcD5COrO6zgwtHknOpjFsERCVrGwX84BtJCQZjRM1V3s3ZI1uwg3SQdBuZkQ3/hiQsun1sgFcx4JmThFDcDbGy039PdV5Ag/vdo1hQa1AEGJG1s+0MRXCOYTsYDbDxxAHz3WY/pbYr6Ljvar8IIn24ErjIeY1vxHaL9X3f9EFAtIWgvW4VQR8Z59BjoZDzc+uoyizHY0v8+wU57hkk3Q== 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=TIZ6EwRFrxO5P85FAmjT2lH54p4aOD47pKj2tw1B83o=; b=DOHFq4840yY3uQiHO+PDctb1QQibFqGlOLM78AsJ88yMwU45bVenwRCHs639Bj48KzbI+UDeeI6yRt+cgtPnkLDAZEtBfEMDCmYVUXhUsI8BQzzr+fMYOcJilZfEt3R8HENIJmrbCQe2VhcYf7vPQUmhzULZ6blh647ajgf7sxE= 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 VI0PR04MB10176.eurprd04.prod.outlook.com (2603:10a6:800:244::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.30; Wed, 20 Mar 2024 19:39:58 +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:58 +0000 From: Frank Li Date: Wed, 20 Mar 2024 15:39:22 -0400 Subject: [PATCH 4/4] dmaengine: fsl-dpaa2-qdma: Update DPDMAI interfaces to version 3 Message-Id: <20240320-dpaa2-v1-4-eb56e47c94ec@nxp.com> References: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> In-Reply-To: <20240320-dpaa2-v1-0-eb56e47c94ec@nxp.com> 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=13013; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=RD54fy6EvB5yA1cGot29fboTtdoZAtYLVbDbCQcCHEk=; b=8UOYoFU+8ub1i1EePtf+TM94DJSfqRZ3uMztyAeSlSOshqqnn/8h5930p0Vr1PycH7w1hdB7V SUrdW/JfWE+CxySawWxQddKsVZDwmDoTIy+dM0c4xGzxi4H4/HgBo5z 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_|VI0PR04MB10176:EE_ X-MS-Office365-Filtering-Correlation-Id: dd4c3187-3f25-4ad3-c151-08dc491586aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wBJaEFmk6wRF9u1hsTLiWcZPcVk8VVvtf2w1Gwyq/U0nX7mSoLlbO9YCCaDCAbou6IQF1aMIJaz4Ho1sI4MtP6yo1bXC9AeEM0YodrdNrztQmNYIGih8NK24vicQaXn6xuvG4Vn7hfUqNwc3VbZfegBk1vR6XV0QpAsuYalgjfrPyqun7IGqXivc+gmcm+C1SY67K5dm03sqkU12wyGO4oGpmGue2MgJe/rBEOC2PYCNnYKuZqBf0yO1hMiKD26W8gaGru67cfHYYB01ix0ukbNmzoFr1FiTHyeFJpBHOfa/bf9pkc/cJKoe1tCH1VxB5N6WXlSOsm9DKAF1ITJGFGMh5/u+Z08u/5S5H/7VzOaRCz10Hff+Gn+uGlDoONnAlVJCqe5MpTwAE5o8ar8I7QLY8q3z/yc5Cqj5hWwit+dL+Ks6riZg3UOZLYMnahZBPrpZ5Ea+PSLnTnb0P7dmALxv08QQTN51ooFnJgHMentuvkMIz2dJnPMXRaCqHbDU4OFVSInb3kNgQm8XtpWssifHwWjhrxbkycoqNdFf377Wonlj8+iE0WUazMMU9ZbOdkGqHJ4IGT4BMyO1+9GAdXRTES4xGTCm5KYhcsI5i3FB2KqLV5qOkvUmsBBtHqi6/6Rbm0DpyRIt1uZEGiTPmyl/uUboF5MbWDnggEVqn/CAy/Rsw+q/hy8Q0WpnqPWkkX9qC5+Yx9rnPIdHk1PMfYgSiN2ZrgJrxGvyuDeNWTM= 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)(1800799015)(52116005)(366007)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xnuJvtj/mbquQ63a71gAsHu+z9kq?= =?utf-8?q?bMaF6n90ynAo4cy+kZWXcDFJTNGy8a40E9reNMP3kQWBeu8MiQ6293w6XGTzlZW5y?= =?utf-8?q?juMWwf9pkubfE6jDTlLjlYCfIAv2mE2RD1Wxb3QSnRgiToFbxPsEY/lHlYQ26+JEK?= =?utf-8?q?IjPZti2evk/4/+D6PAIq6atSnPs28C+11uy/nEPoHvEl1q48p5l1PaFHwXTEY3hqB?= =?utf-8?q?efx5ZiEAa0T5W5sSJHzOOmGKrbeeel152o/KXaqApoJUkcInRC9IOC3N7YMghlaFe?= =?utf-8?q?xO4F/6TVT+YkC05wRudWa3EM1znGwWqlnAjVv4FYTlKs2pEdYCpxU6FcXgWLjhRRU?= =?utf-8?q?jiRaibZnZdPNhkKS2sWm4muVEHhCfSVpei0zi+gfB17RiyLEeyHR4Cv7gmXjN4EyG?= =?utf-8?q?qGf9v6hSPNMOpjUG4O70kiDKLMaaf3cfZb/SmgVPr8IiFVDo9YAAjk3+QgQ0QIlom?= =?utf-8?q?zadnm6X8ZKo3LXn75dXkBMRbQ2H64Qj/Ys87kajbw0K1FdIgmuRmBkiPOtx0hhRYR?= =?utf-8?q?9NtQSPX+2s/U/xgBEV8S3Vh1EYV2kXaFvIEbhaeMrnjgWuoX/7ki0SbqLpZ0CUpbt?= =?utf-8?q?h8hNvGEeXB0CSpFxFLHIabxx8i4AYzatvz8OMESogPbnPhAizPzqXt8ExJK0qqlPS?= =?utf-8?q?xwXRN4oHh+Fcfmd/6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-MS-Exchange-CrossTenant-Network-Message-Id: dd4c3187-3f25-4ad3-c151-08dc491586aa 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:58.4535 (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: DSZAlOL2icrH+OljIHKW9wHn6qunkWgH5KY1/s680Ya/R29unqoruf7SMh5oTRmbjoEBpw7+zl49pCToIjw8zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10176 Update the DPDMAI interfaces to support MC firmware up to 10.1x.x. Signed-off-by: Frank Li --- 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 | 53 ++++++++++++++++++++++++--------- drivers/dma/fsl-dpaa2-qdma/dpdmai.h | 35 ++++++++++++++-------- 4 files changed, 72 insertions(+), 35 deletions(-) diff --git a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c index 5a8061a307cda..36384d0192636 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c +++ b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c @@ -362,7 +362,7 @@ static int __cold dpaa2_qdma_setup(struct fsl_mc_device *ls_dev) for (i = 0; i < priv->num_pairs; i++) { err = dpdmai_get_rx_queue(priv->mc_io, 0, ls_dev->mc_handle, - i, &priv->rx_queue_attr[i]); + i, 0, &priv->rx_queue_attr[i]); if (err) { dev_err(dev, "dpdmai_get_rx_queue() failed\n"); goto exit; @@ -370,13 +370,13 @@ static int __cold dpaa2_qdma_setup(struct fsl_mc_device *ls_dev) ppriv->rsp_fqid = priv->rx_queue_attr[i].fqid; err = dpdmai_get_tx_queue(priv->mc_io, 0, ls_dev->mc_handle, - i, &priv->tx_fqid[i]); + i, 0, &priv->tx_queue_attr[i]); if (err) { dev_err(dev, "dpdmai_get_tx_queue() failed\n"); goto exit; } - ppriv->req_fqid = priv->tx_fqid[i]; - ppriv->prio = i; + ppriv->req_fqid = priv->tx_queue_attr[i].fqid; + ppriv->prio = DPAA2_QDMA_DEFAULT_PRIORITY; ppriv->priv = priv; ppriv++; } @@ -542,7 +542,7 @@ static int __cold dpaa2_dpdmai_bind(struct dpaa2_qdma_priv *priv) rx_queue_cfg.dest_cfg.dest_id = ppriv->nctx.dpio_id; rx_queue_cfg.dest_cfg.priority = ppriv->prio; err = dpdmai_set_rx_queue(priv->mc_io, 0, ls_dev->mc_handle, - rx_queue_cfg.dest_cfg.priority, + rx_queue_cfg.dest_cfg.priority, 0, &rx_queue_cfg); if (err) { dev_err(dev, "dpdmai_set_rx_queue() failed\n"); @@ -642,7 +642,7 @@ static int dpaa2_dpdmai_init_channels(struct dpaa2_qdma_engine *dpaa2_qdma) for (i = 0; i < dpaa2_qdma->n_chans; i++) { dpaa2_chan = &dpaa2_qdma->chans[i]; dpaa2_chan->qdma = dpaa2_qdma; - dpaa2_chan->fqid = priv->tx_fqid[i % num]; + dpaa2_chan->fqid = priv->tx_queue_attr[i % num].fqid; dpaa2_chan->vchan.desc_free = dpaa2_qdma_free_desc; vchan_init(&dpaa2_chan->vchan, &dpaa2_qdma->dma_dev); spin_lock_init(&dpaa2_chan->queue_lock); @@ -802,7 +802,7 @@ static void dpaa2_qdma_shutdown(struct fsl_mc_device *ls_dev) dpdmai_disable(priv->mc_io, 0, ls_dev->mc_handle); dpaa2_dpdmai_dpio_unbind(priv); dpdmai_close(priv->mc_io, 0, ls_dev->mc_handle); - dpdmai_destroy(priv->mc_io, 0, ls_dev->mc_handle); + dpdmai_destroy(priv->mc_io, 0, priv->dpqdma_id, ls_dev->mc_handle); } static const struct fsl_mc_device_id dpaa2_qdma_id_table[] = { diff --git a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.h b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.h index 03e2f4e0baca8..2c80077cb7c0a 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.h +++ b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.h @@ -6,6 +6,7 @@ #define DPAA2_QDMA_STORE_SIZE 16 #define NUM_CH 8 +#define DPAA2_QDMA_DEFAULT_PRIORITY 0 struct dpaa2_qdma_sd_d { u32 rsv:32; @@ -122,8 +123,8 @@ struct dpaa2_qdma_priv { struct dpaa2_qdma_engine *dpaa2_qdma; struct dpaa2_qdma_priv_per_prio *ppriv; - struct dpdmai_rx_queue_attr rx_queue_attr[DPDMAI_PRIO_NUM]; - u32 tx_fqid[DPDMAI_PRIO_NUM]; + struct dpdmai_rx_queue_attr rx_queue_attr[DPDMAI_MAX_QUEUE_NUM]; + struct dpdmai_tx_queue_attr tx_queue_attr[DPDMAI_MAX_QUEUE_NUM]; }; struct dpaa2_qdma_priv_per_prio { diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c index 610f6231835a8..7fbe925831b8b 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c +++ b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c @@ -1,42 +1,58 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright 2019 NXP +#include #include #include #include #include #include "dpdmai.h" +#define DEST_TYPE_MASK 0xF + struct dpdmai_rsp_get_attributes { __le32 id; u8 num_of_priorities; - u8 pad0[3]; + u8 num_of_queues; + u8 pad0[2]; __le16 major; __le16 minor; }; struct dpdmai_cmd_queue { __le32 dest_id; - u8 priority; - u8 queue; + u8 dest_priority; + union { + u8 queue; + u8 pri; + }; u8 dest_type; - u8 pad; + u8 queue_idx; __le64 user_ctx; union { __le32 options; __le32 fqid; }; -}; +} __packed; struct dpdmai_rsp_get_tx_queue { __le64 pad; __le32 fqid; }; +struct dpdmai_rsp_is_enabled { + /* only the LSB bit */ + u8 en; +} __packed; + struct dpdmai_cmd_open { __le32 dpdmai_id; } __packed; +struct dpdmai_cmd_destroy { + __le32 dpdmai_id; +} __packed; + static inline u64 mc_enc(int lsoffset, int width, u64 val) { return (val & MAKE_UMASK64(width)) << lsoffset; @@ -113,18 +129,23 @@ EXPORT_SYMBOL_GPL(dpdmai_close); * dpdmai_destroy() - Destroy the DPDMAI object and release all its resources. * @mc_io: Pointer to MC portal's I/O object * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @dpdmai_id: The object id; it must be a valid id within the container that created this object; * @token: Token of DPDMAI object * * Return: '0' on Success; error code otherwise. */ -int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) +int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u32 dpdmai_id, u16 token) { + struct dpdmai_cmd_destroy *cmd_params; struct fsl_mc_command cmd = { 0 }; /* prepare command */ cmd.header = mc_encode_cmd_header(DPDMAI_CMDID_DESTROY, cmd_flags, token); + cmd_params = (struct dpdmai_cmd_destroy *)&cmd.params; + cmd_params->dpdmai_id = cpu_to_le32(dpdmai_id); + /* send command to mc*/ return mc_send_command(mc_io, &cmd); } @@ -224,6 +245,7 @@ int dpdmai_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, attr->version.major = le16_to_cpu(rsp_params->major); attr->version.minor = le16_to_cpu(rsp_params->minor); attr->num_of_priorities = rsp_params->num_of_priorities; + attr->num_of_queues = rsp_params->num_of_queues; return 0; } @@ -240,7 +262,7 @@ EXPORT_SYMBOL_GPL(dpdmai_get_attributes); * * Return: '0' on Success; Error code otherwise. */ -int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, +int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u8 queue_idx, u8 priority, const struct dpdmai_rx_queue_cfg *cfg) { struct dpdmai_cmd_queue *cmd_params; @@ -252,11 +274,12 @@ int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, cmd_params = (struct dpdmai_cmd_queue *)cmd.params; cmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id); - cmd_params->priority = cfg->dest_cfg.priority; - cmd_params->queue = priority; + cmd_params->dest_priority = cfg->dest_cfg.priority; + cmd_params->pri = priority; cmd_params->dest_type = cfg->dest_cfg.dest_type; cmd_params->user_ctx = cpu_to_le64(cfg->user_ctx); cmd_params->options = cpu_to_le32(cfg->options); + cmd_params->queue_idx = queue_idx; /* send command to mc*/ return mc_send_command(mc_io, &cmd); @@ -274,7 +297,7 @@ EXPORT_SYMBOL_GPL(dpdmai_set_rx_queue); * * Return: '0' on Success; Error code otherwise. */ -int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, +int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u8 queue_idx, u8 priority, struct dpdmai_rx_queue_attr *attr) { struct dpdmai_cmd_queue *cmd_params; @@ -287,6 +310,7 @@ int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, cmd_params = (struct dpdmai_cmd_queue *)cmd.params; cmd_params->queue = priority; + cmd_params->queue_idx = queue_idx; /* send command to mc*/ err = mc_send_command(mc_io, &cmd); @@ -295,8 +319,8 @@ int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, /* retrieve response parameters */ attr->dest_cfg.dest_id = le32_to_cpu(cmd_params->dest_id); - attr->dest_cfg.priority = cmd_params->priority; - attr->dest_cfg.dest_type = cmd_params->dest_type; + attr->dest_cfg.priority = cmd_params->dest_priority; + attr->dest_cfg.dest_type = FIELD_GET(DEST_TYPE_MASK, cmd_params->dest_type); attr->user_ctx = le64_to_cpu(cmd_params->user_ctx); attr->fqid = le32_to_cpu(cmd_params->fqid); @@ -316,7 +340,7 @@ EXPORT_SYMBOL_GPL(dpdmai_get_rx_queue); * Return: '0' on Success; Error code otherwise. */ int dpdmai_get_tx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, - u16 token, u8 priority, u32 *fqid) + u16 token, u8 queue_idx, u8 priority, struct dpdmai_tx_queue_attr *attr) { struct dpdmai_rsp_get_tx_queue *rsp_params; struct dpdmai_cmd_queue *cmd_params; @@ -329,6 +353,7 @@ int dpdmai_get_tx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, cmd_params = (struct dpdmai_cmd_queue *)cmd.params; cmd_params->queue = priority; + cmd_params->queue_idx = queue_idx; /* send command to mc*/ err = mc_send_command(mc_io, &cmd); @@ -338,7 +363,7 @@ int dpdmai_get_tx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, /* retrieve response parameters */ rsp_params = (struct dpdmai_rsp_get_tx_queue *)cmd.params; - *fqid = le32_to_cpu(rsp_params->fqid); + attr->fqid = le32_to_cpu(rsp_params->fqid); return 0; } diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.h b/drivers/dma/fsl-dpaa2-qdma/dpdmai.h index 3f2db582509a1..1efca2a305334 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpdmai.h +++ b/drivers/dma/fsl-dpaa2-qdma/dpdmai.h @@ -5,14 +5,19 @@ #define __FSL_DPDMAI_H /* DPDMAI Version */ -#define DPDMAI_VER_MAJOR 2 -#define DPDMAI_VER_MINOR 2 +#define DPDMAI_VER_MAJOR 3 +#define DPDMAI_VER_MINOR 3 -#define DPDMAI_CMD_BASE_VERSION 0 +#define DPDMAI_CMD_BASE_VERSION 1 #define DPDMAI_CMD_ID_OFFSET 4 -#define DPDMAI_CMDID_FORMAT(x) (((x) << DPDMAI_CMD_ID_OFFSET) | \ - DPDMAI_CMD_BASE_VERSION) +/* + * Maximum number of Tx/Rx queues per DPDMAI object + */ +#define DPDMAI_MAX_QUEUE_NUM 8 + +#define DPDMAI_CMDID_FORMAT_V(x, v) (((x) << DPDMAI_CMD_ID_OFFSET) | (v)) +#define DPDMAI_CMDID_FORMAT(x) DPDMAI_CMDID_FORMAT_V(x, DPDMAI_CMD_BASE_VERSION) /* Command IDs */ #define DPDMAI_CMDID_CLOSE DPDMAI_CMDID_FORMAT(0x800) @@ -26,9 +31,9 @@ #define DPDMAI_CMDID_RESET DPDMAI_CMDID_FORMAT(0x005) #define DPDMAI_CMDID_IS_ENABLED DPDMAI_CMDID_FORMAT(0x006) -#define DPDMAI_CMDID_SET_RX_QUEUE DPDMAI_CMDID_FORMAT(0x1A0) -#define DPDMAI_CMDID_GET_RX_QUEUE DPDMAI_CMDID_FORMAT(0x1A1) -#define DPDMAI_CMDID_GET_TX_QUEUE DPDMAI_CMDID_FORMAT(0x1A2) +#define DPDMAI_CMDID_SET_RX_QUEUE DPDMAI_CMDID_FORMAT_V(0x1A0, 2) +#define DPDMAI_CMDID_GET_RX_QUEUE DPDMAI_CMDID_FORMAT_V(0x1A1, 2) +#define DPDMAI_CMDID_GET_TX_QUEUE DPDMAI_CMDID_FORMAT_V(0x1A2, 2) #define MC_CMD_HDR_TOKEN_O 32 /* Token field offset */ #define MC_CMD_HDR_TOKEN_S 16 /* Token field size */ @@ -64,6 +69,7 @@ * should be configured with 0 */ struct dpdmai_cfg { + u8 num_queues; u8 priorities[DPDMAI_PRIO_NUM]; }; @@ -85,6 +91,7 @@ struct dpdmai_attr { u16 minor; } version; u8 num_of_priorities; + u8 num_of_queues; }; /** @@ -149,20 +156,24 @@ struct dpdmai_rx_queue_attr { u32 fqid; }; +struct dpdmai_tx_queue_attr { + u32 fqid; +}; + int dpdmai_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpdmai_id, u16 *token); int dpdmai_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); -int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); +int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u32 dpdmai_id, u16 token); int dpdmai_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); int dpdmai_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); int dpdmai_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); int dpdmai_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, struct dpdmai_attr *attr); int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, - u8 priority, const struct dpdmai_rx_queue_cfg *cfg); + u8 queue_idx, u8 priority, const struct dpdmai_rx_queue_cfg *cfg); int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, - u8 priority, struct dpdmai_rx_queue_attr *attr); + u8 queue_idx, u8 priority, struct dpdmai_rx_queue_attr *attr); int dpdmai_get_tx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, - u16 token, u8 priority, u32 *fqid); + u16 token, u8 queue_idx, u8 priority, struct dpdmai_tx_queue_attr *attr); #endif /* __FSL_DPDMAI_H */