Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1367489 > unrolled thread
| Started by | Gregory CLEMENT <gregory.clement@free-electrons.com> |
|---|---|
| First post | 2016-03-30 19:40 +0200 |
| Last post | 2016-03-30 19:40 +0200 |
| Articles | 3 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/5] Add XOR engine support to Armada 3700 SoC (ARM64) Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-03-30 19:40 +0200
[PATCH 1/5] dmaengine: mv_xor: make the code 64 bits compliant Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-03-30 19:40 +0200
[PATCH 4/5] dmaengine: mv_xor: Allow selecting mv_xor for mvebu only compatible SoC Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-03-30 19:40 +0200
| From | Gregory CLEMENT <gregory.clement@free-electrons.com> |
|---|---|
| Date | 2016-03-30 19:40 +0200 |
| Subject | [PATCH 0/5] Add XOR engine support to Armada 3700 SoC (ARM64) |
| Message-ID | <risg1-jV-11@gated-at.bofh.it> |
Hi,
This series adds the support of the Marvell XOR engine to the Armada
3700 SoC. As this SoC is an ARM64 one, then the code has been fixed to
support the 64 bits platform.
The initialization for the Armada 3700 is different from the other
SoCs, so in order to support it, a new way of handling the different
family have been added.
Once the dmaengine part will be approved, I will apply the dts part
in the mvebu/dt64 tree.
Thanks,
Gregory
Gregory CLEMENT (3):
dmaengine: mv_xor: make the code 64 bits compliant
dmaengine: mv_xor: use SoC type instead of directly the operation mode
dmaengine: mv_xor: Allow selecting mv_xor for mvebu only compatible
SoC
Marcin Wojtas (2):
dmaengine: mv_xor: add support for Armada 3700 SoC
arm64: dts: marvell: add XOR node for Armada 3700 SoC
Documentation/devicetree/bindings/dma/mv-xor.txt | 3 +-
arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 13 ++++
drivers/dma/Kconfig | 2 +-
drivers/dma/mv_xor.c | 98 +++++++++++++++++++-----
drivers/dma/mv_xor.h | 1 +
5 files changed, 95 insertions(+), 22 deletions(-)
--
2.5.0
[toc] | [next] | [standalone]
| From | Gregory CLEMENT <gregory.clement@free-electrons.com> |
|---|---|
| Date | 2016-03-30 19:40 +0200 |
| Subject | [PATCH 1/5] dmaengine: mv_xor: make the code 64 bits compliant |
| Message-ID | <risg3-jV-27@gated-at.bofh.it> |
| In reply to | #1367489 |
Fix two warnings which appear when building for 64 bits target. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> --- drivers/dma/mv_xor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 3922a5d56806..a6ec82776cbc 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -477,7 +477,7 @@ mv_xor_prep_dma_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, BUG_ON(len > MV_XOR_MAX_BYTE_COUNT); dev_dbg(mv_chan_to_devp(mv_chan), - "%s src_cnt: %d len: %u dest %pad flags: %ld\n", + "%s src_cnt: %d len: %zu dest %pad flags: %ld\n", __func__, src_cnt, len, &dest, flags); sw_desc = mv_chan_alloc_slot(mv_chan); @@ -1220,7 +1220,7 @@ static int mv_xor_probe(struct platform_device *pdev) struct mv_xor_chan *chan; dma_cap_mask_t cap_mask; int irq; - op_in_desc = (int)of_id->data; + op_in_desc = (uintptr_t)of_id->data; if (i >= max_channels) continue; -- 2.5.0
[toc] | [prev] | [next] | [standalone]
| From | Gregory CLEMENT <gregory.clement@free-electrons.com> |
|---|---|
| Date | 2016-03-30 19:40 +0200 |
| Subject | [PATCH 4/5] dmaengine: mv_xor: Allow selecting mv_xor for mvebu only compatible SoC |
| Message-ID | <risg3-jV-29@gated-at.bofh.it> |
| In reply to | #1367489 |
Armada 3700 SoC uses the mv_xor driver but don't select anymore the PLAT_ORION symbol. This commit extends the dependency of the mv_xor driver to the more modern SoCs only compatible with ARCH_MVEBU, which allows using it with the Armada 3700 SoC. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index d96d87c56f2e..cdc50c2c172f 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -332,7 +332,7 @@ config MPC512X_DMA config MV_XOR bool "Marvell XOR engine support" - depends on PLAT_ORION + depends on PLAT_ORION || ARCH_MVEBU select DMA_ENGINE select DMA_ENGINE_RAID select ASYNC_TX_ENABLE_CHANNEL_SWITCH -- 2.5.0
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web