All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB
@ 2012-06-11  3:58 Kuninori Morimoto
  2012-06-12  1:29 ` Simon Horman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2012-06-11  3:58 UTC (permalink / raw)
  To: linux-sh

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

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

diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 3413eae..90f4056 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -283,6 +283,8 @@ static struct usbhsf_private usbhsf_private = {
 		.driver_param = {
 			.buswait_bwait		= 5,
 			.detection_delay	= 5,
+			.d0_rx_id	= SHDMA_SLAVE_USBHS_RX,
+			.d1_tx_id	= SHDMA_SLAVE_USBHS_TX,
 		},
 	}
 };
-- 
1.7.5.4


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

* Re: [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB
  2012-06-11  3:58 [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB Kuninori Morimoto
@ 2012-06-12  1:29 ` Simon Horman
  2012-06-12  1:35 ` Kuninori Morimoto
  2012-06-12  2:07 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2012-06-12  1:29 UTC (permalink / raw)
  To: linux-sh

On Sun, Jun 10, 2012 at 08:58:23PM -0700, Kuninori Morimoto wrote:
> It is possible to reduce CPU load if USB used DMAEngine.
> This patch enabled it.

Hi Morimoto-san,

I am having a little trouble exercising this.
Could you propose a test scenario?

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

* Re: [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB
  2012-06-11  3:58 [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB Kuninori Morimoto
  2012-06-12  1:29 ` Simon Horman
@ 2012-06-12  1:35 ` Kuninori Morimoto
  2012-06-12  2:07 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2012-06-12  1:35 UTC (permalink / raw)
  To: linux-sh


Hi Simon

> > It is possible to reduce CPU load if USB used DMAEngine.
> > This patch enabled it.
> 
> Hi Morimoto-san,
> 
> I am having a little trouble exercising this.
> Could you propose a test scenario?

How about to use g_mass_storage.ko ?

insmod g_mass_storage.ko file=xxxx
and read/write it

dma3 will be used

Best regards
---
Kuninori Morimoto

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

* Re: [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB
  2012-06-11  3:58 [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB Kuninori Morimoto
  2012-06-12  1:29 ` Simon Horman
  2012-06-12  1:35 ` Kuninori Morimoto
@ 2012-06-12  2:07 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2012-06-12  2:07 UTC (permalink / raw)
  To: linux-sh

On Mon, Jun 11, 2012 at 06:35:58PM -0700, Kuninori Morimoto wrote:
> 
> Hi Simon
> 
> > > It is possible to reduce CPU load if USB used DMAEngine.
> > > This patch enabled it.
> > 
> > Hi Morimoto-san,
> > 
> > I am having a little trouble exercising this.
> > Could you propose a test scenario?
> 
> How about to use g_mass_storage.ko ?
> 
> insmod g_mass_storage.ko file=xxxx
> and read/write it
> 
> dma3 will be used

Thanks.

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


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

end of thread, other threads:[~2012-06-12  2:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-11  3:58 [PATCH 23/27] ARM: shmobile: armadillo800eva: enable DMAEngine on USB Kuninori Morimoto
2012-06-12  1:29 ` Simon Horman
2012-06-12  1:35 ` Kuninori Morimoto
2012-06-12  2:07 ` 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.