every time I
start the computer. Write back if you'd like to see the result of any
other check. And thanks a lot!
You're welcome. I'll submit this; it may appear as early as 2.6.20.
Alan Stern
-
Take Surveys. Earn Cash
relying on
interrupts, since each overcurrent event would generate a new
interrupt.
This patch (as826) is essentially a copy of David Brownell's ignore_oc
patch for ehci-hcd, ported to uhci-hcd.
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
Index: usb-2.6/drivers/usb/host/uhci-hcd.c
On Tue, 5 Dec 2006, Dominik Brodowski wrote:
Hi,
On Tue, Dec 05, 2006 at 07:19:01AM -0500, Dominik Brodowski wrote:
Hi,
git bisect proved that the patch
commit 40f122f343797d02390c5a157372cac0c5b50bb7
Author: Alan Stern [EMAIL PROTECTED]
Date: Thu Nov 9 14:44:33 2006 -0500
subsystem hung. The dmesg output appears similar to
yesterday's. Do you want it?
No thanks, it sounds exactly like your previous examples.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join
count. Can you examine the patch carefully
to see if it is okay?
Also, Oliver, it looks like the latest version of your patch makes an
unnecessary change to sysfs_remove_file().
Alan Stern
-
Take Surveys. Earn Cash
;
+
+ sysfs_hash_and_remove(d, attr-name);
}
There's no apparent advantage to introducing the local variable d, either
in terms of execution speed or readability. (Although the original source
line should have a space after the comma.)
Alan Stern
. It would be
easy enough to write a program to send these commands, using libusb for
example, however I don't know of any existing examples. Generally lsusb
is good enough.
Alan Stern
-
Take Surveys. Earn Cash. Influence
starts up, you may need to do
rmmod uhci-hcd
modprobe uhci-hcd ignore_oc=y
before the new flag will take effect. Modifying /etc/modprobe.conf may
not be sufficient because some distributions load uhci-hcd from initramfs,
before modprobe.conf is available.
Alan Stern
Certain boards
. There does not seems to more sleep routines in
'core' and 'host' directories, so I guess it is something else.
Also show this in your usbmon log. Start copying the usbmon data before
plugging in the remote, and include what happens when you rmmod the driver
and then modprobe it back.
Alan Stern
On Sat, 2 Dec 2006, David Relson wrote:
On Sat, 2 Dec 2006 17:08:02 -0500 (EST)
Alan Stern wrote:
...[snip]...
Remind me of the context again; it has slipped my mind. You were
getting random disconnects that sometimes (or always?) ended up
hanging the USB subsystem?
Good question
stage.
As far as I can tell from your usbmon logs, the drivers do exactly the
same thing each time you load them. The only difference is that sometimes
the device responds and other times it doesn't.
Alan Stern
-
Take Surveys
all at once. But there still is all the
overhead from creating new threads to handle these events.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get
, then the device will automatically be suspended.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief
On Sat, 2 Dec 2006, Adam Sulmicki wrote:
On Sat, 2 Dec 2006, Alan Stern wrote:
The usbmon log on that web site don't show what happens when you unload
the drivers. And the dmesg log doesn't say what you are doing at each
stage.
sorry about that. here are complete annoatated logs
an old
version of it as the first attachment to this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=6374
I don't know if there are any later versions.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future
-brew 2.6.18-rc4.
Any mass storage quirk needed that might be missing?
No. According to your log there is nothing wrong with the device, and
Linux did recognize it properly. It just needs a new partition table.
Run fdisk on it.
Alan Stern
2-0:1.0 4-0:1.0 6-0:1.0 bind unbind
# echo -n 1-0:1.0 /sys/bus/usb/drivers/hub/unbind
This would unbind the hub driver from the 1-0:1.0 device. Writing the
device name to the bind file will rebind the driver to the device.
Alan Stern
.
There are a few existing drivers which do this. Search the kernel source
for calls to usb_driver_claim_interface.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get
?
Did you remember to run make modules_install after building the new
usb-storage.ko?
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys - and earn cash
http
, you've changed the way the driver appears to userspace. Now
instead of loading ohci-hcd, people will have to load ohci-hcd-pci. Or in
an initramfs environment, they will have to load both.
Alan Stern
-
Take Surveys
On Wed, 29 Nov 2006, Sylvain Munaut wrote:
Alan Stern wrote:
There are two things I don't like about your change. First, you've added
a lot of new global symbols. That's not _too_ bad in itself, but it would
be better if you could avoid it.
Second, you've changed the way the driver
it in
drivers/usb/core/hub.c).
Any other idea on how to fix this?
There are a few possibilities. For example, we could add a sysfs
attribute file listing ports which should not be monitored for
an overcurrent condition.
Alan Stern
.
What I want to do is to let the webcam reply to me.
According to the USB specification, the default altsetting for any
interface should not send transfer any ISO data. You might need to do
a USBDEVFS_SETINTERFACE call.
Alan Stern
.). It could be a cable-level hardware problem.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through
: Maneesh Soni [EMAIL PROTECTED]. He ought to
be interested in it, and he probably can answer all our questions.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get
On Sun, 26 Nov 2006, David Brownell wrote:
On Sunday 26 November 2006 6:46 pm, Alan Stern wrote:
On Sun, 26 Nov 2006, David Brownell wrote:
On Thursday 23 November 2006 6:19 am, Oliver Neukum wrote:
Hi,
gl620a uses a buffer within a struct. This can corrupt memory
communications that it is not likely to be a limiting factor.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions
(I didn't
really
investigate in depth this possibility).
It should work. Go back and try it again more carefully.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel
On Mon, 27 Nov 2006, Oliver Neukum wrote:
Am Montag, 27. November 2006 04:00 schrieb Alan Stern:
Fourth, you might consider deallocating the sysfs_buffer_collection as
soon as the last buffer is removed from its list. I don't know if this
really matters...
That would mean
between user and kernel mode would have made the driver that much
slower, and one generally wants mass-storage devices to run as fast as
possible.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join
On Mon, 27 Nov 2006, Oliver Neukum wrote:
Am Montag, 27. November 2006 20:45 schrieb Alan Stern:
I like it, except for one little detail. You don't need buffer-anchor;
it gets used only in remove_from_collection(), which is called only from
sysfs_release(), so you can pass the inode
the deallocation from happening before you release the inode's
lock?
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions
);
}
iput(inode);
}
}
This looks reasonable, subject to the questions raised above.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel
the
previous recommendation.)
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys
that it could corrupt the contents of the
buffer during an input operation. I don't think it matters as far as
output is concerned...
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's
.
As mentioned above, you already use that lock when you create the
buffer_collection. I don't see anything wrong with using the lock again
when you deallocate it.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future
() is walking the list. Somehow you need to protect the
list pointers.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions
the instructions in
Documentation/usb/usbmon.txt). To keep the trace simple, you should
unplug all USB devices except the one you're testing.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join
the driver has been unbound from the device.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics
a Hardware error. This should have made the
copying more reliable, but it's hard to tell exactly what's happening. It
could be that they aren't directly related to the compare mismatches you
see.
Alan Stern
-
Take Surveys. Earn
to address the problem. The patch will
provide a way for the driver to create a lightweight sysfs directory under
the interface's directory, where the attribute can safely be created.
Alan Stern
-
Take Surveys. Earn Cash
transvibrator
devices and one gets unplugged.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through
combining multiple HCIs into a
single driver?
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief
walking the list with opening closing
attribute files, which could turn out to be prohibitively difficult.
Greg, what do you think?
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay
On Wed, 22 Nov 2006, Pete Zaitcev wrote:
On Wed, 22 Nov 2006 22:00:32 -0500 (EST), Alan Stern [EMAIL PROTECTED]
wrote:
On Wed, 22 Nov 2006, Pete Zaitcev wrote:
Don't feel any need to reply or explain -- this is meant mainly to
illustrate that eavesdropping sometimes doesn't provide
On Thu, 23 Nov 2006, DervishD wrote:
Hi Alan :)
* Alan Stern [EMAIL PROTECTED] dixit:
On Wed, 22 Nov 2006, Andrew Morton wrote:
The problem is the following: whenever I copy a lot of data to
the usb-storage device (more than a few GB's), the copy goes OK,
without an error
likelihood is using a different IRQ
line from what the system thinks it is using. Check out the contents of
/proc/interrupts and you'll probably see what I mean.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future
a device disconnects we need to remember whether it
was suspended at the time (leave the counter alone) or not (decrement
the counter).
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
This is a slight revision of as818 (number 5/6, posted a couple of days
ago). I forgot that it's possible
information. About all you've told us so far is that from time to
time something goes wrong. That's not much to go on.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel
? That doesn't make any sense...
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys
On Tue, 21 Nov 2006, Andrey Borzenkov wrote:
Using 2.6.9-rc5 + Alan Stern fix for can't disable OHCI wakeup via sysfs. I
started noticing strange messages after resume:
ACPI: PCI Interrupt :00:06.0[A] - Link [LNKH] - GSI 11 (level, low) -
IRQ 11
ACPI: PCI interrupt for device :00
disconnect, address 2
Nov 18 07:56:09 elke usb 2-2: Disconnecting SN9C10x PC Camera...
Nov 18 07:56:09 elke usb 2-2: V4L2 device /dev/video0 deregistered
Maybe this should be sent to the V4L2 people.
Alan Stern
-
Take
to keep the blacklist in userspace.
Oliver can tell you more about them; we had a discussion about this some
time ago.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel
of direct root-hub reset (along the same lines as bus_suspend). But it's
a low priority.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
the blacklist entries!
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys - and earn cash
On Sat, 18 Nov 2006, Oleg Verych wrote:
On Fri, Nov 17, 2006 at 10:22:58AM -0500, Alan Stern wrote:
Those email addresse in unusual_devs.h are _not_ credits. (The credit
belongs to the person who writes and submits the patch, not the person
who owns the hardware and reports the problem
]
assigned from the device or core? I guess I tried to figure out where
the problem was from the device or core.
The descriptor value comes from the device. You can view the values in
/proc/bus/usb/devices.
Alan Stern
-
Take
sending ZLPs for IN transfers
on ep0 until a response has been submitted, and avoids stalling when an
OUT packet is received before a request has been submitted for an OUT
transfer on ep0.
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
Index: usb-2.6/drivers/usb/gadget/net2280.c
.
Alternatively, since you don't care about the speed of your transfers, you
could run at full speed using a UHCI controller instead of high speed
using EHCI. It's easy to patch uhci-hcd to make it put each transaction
in a separate frame.
Alan Stern
drivers/usb/core/driver.c, in usb_unbind_interface(). Just
comment out the call to usb_set_interface().
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get
choice
Any idea what's going on here?
Check the file and directory permissions in /proc/bus/usb/.
Try upgrading to 2.6.18.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay
to change the name of resume_device to usb_resume_device,
then please make analogous name changes to suspend_device,
suspend_interface, and resume_interface.
Alan Stern
-
Using Tomcat but need to do more? Need to support web
the device by unplugging it.
In the meanwhile, I'm about to add some dbg_printf in my kernel to trace
the source of this error -104.
The source of the errors is the Titanium failure to respond to the
kernel's Clear-Halt requests.
Alan Stern
On Tue, 14 Nov 2006, Stephen Hemminger wrote:
Several functions in USB core overlap with global functions.
The linker appears to do the right thing, but it is bad practice and makes
debugging harder.
Acked-by: Alan Stern [EMAIL PROTECTED
Instruments and ask them to issue an update to fix it.
Alan Stern
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics
This patch (as822) prevents the OHCI autostop mechanism from kicking in
if the root hub is not able or not allowed to issue wakeup requests.
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
Greg:
This patch should go into 2.6.19-rc ASAP. It does solve a real problem.
The larger-scale changes
On Tue, 14 Nov 2006, David Brownell wrote:
On Monday 13 November 2006 9:15 am, Alan Stern wrote:
On Mon, 13 Nov 2006, David Brownell wrote:
It's a *driver model* API, which is also accessible from sysfs ... to
support
per-device policies, for example the (a) workaround
well. You
should use a more recent kernel.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM
in keeping autostop when CONFIG_PM is off.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere
, as it should?
Or does it only affect may_wakeup?
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM
Andrey:
Try this patch for 2.6.19-rc5. Although it doesn't make all the changes
Dave and I have discussed, it ought to fix your problem.
Alan Stern
Index: 2.6.19-rc5/drivers/usb/host/ohci-hub.c
===
--- 2.6.19-rc5.orig/drivers
This patch (as821) fixes a compiler warning when CONFIG_PM isn't on
(usb_autosuspend_work defined but not used).
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
Index: usb-2.6/drivers/usb/core/usb.c
===
--- usb-2.6.orig/drivers/usb
.
Attached are two small patches, one for 2.6.15 and the other for 2.6.18.
They will add a bunch of debugging information to the system log when the
scanner is turned on. Please try running your test again (with each
kernel) and post the resulting logs.
usbmon isn't needed for this test.
Alan Stern
try writing a patch to fix
it. Perhaps the driver needs a resume_detect_is_broken quirk.
Andrey, if you aren't using USB at all (you mentioned that no devices were
plugged in), you can simply do rmmod ohci-hcd to stop all those log
messages.
Alan Stern
which allow the user to specify that
the EHCI controller shouldn't manage certain ports. They'll probably get
into the kernel somewhere in the 2.6.21 time frame. You might be able to
find older versions of those patches by searching the mailing list
archives.
Alan Stern
that autostop is intended to work even when
CONFIG_PM is off.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
driver appropriately.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application
transmitted an IN packet but did not receive a
DATA packet? Do you have a USB bus analyzer?
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated
opportunity to fix a driver bug!
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere
for ur continous support
You're welcome.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM
anything of interest. But the
usbmon output did include a hint of a problem. It's hard to tell at this
point, I'll need to see the additional results from running lsusb.
Alan Stern
-
Using Tomcat but need to do more
.
If power was lost, pci_resume() must not call ehci_run().
At this point the root hub is still supposed to be suspended,
not running. It's enough to rewrite the command register and
set the configured_flag.
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
This is the updated
This patch (as742b) adds autosuspend/autoresume support to the USB hub
driver. The largest aspect of the change is that we no longer need a
special flag for root hubs that want to be resumed. Now every hub is
autoresumed whenever khubd needs to access it.
Signed-off-by: Alan Stern [EMAIL
to del_gendisk()
decreases the device's refcount by 2. Consequently the structure is
deallocated too early, causing the oops.
Somebody who knows more than I do about add_disk() and del_gendisk() will
have to figure what's going wrong.
Alan Stern
, or scanimage.
Just save the usbmon output and the dmesg log, showing what happened when
the scanner was turned on.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly
having a
warning message appear will be a good thing.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download
this
to Alan, who knows UHCI on the bit level.
I missed most of this thread and haven't seen the system logs. Could you
please resend them? Or better yet, collect new logs using an unpatched
vanilla 2.6.18 kernel with CONFIG_USB_DEBUG turned on.
Alan Stern
in accessibility of these two. Can you e.g. provide a
chapter name in the spec or so?
There are no official explanations of this; it isn't part of the USB spec
(or any other spec). It's just the way the usbfs stack in Linux works.
The only documentation is the kernel's source code.
Alan Stern
could do that in one series of patches. It is simple enough not to break
things and
hopefuly remove lots of redundant code. What do you thik of these (proposed)
changes?
They all sound good.
Alan Stern
-
Using Tomcat
while I upgrade my system to FC6... Don't hold your breath. :-)
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
On Tue, 7 Nov 2006, Greg KH wrote:
On Mon, Nov 06, 2006 at 11:48:38AM -0500, Alan Stern wrote:
Greg:
What happened to the as802 patch (EHCI: fix memory pool name allocation)?
http://marc.theaimsgroup.com/?l=linux-usb-develm=116059861925588w=2
Did I misplace some email, or did
...
If USB_TYPE_VENDOR is set in bRequestType then the request will always be
allowed, regardless of the recipient field. Maybe that's your problem.
Try using USB_TYPE_CLASS instead.
Alan Stern
-
Using Tomcat but need to do more
dmesg with increased
LOG_SHIFT.
I always find it rather difficult to understand the meaning of lockdep
warnings, but this looks a bug that was fixed in 2.6.19-rc1. The patch
that fixed it is here:
http://marc.theaimsgroup.com/?l=linux-usb-develm=115938807428103w=2
Alan Stern
Greg:
What happened to the as802 patch (EHCI: fix memory pool name allocation)?
http://marc.theaimsgroup.com/?l=linux-usb-develm=116059861925588w=2
Did I misplace some email, or did it slip through the cracks?
Alan Stern
This patch (as809b) moves the declaration of the hub driver's private
data structure from hub.h into the hub.c source file. Lots of other
files import hub.h; they have no need to know about the details of the
hub driver's private data.
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
On Fri, 3
All the other root-hub suspend or resume log messages, in ohci-hcd or
any of the other host controller drivers, use the debug priority
level. This patch (as815) makes the one single exception behave like
all the rest.
Signed-off-by: Alan Stern [EMAIL PROTECTED]
---
Index: usb-2.6/drivers/usb
.
There doesn't seem to be anything objectionable in the patch itself.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
On Fri, 3 Nov 2006, Greg KH wrote:
On Tue, Oct 24, 2006 at 12:08:16PM -0400, Alan Stern wrote:
This patch (as809) moves the declaration of the hub driver's private
data structure from hub.h into the hub.c source file. Lots of other
files import hub.h; they have no need to know about
. And bear in
mind that as time goes by, more and more of your users will be using 2.6
instead of 2.4.
Alan Stern
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre
1201 - 1300 of 6192 matches
Mail list logo