public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: "Aleksandr V. Piskunov" <aleksandr.v.piskunov@gmail.com>,
	Markus Rechberger <mrechberger@gmail.com>,
	Clinton Meyer <clintonmeyer22@gmail.com>,
	Linux Media <linux-media@vger.kernel.org>,
	Heinrich Langos <henrik-vdr@prak.org>
Subject: Re: LinuxTV firmware blocks all wireless connections / traffic
Date: Thu, 10 Sep 2009 23:29:51 +0300	[thread overview]
Message-ID: <4AA961BF.2040308@iki.fi> (raw)
In-Reply-To: <829197380909101017w17645c56te9fe829b59812800@mail.gmail.com>

On 09/10/2009 08:17 PM, Devin Heitmueller wrote:
> On Thu, Sep 10, 2009 at 12:48 PM, Antti Palosaari<crope@iki.fi>  wrote:
>> Yes thats just what I tried to say for. Look my previous thread where all
>> currently sizes are listed. We need to define suitable values that are used.
>> For example USB2.0 DVB-C, DVB-T, ATSC and same values for USB1.1 too. And
>> stream size can vary much depending used transmission parameters too but I
>> think such kind resolution logic is not needed.
>>
>> Currently there is almost everything between 512 to 65k used for DVB-T that
>> makes huge difference to load device causing.
>>
>> Does anyone know if there is some table which says what are good USB
>> transmission parameters for each bandwidth needed?
>
> The problem is that there cannot be any single set of rules that apply
> to all devices.  For each chip, the rules are different and either
> need to be reverse engineered by the maintainer or someone has to
> refer to the datasheet if available.

Eh, not all needed, but we need some kind of rule of thumb which URB 
size is suitable for bandwidth used. 512, 8k, 16k etc. It is not wise at 
all set it to only 512 bytes when streaming whole TS example 22Mbit/sec. 
I have tested Anysee (Cypress FX2), AF9015, CE6230, RTL2831U and all 
those allowed to set URB rather freely. I haven't seen yet device which 
forces to use just one size - though it is possible there is. And no 
datasheet even needed, you can see from debug log or error code if URB 
is not suitable.
Why not set it some good value when possible? And also adding module 
parameter which overrides driver default is not hard to add, just look 
value user gives as param and round it to nearest suitable one.

> It comes as no surprise that there is a huge variation on the URB
> sizes chosen, and there is almost certainly an opportunity for
> improvement on most bridges.  I suspect the logic applied by most of
> the people who wrote the bridge drivers was to find the first value
> that "works" and then not do any subsequent tuning/optimization.  Like
> the situation with power management or tuning time, this just doesn't
> seem to have been a priority.  And given how few developers we have
> actually fixing bugs, adding support for new boards, and writing new
> drivers, I can hardly blame them.

Of course it is easiest to set as small as possible, 512 or 188 usually 
and it is working. wakeups are then very high but not much buffers needed.

> Unfortunately, with limited resources, we have to pick our battles -
> which is more important:  having a slightly more optimal allocation
> that produces fewer wakeups?  Or getting new product XYZ to work and
> fixing bugs that are highly visible to end-users?
>
> Devin
>

Antti
-- 
http://palosaari.fi/

  reply	other threads:[~2009-09-10 20:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 21:43 LinuxTV firmware blocks all wireless connections / traffic Clinton Meyer
2009-09-09 21:59 ` Devin Heitmueller
2009-09-10  9:14   ` Aleksandr V. Piskunov
2009-09-10 10:58     ` Markus Rechberger
2009-09-10 12:45       ` Aleksandr V. Piskunov
2009-09-10 12:48         ` Aleksandr V. Piskunov
2009-09-10 13:12           ` Antti Palosaari
2009-09-10 13:41             ` Aleksandr V. Piskunov
2009-09-10 13:47               ` Antti Palosaari
2009-09-10 14:48                 ` Antti Palosaari
2009-09-10 15:26                   ` Devin Heitmueller
2009-09-10 15:55                     ` Antti Palosaari
2009-09-10 16:12                       ` Devin Heitmueller
2009-09-10 16:48                         ` Antti Palosaari
2009-09-10 17:17                           ` Devin Heitmueller
2009-09-10 20:29                             ` Antti Palosaari [this message]
2009-09-10 20:45                               ` Devin Heitmueller
2009-09-10 17:16                   ` Aleksandr V. Piskunov
2009-09-10 19:39                     ` Aleksandr V. Piskunov
2009-09-11 14:38                       ` Antti Palosaari
2009-09-11 17:50                         ` Aleksandr V. Piskunov
2009-09-11 18:01                           ` Devin Heitmueller
2009-09-11 19:47                           ` Antti Palosaari
2009-09-12 15:46                           ` CityK

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=4AA961BF.2040308@iki.fi \
    --to=crope@iki.fi \
    --cc=aleksandr.v.piskunov@gmail.com \
    --cc=clintonmeyer22@gmail.com \
    --cc=dheitmueller@kernellabs.com \
    --cc=henrik-vdr@prak.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mrechberger@gmail.com \
    /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