Skip to contentSkip to conversation

R8A7779/Marzen: HPB-DMAC support for SDHI0

PATCH Superseded Sergei Shtylyov 2 participants 12 messages Aug 25, 2013 – Sep 27, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover R8A7779/Marzen: HPB-DMAC support for SDHI0

Hello.

Here's the set of 2 patches against the Simon Horman's 'renesas.git' repo,
'renesas-devel-20130823' tag. Here we add the HPB-DMAC platform code working on R8A7779 and enable DMA for SDHI0 on Marzen. The patchset depends on the R-Car HPB-DMAC driver patch posted earlier.

[1/2] ARM: shmobile: r8a7779: add HPB-DMAC support [2/2] ARM: shmobile: Marzen: enable DMA for SDHI0

WBR, Sergei

#1 lore raw

PATCH v2 1/2 ARM: shmobile: r8a7779: add HPB-DMAC support

From: Max Filippov <[email protected]>

Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel configurations (only for SDHI0 so far).

[Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, removed SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and ASYNCMDR.ASMD{20|24|43} fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' prefix to match the driver, moved comments after the element initializers of hpb_dmae_channels[].]

---
Changes in version 2:
- renamed all the bit/field/value #define's to include 'HBP_DMAE_' prefix to match the driver;
- added #define's for MMC[01] related fields of the ASYNCMDR register.

 arch/arm/mach-shmobile/include/mach/r8a7779.h |    7 +
 arch/arm/mach-shmobile/setup-r8a7779.c        |  154 ++++++++++++++++++++++++++
 2 files changed, 161 insertions(+)
arch/arm/mach-shmobile/include/mach/r8a7779.h +7 -0
Index: renesas/arch/arm/mach-shmobile/include/mach/r8a7779.h
===================================================================
@@ -5,6 +5,13 @@
 #include <linux/pm_domain.h>
 #include <linux/sh_eth.h>
 
+/* HPB-DMA slave IDs */
+enum {
+	HPBDMA_SLAVE_DUMMY,
+	HPBDMA_SLAVE_SDHI0_TX,
+	HPBDMA_SLAVE_SDHI0_RX,
+};
+
 struct platform_device;
 
 struct r8a7779_pm_ch {
arch/arm/mach-shmobile/setup-r8a7779.c +154 -0

172 lines not on this page · raw message

#2 lore raw

PATCH v2 1/2 ARM: shmobile: r8a7779: add HPB-DMAC support

Quoted 22 lines · Sergei Shtylyov

From: Max Filippov <[email protected]>

Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel configurations (only for SDHI0 so far).

[Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, removed SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and ASYNCMDR.ASMD{20|24|43} fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' prefix to match the driver, moved comments after the element initializers of hpb_dmae_channels[].]

---
Changes in version 2:
- renamed all the bit/field/value #define's to include 'HBP_DMAE_' prefix to match the driver;
- added #define's for MMC[01] related fields of the ASYNCMDR register.

Quoted 3 lines
 arch/arm/mach-shmobile/include/mach/r8a7779.h |    7 +
 arch/arm/mach-shmobile/setup-r8a7779.c        |  154 ++++++++++++++++++++++++++
 2 files changed, 161 insertions(+)

Thanks, queued up for v3.13.

#3 lore raw

PATCH v2 2/2 ARM: shmobile: Marzen: enable DMA for SDHI0

In reply to Sergei Shtylyov

From: Max Filippov <[email protected]>

Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver.

[Sergei: removed #include <mach/dma.h>]

---
Changes in version 2:
- refreshed the patch.

 arch/arm/mach-shmobile/board-marzen.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-shmobile/board-marzen.c +2 -0
Index: renesas/arch/arm/mach-shmobile/board-marzen.c
===================================================================
@@ -123,6 +123,8 @@ static struct resource sdhi0_resources[]
 };
 
 static struct sh_mobile_sdhi_info sdhi0_platform_data = {
+	.dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX,
+	.dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX,
 	.tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT,
 	.tmio_caps = MMC_CAP_SD_HIGHSPEED,
 };
#4 lore raw

PATCH v2 2/2 ARM: shmobile: Marzen: enable DMA for SDHI0

[ Cc: Guennadi Liakhovetski ]

Quoted 21 lines · Sergei Shtylyov

From: Max Filippov <[email protected]>

Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver.

[Sergei: removed #include <mach/dma.h>]

---
Changes in version 2:
- refreshed the patch.

 arch/arm/mach-shmobile/board-marzen.c |    2 ++
 1 file changed, 2 insertions(+)

Index: renesas/arch/arm/mach-shmobile/board-marzen.c
===================================================================

arch/arm/mach-shmobile/board-marzen.c static struct resource sdhi0_resources[] · line 130

Quoted 8 lines
arch/arm/mach-shmobile/board-marzen.c +2 -0
@@ -123,6 +123,8 @@ static struct resource sdhi0_resources[]
 };
 
 static struct sh_mobile_sdhi_info sdhi0_platform_data = {
+	.dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX,
+	.dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX,
 	.tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT,
 	.tmio_caps = MMC_CAP_SD_HIGHSPEED,
 };

Hi,

I am intending to queue up this change for v3.13.

I am wondering if you could give me some details of dependencies of this change on the previous patch. If possible I would
like to apply this patch in a branch that does not include the previous patch.

Also, could you provide a patch to update the marzen defconfig?

Lastly, the driver does not seem to compile as it makes use of shdma_free_irq() which was removed by Guennadi in c1c63a14f4f2419d ("DMA: shdma: switch to managed resource allocation").

#5 lore raw

PATCH v2 2/2 ARM: shmobile: Marzen: enable DMA for SDHI0

Hello.

Quoted 34 lines · Simon Horman

[ Cc: Guennadi Liakhovetski ]

Quoted 21 lines

From: Max Filippov <[email protected]>

Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver.

[Sergei: removed #include <mach/dma.h>]

---
Changes in version 2:
- refreshed the patch.

  arch/arm/mach-shmobile/board-marzen.c |    2 ++
  1 file changed, 2 insertions(+)

Index: renesas/arch/arm/mach-shmobile/board-marzen.c
===================================================================

arch/arm/mach-shmobile/board-marzen.c static struct resource sdhi0_resources[] · line 130

Quoted 8 lines
arch/arm/mach-shmobile/board-marzen.c +2 -0
@@ -123,6 +123,8 @@ static struct resource sdhi0_resources[]
  };
 
  static struct sh_mobile_sdhi_info sdhi0_platform_data = {
+	.dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX,
+	.dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX,
  	.tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT,
  	.tmio_caps = MMC_CAP_SD_HIGHSPEED,
  };

Hi,

Quoted 1 line

I am intending to queue up this change for v3.13.

Thanks in advance. :-)

Quoted 3 lines

I am wondering if you could give me some details of dependencies of this change on the previous patch. If possible I would
like to apply this patch in a branch that does not include the previous patch.

HPBDMA_SLAVE_* are defined there. I'm afraid it's not possible to apply
this patch separately.

Quoted 1 line

Also, could you provide a patch to update the marzen defconfig?

Yes, I intended to.

Quoted 3 lines

Lastly, the driver does not seem to compile as it makes use of shdma_free_irq() which was removed by Guennadi in c1c63a14f4f2419d ("DMA: shdma: switch to managed resource allocation").

Thanks for the information, I wasn't aware of that.

WBR, Sergei

#6 lore raw

PATCH v2 2/2 ARM: shmobile: Marzen: enable DMA for SDHI0

In reply to Sergei Shtylyov
Quoted 8 lines · Sergei Shtylyov

From: Max Filippov <[email protected]>

Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver.

[Sergei: removed #include <mach/dma.h>]

Thanks, queued up for v3.13.

Please send along a defconfig update as you mentioned you would yesterday.

Thanks.

#7 lore raw

v2 cover R8A7779/Marzen: HPB-DMAC support for SDHI0

In reply to Sergei Shtylyov
Quoted 9 lines · Sergei Shtylyov

Hello.

Here's the set of 2 patches against the Simon Horman's 'renesas.git' repo,
'renesas-devel-20130823' tag. Here we add the HPB-DMAC platform code working on R8A7779 and enable DMA for SDHI0 on Marzen. The patchset depends on the R-Car HPB-DMAC driver patch posted earlier.

[1/2] ARM: shmobile: r8a7779: add HPB-DMAC support [2/2] ARM: shmobile: Marzen: enable DMA for SDHI0

Hi Sergei,

have those patches been merged?
If so, do you expect them to appear in v3.12-rc1?

#8 lore raw

v2 cover R8A7779/Marzen: HPB-DMAC support for SDHI0

Hello.

Quoted 11 lines · Simon Horman
Quoted 7 lines

Here's the set of 2 patches against the Simon Horman's 'renesas.git' repo,
'renesas-devel-20130823' tag. Here we add the HPB-DMAC platform code working on R8A7779 and enable DMA for SDHI0 on Marzen. The patchset depends on the R-Car HPB-DMAC driver patch posted earlier.

[1/2] ARM: shmobile: r8a7779: add HPB-DMAC support [2/2] ARM: shmobile: Marzen: enable DMA for SDHI0

Hi Sergei,

have those patches been merged?

No. The driver they depend on hasn't been merged yet.

Quoted 1 line

If so, do you expect them to appear in v3.12-rc1?

I'm not sure what to expect at this point...

WBR, Sergei

#9 lore raw

v2 cover R8A7779/Marzen: HPB-DMAC support for SDHI0

Quoted 14 lines · Sergei Shtylyov

Hello.

Quoted 9 lines · Simon Horman
Quoted 7 lines

Here's the set of 2 patches against the Simon Horman's 'renesas.git' repo,
'renesas-devel-20130823' tag. Here we add the HPB-DMAC platform code working on R8A7779 and enable DMA for SDHI0 on Marzen. The patchset depends on the R-Car HPB-DMAC driver patch posted earlier.

[1/2] ARM: shmobile: r8a7779: add HPB-DMAC support [2/2] ARM: shmobile: Marzen: enable DMA for SDHI0

Hi Sergei,

Quoted 7 lines
Quoted 1 line

have those patches been merged?

No. The driver they depend on hasn't been merged yet.

Quoted 1 line

If so, do you expect them to appear in v3.12-rc1?

I'm not sure what to expect at this point...

Thanks, I understand.

I think that the best thing would be for you to repost this series once the dependencies have been merge and are available in a stable branch.

#10 lore raw

v2 cover R8A7779/Marzen: HPB-DMAC support for SDHI0

Hello.

Quoted 16 lines · Simon Horman
Quoted 15 lines
Quoted 11 lines
Quoted 7 lines

Here's the set of 2 patches against the Simon Horman's 'renesas.git' repo,
'renesas-devel-20130823' tag. Here we add the HPB-DMAC platform code working on R8A7779 and enable DMA for SDHI0 on Marzen. The patchset depends on the R-Car HPB-DMAC driver patch posted earlier.

[1/2] ARM: shmobile: r8a7779: add HPB-DMAC support [2/2] ARM: shmobile: Marzen: enable DMA for SDHI0

Hi Sergei,

have those patches been merged?

No. The driver they depend on hasn't been merged yet.

Quoted 1 line

If so, do you expect them to appear in v3.12-rc1?

Quoted 7 lines
Quoted 1 line

I'm not sure what to expect at this point...

Thanks, I understand.

I think that the best thing would be for you to repost this series once the dependencies have been merge and are available in a stable branch.

The driver have been merged by Vinod Koul but I'm not sure which of his
branches qualify as stable (his 'next' branch seems to imply non-fast forward updates).

WBR, Sergei

#11 lore raw

v2 cover R8A7779/Marzen: HPB-DMAC support for SDHI0

Quoted 24 lines · Sergei Shtylyov

Hello.

Quoted 19 lines · Simon Horman
Quoted 10 lines
Quoted 9 lines
Quoted 7 lines

Here's the set of 2 patches against the Simon Horman's 'renesas.git' repo,
'renesas-devel-20130823' tag. Here we add the HPB-DMAC platform code working on R8A7779 and enable DMA for SDHI0 on Marzen. The patchset depends on the R-Car HPB-DMAC driver patch posted earlier.

[1/2] ARM: shmobile: r8a7779: add HPB-DMAC support [2/2] ARM: shmobile: Marzen: enable DMA for SDHI0

Hi Sergei,

Quoted 7 lines
Quoted 1 line

have those patches been merged?

No. The driver they depend on hasn't been merged yet.

Quoted 1 line

If so, do you expect them to appear in v3.12-rc1?

I'm not sure what to expect at this point...

Thanks, I understand.

Quoted 7 lines
Quoted 3 lines

I think that the best thing would be for you to repost this series once the dependencies have been merge and are available in a stable branch.

The driver have been merged by Vinod Koul but I'm not sure which
of his branches qualify as stable (his 'next' branch seems to imply non-fast forward updates).

Thanks Sergei,

if it is in next at this stage then we should be able to assume that it will appear in v3.12-rc1 and we can use that as a base once it is available.