Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326511 - sys-kernel/gentoo-sources-2.6.33 and newer: DVB support broken
Summary: sys-kernel/gentoo-sources-2.6.33 and newer: DVB support broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 18:58 UTC by Francisco Lloret
Modified: 2011-04-15 13:53 UTC (History)
0 users

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


Attachments
full dmesg (dmesg.error,39.15 KB, text/plain)
2010-07-12 19:39 UTC, Francisco Lloret
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Lloret 2010-07-01 18:58:48 UTC
After upgrade kernel to gentoo-sources-2.6.33-r2, dvb receiver don't works.

Messages in dmesg are OK: the dvb device is detected, firmware is loaded and the directory /dev/dvb/adapter0 has all the necessary files, but dvb programs (i tested it with kaffeine and xine-ui) hangs when i try to use the dvb. Video files in HDD are played OK.

No problem with gentoo-sources-2.6.32-r7

Reproducible: Always

Steps to Reproduce:
1. Upgrade kernel to gentoo-sources-2.6.33-r2
2. Try to watch a dvb transmission
3. See that the dvb program (kaffeine or xine) hangs.

Actual Results:  
kaffeine / xine-ui unable to play dvb

Expected Results:  
kaffeine / xine-ui working ok with dvb

DVB Receiver: Hauppauge WinTV Nova-T Stick
kaffeine version: 1.0_pre3
xine-lib version: 1.1.18.1
xine-ui version: 0.99.6
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-07-07 12:12:23 UTC
Please give more information about your system, such as emerge --info, dmesg, the chipset in your device, and what the applications print to terminal when you try to watch dvb (if possible mplayer output from working and non-working kernel).
Comment 2 Francisco Lloret 2010-07-08 14:24:12 UTC
Currently i downgraded kernel to gentoo-sources 2.6.32-r7 that works OK. The emerge info command shows (with the working kernel):

$ emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-gentoo-r7-camera x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-camera-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 07 Jul 2010 17:30:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es ca"
MAKEOPTS="-j3"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr chardet cli consolekit cracklib crypt cups cxx dbus divx djvu dri dts dv dvd dvdr dvdread emboss encode esd exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jbig jpeg jpeg2k lcms ldap libnotify mad mikmod mjpeg mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg openexr opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl session smp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb vdpau vorbis wmf x264 xcb xine-lib xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-dib0700" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es ca" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-07-11 16:54:10 UTC
Please reopen when you can provide the requested information from comment #1.
Comment 4 Francisco Lloret 2010-07-12 19:02:37 UTC
Same problem with recently stable Gentoo-sources-2.6.34-r1.

emerge --info:

# emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 12 Jul 2010 16:00:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es ca"
MAKEOPTS="-j3"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr chardet cli consolekit cracklib crypt cups cxx dbus divx djvu dri dts dv dvd dvdr dvdread emboss encode esd exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jbig jpeg jpeg2k lcms ldap libnotify mad mikmod mjpeg mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg openexr opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl session smp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb vdpau vorbis wmf x264 xcb xine-lib xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-dib0700" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es ca" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

dmmesg messages related to DVB:

$ dmesg|grep dvb
dvb-usb: found a 'Hauppauge Nova-T Stick' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
dvb-usb: schedule remote query interval to 50 msecs.
dvb-usb: Hauppauge Nova-T Stick successfully initialized and connected.
usbcore: registered new interface driver dvb_usb_dib0700
Modules linked in: coretemp snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_hda_codec_realtek snd_hda_intel snd_hda_codec dvb_usb_dib0700 dib7000p dib7000m dib0070 dvb_usb dib8000 mt2266 tuner_xc2028 dib3000mc snd_pcm dibx000_common mxl5007t snd_timer xc5000 s5h1411 mt2060 lgdt3305 dvb_core asus_atk0110 nvidia(P) usb_storage snd hwmon pata_marvell atl1 8139too mii pcspkr i2c_i801 ohci1394 i2c_core ehci_hcd snd_page_alloc uhci_hcd
 [<ffffffffa0c91ae4>] ? usb_urb_submit+0x26/0x6a [dvb_usb]
 [<ffffffffa0c91100>] ? dvb_usb_ctrl_feed+0xcc/0x114 [dvb_usb]
 [<ffffffffa0bfb7d5>] ? dmx_ts_feed_start_filtering+0x72/0xbe [dvb_core]
 [<ffffffffa0bf8af2>] ? dvb_dmxdev_start_feed+0xbe/0xe6 [dvb_core]
 [<ffffffffa0bf9bfb>] ? dvb_dmxdev_filter_start+0x2aa/0x314 [dvb_core]
 [<ffffffffa0bf9f09>] ? dvb_dmxdev_add_pid+0x5e/0x129 [dvb_core]
 [<ffffffffa0bfa2d0>] ? dvb_demux_do_ioctl+0x2fc/0x547 [dvb_core]
 [<ffffffffa0bf8469>] ? dvb_usercopy+0xb4/0x10f [dvb_core]
 [<ffffffffa0bf9fd4>] ? dvb_demux_do_ioctl+0x0/0x547 [dvb_core]

The DVB stick uses DIB0700 chipset

xine-ui and kaffeine hangs without print any message in console while i press the button to watch dvb. 

kaffeine prints this error messages:

$ kaffeine(8609)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType  "ThumbCreator"  not found 
kaffeine(8609)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType  "ThumbCreator"  not found 


but this is before clicking the digital tv button.
Comment 5 Francisco Lloret 2010-07-12 19:04:04 UTC
/etc/dvb/device files are crated OK:

# ls /dev/dvb/adapter0 -l
total 0
crw-rw---- 1 root video 212, 4 jul 12 19:55 demux0
crw-rw---- 1 root video 212, 5 jul 12 19:55 dvr0
crw-rw---- 1 root video 212, 3 jul 12 19:55 frontend0
crw-rw---- 1 root video 212, 7 jul 12 19:55 net0
Comment 6 Mike Pagano gentoo-dev 2010-07-12 19:27:39 UTC
Please attach the full dmesg with the oops inside of it from 2.6.34-r1.
Comment 7 Francisco Lloret 2010-07-12 19:39:23 UTC
Created attachment 238497 [details]
full dmesg
Comment 8 George Kadianakis (RETIRED) gentoo-dev 2010-07-18 15:02:36 UTC
I don't know much about DVB, but a quick google search gave me:
https://patchwork.kernel.org/patch/101784/

Can you try disabling PID filtering [1] and using DVB to see if it works?

[1]: Unfortunately I don't know how, but it's supposed to be dynamic, so try /proc or any userspace DVB device configuration tools.
Comment 9 Francisco Lloret 2010-08-26 15:27:49 UTC
Not solved in gentoo-sources-2.6.34-r6

The error is:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000012
IP: [<ffffffffa00194d3>] i2c_transfer+0x1a/0xd1 [i2c_core]
PGD 7e091067 PUD 7e0aa067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP 
last sysfs file: /sys/devices/platform/coretemp.1/temp1_input
CPU 1 
Modules linked in: coretemp snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_hda_codec_realtek dvb_usb_dib0700 dib7000p dib7000m dib0070 dvb_usb dib8000 mt2266 tuner_xc2028 dib3000mc snd_hda_intel dibx000_common mxl5007t snd_hda_codec xc5000 s5h1411 snd_pcm mt2060 lgdt3305 dvb_core snd_timer asus_atk0110 nvidia(P) usb_storage snd ohci1394 8139too atl1 hwmon pata_marvell snd_page_alloc pcspkr mii i2c_i801 i2c_core ehci_hcd uhci_hcd

Pid: 7035, comm: kaffeine Tainted: P           2.6.34-gentoo-r6 #2 P5K SE/P5K SE
RIP: 0010:[<ffffffffa00194d3>]  [<ffffffffa00194d3>] i2c_transfer+0x1a/0xd1 [i2c_core]
RSP: 0018:ffff88007e07bbd8  EFLAGS: 00010286
RAX: 00000000ffffffa1 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffff88007e07bc18 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffff88007be743c0 R09: 0000000000000001
R10: 0000000000000005 R11: ffffffffffffffff R12: 0000000000000001
R13: ffff88007e07bc18 R14: 0000000000000002 R15: ffffc90011c69000
FS:  00007f8befc29760(0000) GS:ffff880001880000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000012 CR3: 000000007e090000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process kaffeine (pid: 7035, threadinfo ffff88007e07a000, task ffff88007f9fec30)
Stack:
 0000000000009a38 ffffffff812ec296 00000000000000eb 0000000000000000
<0> 0000000000000001 0000000000000001 ffff88007e0ba520 ffffffffa0ccf109
<0> 000000020000000c ffff88007e07bc48 000000020001000c ffff88007e07bc38
Call Trace:
 [<ffffffff812ec296>] ? usb_hcd_submit_urb+0x8d3/0x8e1
 [<ffffffffa0ccf109>] ? dib7000p_read_word+0x6e/0xbe [dib7000p]
 [<ffffffffa0cb704f>] ? usb_urb_submit+0x3f/0x80 [dvb_usb]
 [<ffffffffa0ccfea1>] ? dib7000p_pid_filter_ctrl+0x1f/0x7b [dib7000p]
 [<ffffffffa0cb6351>] ? dvb_usb_ctrl_feed+0x16a/0x1c9 [dvb_usb]
 [<ffffffffa0c0689a>] ? dmx_ts_feed_start_filtering+0x74/0xc5 [dvb_core]
 [<ffffffffa0c03b25>] ? dvb_dmxdev_start_feed+0xb5/0xe6 [dvb_core]
 [<ffffffff810a3b33>] ? map_vm_area+0x25/0x36
 [<ffffffffa0c04c85>] ? dvb_dmxdev_filter_start+0x2b4/0x31b [dvb_core]
 [<ffffffffa0c05393>] ? dvb_demux_do_ioctl+0x327/0x565 [dvb_core]
 [<ffffffffa0c0506c>] ? dvb_demux_do_ioctl+0x0/0x565 [dvb_core]
 [<ffffffffa0c0347c>] ? dvb_usercopy+0xb0/0x119 [dvb_core]
 [<ffffffff810bc9cf>] ? do_filp_open+0x530/0x5af
 [<ffffffff810bd865>] ? vfs_ioctl+0x6a/0x93
 [<ffffffff810bdd08>] ? do_vfs_ioctl+0x408/0x44c
 [<ffffffff813ee862>] ? _raw_spin_unlock+0x10/0x2c
 [<ffffffff810b2467>] ? fget_light+0xc3/0xe8
 [<ffffffff810bdd88>] ? sys_ioctl+0x3c/0x5c
 [<ffffffff81001f2b>] ? system_call_fastpath+0x16/0x1b
Code: 48 c7 c2 38 91 01 a0 e8 8a 78 26 e1 48 83 c4 18 c3 41 56 b8 a1 ff ff ff 41 55 41 89 d6 41 54 49 89 f5 55 53 48 89 fb 48 83 ec 10 <48> 8b 57 10 48 83 3a 00 0f 84 9c 00 00 00 65 48 8b 14 25 48 b5 
RIP  [<ffffffffa00194d3>] i2c_transfer+0x1a/0xd1 [i2c_core]
 RSP <ffff88007e07bbd8>
CR2: 0000000000000012
---[ end trace 0dda53be8c6ce286 ]---
Comment 10 George Kadianakis (RETIRED) gentoo-dev 2010-08-26 15:36:48 UTC
Did you try disabling PID filtering?
Comment 11 Francisco Lloret 2010-08-26 19:47:30 UTC
How i can disable pid filtering?
Comment 12 Mike Pagano gentoo-dev 2010-08-31 17:41:36 UTC
I think the pid filtering option was moved to userspace, so maybe there's some settings in the software you use this with?

I don't know jack about these things, but I think there might be a fix in Linus' development tree for this:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=5af935cc96a291f90799bf6a2587d87329a91699

Can you try git-sources-2.6.36_rc3 or later and let us know the outcome.
Comment 13 Francisco Lloret 2010-09-05 19:54:27 UTC
I'm unable to test it because i have an nvidia graphics card and nvidia-drivers don't compile with git-sources-2.6.36_rc3

waiting for problem with nvidia-drivers to be solved.
Comment 14 George Kadianakis (RETIRED) gentoo-dev 2010-11-03 21:57:39 UTC
Just putting this in NEEDINFO state for managerial reasons, poke us when you have news in this.
Comment 15 Francisco Lloret 2010-12-26 12:58:19 UTC
Same problem with gentoo-sources-2.6.36-r5 (latest stable).
All kernel versions > 2.6.32 seems to have dib0700 driver broken.

BUG: unable to handle kernel NULL pointer dereference at 0000000000000012
IP: [<ffffffffa00fc465>] i2c_transfer+0x1a/0xf7 [i2c_core]
PGD 7e4db067 PUD 7e3e9067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP 
last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:02/ATK0110:00/hwmon/hwmon0/in3_input
CPU 1 
Modules linked in: coretemp snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss rc_dib0700_rc5 nvidia(P) ir_lirc_codec lirc_dev ir_sony_decoder snd_hda_codec_realtek ir_jvc_decoder dvb_usb_dib0700 dib7000p dib0090 dib7000m dib0070 dvb_usb dib8000 mt2266 tuner_xc2028 dib3000mc dibx000_common mxl5007t xc5000 s5h1411 snd_hda_intel ir_rc6_decoder ir_rc5_decoder ir_nec_decoder asus_atk0110 snd_hda_codec firewire_ohci mt2060 lgdt3305 dvb_core ir_core usb_storage i2c_i801 i2c_core 8139too atl1 pcspkr snd_pcm hwmon firewire_core pata_marvell mii snd_timer snd snd_page_alloc ehci_hcd uhci_hcd

Pid: 7050, comm: kaffeine Tainted: P            2.6.36-gentoo-r5 #1 P5K SE/P5K SE
RIP: 0010:[<ffffffffa00fc465>]  [<ffffffffa00fc465>] i2c_transfer+0x1a/0xf7 [i2c_core]
RSP: 0018:ffff88007e409bd8  EFLAGS: 00010286
RAX: 00000000ffffffa1 RBX: 0000000000000002 RCX: ffff88007e409b88
RDX: 0000000000000002 RSI: ffff88007e409c18 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffff88007c0dc4e0 R09: 0000000000000001
R10: dead000000100100 R11: 0000000000004a38 R12: ffffc90010e4e000
R13: ffff88007e409c18 R14: 0000000000000002 R15: ffffc90010f6d000
FS:  00007f9dd27db760(0000) GS:ffff880001a80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000012 CR3: 000000007e4da000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process kaffeine (pid: 7050, threadinfo ffff88007e408000, task ffff88007fabe680)
Stack:
 0000000000009a38 ffffffff8133d5ae 00000000000000eb 0000000000000000
<0> ffffc90010e4e000 0000000000000001 ffff880065d2d240 ffffffffa0215109
<0> ffff00020000006c ffff88007e409c48 000000020001006c ffff88007e409c38
Call Trace:
 [<ffffffff8133d5ae>] ? usb_hcd_submit_urb+0x8cb/0x8d7
 [<ffffffffa0215109>] ? dib7000p_read_word+0x6e/0xbe [dib7000p]
 [<ffffffffa01f4cc3>] ? usb_urb_submit+0x26/0x67 [dvb_usb]
 [<ffffffffa0215d04>] ? dib7000p_pid_filter_ctrl+0x1f/0x7b [dib7000p]
 [<ffffffffa01f410d>] ? dvb_usb_ctrl_feed+0xcb/0x113 [dvb_usb]
 [<ffffffffa01358e1>] ? dmx_ts_feed_start_filtering+0x74/0xc5 [dvb_core]
 [<ffffffffa0132b49>] ? dvb_dmxdev_start_feed+0xb5/0xe6 [dvb_core]
 [<ffffffff810a957b>] ? map_vm_area+0x25/0x36
 [<ffffffffa0133d3a>] ? dvb_dmxdev_filter_start+0x2b4/0x31b [dvb_core]
 [<ffffffffa01343e3>] ? dvb_demux_do_ioctl+0x2bd/0x4fb [dvb_core]
 [<ffffffff810c25dd>] ? do_last+0x446/0x599
 [<ffffffffa013244b>] ? dvb_usercopy+0xac/0x109 [dvb_core]
 [<ffffffff810c4404>] ? do_filp_open+0x544/0x5ae
 [<ffffffffa0134126>] ? dvb_demux_do_ioctl+0x0/0x4fb [dvb_core]
 [<ffffffffa013317d>] ? dvb_demux_ioctl+0x38/0x5a [dvb_core]
 [<ffffffff810c5700>] ? do_vfs_ioctl+0x3f3/0x440
 [<ffffffff810b6f27>] ? fd_install+0x31/0x5c
 [<ffffffff810c5789>] ? sys_ioctl+0x3c/0x5c
 [<ffffffff81001f2b>] ? system_call_fastpath+0x16/0x1b
Code: 06 48 8d 78 a8 eb da 48 83 c7 20 5a e9 d3 4e 34 e1 41 56 b8 a1 ff ff ff 41 55 41 89 d6 41 54 49 89 f5 55 53 48 89 fb 48 83 ec 10 <48> 8b 57 10 48 83 3a 00 0f 84 c4 00 00 00 65 48 8b 14 25 48 b5 
RIP  [<ffffffffa00fc465>] i2c_transfer+0x1a/0xf7 [i2c_core]
 RSP <ffff88007e409bd8>
CR2: 0000000000000012
---[ end trace 062ac3f2f56dd01b ]---
Comment 16 Francisco Lloret 2010-12-28 10:40:43 UTC
Same problem with git-sources-2.6.37_rc7-r4
Comment 17 Francisco Lloret 2010-12-30 11:20:53 UTC
In order to see if this is a Gentoo-related issue or not, i tested the DVB adapter in a netbook that uises Ubuntu 10.10.

The first difference is: in Gentoo kaffeine stop responding when i press the digital tv button. In Ubuntu, this works and i can search for channels.

But the channel search stops, and then a dmesg showns the same message error that i obtain in gentoo: unable to handle kernel NULL pointer dereference at 0000000000000012

Then, is a kernel related issue, not a Gentoo-only issue. All kernel versions 2.6.33 and newer have dib0700 support broken.

With gentoo-sources-2.6.32-r24 it works perfectly, then is not a hardware issue.
Comment 18 Mike Pagano gentoo-dev 2011-01-01 21:17:01 UTC
Ok, can you please post you issue with the upstream kernel developers are http://bugzilla.kernel.org and post the url back here?
Comment 19 Francisco Lloret 2011-01-02 00:01:09 UTC
A search in kernel bugzilla shows an existing bug. I posted a message in there.

https://bugzilla.kernel.org/show_bug.cgi?id=20372
Comment 20 Mike Pagano gentoo-dev 2011-03-11 16:05:09 UTC
Can you test the patch found here on 2.6.37 and report back the results?

https://patchwork.kernel.org/patch/534231/
Comment 21 Francisco Lloret 2011-03-12 14:18:56 UTC
I don't know if is the best method to apply the patch, but i copied the patch in a file called parche, in /usr/src/linux directory, and aplied it with

# patch --strip 1 -i parche

and it WORKS. At least booting with the USB DVB device in warm state

This is the dmesg (lines related to dvb device):

dib0700: loaded with support for 15 different device-types
dvb-usb: found a 'Hauppauge Nova-T Stick' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (Hauppauge Nova-T Stick)
DVB: registering adapter 0 frontend 0 (DiBcom 7000MA/MB/PA/PB/MC)...
IR RC6 protocol handler initialized
MT2060: successfully identified (IF1 = 1254)
IR JVC protocol handler initialized
IR Sony protocol handler initialized
lirc_dev: IR Remote Control driver registered, major 251 
IR LIRC bridge handler initialized
Registered IR keymap rc-dib0700-rc5
input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0/input6
rc0: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0
dvb-usb: schedule remote query interval to 50 msecs.
dvb-usb: Hauppauge Nova-T Stick successfully initialized and connected.
dib0700: rc submit urb failed
Comment 22 Francisco Lloret 2011-03-15 21:11:00 UTC
Works ok at first boot, with usb device in cold state.
Comment 23 Mike Pagano gentoo-dev 2011-03-20 19:08:58 UTC
It seems from your comments it's working for you in all states and 2.6.33 is pretty old now. Have you moved on to newer kernels and is it working for you in them?
Comment 24 Francisco Lloret 2011-03-20 22:21:45 UTC
Works ok tested with gentoo-sources-2.6.37-r1
Comment 25 Mike Pagano gentoo-dev 2011-03-25 18:44:18 UTC
Good news.
Comment 26 Francisco Lloret 2011-03-25 21:45:40 UTC
Not resolved yet: gentoo-sources-2.6.37-r1 works OK with the patch in comment 20 applied. Without the patch, it produces the same error.

Don't set thwe bug as resolved until the patch is aplied in portage.
Comment 27 Mike Pagano gentoo-dev 2011-03-26 00:57:45 UTC
When this hits mainline reopen.
Comment 28 Francisco Lloret 2011-04-15 13:53:16 UTC
Solved in new stable kernel version gentoo-sources-2.6.37-gentoo-r4