Re: [bug]? cx23885 - tries to create duplicate (firmware) filename in sysfs
Em 06-06-2011 08:32, Vincent McIntyre escreveu: > Hi, > > I just noticed this starting to happen - I can't see any sign of it in syslog > before I rebuilt the modules (git commit tags are listed below). > I don't know if this is a backporting issue or a bug in mainline. > > The system in question has two dual-tuner cards, one a USB (mounted on > a PCI card) > the other a PCI card. Both use the cx23885 driver. As far as I can see > the PCI card is > where the problem lies - there's no way to distinguish between the two > tuners (I found > this when trying to write some udev rules to generate stably-named symlinks). > > > % uname -a > Linux ubuntu 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC > 2010 i686 GNU/Linux If I'm not mistaken, this bug were fixed by a patch at driver core, on some kernel later than 2.6.32. I've no idea if such patch were backported into ubuntu. The better is to install a newer kernel and see if the bug is still happening. Cheers, Mauro. > > [4.020062] Latest git patches (needed if you report a bug to > linux-media@vger.kernel.org): > [4.020063] 5e094096b93c9c48b4b90457e83cbca6fc2ff5d4 [media] v1.88 > DM04/QQBOX Move remote to use rc_core dvb-usb-remote > [4.020064] 154d70a479c27695a4ad938cc0b14cb91866cf2d [media] Add > missing include guard to header file > [4.020065] 537d9c461e6cbe7a2cc35121f0ee4d48f52753a3 [media] > Inlined functions should be static > > The error I see is: > > [ 34.900554] [ cut here ] > [ 34.900561] WARNING: at > /build/buildd/linux-2.6.32/fs/sysfs/dir.c:491 > sysfs_add_one+0xa0/0x100() > [ 34.900563] Hardware name: > [ 34.900565] sysfs: cannot create duplicate filename > '/devices/pci:00/:00:1c.3/:04:00.0/firmware/:04:00.0' > [ 34.900567] Modules linked in: ppdev ipt_MASQUERADE iptable_nat > nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack > ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp > kvm_intel kvm snd_hda_codec_realtek snd_hda_intel snd_hda_codec > snd_hwdep snd_pcm_oss fbcon snd_mixer_oss tileblit font snd_pcm > snd_seq_dummy bitblit ir_kbd_i2c tuner_xc2028 softcursor snd_seq_oss > vga16fb snd_seq_midi arc4 vgastate ir_lirc_codec lirc_dev rc_imon_mce > zl10353 snd_rawmidi ir_sony_decoder cx23885 lp i915 snd_seq_midi_event > ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder dvb_usb_cxusb snd_seq > parport cx2341x drm_kms_helper intel_agp videobuf_dma_sg videobuf_dvb > videobuf_core snd_timer snd_seq_device drm i2c_algo_bit video > ir_nec_decoder output v4l2_common snd rtl8180 dib7000p dibx000_common > soundcore agpgart snd_page_alloc videodev mac80211 eeprom_93cx6 > dvb_usb btcx_risc imon psmouse dvb_core cfg80211 rc_core tveeprom > serio_raw dib0070 usb_storage raid10 raid456 async_raid6_recov > async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid0 > ohci1394 multipath ieee1394 ahci e1000e pata_marvell linear > [ 34.900653] Pid: 2399, comm: kdvb-ad-2-fe-0 Not tainted > 2.6.32-27-generic #49-Ubuntu > [ 34.900655] Call Trace: > [ 34.900660] [] warn_slowpath_common+0x72/0xa0 > [ 34.900663] [] ? sysfs_add_one+0xa0/0x100 > [ 34.900666] [] ? sysfs_add_one+0xa0/0x100 > [ 34.900669] [] warn_slowpath_fmt+0x2b/0x30 > [ 34.900672] [] sysfs_add_one+0xa0/0x100 > [ 34.900675] [] create_dir+0x4e/0x90 > [ 34.900678] [] sysfs_create_dir+0x30/0x50 > [ 34.900682] [] kobject_add_internal+0x92/0x1d0 > [ 34.900684] [] ? vsnprintf+0x206/0x410 > [ 34.900687] [] kobject_add_varg+0x2d/0x50 > [ 34.900692] [] ? get_device_parent+0xcb/0x1a0 > [ 34.900695] [] kobject_add+0x2c/0x60 > [ 34.900698] [] device_add+0x99/0x430 > [ 34.900701] [] ? pm_runtime_init+0xb0/0xc0 > [ 34.900704] [] device_register+0x17/0x20 > [ 34.900707] [] fw_register_device+0x14b/0x210 > [ 34.900710] [] fw_setup_device+0x2d/0x100 > [ 34.900713] [] _request_firmware+0xb0/0x220 > [ 34.900715] [] request_firmware+0x17/0x20 > [ 34.900722] [] generic_set_freq+0x99c/0x18f0 [tuner_xc2028] > [ 34.900725] [] ? delay_tsc+0x2a/0x70 > [ 34.900727] [] ? __const_udelay+0x31/0x40 > [ 34.900735] [] ? i2c_sendbytes+0x169/0x3c0 [cx23885] > [ 34.900742] [] ? i2c_xfer+0x70/0x140 [cx23885] > [ 34.900745] [] ? _cond_resched+0x32/0x50 > [ 34.900749] [] ? i2c_transfer+0x94/0xc0 > [ 34.900753] [] xc2028_set_params+0x195/0x286 [tuner_xc2028] > [ 34.900757] [] zl10353_set_parameters+0x4ec/0x630 [zl10353] > [ 34.900763] [] ? _spin_lock_irqsave+0x2f/0x50 > [ 34.900766] [] ? lock_timer_base+0x2c/0x60 > [ 34.900777] [] > dvb_frontend_swzigzag_autotune+0x115/0x300 [dvb_core] > [ 34.900785] [] dvb_frontend_swzigzag+0x261/0x300 [dvb_core] > [ 34.900792] [] dvb_frontend_thread+0x3c7/0x700 [dvb_core] > [ 34.900795] [] ? schedule+0x44c/0x840 > [ 34.900799] [] ? autoremove_wake_function+0x0/0x50 > [ 34.900807] [] ? dvb_frontend_thread+0x0/0x700 [dvb_core] > [ 34.900810] [] kthread+0x74/0x80 > [ 34.900813] []
[bug]? cx23885 - tries to create duplicate (firmware) filename in sysfs
Hi, I just noticed this starting to happen - I can't see any sign of it in syslog before I rebuilt the modules (git commit tags are listed below). I don't know if this is a backporting issue or a bug in mainline. The system in question has two dual-tuner cards, one a USB (mounted on a PCI card) the other a PCI card. Both use the cx23885 driver. As far as I can see the PCI card is where the problem lies - there's no way to distinguish between the two tuners (I found this when trying to write some udev rules to generate stably-named symlinks). % uname -a Linux ubuntu 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/Linux [4.020062] Latest git patches (needed if you report a bug to linux-media@vger.kernel.org): [4.020063] 5e094096b93c9c48b4b90457e83cbca6fc2ff5d4 [media] v1.88 DM04/QQBOX Move remote to use rc_core dvb-usb-remote [4.020064] 154d70a479c27695a4ad938cc0b14cb91866cf2d [media] Add missing include guard to header file [4.020065] 537d9c461e6cbe7a2cc35121f0ee4d48f52753a3 [media] Inlined functions should be static The error I see is: [ 34.900554] [ cut here ] [ 34.900561] WARNING: at /build/buildd/linux-2.6.32/fs/sysfs/dir.c:491 sysfs_add_one+0xa0/0x100() [ 34.900563] Hardware name: [ 34.900565] sysfs: cannot create duplicate filename '/devices/pci:00/:00:1c.3/:04:00.0/firmware/:04:00.0' [ 34.900567] Modules linked in: ppdev ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp kvm_intel kvm snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss fbcon snd_mixer_oss tileblit font snd_pcm snd_seq_dummy bitblit ir_kbd_i2c tuner_xc2028 softcursor snd_seq_oss vga16fb snd_seq_midi arc4 vgastate ir_lirc_codec lirc_dev rc_imon_mce zl10353 snd_rawmidi ir_sony_decoder cx23885 lp i915 snd_seq_midi_event ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder dvb_usb_cxusb snd_seq parport cx2341x drm_kms_helper intel_agp videobuf_dma_sg videobuf_dvb videobuf_core snd_timer snd_seq_device drm i2c_algo_bit video ir_nec_decoder output v4l2_common snd rtl8180 dib7000p dibx000_common soundcore agpgart snd_page_alloc videodev mac80211 eeprom_93cx6 dvb_usb btcx_risc imon psmouse dvb_core cfg80211 rc_core tveeprom serio_raw dib0070 usb_storage raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid0 ohci1394 multipath ieee1394 ahci e1000e pata_marvell linear [ 34.900653] Pid: 2399, comm: kdvb-ad-2-fe-0 Not tainted 2.6.32-27-generic #49-Ubuntu [ 34.900655] Call Trace: [ 34.900660] [] warn_slowpath_common+0x72/0xa0 [ 34.900663] [] ? sysfs_add_one+0xa0/0x100 [ 34.900666] [] ? sysfs_add_one+0xa0/0x100 [ 34.900669] [] warn_slowpath_fmt+0x2b/0x30 [ 34.900672] [] sysfs_add_one+0xa0/0x100 [ 34.900675] [] create_dir+0x4e/0x90 [ 34.900678] [] sysfs_create_dir+0x30/0x50 [ 34.900682] [] kobject_add_internal+0x92/0x1d0 [ 34.900684] [] ? vsnprintf+0x206/0x410 [ 34.900687] [] kobject_add_varg+0x2d/0x50 [ 34.900692] [] ? get_device_parent+0xcb/0x1a0 [ 34.900695] [] kobject_add+0x2c/0x60 [ 34.900698] [] device_add+0x99/0x430 [ 34.900701] [] ? pm_runtime_init+0xb0/0xc0 [ 34.900704] [] device_register+0x17/0x20 [ 34.900707] [] fw_register_device+0x14b/0x210 [ 34.900710] [] fw_setup_device+0x2d/0x100 [ 34.900713] [] _request_firmware+0xb0/0x220 [ 34.900715] [] request_firmware+0x17/0x20 [ 34.900722] [] generic_set_freq+0x99c/0x18f0 [tuner_xc2028] [ 34.900725] [] ? delay_tsc+0x2a/0x70 [ 34.900727] [] ? __const_udelay+0x31/0x40 [ 34.900735] [] ? i2c_sendbytes+0x169/0x3c0 [cx23885] [ 34.900742] [] ? i2c_xfer+0x70/0x140 [cx23885] [ 34.900745] [] ? _cond_resched+0x32/0x50 [ 34.900749] [] ? i2c_transfer+0x94/0xc0 [ 34.900753] [] xc2028_set_params+0x195/0x286 [tuner_xc2028] [ 34.900757] [] zl10353_set_parameters+0x4ec/0x630 [zl10353] [ 34.900763] [] ? _spin_lock_irqsave+0x2f/0x50 [ 34.900766] [] ? lock_timer_base+0x2c/0x60 [ 34.900777] [] dvb_frontend_swzigzag_autotune+0x115/0x300 [dvb_core] [ 34.900785] [] dvb_frontend_swzigzag+0x261/0x300 [dvb_core] [ 34.900792] [] dvb_frontend_thread+0x3c7/0x700 [dvb_core] [ 34.900795] [] ? schedule+0x44c/0x840 [ 34.900799] [] ? autoremove_wake_function+0x0/0x50 [ 34.900807] [] ? dvb_frontend_thread+0x0/0x700 [dvb_core] [ 34.900810] [] kthread+0x74/0x80 [ 34.900813] [] ? kthread+0x0/0x80 [ 34.900817] [] kernel_thread_helper+0x7/0x10 [ 34.900819] ---[ end trace 14130c4e15fe09fe ]--- [ 34.900822] kobject_add_internal failed for :04:00.0 with -EEXIST, don't try to register things with the same name in the same directory. [ 34.900826] Pid: 2399, comm: kdvb-ad-2-fe-0 Tainted: GW 2.6.32-27-ge neric #49-Ubuntu [ 34.900828] Call Trace: [ 34.900830] [] ? printk+0x1d/0x22 [ 34.900833] [] kobject_add_internal+0x13c/0x1d0 [ 34.900836]