Bug 9387

Summary: IVTV drivers are not SMP and Hyperthreading safe
Product: Drivers Reporter: Guy A. Paddock (guy.paddock)
Component: Video(Other)Assignee: drivers_video-other
Status: CLOSED OBSOLETE    
Severity: high CC: alan, duaneg, kernel
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.21 through 2.6.24-rc2-git2 Subsystem:
Regression: No Bisected commit-id:
Attachments: Most recent kernel Oops.
Previous kernel Oops.
My current kernel config
Vital System Information
Listing in GDB of the code sections indicated by Oops
Vital System Information (2.6.24-rc2-git2)

Description Guy A. Paddock 2007-11-15 08:38:57 UTC
Most recent kernel where this bug did not occur:
Unknown -- have not yet seen a version that did not demonstrate this issue

Distribution:
Gentoo Linux 2007.0

Hardware Environment:
-SiS chipset
-1 GB DDR400 RAM
-Pentium 4 2.8 GHz system with Hyperthreading
-2 PVR-500 capture cards
-Air2PC BCM3510 capture card
-pcHDTV HD-3000 capture card
-nVidia GeForce 6600 GT video card

Software Environment:
-Kernel 2.6.24-rc2-git2 at the moment; 2.6.23-gentoo when first reported
-MythTV SVN version 0.21.20070910-2
-Xorg 7.2

Problem Description:
This issue was originally reported to the Gentoo kernel maintainers, as I was originally using a Gentoo custom kernel, but they referred me to submitting this bug here after I upgraded to a vanilla 2.6.24-rc1-git15 and 2.6.24-rc2-git2 and still saw the issue.

Essentially, when SMP is enabled, the ivtv drivers can cause the system to crash with an Oops that points to the IRQ handler for the drivers. The crash is sporadic and random -- it never appears to occur at any predictable time, although having many simultaneous recordings at once may cause it to happen more frequently. The Oops logs and all vital system information, including the kernel config, and lspci output are included.

Steps to reproduce:
1. Enable SMP support in the kernel.
2. Repeatedly start & stop multiple simultaneous recordings with multiple tuners.

This should eventually result in a crash.
Comment 1 Guy A. Paddock 2007-11-15 08:49:21 UTC
Created attachment 13560 [details]
Most recent kernel Oops.
Comment 2 Guy A. Paddock 2007-11-15 08:49:47 UTC
Created attachment 13561 [details]
Previous kernel Oops.
Comment 3 Guy A. Paddock 2007-11-15 08:50:13 UTC
Created attachment 13562 [details]
My current kernel config
Comment 4 Guy A. Paddock 2007-11-15 08:53:50 UTC
Created attachment 13563 [details]
Vital System Information
Comment 5 Guy A. Paddock 2007-11-15 08:55:12 UTC
Created attachment 13564 [details]
Listing in GDB of the code sections indicated by Oops

This is the output from running "list *stream_enc_dma_append+0xcc" and "list *ivtv_irq_handler+0xc13" in GDB on drivers/media/video/ivtv/ivtv-irq.o with DEBUG_INFO on.
Comment 6 Guy A. Paddock 2007-11-15 12:28:57 UTC
Created attachment 13567 [details]
Vital System Information (2.6.24-rc2-git2)

Sorry; realized that the vitals I posted before were for the 2.6.23, instead of 2.6.24-rc2-git2 which is what I'm running now.
Comment 7 Duane Griffin 2007-11-16 14:45:39 UTC
Link to original gentoo bug report:
http://bugs.gentoo.org/show_bug.cgi?id=198420
Comment 8 Alan 2009-03-26 16:53:52 UTC
Please retest with a current kernel and report - it should be better