Message ID | 20240307-sdma_upstream-v2-2-e97305a43cf5@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2063.outbound.protection.outlook.com [40.107.21.63]) (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 2030A131E28; Thu, 7 Mar 2024 17:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709832803; cv=fail; b=gIZ4yjinsjFe5adZfRUqkwM2++6fvqb8M6nxRVKwrWoyEfRDsTpZiD9gbpxZerOCTH6KPryxMkV9p2xsE+MUGR2OzxIJnwXDRrnlxsWHFw0WUybQSrjfixdu3Yjm0BWG6vGOFqfeqZHXV+vEfYhEcJz9M55jv7ltlrJ97wQHRpo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709832803; c=relaxed/simple; bh=aq2/ULP0Acqkl5nMyq60djlyfH/8ofMH5hwkVDWJ9JM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=WVo/AXexcw3qevEp0v+THmJoGF31VMUcbsiya8PEtDz3syu6k/fwTYGSA+MtnBIdeZmr75h1dl2lm3lesmQLIXFgJvELT1KUo0ooRbtHwo/+zSyDltnq/6f7CKxkJwun/BVhH9dOMZNeGSKbeNlwS0f4Z+vXMPEqecfTqAfYwEo= 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=PIKj2kD0; arc=fail smtp.client-ip=40.107.21.63 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="PIKj2kD0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AEzRHmAu5Oje3Tc72UHwMczc0sIPkj8424hqtAoBeADsjVXdZgkybx1vWD+CMU4lVdQTqjaqXDNpfVM969UeRPJHFBy3l+0rFVrABzTmGU/IFEWd42qEA6koQXiPxvqoYFa/qheXtprIo7R8JEqom8T+fVnXaWC/aG5Xd46mVtGjqmgmsTZCJIpjEDw6jFpYMJq6W7Rhj7XysXfjdD49FxrK3zqKVGNSoV0BxbxQQm76aQMHjQtg/Tncq19MkQYJOfGtgaPHI5WL7KdY+02tyH/1ctqQzaIKzBv2rHiMlFqXod4Khee2l7YGvF7Os1geDM4Z73re5BrykebJbJBdZg== 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=GroNJye/Yehgv2tou8mx9qaw1VtXSIYv09vStwtBzqQ=; b=BI/ftbIkCZFDMvteffGCJGIrGO+xaeyT/mF0Kj5K7HwCzfpDzWh155t2NDqbEp07WMrXAXkXAC19uVe9Uc8nXKagaqf8pSmZCKCMep1EF6Dat2f1JCHH+BGG+VqgfwxLPiKt0OJT4lRo9W5cWHf0gUSMG7VfVs8ahsJSmBb2oXwY9rQJqvNcxeUqTDyYkA6RWyT/gAv+y+j7S4dKrf9XDqXjoO6nhCjL5Rt3OrtDoWO+aJfq6GoKJcQYulHEs3KlQnGJx+5wAQttAw4eKpcDXwjvEDJ9oeBWAJiShuYQQtu4gSnVFzOixuezqECHMJPabrg7E32y0L81DY+6EyKC4A== 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=GroNJye/Yehgv2tou8mx9qaw1VtXSIYv09vStwtBzqQ=; b=PIKj2kD0qY4D/jdnZbWxJiADccOLuRQckyDfMV1MX2h08JhVaYjAusfmOoXA6w9W8MaY0+6wcu52Pm/fva7nnbp2+C8utO+YCDy17Dcix+6TQp42ot/ixCSrGmp/H3V6zGQT5k37n56WzFVANDfDTPyBZTqOLILERyvrcK6gyCo= 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 AM8PR04MB7794.eurprd04.prod.outlook.com (2603:10a6:20b:247::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.24; Thu, 7 Mar 2024 17:33:18 +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.7362.024; Thu, 7 Mar 2024 17:33:18 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Thu, 07 Mar 2024 12:32:42 -0500 Subject: [PATCH v2 2/4] dmaengine: imx-sdma: Support 24bit/3bytes for sg mode Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240307-sdma_upstream-v2-2-e97305a43cf5@nxp.com> References: <20240307-sdma_upstream-v2-0-e97305a43cf5@nxp.com> In-Reply-To: <20240307-sdma_upstream-v2-0-e97305a43cf5@nxp.com> To: Vinod Koul <vkoul@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com> Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li <Frank.Li@nxp.com>, Shengjiu Wang <shengjiu.wang@nxp.com>, Vipul Kumar <vipul_kumar@mentor.com>, Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>, Robin Gong <yibin.gong@nxp.com>, Joy Zou <joy.zou@nxp.com>, Daniel Baluta <daniel.baluta@nxp.com> X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709832785; l=1279; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=/ve4814/ESKVFolOyuQukJbgmItKlbc7RUUIpEOw+Jo=; b=oiSNAweI9pK5PjDsiEYAfea6educhkAluVrdg7wVZ6flvR/h2YaJrZsErH1nmDDhHei4VJP9V Tdtp/jdQxKtALbDb419l9RFE7cSsMuxk1CYAcAaStp/MsMVJVUSTDD+ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0065.namprd13.prod.outlook.com (2603:10b6:a03:2c4::10) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: <dmaengine.vger.kernel.org> List-Subscribe: <mailto:dmaengine+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:dmaengine+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM8PR04MB7794:EE_ X-MS-Office365-Filtering-Correlation-Id: f2473f0a-ae7e-4a1b-a87d-08dc3eccad1f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MgT584bJs0rJgBhSRx8KSgUDTlDzmTtHX2OUXjmSurLBI255gOHNAG9m5Qb2x4yD/pmNjdTzjUNrHRe8Ywf/KX3NGqenoQ166QCJ6BzqU8q0zH6/PPxli91AFmqoffrHIyTvqpG2pO4bQRq4+rFIUqH0AAD66zaIxXOW4IVGj7ZutDSjkzRSGqnQyr3JHItbkKZmrj/9AMrz2UV4YsijCJULIA/EbmsYkSRaWwPPbadp8uT8HYmHDPPtkoBqEbYl2Nsrg+7WILm7u5O5+YbAk3ilJ4IZvdWyudyLMaP2/F371YIuHMfAVxmrkeRGFrJwA4Edec7VaU6XMC3Y5Edtg+KRaKPf5SP9HrPGkZmkFqjUdecFUv48HfxvtkG6J/kfpWeOCk6zJmR7X34UWQ8PPl5R/VSJ0kxRl1AKSjvKaPd8LXwGAVTIpt6BK9qM6ROcWTITxY+5mI85qtbk2UYTcljy24IPAiya6dN3J6wKWAGlcfSwXHthKi2opLtl9EjGmjOGIYxg7wKbRNUMxaeOr6yKhuExsN5SkFiwoIsJ95RPURG75UFnXdYhTi5Ta4XulAUKiVhK05uX/HdZxuvKFioxZ1rj8c+akTN/aRnpar434JK3rEjpD8bpqepCAtP1PYy3a23H93hyPPNg2Ij1PGP0zC0uCeMXpcUyh3WWQFxYkN2ONTbZzDlXIna83yADJAQmrBkRbzmYAlzULmK/B1NrE2SRjwQPpccqQo0HlK4= 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)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0Yd8S82RyUsGMI5BgwiYnt58I6iy?= =?utf-8?q?18j8Ne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I9OdlzeE/oiUGCAurBccAC0YCHHA1odV/plGetLNKXQZq5KyiLII1CxkchFlm?= =?utf-8?q?3CcBO6hqYv5Gn2Jk5WCiONhAjn3AZ3zrMcRZJXPlRCNAKZC/K838zHiHYR7HR1mhx?= =?utf-8?q?ex+2jpGIfy131BZIWBliDfTfHQ74WwsO6DVWXhA4Kno4RUqoaNxe2TOwbfHc3Yay5?= =?utf-8?q?cDUZzs+tZZyg7m+2xWk3kl74O+h3qFL9PBgEPNF4+CTHwUpK+8OMdbI8eU85j9/Fb?= =?utf-8?q?KnJXeSUAtm1V6XoqJWqasGilUA5+VKWtIW7G3ey5THpVmvhIF8wslTDjQKw/PrKqW?= =?utf-8?q?RGhEBIzDIcHOtaA6XuBlJ3YrkvhheVq1g51L4m3lP9DHmiAFQJOh73OKKGkkBN+lz?= =?utf-8?q?VIyZFkZDpn3yMM8Csd4A3BjPmbl8Mkjqg/YA3bbBHan0mfmg1ru1YSFyuXec2FAHR?= =?utf-8?q?ghNridNRwO0jqKjDPF9Ausz+qInynDKZjitgpFsP0E0GWDFNpTFSvHqzAF3AOdkJo?= =?utf-8?q?THgDkHCG1JWMHbtVdfyBwAc6ICiw5cnkBD0L7h6ltFeZFAWldL3HUrH0nNG+Ca9C2?= =?utf-8?q?GYPtusGOnfEo2cnTVSq8+Z/hYRWl+ixltth2Wwk5LjRsdBHHwPEBmKnpKuc/OONoJ?= =?utf-8?q?Arxl54UAfTmy?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2473f0a-ae7e-4a1b-a87d-08dc3eccad1f X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 17:33:18.1354 (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: 9g1pEho6wjENpIbklSP1JJJiRywSbvdyNvNIr+Z6yO8koPSS2A8jh1mkcNHYcdW3ORcjAjkzgIEDpgRMTPIxow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7794 |
Series |
dmaengine: fsl-sdma: Some improvement for fsl-sdma
|
expand
|
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 4f1a9d1b152d6..6be4c1e441266 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -176,6 +176,7 @@ #define SDMA_DMA_BUSWIDTHS (BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | \ BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) | \ + BIT(DMA_SLAVE_BUSWIDTH_3_BYTES) | \ BIT(DMA_SLAVE_BUSWIDTH_4_BYTES)) #define SDMA_DMA_DIRECTIONS (BIT(DMA_DEV_TO_MEM) | \ @@ -1658,6 +1659,9 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg( if (count & 3 || sg->dma_address & 3) goto err_bd_out; break; + case DMA_SLAVE_BUSWIDTH_3_BYTES: + bd->mode.command = 3; + break; case DMA_SLAVE_BUSWIDTH_2_BYTES: bd->mode.command = 2; if (count & 1 || sg->dma_address & 1)