All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF
@ 2012-06-19  2:23 Kuninori Morimoto
  2012-06-19  4:36 ` Tetsuyuki Kobayashi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2012-06-19  2:23 UTC (permalink / raw)
  To: linux-sh

It is possible to reduce CPU load if MMCIF used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/arm/mach-shmobile/board-kzm9g.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index d2feee1..ba80e72 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -197,6 +197,8 @@ static struct resource sh_mmcif_resources[] = {
 static struct sh_mmcif_plat_data sh_mmcif_platdata = {
 	.ocr		= MMC_VDD_165_195,
 	.caps		= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
+	.slave_id_tx	= SHDMA_SLAVE_MMCIF_TX,
+	.slave_id_rx	= SHDMA_SLAVE_MMCIF_RX,
 };
 
 static struct platform_device mmc_device = {
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF
  2012-06-19  2:23 [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF Kuninori Morimoto
@ 2012-06-19  4:36 ` Tetsuyuki Kobayashi
  2012-06-19  4:59 ` Kuninori Morimoto
  2012-06-19  8:26 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Tetsuyuki Kobayashi @ 2012-06-19  4:36 UTC (permalink / raw)
  To: linux-sh

Hi, morimoto-san

After applying this patch, I can mount and read/write to eMMC.
Is it enough to test?
Or how do I know DMAEngine is working properly?


(2012/06/19 11:23), Kuninori Morimoto wrote:
> It is possible to reduce CPU load if MMCIF used DMAEngine.
> This patch enabled it.
>
> Signed-off-by: Kuninori Morimoto<kuninori.morimoto.gx@renesas.com>
> ---
>   arch/arm/mach-shmobile/board-kzm9g.c |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
> index d2feee1..ba80e72 100644
> --- a/arch/arm/mach-shmobile/board-kzm9g.c
> +++ b/arch/arm/mach-shmobile/board-kzm9g.c
> @@ -197,6 +197,8 @@ static struct resource sh_mmcif_resources[] = {
>   static struct sh_mmcif_plat_data sh_mmcif_platdata = {
>   	.ocr		= MMC_VDD_165_195,
>   	.caps		= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
> +	.slave_id_tx	= SHDMA_SLAVE_MMCIF_TX,
> +	.slave_id_rx	= SHDMA_SLAVE_MMCIF_RX,
>   };
>
>   static struct platform_device mmc_device = {


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF
  2012-06-19  2:23 [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF Kuninori Morimoto
  2012-06-19  4:36 ` Tetsuyuki Kobayashi
@ 2012-06-19  4:59 ` Kuninori Morimoto
  2012-06-19  8:26 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2012-06-19  4:59 UTC (permalink / raw)
  To: linux-sh


Hi Kobayashi-san

Thank you for testing patch

> After applying this patch, I can mount and read/write to eMMC.
> Is it enough to test?
> Or how do I know DMAEngine is working properly?

Can you check /proc/interrupts ?
Did your dmaeXX increment ?

Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF
  2012-06-19  2:23 [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF Kuninori Morimoto
  2012-06-19  4:36 ` Tetsuyuki Kobayashi
  2012-06-19  4:59 ` Kuninori Morimoto
@ 2012-06-19  8:26 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2012-06-19  8:26 UTC (permalink / raw)
  To: linux-sh

On Mon, Jun 18, 2012 at 07:23:53PM -0700, Kuninori Morimoto wrote:
> It is possible to reduce CPU load if MMCIF used DMAEngine.
> This patch enabled it.
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Tested-by: Simon Horman <horms@verge.net.au>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-19  8:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19  2:23 [PATCH 2/4] ARM: shmobile: kzm9g: enable DMAEngine on MMCIF Kuninori Morimoto
2012-06-19  4:36 ` Tetsuyuki Kobayashi
2012-06-19  4:59 ` Kuninori Morimoto
2012-06-19  8:26 ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.