From: Fabio Coatti <cova@ferrara.linux.it>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: linux-kernel@vger.kernel.org, cs@tequila.co.jp
Subject: Re: Test patch for ub and double registration
Date: Tue, 2 Nov 2004 22:57:24 +0100 [thread overview]
Message-ID: <200411022257.24752.cova@ferrara.linux.it> (raw)
In-Reply-To: <20041101164432.3fa72b81@lembas.zaitcev.lan>
Alle 01:44, martedì 02 novembre 2004, Pete Zaitcev ha scritto:
> Hello,
>
> here's a patch to fix the double kobject registration problem with the ub.
> One little problem here is that I do not have a device which fails this
> way, so I would like owners of such devices to give it a try.
>
> The latest victim of this is Fabio Coatti. It should be noted that this
> fix only (supposed to) prevents oopses on deregistration. If the device
> doesn't work generally (for example, requires START STOP UNIT), it won't
> help that.
I've tried (under 2.6.10-rc1-mm1, that was the kernel that showed me problems)
and in fact I can plug/unplug without problems usb flash drive, but there is
a difference with previous behaviour (apart from crash, of course :) )
here the log from patched version of ub.c:
=================================================
Nov 2 22:44:20 kefk kernel: ehci_hcd 0000:00:1d.7: GetStatus port 3 status
001803 POWER sig=j CSC CONNECT
Nov 2 22:44:20 kefk kernel: hub 5-0:1.0: port 3, status 0501, change 0001,
480 Mb/s
Nov 2 22:44:21 kefk kernel: hub 5-0:1.0: debounce: port 3: total 100ms stable
100ms status 0x501
Nov 2 22:44:21 kefk kernel: ehci_hcd 0000:00:1d.7: port 3 high speed
Nov 2 22:44:21 kefk kernel: ehci_hcd 0000:00:1d.7: GetStatus port 3 status
001005 POWER sig=se0 PE CONNECT
Nov 2 22:44:21 kefk kernel: usb 5-3: new high speed USB device using ehci_hcd
and address 6
Nov 2 22:44:21 kefk kernel: ehci_hcd 0000:00:1d.7: port 3 high speed
Nov 2 22:44:21 kefk kernel: ehci_hcd 0000:00:1d.7: GetStatus port 3 status
001005 POWER sig=se0 PE CONNECT
Nov 2 22:44:21 kefk kernel: usb 5-3: ep0 maxpacket = 64
Nov 2 22:44:21 kefk kernel: usb 5-3: new device strings: Mfr=1, Product=2,
SerialNumber=3
Nov 2 22:44:21 kefk kernel: usb 5-3: default language 0x0409
Nov 2 22:44:21 kefk kernel: usb 5-3: Product: Mass storage
Nov 2 22:44:21 kefk kernel: usb 5-3: Manufacturer: USB
Nov 2 22:44:21 kefk kernel: usb 5-3: SerialNumber: 142E19413C2FCA34
Nov 2 22:44:21 kefk kernel: usb 5-3: hotplug
Nov 2 22:44:21 kefk kernel: usb 5-3: adding 5-3:1.0 (config #1, interface 0)
Nov 2 22:44:21 kefk kernel: usb 5-3:1.0: hotplug
Nov 2 22:44:21 kefk kernel: ub 5-3:1.0: usb_probe_interface
Nov 2 22:44:21 kefk kernel: ub 5-3:1.0: usb_probe_interface - got id
Nov 2 22:44:21 kefk kernel: uba: device 6 capacity nsec 50 bsize 512
(nothing more)
=================================================
but at this point no device is created in /dev, while previous behaviour was
different:
(snip)
Oct 28 00:32:22 kefk kernel: ub 5-3:1.0: usb_probe_interface
Oct 28 00:32:22 kefk kernel: ub 5-3:1.0: usb_probe_interface - got id
Oct 28 00:32:22 kefk kernel: uba: device 4 capacity nsec 50 bsize 512
Oct 28 00:32:22 kefk kernel: uba: made changed
Oct 28 00:32:22 kefk kernel: uba: device 4 capacity nsec 1024000 bsize 512
Oct 28 00:32:22 kefk kernel: uba: device 4 capacity nsec 1024000 bsize 512
Oct 28 00:32:22 kefk kernel: uba: uba1
Oct 28 00:32:22 kefk kernel: uba: uba1
Oct 28 00:32:22 kefk kernel: kobject_register failed for uba1 (-17)
Oct 28 00:32:22 kefk kernel: [<c01f1fd7>] kobject_register+0x51/0x5f
Oct 28 00:32:22 kefk kernel: [<c0184720>] add_partition+0xbb/0xf0
(snip)
i.e. no lines like
uba: device 4 capacity nsec 1024000 bsize 512
uba: uba1
Apart that, removal of the usb device causes no harm to the system, log here:
Nov 2 22:55:47 kefk kernel: ehci_hcd 0000:00:1d.7: GetStatus port 3 status
001002 POWER sig=se0 CSC
Nov 2 22:55:47 kefk kernel: hub 5-0:1.0: port 3, status 0100, change 0001, 12
Mb/s
Nov 2 22:55:47 kefk kernel: usb 5-3: USB disconnect, address 6
Nov 2 22:55:47 kefk kernel: usb 5-3: usb_disable_device nuking all URBs
Nov 2 22:55:47 kefk kernel: usb 5-3: unregistering interface 5-3:1.0
Nov 2 22:55:47 kefk kernel: usb 5-3:1.0: hotplug
Nov 2 22:55:47 kefk kernel: usb 5-3: unregistering device
Nov 2 22:55:47 kefk kernel: usb 5-3: hotplug
Nov 2 22:55:47 kefk kernel: hub 5-0:1.0: debounce: port 3: total 100ms stable
100ms status 0x100
--
Fabio Coatti http://members.ferrara.linux.it/cova
Ferrara Linux Users Group http://ferrara.linux.it
GnuPG fp:9765 A5B6 6843 17BC A646 BE8C FA56 373A 5374 C703
Old SysOps never die... they simply forget their password.
next prev parent reply other threads:[~2004-11-02 22:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-02 0:44 Test patch for ub and double registration Pete Zaitcev
2004-11-02 9:39 ` Fabio Coatti
2004-11-02 21:57 ` Fabio Coatti [this message]
2004-11-02 23:10 ` Pete Zaitcev
2004-11-03 20:43 ` Fabio Coatti
2004-11-03 20:56 ` Pete Zaitcev
2004-11-03 23:49 ` Fabio Coatti
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=200411022257.24752.cova@ferrara.linux.it \
--to=cova@ferrara.linux.it \
--cc=cs@tequila.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=zaitcev@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.