[PATCH 2/7] dmaengine: ste_dma40: use writel_relaxed for lcxa

2012-12-12 Thread Fabio Baltieri
From: Per Forlin 

lcpa and lcla are written often and the cache_sync() overhead in writel
is costly, especially for wlan where every single network packet (in RX
mode) corresponds to a separate DMA transfer.

Signed-off-by: Per Forlin 
Reviewed-by: Narayanan Gopalakrishnan 
Reviewed-by: Rabin Vincent 
Acked-by: Linus Walleij 
Signed-off-by: Fabio Baltieri 
---
 drivers/dma/ste_dma40_ll.c | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/dma/ste_dma40_ll.c b/drivers/dma/ste_dma40_ll.c
index 536e848..c0781ae 100644
--- a/drivers/dma/ste_dma40_ll.c
+++ b/drivers/dma/ste_dma40_ll.c
@@ -332,10 +332,10 @@ void d40_log_lli_lcpa_write(struct d40_log_lli_full *lcpa,
 {
d40_log_lli_link(lli_dst, lli_src, next, flags);
 
-   writel(lli_src->lcsp02, [0].lcsp0);
-   writel(lli_src->lcsp13, [0].lcsp1);
-   writel(lli_dst->lcsp02, [0].lcsp2);
-   writel(lli_dst->lcsp13, [0].lcsp3);
+   writel_relaxed(lli_src->lcsp02, [0].lcsp0);
+   writel_relaxed(lli_src->lcsp13, [0].lcsp1);
+   writel_relaxed(lli_dst->lcsp02, [0].lcsp2);
+   writel_relaxed(lli_dst->lcsp13, [0].lcsp3);
 }
 
 void d40_log_lli_lcla_write(struct d40_log_lli *lcla,
@@ -345,10 +345,10 @@ void d40_log_lli_lcla_write(struct d40_log_lli *lcla,
 {
d40_log_lli_link(lli_dst, lli_src, next, flags);
 
-   writel(lli_src->lcsp02, [0].lcsp02);
-   writel(lli_src->lcsp13, [0].lcsp13);
-   writel(lli_dst->lcsp02, [1].lcsp02);
-   writel(lli_dst->lcsp13, [1].lcsp13);
+   writel_relaxed(lli_src->lcsp02, [0].lcsp02);
+   writel_relaxed(lli_src->lcsp13, [0].lcsp13);
+   writel_relaxed(lli_dst->lcsp02, [1].lcsp02);
+   writel_relaxed(lli_dst->lcsp13, [1].lcsp13);
 }
 
 static void d40_log_fill_lli(struct d40_log_lli *lli,
-- 
1.7.12.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/7] dmaengine: ste_dma40: use writel_relaxed for lcxa

2012-12-12 Thread Fabio Baltieri
From: Per Forlin per.for...@stericsson.com

lcpa and lcla are written often and the cache_sync() overhead in writel
is costly, especially for wlan where every single network packet (in RX
mode) corresponds to a separate DMA transfer.

Signed-off-by: Per Forlin per.for...@stericsson.com
Reviewed-by: Narayanan Gopalakrishnan narayanan.gopalakrish...@stericsson.com
Reviewed-by: Rabin Vincent rabin.vinc...@stericsson.com
Acked-by: Linus Walleij linus.wall...@linaro.org
Signed-off-by: Fabio Baltieri fabio.balti...@linaro.org
---
 drivers/dma/ste_dma40_ll.c | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/dma/ste_dma40_ll.c b/drivers/dma/ste_dma40_ll.c
index 536e848..c0781ae 100644
--- a/drivers/dma/ste_dma40_ll.c
+++ b/drivers/dma/ste_dma40_ll.c
@@ -332,10 +332,10 @@ void d40_log_lli_lcpa_write(struct d40_log_lli_full *lcpa,
 {
d40_log_lli_link(lli_dst, lli_src, next, flags);
 
-   writel(lli_src-lcsp02, lcpa[0].lcsp0);
-   writel(lli_src-lcsp13, lcpa[0].lcsp1);
-   writel(lli_dst-lcsp02, lcpa[0].lcsp2);
-   writel(lli_dst-lcsp13, lcpa[0].lcsp3);
+   writel_relaxed(lli_src-lcsp02, lcpa[0].lcsp0);
+   writel_relaxed(lli_src-lcsp13, lcpa[0].lcsp1);
+   writel_relaxed(lli_dst-lcsp02, lcpa[0].lcsp2);
+   writel_relaxed(lli_dst-lcsp13, lcpa[0].lcsp3);
 }
 
 void d40_log_lli_lcla_write(struct d40_log_lli *lcla,
@@ -345,10 +345,10 @@ void d40_log_lli_lcla_write(struct d40_log_lli *lcla,
 {
d40_log_lli_link(lli_dst, lli_src, next, flags);
 
-   writel(lli_src-lcsp02, lcla[0].lcsp02);
-   writel(lli_src-lcsp13, lcla[0].lcsp13);
-   writel(lli_dst-lcsp02, lcla[1].lcsp02);
-   writel(lli_dst-lcsp13, lcla[1].lcsp13);
+   writel_relaxed(lli_src-lcsp02, lcla[0].lcsp02);
+   writel_relaxed(lli_src-lcsp13, lcla[0].lcsp13);
+   writel_relaxed(lli_dst-lcsp02, lcla[1].lcsp02);
+   writel_relaxed(lli_dst-lcsp13, lcla[1].lcsp13);
 }
 
 static void d40_log_fill_lli(struct d40_log_lli *lli,
-- 
1.7.12.1

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/