Bug 638709

Summary: modprobe pvrusb2 does not return
Product: [openSUSE] openSUSE 11.3 Reporter: Thorsten Staerk <suse>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: jslaby, suse
Version: Final   
Target Milestone: ---   
Hardware: 64bit   
OS: openSUSE 11.3   
Whiteboard: maint:released:11.3:36452
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo output BEFORE calling modprobe -r pvrusb2
dmesg after issueing "modprobe -r pvrusb2"

Description Thorsten Staerk 2010-09-11 10:02:16 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8

I have a SUSE 11.3 system installed by default. Now I want to watch TV as described on http://old-en.opensuse.org/Set_up_Hauppauge_WinTV-PVR_USB2. When I type
 modprobe pvrusb2
the command does not return.

Reproducible: Always

Steps to Reproduce:
1. Install SUSE 11.3 by default
2. call modprobe pvrusb2
Actual Results:  
shell hangs

Expected Results:  
command returns and /dev/videox exists and dmesg contains something like 

usbcore: registered new interface driver pvrusb2       
drivers/media/video/pvrusb2/pvrusb2-main.c: Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner : V4L in-tree version
drivers/media/video/pvrusb2/pvrusb2-main.c: Debug mask is 31 (0x1f)                                           
pvrusb2: Device microcontroller firmware (re)loaded; it should now reset and reconnect.                       
usb 2-4: USB disconnect, address 4                                                                            
pvrusb2: Device being rendered inoperable                                                                     
usb 2-4: new high speed USB device using ehci_hcd and address 5                                               
usb 2-4: configuration #1 chosen from 1 choice                                                                
usb 2-4: New USB device found, idVendor=2040, idProduct=2400                                                  
usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                             
usb 2-4: Product: WinTV                                                                                       
usb 2-4: Manufacturer: Hauppauge                                                                              
usb 2-4: SerialNumber: 2401-00-0082BA22                                                                       
usb 2-4: reset high speed USB device using ehci_hcd and address 5                                             
cx25840' 4-0044: cx25843-24 found @ 0x88 (pvrusb2_a)                                                          
tuner' 4-0043: chip found @ 0x86 (pvrusb2_a)                                                                  
tda9887 4-0043: tda988[5/6/7] found                                                                           
tuner' 4-0061: chip found @ 0xc2 (pvrusb2_a)                                                                  
wm8775' 4-001b: chip found @ 0x36 (pvrusb2_a)                                                                 
tveeprom 4-00a2: Hauppauge model 24019, rev C389, serial# 8567330                                             
tveeprom 4-00a2: tuner model is TCL MFPE05 2 (idx 89, type 38)                                                
tveeprom 4-00a2: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)                           
tveeprom 4-00a2: audio processor is CX25843 (idx 37)                                                          
tveeprom 4-00a2: decoder processor is CX25843 (idx 30)                                                        
tveeprom 4-00a2: has radio, has IR receiver, has no IR transmitter                                            
pvrusb2: Supported video standard(s) reported available in hardware: PAL-B/B1/D/D1/G/H/I/K;SECAM-B/D/G/H/K/K  
pvrusb2: Mapping standards mask=0xff00ff (PAL-B/B1/D/D1/G/H/I/K;SECAM-B/D/G/H/K/K1/L/LC)                      
pvrusb2: Setting up 20 unique standard(s)                                                                     
pvrusb2: Set up standard idx=0 name=PAL-B/G                                                                   
pvrusb2: Set up standard idx=1 name=PAL-D/K                                                                   
pvrusb2: Set up standard idx=2 name=SECAM-B/G                                                                 
pvrusb2: Set up standard idx=3 name=SECAM-D/K                                                                 
pvrusb2: Set up standard idx=4 name=PAL-B                                                                     
pvrusb2: Set up standard idx=5 name=PAL-B1                                                                    
pvrusb2: Set up standard idx=6 name=PAL-G                                                                     
pvrusb2: Set up standard idx=7 name=PAL-H                                                                     
pvrusb2: Set up standard idx=8 name=PAL-I                                                                     
pvrusb2: Set up standard idx=9 name=PAL-D                                                                     
pvrusb2: Set up standard idx=10 name=PAL-D1                                                                   
pvrusb2: Set up standard idx=11 name=PAL-K                                                                    
pvrusb2: Set up standard idx=12 name=SECAM-B                                                                  
pvrusb2: Set up standard idx=13 name=SECAM-D                                                                  
pvrusb2: Set up standard idx=14 name=SECAM-G                                                                  
pvrusb2: Set up standard idx=15 name=SECAM-H
pvrusb2: Set up standard idx=16 name=SECAM-K
pvrusb2: Set up standard idx=17 name=SECAM-K1
pvrusb2: Set up standard idx=18 name=SECAM-L
pvrusb2: Set up standard idx=19 name=SECAM-LC
pvrusb2: Initial video standard auto-selected to PAL-B/G
pvrusb2: Device initialization completed successfully.
Comment 1 Thorsten Staerk 2010-09-11 10:22:34 UTC
I tried it again. After reboot, the command returns. After I said "modprobe -r pvrusb2", the command "modprobe pvrusb2" no longer returns.

Here is the console output for modprobe -r:
linux-noqb:~ # modprobe -r pvrusb2

Message from syslogd@linux-noqb at Sep 11 12:10:45 ...
 kernel:[74055.524142] general protection fault: 0000 [#1] PREEMPT SMP 

Message from syslogd@linux-noqb at Sep 11 12:10:45 ...
 kernel:[74055.524150] last sysfs file: /sys/module/pvrusb2/refcnt

Message from syslogd@linux-noqb at Sep 11 12:10:45 ...
 kernel:[74055.524376] Stack:

Message from syslogd@linux-noqb at Sep 11 12:10:45 ...
 kernel:[74055.524403] Call Trace:

Message from syslogd@linux-noqb at Sep 11 12:10:45 ...
 kernel:[74055.524762] Code: 89 ee 48 89 e7 e8 58 fe ff ff 48 89 e7 e8 f0 fe ff ff 48 8b 5c 24 18 48 8b 6c 24 20 48 83 c4 28 c3 90 55 48 89 f5 53 48 83 ec 08 <48> 8b 5f 28 48 85 db 75 0f eb 1d 0f 1f 40 00 48 8b 5b 10 48 85
Comment 2 Thorsten Staerk 2010-09-11 10:23:05 UTC
This has worked with no problems with SUSE 11.2. It is a regression.
Comment 3 Jiri Slaby 2010-09-12 20:57:10 UTC
(In reply to comment #1)
> I tried it again. After reboot, the command returns. After I said "modprobe -r
> pvrusb2", the command "modprobe pvrusb2" no longer returns.
...
> Message from syslogd@linux-noqb at Sep 11 12:10:45 ...
>  kernel:[74055.524142] general protection fault: 0000 [#1] PREEMPT SMP 

Because it crashed kernel. Could you attach output of hwinfo after this happens?
Comment 4 Thorsten Staerk 2010-09-14 06:25:28 UTC
NO because after modprobe -r pvrusb2, hwinfo no longer returns. I could also observe xosview no longer starts up. I can attach the hwinfo output from BEFORE this happened.
Comment 5 Jiri Slaby 2010-09-14 06:31:37 UTC
(In reply to comment #4)
> NO because after modprobe -r pvrusb2, hwinfo no longer returns.

Ok, makes sense, so please attach hwinfo before that and dmesg output after the crash.
Comment 6 Thorsten Staerk 2010-09-14 06:48:54 UTC
Created attachment 389369 [details]
hwinfo output BEFORE calling modprobe -r pvrusb2
Comment 7 Thorsten Staerk 2010-09-14 06:56:12 UTC
Created attachment 389373 [details]
dmesg after issueing "modprobe -r pvrusb2"

I just realized I cannot attach a file to bugzilla after calling
 modprobe -r pvrusb2
because the file open dialog no longer works then till reboot.
Comment 8 Thorsten Staerk 2010-09-14 06:57:01 UTC
refcnt problem, eh?
Comment 9 Michal Marek 2010-09-14 07:25:26 UTC
Please file kernel bugs against the Kernel component. Requiring the screening team to assign the bugs properly is asking too much...
Comment 10 Jiri Slaby 2010-09-24 15:10:39 UTC
Could you try the kernel from:
http://labs.suse.cz/jslaby/bug-638709/
?
Comment 11 Jiri Slaby 2010-09-24 15:11:31 UTC
(In reply to comment #10)
> http://labs.suse.cz/jslaby/bug-638709/

(Contains e3a5ee73e backported.)
Comment 12 Thorsten Staerk 2010-10-01 10:20:32 UTC
Great, this works. Give me a minute to test before I remove the NEEDINFO flag.
Comment 13 Thorsten Staerk 2010-10-01 10:39:04 UTC
Works wonderfully, I could just watch TV.
Comment 14 Jiri Slaby 2010-10-01 13:31:22 UTC
Ok, committed that fix.
Comment 15 Swamp Workflow Management 2010-10-15 08:54:28 UTC
Update released for: kernel-debug, kernel-debug-base, kernel-debug-base-debuginfo, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-devel, kernel-debug-devel-debuginfo, kernel-default, kernel-default-base, kernel-default-base-debuginfo, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-devel, kernel-default-devel-debuginfo, kernel-desktop, kernel-desktop-base, kernel-desktop-base-debuginfo, kernel-desktop-debuginfo, kernel-desktop-debugsource, kernel-desktop-devel, kernel-desktop-devel-debuginfo, kernel-devel, kernel-ec2, kernel-ec2-base, kernel-ec2-base-debuginfo, kernel-ec2-debuginfo, kernel-ec2-debugsource, kernel-ec2-devel, kernel-ec2-devel-debuginfo, kernel-ec2-extra, kernel-ec2-extra-debuginfo, kernel-pae, kernel-pae-base, kernel-pae-base-debuginfo, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-devel, kernel-pae-devel-debuginfo, kernel-source, kernel-source-vanilla, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-base-debuginfo, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-devel, kernel-trace-devel-debuginfo, kernel-vanilla, kernel-vanilla-base, kernel-vanilla-base-debuginfo, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-vanilla-devel, kernel-vanilla-devel-debuginfo, kernel-vmi, kernel-vmi-base, kernel-vmi-base-debuginfo, kernel-vmi-debuginfo, kernel-vmi-debugsource, kernel-vmi-devel, kernel-vmi-devel-debuginfo, kernel-xen, kernel-xen-base, kernel-xen-base-debuginfo, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-devel, kernel-xen-devel-debuginfo, preload-kmp-default, preload-kmp-desktop
Products:
openSUSE 11.3 (debug, i586, x86_64)