linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* USB driver for ISP1362 very slow
@ 2004-11-30 15:24 Jörg Huwig
  2004-11-30 16:24 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Jörg Huwig @ 2004-11-30 15:24 UTC (permalink / raw)
  To: Linuxppc-embedded

Hi all,

I'm using an ISP1362 as an USB host controller connected to a MPC880 running
under Linux 2.4.25.
The Driver seems to work fine as I can mount an USB memory stick. 
But the performance is very bad. To copy a 1MByte big file from the USB
memory stick to the RAM disk takes about 3 minutes. 

Does anyone has experience with the ISP1362 driver in Kernel 2.4.25??


Regards

Joerg Huwig

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

* Re: USB driver for ISP1362 very slow
  2004-11-30 15:24 USB driver for ISP1362 very slow Jörg Huwig
@ 2004-11-30 16:24 ` Wolfgang Denk
  2004-12-01  8:44   ` Jörg Huwig
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2004-11-30 16:24 UTC (permalink / raw)
  To: Jörg Huwig; +Cc: Linuxppc-embedded

Hello,

in message <04113016200014900@intec-isdn.de> you wrote:
> 
> I'm using an ISP1362 as an USB host controller connected to a MPC880 running
> under Linux 2.4.25.
> The Driver seems to work fine as I can mount an USB memory stick. 
> But the performance is very bad. To copy a 1MByte big file from the USB
> memory stick to the RAM disk takes about 3 minutes. 

Are there any error messages in the log files? Did  you  try  another
USB memory stick, especially any USB 2.0 stick?

> Does anyone has experience with the ISP1362 driver in Kernel 2.4.25??

Sure. We implemented it and tested it with mass storage devices,  USB
modems, network adapters and in combination with RNDIS on Windoze.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"I find this a nice feature but it is not according to  the  documen-
tation. Or is it a BUG?"   "Let's call it an accidental feature. :-)"
                       - Larry Wall in <6909@jpl-devvax.JPL.NASA.GOV>

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

* Re: USB driver for ISP1362 very slow
  2004-11-30 16:24 ` Wolfgang Denk
@ 2004-12-01  8:44   ` Jörg Huwig
  0 siblings, 0 replies; 3+ messages in thread
From: Jörg Huwig @ 2004-12-01  8:44 UTC (permalink / raw)
  To: wd; +Cc: linuxppc-embedded

Hi Wolfgang,

I tried different USB memory sticks but the result was always the same.
Also there were no error messages in the log file.=20

After trying to understand the driver, I found two defines which seem to =
be
responsible for the slow transmission.

In     hcd-1161.c: #define ATL_DONE_DELAY   10
and in hcd-1161.h: #define ATL_BLOCK_SZ     64

with this defines the host controller handles every 11 ms one 64Byte ATL
block, which of cause is very slow.=20

I have changed the ALT_BLOCK_SZ from 64 to 512 and reduced the=20
ATL_DONE_DELAY from 10 to 2. With this changes the driver works much =
faster.

Is it OK to change these constants in that way or could this cause =
trouble?


Best regards,

Joerg Huwig






-----Urspr=FCngliche Nachricht-----
Von: wd@denx.de [mailto:wd@denx.de]=20
Gesendet: Dienstag, 30. November 2004 17:25
An: J=F6rg Huwig
Cc: Linuxppc-embedded@ozlabs.org
Betreff: Re: USB driver for ISP1362 very slow=20

Hello,

in message <04113016200014900@intec-isdn.de> you wrote:
>=20
> I'm using an ISP1362 as an USB host controller connected to a MPC880=20
> running under Linux 2.4.25.
> The Driver seems to work fine as I can mount an USB memory stick.=20
> But the performance is very bad. To copy a 1MByte big file from the=20
> USB memory stick to the RAM disk takes about 3 minutes.

Are there any error messages in the log files? Did  you  try  another =
USB
memory stick, especially any USB 2.0 stick?

> Does anyone has experience with the ISP1362 driver in Kernel 2.4.25??

Sure. We implemented it and tested it with mass storage devices,  USB
modems, network adapters and in combination with RNDIS on Windoze.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de "I
find this a nice feature but it is not according to  the  documen-
tation. Or is it a BUG?"   "Let's call it an accidental feature. :-)"
                       - Larry Wall in <6909@jpl-devvax.JPL.NASA.GOV>

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

end of thread, other threads:[~2004-12-01  8:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-30 15:24 USB driver for ISP1362 very slow Jörg Huwig
2004-11-30 16:24 ` Wolfgang Denk
2004-12-01  8:44   ` Jörg Huwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).