Zoran zr364xx connect and disconnect problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
APPLIES TO
Kernel 2.6.32-24-generic Ubuntu Release 10.04 for Netbook. The same problems occure on Kernel 2.6.32-24-generic Ubuntu Release 10.04 and Ubuntu Release 8.04.3 on Live CD.
The zr364xx driver has the following problems:-
1. After connecting as a USB Storage device, unplugging without unmounting crashes the camcorder.
2. Webcam functionality does not work at all.
DETAIL - I've delimited relevant sections from syslog with ==========
1)
When plugging a camcorder into USB the following appears in the syslog
==========
Sep 5 03:38:42 localhost kernel: [34514.876576] usb 1-1: new high speed USB device using ehci_hcd and address 3
Sep 5 03:38:42 localhost kernel: [34515.024583] hub 1-0:1.0: unable to enumerate USB device on port 1
Sep 5 03:38:49 localhost kernel: [34521.648618] usb 1-1: new high speed USB device using ehci_hcd and address 4
Sep 5 03:38:49 localhost kernel: [34521.781953] usb 1-1: configuration #1 chosen from 1 choice
Sep 5 03:38:49 localhost kernel: [34522.080732] Initializing USB Mass Storage driver...
==========
The camcorder requires a selection be made on the device choosing to connect as a USB storage device or a webcam. Choosing USB storage device appears to works fine. The camcorder also connects as a CDROM which contails the windows driver install files.
==========
Sep 5 11:12:05 localhost kernel: [ 2432.486678] scsi6 : SCSI emulation for USB Mass Storage devices
Sep 5 11:12:05 localhost kernel: [ 2432.487397] usb-storage: device found at 4
Sep 5 11:12:05 localhost kernel: [ 2432.487408] usb-storage: waiting for device to settle before scanning
Sep 5 11:12:05 localhost kernel: [ 2432.487469] usbcore: registered new interface driver usb-storage
Sep 5 11:12:05 localhost kernel: [ 2432.487483] USB Mass Storage support registered.
Sep 5 11:12:10 localhost kernel: [ 2437.505674] usb-storage: device scan complete
Sep 5 11:12:10 localhost kernel: [ 2437.514505] scsi 6:0:0:0: Direct-Access ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS
Sep 5 11:12:10 localhost kernel: [ 2437.522124] scsi 6:0:0:1: CD-ROM ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS
Sep 5 11:12:10 localhost kernel: [ 2437.533122] sd 6:0:0:0: Attached scsi generic sg1 type 0
Sep 5 11:12:10 localhost kernel: [ 2437.543941] sr0: scsi3-mmc drive: 0x/0x caddy
Sep 5 11:12:10 localhost kernel: [ 2437.543954] Uniform CD-ROM driver Revision: 3.20
Sep 5 11:12:10 localhost kernel: [ 2437.545255] sr 6:0:0:1: Attached scsi CD-ROM sr0
Sep 5 11:12:10 localhost kernel: [ 2437.548345] sr 6:0:0:1: Attached scsi generic sg2 type 5
Sep 5 11:12:10 localhost kernel: [ 2437.550573] sd 6:0:0:0: [sdb] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
Sep 5 11:12:10 localhost kernel: [ 2437.552948] sd 6:0:0:0: [sdb] Write Protect is off
Sep 5 11:12:10 localhost kernel: [ 2437.552960] sd 6:0:0:0: [sdb] Mode Sense: 00 06 00 00
Sep 5 11:12:10 localhost kernel: [ 2437.552968] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Sep 5 11:12:10 localhost kernel: [ 2437.554941] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Sep 5 11:12:10 localhost kernel: [ 2437.554957] sdb: sdb1
Sep 5 11:12:10 localhost kernel: [ 2437.560974] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Sep 5 11:12:10 localhost kernel: [ 2437.560992] sd 6:0:0:0: [sdb] Attached SCSI disk
Sep 5 11:12:10 localhost kernel: [ 2437.592940] sr0: Hmm, seems the drive doesn't support multisession CD's
Sep 5 11:12:10 localhost kernel: [ 2437.980919] ISO 9660 Extensions: Microsoft Joliet Level 1
============
However, upon disconnect the camcorder freezes and can only be reset by taking out the battery. This does not happen on Windows XP. Everything works fine. It also does not seem to happen if you unmount the device and wait a few seconds before unplugging.
2)
When reconnected and the webcam connection option is selected, the following error occurs
============
Sep 5 11:25:28 localhost kernel: [ 3235.788195] usb 1-1: new high speed USB device using ehci_hcd and address 9
Sep 5 11:25:28 localhost kernel: [ 3235.921973] usb 1-1: configuration #1 chosen from 1 choice
Sep 5 11:25:28 localhost kernel: [ 3235.923760] usb-storage: probe of 1-1:1.0 failed with error -5
Sep 5 11:25:28 localhost kernel: [ 3235.993308] zr364xx 1-1:1.0: Zoran 364xx compatible webcam plugged
Sep 5 11:25:28 localhost kernel: [ 3235.993321] zr364xx 1-1:1.0: model 0595:4343 detected
Sep 5 11:25:28 localhost kernel: [ 3235.993332] usb 1-1: 320x240 mode selected
Sep 5 11:25:28 localhost kernel: [ 3235.993757] usb 1-1: Zoran 364xx controlling video device 1
Sep 5 11:25:28 localhost kernel: [ 3235.993833] usbcore: registered new interface driver zr364xx
Sep 5 11:25:28 localhost kernel: [ 3235.994445] zr364xx: Zoran 364xx
Sep 5 11:25:29 localhost kernel: [ 3236.624789] usb 1-1: Failed sending control message, error -110.
Sep 5 11:25:29 localhost kernel: [ 3236.624804] usb 1-1: error during open sequence: 5
============
The device does not appear as an available webcam in any application. The module does appear to load. This is from lsmod
============
Module Size Used by
zr364xx 17893 0
videobuf_vmalloc 5586 1 zr364xx
videobuf_core 16356 2 zr364xx,
....
videodev 34361 2 zr364xx,uvcvideo
============
When disconnected a bug appears in the syslog related to a kernel NULL pointer dereference
============
Sep 5 11:31:28 localhost kernel: [ 3596.003568] usb 1-1: USB disconnect, address 9
Sep 5 11:31:28 localhost kernel: [ 3596.008557] BUG: unable to handle kernel NULL pointer dereference at (null)
Sep 5 11:31:28 localhost kernel: [ 3596.008578] IP: [<c058bcfa>] __mutex_
Sep 5 11:31:28 localhost kernel: [ 3596.008603] *pde = 00000000
Sep 5 11:31:28 localhost kernel: [ 3596.008613] Oops: 0002 [#1] SMP
Sep 5 11:31:28 localhost kernel: [ 3596.008623] last sysfs file: /sys/devices/
Sep 5 11:31:28 localhost kernel: [ 3596.008634] Modules linked in: zr364xx videobuf_vmalloc videobuf_core nls_iso8859_1 nls_cp437 vfat fat nls_utf8 isofs usb_storage michael_mic arc4 binfmt_misc ppdev snd_hda_
Sep 5 11:31:28 localhost kernel: [ 3596.008785]
Sep 5 11:31:28 localhost kernel: [ 3596.008797] Pid: 30, comm: khubd Tainted: P (2.6.32-24-generic #42-Ubuntu) HP Mini 311-1000
Sep 5 11:31:28 localhost kernel: [ 3596.008808] EIP: 0060:[<c058bcfa>] EFLAGS: 00010246 CPU: 1
Sep 5 11:31:28 localhost kernel: [ 3596.008819] EIP is at __mutex_
Sep 5 11:31:28 localhost kernel: [ 3596.008828] EAX: 00000000 EBX: d934a4a4 ECX: d934a4ac EDX: f68b1db4
Sep 5 11:31:28 localhost kernel: [ 3596.008837] ESI: d934a4a8 EDI: d934a4b4 EBP: f68b1dcc ESP: f68b1da8
Sep 5 11:31:28 localhost kernel: [ 3596.008846] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Sep 5 11:31:28 localhost kernel: [ 3596.008856] Process khubd (pid: 30, ti=f68b0000 task=f68a8000 task.ti=f68b0000)
Sep 5 11:31:28 localhost kernel: [ 3596.008864] Stack:
Sep 5 11:31:28 localhost kernel: [ 3596.008869] ec324ed0 d934a4ac f68a8000 d934a4ac 00000000 00002fb2 d934a4a4 c4801e00
Sep 5 11:31:28 localhost kernel: [ 3596.008891] <0> d934a400 f68b1ddc c058bc55 d934a4a4 c4801e00 f68b1dec f82f85a9 c4801e1c
Sep 5 11:31:28 localhost kernel: [ 3596.008914] <0> c4801e00 f68b1e0c f830d26d c04485c1 00000000 dfb7b800 c4801e00 c4801e1c
Sep 5 11:31:28 localhost kernel: [ 3596.008939] Call Trace:
Sep 5 11:31:28 localhost kernel: [ 3596.008952] [<c058bc55>] ? mutex_lock+
Sep 5 11:31:28 localhost kernel: [ 3596.008971] [<f82f85a9>] ? videobuf_
Sep 5 11:31:28 localhost kernel: [ 3596.008987] [<f830d26d>] ? zr364xx_
Sep 5 11:31:28 localhost kernel: [ 3596.009002] [<c04485c1>] ? usb_disable_
Sep 5 11:31:28 localhost kernel: [ 3596.009015] [<c044b759>] ? usb_unbind_
Sep 5 11:31:28 localhost kernel: [ 3596.009031] [<c03e7a71>] ? __device_
Sep 5 11:31:28 localhost kernel: [ 3596.009043] [<c03e7b95>] ? device_
Sep 5 11:31:28 localhost kernel: [ 3596.009056] [<c03e6e4b>] ? bus_remove_
Sep 5 11:31:28 localhost kernel: [ 3596.009069] [<c03e52c7>] ? device_
Sep 5 11:31:28 localhost kernel: [ 3596.009081] [<c0448505>] ? usb_disable_
Sep 5 11:31:28 localhost kernel: [ 3596.009095] [<c0442f9e>] ? usb_disconnect+
Sep 5 11:31:28 localhost kernel: [ 3596.009109] [<c04434fb>] ? hub_port_
Sep 5 11:31:28 localhost kernel: [ 3596.009122] [<c0449145>] ? usb_control_
Sep 5 11:31:28 localhost kernel: [ 3596.009135] [<c0440f50>] ? clear_port_
Sep 5 11:31:28 localhost kernel: [ 3596.009149] [<c0444465>] ? hub_events+
Sep 5 11:31:28 localhost kernel: [ 3596.009164] [<c016797f>] ? finish_
Sep 5 11:31:28 localhost kernel: [ 3596.009176] [<c04447ba>] ? hub_thread+
Sep 5 11:31:28 localhost kernel: [ 3596.009188] [<c0167810>] ? autoremove_
Sep 5 11:31:28 localhost kernel: [ 3596.009201] [<c0444780>] ? hub_thread+
Sep 5 11:31:28 localhost kernel: [ 3596.009212] [<c0167584>] ? kthread+0x74/0x80
Sep 5 11:31:28 localhost kernel: [ 3596.009224] [<c0167510>] ? kthread+0x0/0x80
Sep 5 11:31:28 localhost kernel: [ 3596.009238] [<c0104087>] ? kernel_
Sep 5 11:31:28 localhost kernel: [ 3596.009245] Code: 18 63 7f bd 90 8d 74 26 00 8d 73 04 89 f0 e8 de 11 00 00 8d 55 e8 8d 43 08 89 45 e0 8b 43 0c 89 53 0c 8b 4d e0 89 45 ec 89 4d e8 <89> 10 8b 45 e4 ba ff ff ff ff 89 45 f0 89 d0 87 03 83 f8 01 74
Sep 5 11:31:28 localhost kernel: [ 3596.009371] EIP: [<c058bcfa>] __mutex_
Sep 5 11:31:28 localhost kernel: [ 3596.009388] CR2: 0000000000000000
Sep 5 11:31:28 localhost kernel: [ 3596.009398] ---[ end trace 7f1d85421ba47295 ]---
============
The module does not appear to be removed and attempts to remove it with module -r zr364xx just hang. The only way I could get it out of there was with a reboot.
I've tested this on Ubuntu 10.04 for Desktop, 10.04 for Netbook and 8.04 Live CD and I get the same results. The syslog output is below.
============
Sep 5 00:26:40 ubuntu kernel: [ 744.713782] usb 3-6: new high speed USB device using ehci_hcd and address 4
Sep 5 00:26:56 ubuntu kernel: [ 760.157999] usb 2-3: new full speed USB device using ohci_hcd and address 4
Sep 5 00:26:56 ubuntu kernel: [ 760.358453] usb 2-3: not running at top speed; connect to a high speed hub
Sep 5 00:26:56 ubuntu NetworkManager: <debug> [1283646416.319083] nm_hal_
Sep 5 00:26:56 ubuntu kernel: [ 760.376634] usb 2-3: configuration #1 chosen from 1 choice
Sep 5 00:26:56 ubuntu kernel: [ 760.411720] usb-storage: probe of 2-3:1.0 failed with error -5
Sep 5 00:26:56 ubuntu kernel: [ 760.676167] /build/
Sep 5 00:26:56 ubuntu kernel: [ 760.676179] /build/
Sep 5 00:26:56 ubuntu kernel: [ 760.676836] /build/
Sep 5 00:26:56 ubuntu kernel: [ 760.677132] /build/
Sep 5 00:26:56 ubuntu kernel: [ 760.677414] usbcore: registered new interface driver zr364xx
Sep 5 00:26:56 ubuntu kernel: [ 760.677619] /build/
Sep 5 00:26:56 ubuntu NetworkManager: <debug> [1283646416.644357] nm_hal_
Sep 5 00:30:27 ubuntu kernel: [ 971.827686] /build/
Sep 5 00:30:27 ubuntu kernel: [ 971.827697] /build/
Sep 5 00:37:22 ubuntu kernel: [ 1386.191429] usb 2-3: USB disconnect, address 4
Sep 5 00:37:22 ubuntu kernel: [ 1386.191712] /build/
Sep 5 00:37:22 ubuntu NetworkManager: <debug> [1283647042.452881] nm_hal_
Sep 5 00:37:22 ubuntu NetworkManager: <debug> [1283647042.465850] nm_hal_
Sep 5 00:37:45 ubuntu kernel: [ 1409.638547] usb 3-6: new high speed USB device using ehci_hcd and address 5
Sep 5 00:38:01 ubuntu kernel: [ 1425.082744] usb 2-3: new full speed USB device using ohci_hcd and address 5
Sep 5 00:38:01 ubuntu kernel: [ 1425.282809] usb 2-3: not running at top speed; connect to a high speed hub
Sep 5 00:38:01 ubuntu kernel: [ 1425.300973] usb 2-3: configuration #1 chosen from 1 choice
Sep 5 00:38:01 ubuntu NetworkManager: <debug> [1283647081.579835] nm_hal_
Sep 5 00:38:01 ubuntu kernel: [ 1425.338825] scsi6 : SCSI emulation for USB Mass Storage devices
Sep 5 00:38:01 ubuntu kernel: [ 1425.340676] usb-storage: device found at 5
Sep 5 00:38:01 ubuntu kernel: [ 1425.340684] usb-storage: waiting for device to settle before scanning
Sep 5 00:38:01 ubuntu NetworkManager: <debug> [1283647081.694792] nm_hal_
Sep 5 00:38:06 ubuntu kernel: [ 1430.364105] usb-storage: device scan complete
Sep 5 00:38:06 ubuntu kernel: [ 1430.375828] scsi 6:0:0:0: Direct-Access ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS
Sep 5 00:38:06 ubuntu kernel: [ 1430.386801] scsi 6:0:0:1: CD-ROM ZORAN COACH6 (I62) 1.10 PQ: 0 ANSI: 0 CCS
Sep 5 00:38:06 ubuntu kernel: [ 1430.405817] sd 6:0:0:0: [sdg] 3913728 512-byte hardware sectors (2004 MB)
Sep 5 00:38:06 ubuntu kernel: [ 1430.412792] sd 6:0:0:0: [sdg] Write Protect is off
Sep 5 00:38:06 ubuntu kernel: [ 1430.412806] sd 6:0:0:0: [sdg] Mode Sense: 00 06 00 00
Sep 5 00:38:06 ubuntu kernel: [ 1430.412810] sd 6:0:0:0: [sdg] Assuming drive cache: write through
Sep 5 00:38:06 ubuntu kernel: [ 1430.423790] sd 6:0:0:0: [sdg] 3913728 512-byte hardware sectors (2004 MB)
Sep 5 00:38:06 ubuntu kernel: [ 1430.430767] sd 6:0:0:0: [sdg] Write Protect is off
Sep 5 00:38:06 ubuntu kernel: [ 1430.430780] sd 6:0:0:0: [sdg] Mode Sense: 00 06 00 00
Sep 5 00:38:06 ubuntu kernel: [ 1430.430784] sd 6:0:0:0: [sdg] Assuming drive cache: write through
Sep 5 00:38:06 ubuntu kernel: [ 1430.430796] sdg: sdg1
Sep 5 00:38:06 ubuntu kernel: [ 1430.440971] sd 6:0:0:0: [sdg] Attached SCSI disk
Sep 5 00:38:06 ubuntu kernel: [ 1430.441048] sd 6:0:0:0: Attached scsi generic sg7 type 0
Sep 5 00:38:06 ubuntu kernel: [ 1430.451758] sr1: scsi3-mmc drive: 0x/0x caddy
Sep 5 00:38:06 ubuntu kernel: [ 1430.451878] sr 6:0:0:1: Attached scsi CD-ROM sr1
Sep 5 00:38:06 ubuntu kernel: [ 1430.451947] sr 6:0:0:1: Attached scsi generic sg8 type 5
Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.821382] nm_hal_
Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.832525] nm_hal_
Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.897211] nm_hal_
Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.941325] nm_hal_
Sep 5 00:38:06 ubuntu kernel: [ 1430.696633] sr1: Hmm, seems the drive doesn't support multisession CD's
Sep 5 00:38:06 ubuntu NetworkManager: <debug> [1283647086.981470] nm_hal_
Sep 5 00:38:07 ubuntu NetworkManager: <debug> [1283647087.486961] nm_hal_
Sep 5 00:38:07 ubuntu NetworkManager: <debug> [1283647087.606372] nm_hal_
Sep 5 00:38:07 ubuntu NetworkManager: <debug> [1283647087.803836] nm_hal_
Sep 5 00:38:08 ubuntu NetworkManager: <debug> [1283647088.074773] nm_hal_
Sep 5 00:38:08 ubuntu hald: mounted /dev/sdg1 on behalf of uid 999
=========
Sep 5 00:42:53 ubuntu hald: unmounted /dev/sdg1 from '/media/NO_NAME' on behalf of uid 999
=========
Just to be clear, all the functions work fine on windows XP with the Zoran Couch drivers provided. The camcorder connects and disconnects as a USB Storage device or a camcorder and works as expected on XP.
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | Expired → New |
This bug is missing log files that will aid in dianosing the problem. From a terminal window please run:
apport-collect 630568
and then change the status of the bug back to 'New'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.