The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: "M.S. Lucas" <mslucas@taos-it.nl>
Cc: linux-usb-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, apcupsd-devel@apcupsd.com
Subject: Re: [linux-usb-devel] [USB] control queue full when using 2.6.0-test5 and apcupsd
Date: Mon, 15 Sep 2003 08:41:57 -0700	[thread overview]
Message-ID: <3F65DDC5.9090608@pacbell.net> (raw)
In-Reply-To: <006e01c37b98$6580a140$0301a8c0@bpo.nl>

M.S. Lucas wrote:
> Hello,
> 
> I'm having problems with my APC UPS using an USB cable and the 2.6.0-test5
> kernel
> 
> I hope somebody can help me?
> 
> ...

So it looks like it enumerated OK, but then the HID code misbehaved.


> root@orion:/etc/apcupsd $ /etc/init.d/apcupsd-devel start
> Starting APC UPS power management: apcupsd-devel.
> This is in my logfiles
> Sep 15 16:00:06 orion apcupsd[21908]: apcupsd 3.10.6 (05 August 2003) debian
> startup succeeded
> Sep 15 16:00:07 orion kernel: drivers/usb/input/hid-core.c: control queue
> full
> Sep 15 16:00:38 orion last message repeated 148089 times
> Sep 15 16:00:53 orion last message repeated 84977 times
> Sep 15 16:00:53 orion kernel: drivers/usb/input/hid-core.c: control queue
> full
> Sep 15 16:00:53 orion last message repeated 3163 times
> ...etc

Actually the HID code isn't doing control queueing very intelligently.

As of 2.6, it no longer needs to avoid passing multiple control requests
to the same device ... the HCDs now queue them like any other kind of
transfer(*).  So the "good" fix there would be to the HID code, getting
rid of a fixed size queue.  Or, you could make a "dirty" fix and just
increase the queue size again ... it's already huge (so that it'll
handle some MGE UPSes), make it even more so.

- Dave

(*) However there's still a patch pending to fix a bug in the UHCI driver,
     where it inappropriately patches up data toggles in control transfers
     in certain cases with queue length greater than one URB.  You're using
     OHCI (or EHCI), and should have no problem with 2.6.0-test5 kernels.





      reply	other threads:[~2003-09-15 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-15 14:48 [USB] control queue full when using 2.6.0-test5 and apcupsd M.S. Lucas
2003-09-15 15:41 ` David Brownell [this message]

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=3F65DDC5.9090608@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=apcupsd-devel@apcupsd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=mslucas@taos-it.nl \
    /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