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>] [day] [month] [year] [list]
Date:   Wed, 27 Oct 2021 09:24:41 +0800
From:   Yi Wang <wang.yi59@....com.cn>
To:     stuyoder@...il.com
Cc:     laurentiu.tudor@....com, linux-kernel@...r.kernel.org,
        xue.zhihong@....com.cn, wang.yi59@....com.cn,
        wang.liang82@....com.cn,
        王业超10154425 
        <wang.yechao255@....com.cn>
Subject: [PATCH] bus: fsl-mc: Fix dma coherent not avaiable

From: 王业超10154425 <wang.yechao255@....com.cn>

Commit "a081bd4a" change the third argument of of_dma_configure_id,
from 1 to 0, and then the dpni cannot inherit the dma_coherent from
fsl-mc bus on fsl-lx2160a.

Signed-off-by: Wang Yechao <wang.yechao255@....com.cn>
Signed-off-by: Yi Wang <wang.yi59@....com.cn>
---
 drivers/bus/fsl-mc/fsl-mc-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c
index 8fd4a35..74dc47b 100644
--- a/drivers/bus/fsl-mc/fsl-mc-bus.c
+++ b/drivers/bus/fsl-mc/fsl-mc-bus.c
@@ -146,7 +146,7 @@ static int fsl_mc_dma_configure(struct device *dev)
 		dma_dev = dma_dev->parent;
 
 	if (dev_of_node(dma_dev))
-		return of_dma_configure_id(dev, dma_dev->of_node, 0, &input_id);
+		return of_dma_configure_id(dev, dma_dev->of_node, 1, &input_id);
 
 	return acpi_dma_configure_id(dev, DEV_DMA_COHERENT, &input_id);
 }
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ