Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280302 - sys-kernel/gentoo-sources-2.6.30-r4: V4L regression: Multimedia controllers based on Philips Semiconductors SAA713x chips (that uses modules tda8290,tda18271,tda827x,saa7134) loose signal when video and vbi are used in the same time.
Summary: sys-kernel/gentoo-sources-2.6.30-r4: V4L regression: Multimedia controllers b...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-04 11:40 UTC by Zorzo Luca
Modified: 2010-01-15 11:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zorzo Luca 2009-08-04 11:40:41 UTC
After upgrading from gentoo-sources-2.6.29-r5 to stable gentoo-sources-2.6.30-r4 an old problem affecting kernels < 2.6.29 is back.
If both video (tvtime) and vbi (alevt) devices are used and then i close the vbi application, tuner looses the signal and i have to change channel for "reactivate" it.


Reproducible: Always

Steps to Reproduce:
1. Open Tvtime that uses /dev/video*.
2. Open Alevt that uses /dev/vbi* of the same card.
3. Quit Alevt.
4. Tuner looses signal and Tvtime shows a blue screen.
5. Change channel and everything is ok. 


Expected Results:  
Tv card should shows channel correctly also if i stop using vbi device, as in gentoo-sources-2.6.29-r5.

Emerge --info:
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4-zizo x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-zizo-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 04 Aug 2009 06:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cli cracklib crypt cups dbus dri fortran gdbm gif gpm gtk hal iconv isdnlog jpeg kde mmx mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt4 readline reflection session spl sse sse2 ssl sysfs tcpd tiff truetype unicode usb v4l v4l2 xcomposite xorg zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Lspci -vvv (only about cards using v4l):

02:01.0 Multimedia controller: Philips Semiconductors SAA7131/SAA7133/SAA7135 Video Broadcast Decoder (rev d0)
        Subsystem: Pinnacle Systems Inc. PCTV 110i (saa7133)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 32 (21000ns min, 8000ns max)
        Interrupt: pin A routed to IRQ 19
        Region 0: Memory at f5004000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Kernel driver in use: saa7134
        Kernel modules: saa7134

02:02.0 Multimedia video controller: Zoran Corporation ZR36057PQC Video cutting chipset (rev 02)
        Subsystem: Miro Computer Products AG DC10 Plus
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 18
        Region 0: Memory at f5005000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: zr36067
        Kernel modules: zr36067


Lsmod:

Module                  Size  Used by
xt_NFQUEUE              2000  3
xt_state                2352  3
iptable_filter          2992  1
it87                   26024  0
hwmon_vid               3536  1 it87
hwmon                   2792  1 it87
rfcomm                 40656  4
l2cap                  24112  13 rfcomm
snd_seq                52128  0
snd_seq_device          6820  1 snd_seq
snd_pcm_oss            40864  0
snd_mixer_oss          15760  1 snd_pcm_oss
fuse                   56688  4
ir_kbd_i2c              9312  0
tuner                  22896  1
tda8290                14296  1 tuner
tda18271               35896  1 tda8290
tda827x                10740  1 tda8290
btusb                  13252  2
bluetooth              57060  7 rfcomm,l2cap,btusb
zr36060                 9788  1
saa7134               165604  0
saa7110                 7740  1
zr36067                77940  0
snd_intel8x0           34328  3
i2c_algo_bit            6260  1 zr36067
ir_common              44372  2 ir_kbd_i2c,saa7134
videocodec              7364  2 zr36060,zr36067
snd_ac97_codec        115672  1 snd_intel8x0
v4l2_common            15792  4 tuner,saa7134,saa7110,zr36067
nvidia              10307240  26
videodev               38240  5 tuner,saa7134,saa7110,zr36067,v4l2_common
ac97_bus                1872  1 snd_ac97_codec
videobuf_dma_sg        12212  1 saa7134
snd_pcm                75480  4 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
v4l1_compat            14548  1 videodev
skge                   41952  0
videobuf_core          17204  2 saa7134,videobuf_dma_sg
snd_timer              21600  3 snd_seq,snd_pcm
v4l2_compat_ioctl32    10640  1 videodev
ehci_hcd               37340  0
tveeprom               14708  1 saa7134
snd                    59528  12 snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
uhci_hcd               24112  0
i2c_i801                9868  0
rtc_cmos               11384  0
iTCO_wdt               12560  0
i2c_core               22848  13 ir_kbd_i2c,tuner,tda8290,tda18271,tda827x,saa7134,saa7110,zr36067,i2c_algo_bit,v4l2_common,nvidia,tveeprom,i2c_i801
soundcore               7488  1 snd
usbcore               145744  4 btusb,ehci_hcd,uhci_hcd
rtc_core               17188  1 rtc_cmos
snd_page_alloc          9120  2 snd_intel8x0,snd_pcm
intel_agp              30416  0
rtc_lib                 3088  1 rtc_core


Dmesg | grep -ie "saa" :

[    6.409329] saa7110 1-004e: chip found @ 0x9c (DC10plus[0])
[    6.432486] saa7130/34: v4l2 driver version 0.2.15 loaded
[    7.553034] saa7134 0000:02:01.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[    7.553047] saa7133[0]: found at 0000:02:01.0, rev: 208, irq: 19, latency: 32, mmio: 0xf5004000
[    7.553060] saa7133[0]: subsystem: 11bd:002e, board: Pinnacle PCTV 40i/50i/110i (saa7133) [card=77,autodetected]
[    7.553095] saa7133[0]: board init: gpio is 200c000
[    7.553106] IRQ 19/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
[    7.696009] saa7133[0]: i2c eeprom 00: bd 11 2e 00 54 20 1c 00 43 43 a9 1c 55 d2 b2 92
[    7.696024] saa7133[0]: i2c eeprom 10: ff e0 60 02 ff 20 ff ff ff ff ff ff ff ff ff ff
[    7.696037] saa7133[0]: i2c eeprom 20: 01 2c 01 03 03 01 04 31 98 ff 00 a3 ff 22 00 c2
[    7.696050] saa7133[0]: i2c eeprom 30: 96 ff 03 30 15 01 ff ff 0c 22 17 76 03 16 6a 66
[    7.696063] saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696076] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696093] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696105] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696117] saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696129] saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696141] saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696153] saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696164] saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696176] saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696188] saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.696200] saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    7.831012] tuner 2-004b: chip found @ 0x96 (saa7133[0])
[   11.032623] ir-kbd-i2c: Pinnacle PCTV detected at i2c-2/2-0047/ir0 [saa7133[0]]
[   11.072163] saa7133[0]: registered device video1 [v4l2]
[   11.072202] saa7133[0]: registered device vbi0
[   11.072237] saa7133[0]: registered device radio0
Comment 1 Mike Pagano gentoo-dev 2009-08-11 00:23:54 UTC
Can you load your module with the parameter disable_ir=1 and let us know the outcome.
Comment 2 Zorzo Luca 2009-08-11 07:13:50 UTC
Loading modules with disable_ir=1 does not make any difference.
Comment 3 Stratos Psomadakis (RETIRED) gentoo-dev 2009-08-12 16:24:52 UTC
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d5709a0e3dfe22e24d871ef1e0eec9ae04055997

Does this help?
It's included in the 2.6.31-rc* kernels.
Comment 4 Zorzo Luca 2009-08-12 18:42:42 UTC
No, it does not help, this patch has the opposite effect: now i see blue everywhere (there is no video), but i can hear audio, so card can tune.
Anyway the old problem is still here, because when i close alevt i can't hear audio anymore until i change channel.
Comment 5 Brayan Arraes (YacK) 2009-08-17 22:35:56 UTC
have you tried with the gentoo-sources-2.6.30-r5
Comment 6 Gabriele 2009-08-21 22:30:26 UTC
Hey man, similar issue here... same kernel module but different TV card
PCTV 310i from pinnacle

saa7130/34: v4l2 driver version 0.2.15 loaded
saa7134 0000:02:01.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
saa7133[0]: found at 0000:02:01.0, rev: 208, irq: 18, latency: 64, mmio: 0xfebff800
saa7133[0]: subsystem: 11bd:002f, board: Pinnacle PCTV 310i [card=101,autodetected]
saa7133[0]: board init: gpio is 600c000
IRQ 18/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
saa7133[0]: i2c eeprom read error (err=-5)
tuner 1-004b: chip found @ 0x96 (saa7133[0])
ir-kbd-i2c: Pinnacle PCTV detected at i2c-1/1-0047/ir0 [saa7133[0]]
saa7133[0]: registered device video0 [v4l2]
saa7133[0]: registered device vbi0
saa7133[0]: registered device radio0
DVB: registering new adapter (saa7133[0])
saa7134 ALSA driver for DMA sound loaded
IRQ 18/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
saa7133[0]/alsa: saa7133[0] at 0xfebff800 irq 18 registered as card -1

As you can see I also have a eeprom read error :-/
and I can't use the irda device that is required in my configuration.
Lirc is not able to open the event device event3 associated with the pctv irda.
Comment 7 Gabriele 2009-08-21 22:31:39 UTC
I forget the kernel version... gentoo-sources-2.6.30-r5
Comment 8 Zorzo Luca 2009-09-11 08:05:32 UTC
The same with gentoo-sources-2.6.30-r6.
Comment 9 Zorzo Luca 2010-01-15 11:12:33 UTC
I'll close this bug as i don't have this card anymore.
Anyway it is an upstream problem.