mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mikie <mikie.pl@gmail.com>
To: "Duncan Sands" <duncan.sands@math.u-psud.fr>
Cc: "Indan Zupancic" <indan@nul.nu>,
	"Kay Sievers" <kay.sievers@vrfy.org>,
	linux-kernel@vger.kernel.org
Subject: Re: understanding firmware loader for speedtouch (kernel 2.6.21.5)
Date: Wed, 11 Jul 2007 18:55:19 +0200	[thread overview]
Message-ID: <ca35ce500707110955t44d9b998r769c02df3e29e00a@mail.gmail.com> (raw)
In-Reply-To: <200707111507.11656.duncan.sands@math.u-psud.fr>

2007/7/11, Duncan Sands <duncan.sands@math.u-psud.fr>:
> Hi,
>
> > Actually I had to mount it (I  hope that not having it mounted does
> > not change a lot in this matter).
>
> probably not.  Not having sysfs mounted can cause hotplug to fail,
> but I think not having /proc/bus/usb mounted shouldn't cause any
> trouble nowadays.
>
> > I:* If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
> > E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> > E:  Ad=07(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> > E:  Ad=87(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms
>
> The * means that this altsetting is being used - this is the altsetting
> when using isochronous mode.  So it looks to me like isochronous mode is
> being used.
>
> > I have CONFIG_USB_DEBUG=y set in kernel. However I do not see any of
> > the messages you are referring to. It does not say that it tried isoc
> > and falls to bulk, nothing like that. Also nothing about "setting
> > interface to ?? failed".
>
> Most likely it is using isochronous transfer.  The question then is: why
> is it slow?  I will look in my cupboard to see if I have the same modem,
> and if so see what speed I can get out of it.
>
> > Which debug option should I switch to see these?
>
> Something like this IIRC:
>         echo 7 > /proc/sys/kernel/printk
> Then it should turn up in dmesg.
>

I made a more advanced testing. I used one computer only to be
absolutely sure that this is not a hardware issue. So I took a laptop
(P4 1.8GHz, OHCI usb host), and booted into Knoppix LiveCD. It was
running kernel 2.6.19 and the version of speedtch module was 1.10.
First I did something like rmmod speedtch; rmmod ohci-hcd to be sure
that I start with a fresh environment.
I also did: echo 7 > /proc/sys/kernel/printk which caused the usual
debug messages being printed directly in the console.
Then I did modprobe ohci-hcd;modprobe speedtch enable_isoc=1

Certainly I've put the same firmware in the /lib/firmware so that udev
found it correctly and loaded it up to the modem. The ADSL link went
up with the same values (7456 downlink). PPPd started (I use
pppoatm.so, if that is important). In this setup I achieved transfer
rates of around 480...500 kbyte/s. Then I did the similar thing, but
speedtch without enable_isoc, and the result was exactly the same.
In both cases I still could not see the messages from the speedtch
driver about enabling isochronous mode, or falling back to bulk,
nothing like that.

Right after that, to minimize the risk of any outside network being
overloaded (I doubt that anyway), I switched to Windows Xp. Transfers
were up to 730 kbyte/s. So this proves definitely that it is not a
hardware related issue.
The transfers were so fast that the LED (marked usb led) on the modem,
which usually blinks where any transfers are in process, it went
completely off, and only blinked once a few seconds...

So there is a small progress when compared to my server box (celeron
633 to remind you), where I can get only 400kbyte/s (on this laptop it
went 100kbyte/s faster).

I still cannot get the full 6mbit/s that my ADSL service runs at on
the linux system.

-- 
Regards,
MK

  reply	other threads:[~2007-07-11 16:55 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-06 12:54 mikie
2007-07-06 14:20 ` Duncan Sands
2007-07-06 19:16   ` Indan Zupancic
2007-07-09  8:49     ` mikie
2007-07-09 10:42       ` Indan Zupancic
2007-07-09 11:08         ` mikie
2007-07-09 13:59           ` Kay Sievers
2007-07-09 14:40             ` mikie
2007-07-09 15:03               ` Indan Zupancic
2007-07-09 17:00                 ` mikie
     [not found]                   ` <200707091923.38577.duncan.sands@math.u-psud.fr>
2007-07-09 17:41                     ` mikie
2007-07-09 17:51                       ` Duncan Sands
2007-07-10  7:54                     ` mikie
2007-07-10  8:57                       ` Duncan Sands
2007-07-10  9:13                         ` mikie
2007-07-10  9:32                           ` Duncan Sands
2007-07-10 10:32                             ` mikie
2007-07-11 11:22                               ` mikie
2007-07-11 12:33                                 ` Duncan Sands
2007-07-11 12:47                                   ` mikie
2007-07-11 13:07                                     ` Duncan Sands
2007-07-11 16:55                                       ` mikie [this message]
2007-07-19 10:24                                         ` mikie
2007-07-24 23:03                                           ` Duncan Sands
2008-11-19 12:25                                             ` mikie
2008-11-19 12:49                                               ` Duncan Sands
2007-07-09 15:08               ` Kay Sievers
2007-07-09 10:50       ` Duncan Sands
2007-07-09 11:06         ` mikie
     [not found]   ` <ca35ce500707061006k74754bd6m8a9d2f1cb2910823@mail.gmail.com>
     [not found]     ` <200707061924.57099.duncan.sands@math.u-psud.fr>
2007-07-06 19:30       ` mikie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca35ce500707110955t44d9b998r769c02df3e29e00a@mail.gmail.com \
    --to=mikie.pl@gmail.com \
    --cc=duncan.sands@math.u-psud.fr \
    --cc=indan@nul.nu \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®