lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <AS4PR04MB938698DAB8515A56CA6887B6E1202@AS4PR04MB9386.eurprd04.prod.outlook.com>
Date: Thu, 7 Mar 2024 09:05:25 +0000
From: Joy Zou <joy.zou@....com>
To: Frank Li <frank.li@....com>, Vinod Koul <vkoul@...nel.org>, Shawn Guo
	<shawnguo@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>, Pengutronix
 Kernel Team <kernel@...gutronix.de>, Fabio Estevam <festevam@...il.com>,
	dl-linux-imx <linux-imx@....com>
CC: "dmaengine@...r.kernel.org" <dmaengine@...r.kernel.org>,
	"linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "imx@...ts.linux.dev" <imx@...ts.linux.dev>,
	"S.J. Wang" <shengjiu.wang@....com>, Vipul Kumar <vipul_kumar@...tor.com>,
	Srikanth Krishnakar <Srikanth_Krishnakar@...tor.com>, Robin Gong
	<yibin.gong@....com>
Subject: RE: [PATCH 2/4] dmaengine: imx-sdma: Support 24bit/3bytes for sg mode


> -----Original Message-----
> From: Frank Li <frank.li@....com>
> Sent: 2024年3月4日 12:33
> To: Vinod Koul <vkoul@...nel.org>; Shawn Guo <shawnguo@...nel.org>;
> Sascha Hauer <s.hauer@...gutronix.de>; Pengutronix Kernel Team
> <kernel@...gutronix.de>; Fabio Estevam <festevam@...il.com>;
> dl-linux-imx <linux-imx@....com>
> Cc: dmaengine@...r.kernel.org; linux-arm-kernel@...ts.infradead.org;
> linux-kernel@...r.kernel.org; imx@...ts.linux.dev; Frank Li
> <frank.li@....com>; S.J. Wang <shengjiu.wang@....com>; Vipul Kumar
> <vipul_kumar@...tor.com>; Srikanth Krishnakar
> <Srikanth_Krishnakar@...tor.com>; Robin Gong <yibin.gong@....com>
> Subject: [PATCH 2/4] dmaengine: imx-sdma: Support 24bit/3bytes for sg
> mode
> 
> From: Shengjiu Wang <shengjiu.wang@....com>
> 
> Update 3bytes buswidth that is supported by sdma.
> 
> Signed-off-by: Shengjiu Wang <shengjiu.wang@....com>
> Signed-off-by: Vipul Kumar <vipul_kumar@...tor.com>
> Signed-off-by: Srikanth Krishnakar <Srikanth_Krishnakar@...tor.com>
> Acked-by: Robin Gong <yibin.gong@....com>
> Signed-off-by: Frank Li <Frank.Li@....com>
Reviewed-by: Joy Zou <joy.zou@....com>
BR
Joy Zou
> ---
>  drivers/dma/imx-sdma.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index
> 9a6d8f1e9ff63..ef45420485dac 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) | \
> @@ -1659,6 +1660,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)
> 
> --
> 2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ