2008-02-13 14:12:23

by Luciano Rocha

[permalink] [raw]
Subject: sysfs: duplicate filename 'card0' can not be created


Hello,

Is this known? I got the error while connecting usb headphones, running
vanilla 2.6.24.

Error:

[.361992] usb 1-1.3: new full speed USB device using ehci_hcd and address 13
[.448232] usb 1-1.3: configuration #1 chosen from 1 choice
[.506787] sysfs: duplicate filename 'card0' can not be created
[.506796] WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()
[.506802] Pid: 794, comm: khubd Not tainted 2.6.24lcfs1 #1
[.506819] [<c04a07cd>] sysfs_add_one+0x54/0xb7
[.506835] [<c04a1415>] sysfs_create_link+0xbe/0x109
[.506846] [<c05db991>] device_add+0x132/0x447
[.506856] [<c057e9ba>] kobject_init+0x27/0x37
[.506866] [<c05dbf12>] device_create+0x77/0x97
[.506873] [<c0611fa1>] snd_card_register+0x3f/0x254
[.506883] [<f083fa71>] usb_driver_claim_interface+0x6b/0x86 [usbcore]
[.506944] [<f09b7cbb>] usb_audio_probe+0x6c7/0x76e [snd_usb_audio]
[.506990] [<f083f960>] usb_probe_interface+0xa2/0xda [usbcore]
[.507010] [<c05dd14b>] driver_sysfs_add+0x36/0x53
[.507018] [<c05dd2ab>] driver_probe_device+0xdd/0x15a
[.507025] [<c0688f9a>] klist_next+0x50/0x82
[.507032] [<c05dd328>] __device_attach+0x0/0x5
[.507037] [<c05dc7ce>] bus_for_each_drv+0x32/0x58
[.507045] [<c05dd3a5>] device_attach+0x5d/0x70
[.507049] [<c05dd328>] __device_attach+0x0/0x5
[.507055] [<c05dc74f>] bus_attach_device+0x26/0x73
[.507062] [<c05dbabc>] device_add+0x25d/0x447
[.507073] [<f083e316>] usb_set_configuration+0x3f6/0x469 [usbcore]
[.507099] [<f0844ba7>] generic_probe+0x50/0x91 [usbcore]
[.507125] [<f083f763>] usb_probe_device+0x32/0x37 [usbcore]
[.507142] [<c05dd2ab>] driver_probe_device+0xdd/0x15a
[.507148] [<c0688f9a>] klist_next+0x50/0x82
[.507154] [<c05dd328>] __device_attach+0x0/0x5
[.507159] [<c05dc7ce>] bus_for_each_drv+0x32/0x58
[.507167] [<c05dd3a5>] device_attach+0x5d/0x70
[.507172] [<c05dd328>] __device_attach+0x0/0x5
[.507177] [<c05dc74f>] bus_attach_device+0x26/0x73
[.507184] [<c05dbabc>] device_add+0x25d/0x447
[.507195] [<f0839c0f>] usb_new_device+0x41/0x7e [usbcore]
[.507217] [<f083ad51>] hub_thread+0x6b6/0xa93 [usbcore]
[.507243] [<c042fc93>] autoremove_wake_function+0x0/0x35
[.507253] [<c06895dc>] schedule+0x1e2/0x22e
[.507258] [<f083a69b>] hub_thread+0x0/0xa93 [usbcore]
[.507276] [<c042fbd9>] kthread+0x36/0x5d
[.507280] [<c042fba3>] kthread+0x0/0x5d
[.507285] [<c0404a1b>] kernel_thread_helper+0x7/0x10
[.507294] =======================
[.511876] input: USB Audio as /devices/pci0000:00/0000:00:1e.0/0000:02:04.2/usb1/1-1/1-1.3/1-1.3:1.3/input/input7
[.537041] input: USB HID v1.00 Device [USB Audio] on usb-0000:02:04.2-1.3

--
Luciano Rocha <[email protected]>
Eurotux Inform?tica, S.A. <http://www.eurotux.com/>


Attachments:
(No filename) (2.61 kB)
(No filename) (189.00 B)
Download all attachments

2008-02-13 14:21:49

by Takashi Iwai

[permalink] [raw]
Subject: Re: sysfs: duplicate filename 'card0' can not be created

At Wed, 13 Feb 2008 14:05:27 +0000,
Luciano Rocha wrote:
>
> Hello,
>
> Is this known? I got the error while connecting usb headphones, running
> vanilla 2.6.24.

Not known. In which situation does it happen and is reproducible?


Takashi


>
> Error:
>
> [.361992] usb 1-1.3: new full speed USB device using ehci_hcd and address 13
> [.448232] usb 1-1.3: configuration #1 chosen from 1 choice
> [.506787] sysfs: duplicate filename 'card0' can not be created
> [.506796] WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()
> [.506802] Pid: 794, comm: khubd Not tainted 2.6.24lcfs1 #1
> [.506819] [<c04a07cd>] sysfs_add_one+0x54/0xb7
> [.506835] [<c04a1415>] sysfs_create_link+0xbe/0x109
> [.506846] [<c05db991>] device_add+0x132/0x447
> [.506856] [<c057e9ba>] kobject_init+0x27/0x37
> [.506866] [<c05dbf12>] device_create+0x77/0x97
> [.506873] [<c0611fa1>] snd_card_register+0x3f/0x254
> [.506883] [<f083fa71>] usb_driver_claim_interface+0x6b/0x86 [usbcore]
> [.506944] [<f09b7cbb>] usb_audio_probe+0x6c7/0x76e [snd_usb_audio]
> [.506990] [<f083f960>] usb_probe_interface+0xa2/0xda [usbcore]
> [.507010] [<c05dd14b>] driver_sysfs_add+0x36/0x53
> [.507018] [<c05dd2ab>] driver_probe_device+0xdd/0x15a
> [.507025] [<c0688f9a>] klist_next+0x50/0x82
> [.507032] [<c05dd328>] __device_attach+0x0/0x5
> [.507037] [<c05dc7ce>] bus_for_each_drv+0x32/0x58
> [.507045] [<c05dd3a5>] device_attach+0x5d/0x70
> [.507049] [<c05dd328>] __device_attach+0x0/0x5
> [.507055] [<c05dc74f>] bus_attach_device+0x26/0x73
> [.507062] [<c05dbabc>] device_add+0x25d/0x447
> [.507073] [<f083e316>] usb_set_configuration+0x3f6/0x469 [usbcore]
> [.507099] [<f0844ba7>] generic_probe+0x50/0x91 [usbcore]
> [.507125] [<f083f763>] usb_probe_device+0x32/0x37 [usbcore]
> [.507142] [<c05dd2ab>] driver_probe_device+0xdd/0x15a
> [.507148] [<c0688f9a>] klist_next+0x50/0x82
> [.507154] [<c05dd328>] __device_attach+0x0/0x5
> [.507159] [<c05dc7ce>] bus_for_each_drv+0x32/0x58
> [.507167] [<c05dd3a5>] device_attach+0x5d/0x70
> [.507172] [<c05dd328>] __device_attach+0x0/0x5
> [.507177] [<c05dc74f>] bus_attach_device+0x26/0x73
> [.507184] [<c05dbabc>] device_add+0x25d/0x447
> [.507195] [<f0839c0f>] usb_new_device+0x41/0x7e [usbcore]
> [.507217] [<f083ad51>] hub_thread+0x6b6/0xa93 [usbcore]
> [.507243] [<c042fc93>] autoremove_wake_function+0x0/0x35
> [.507253] [<c06895dc>] schedule+0x1e2/0x22e
> [.507258] [<f083a69b>] hub_thread+0x0/0xa93 [usbcore]
> [.507276] [<c042fbd9>] kthread+0x36/0x5d
> [.507280] [<c042fba3>] kthread+0x0/0x5d
> [.507285] [<c0404a1b>] kernel_thread_helper+0x7/0x10
> [.507294] =======================
> [.511876] input: USB Audio as /devices/pci0000:00/0000:00:1e.0/0000:02:04.2/usb1/1-1/1-1.3/1-1.3:1.3/input/input7
> [.537041] input: USB HID v1.00 Device [USB Audio] on usb-0000:02:04.2-1.3
>
> --
> Luciano Rocha <[email protected]>
> Eurotux Inform?tica, S.A. <http://www.eurotux.com/>
> [2 <application/pgp-signature (7bit)>]
>

2008-02-13 15:09:36

by Luciano Rocha

[permalink] [raw]
Subject: Re: sysfs: duplicate filename 'card0' can not be created

On Wed, Feb 13, 2008 at 03:21:38PM +0100, Takashi Iwai wrote:
> At Wed, 13 Feb 2008 14:05:27 +0000,
> Luciano Rocha wrote:
> >
> > Hello,
> >
> > Is this known? I got the error while connecting usb headphones, running
> > vanilla 2.6.24.
>
> Not known. In which situation does it happen and is reproducible?
>

Disconnecting and reconnecting doesn't result in error. I'll try a
reboot later.

--
Luciano Rocha <[email protected]>
Eurotux Inform?tica, S.A. <http://www.eurotux.com/>


Attachments:
(No filename) (490.00 B)
(No filename) (189.00 B)
Download all attachments

2008-02-14 10:06:04

by Luciano Rocha

[permalink] [raw]
Subject: Re: sysfs: duplicate filename 'card0' can not be created

On Wed, Feb 13, 2008 at 03:09:21PM +0000, Luciano Rocha wrote:
> On Wed, Feb 13, 2008 at 03:21:38PM +0100, Takashi Iwai wrote:
> > At Wed, 13 Feb 2008 14:05:27 +0000,
> > Luciano Rocha wrote:
> > >
> > > Hello,
> > >
> > > Is this known? I got the error while connecting usb headphones, running
> > > vanilla 2.6.24.
> >
> > Not known. In which situation does it happen and is reproducible?
> >
>
> Disconnecting and reconnecting doesn't result in error. I'll try a
> reboot later.

After a reboot I still don't get the error (tryed connecting and
reconnecting the headset). Do you have any tests you want me to make?


--
Luciano Rocha <[email protected]>
Eurotux Inform?tica, S.A. <http://www.eurotux.com/>


Attachments:
(No filename) (718.00 B)
(No filename) (189.00 B)
Download all attachments

2008-02-14 12:10:34

by Takashi Iwai

[permalink] [raw]
Subject: Re: sysfs: duplicate filename 'card0' can not be created

At Thu, 14 Feb 2008 10:05:44 +0000,
Luciano Rocha wrote:
>
> [1 <text/plain; iso-8859-1 (quoted-printable)>]
> On Wed, Feb 13, 2008 at 03:09:21PM +0000, Luciano Rocha wrote:
> > On Wed, Feb 13, 2008 at 03:21:38PM +0100, Takashi Iwai wrote:
> > > At Wed, 13 Feb 2008 14:05:27 +0000,
> > > Luciano Rocha wrote:
> > > >
> > > > Hello,
> > > >
> > > > Is this known? I got the error while connecting usb headphones, running
> > > > vanilla 2.6.24.
> > >
> > > Not known. In which situation does it happen and is reproducible?
> > >
> >
> > Disconnecting and reconnecting doesn't result in error. I'll try a
> > reboot later.
>
> After a reboot I still don't get the error (tryed connecting and
> reconnecting the headset). Do you have any tests you want me to make?

Oh, if this is about replugging, I remember a long-standing bug in
usb-audio driver. Basically it happens when the device is reconnected
promptly during its device file is being opened. A kind of race
condition.


Takashi