cx88-dvb broken since 2.6.29-rc1
Hi folks,
I have a CX88-based DVB-T adapter which worked fine up to 2.6.28 but is broken since 2.6.29-rc1 (and not fixed as off 2.6.29-rc3). The problem is that /dev/dvb isn't created. Presumably the root cause is the following in the kernel logs as the driver is loaded:
cx88/0: cx2388x v4l2 driver version 0.0.6 loaded
cx8800 0000:02:04.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
cx88[0]: subsystem: 107d:665f, board: WinFast DTV1000-T [card=35,autodetected], frontend(s): 1 cx88[0]: TV tuner type 4, Radio tuner type -1
cx88/2: cx2388x MPEG-TS Driver Manager version 0.0.6 loaded intel8x0_measure_ac97_clock: measured 50862 usecs
intel8x0: clocking to 48000
i2c-adapter i2c-1: adapter [cx88[0]] registered
i2c-adapter i2c-1: master_xfer[0] W, addr=0x50, len=1
i2c-adapter i2c-1: master_xfer[0] R, addr=0x50, len=256
input: cx88 IR (WinFast DTV1000-T) as /devices/pci0000:00/0000:00:1e.0/0000:02:04.0/input/input5 cx88[0]/0: found at 0000:02:04.0, rev: 5, irq: 21, latency: 32, mmio: 0xfc000000 IRQ 21/cx88[0]: IRQF_DISABLED is not guaranteed on shared IRQs
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/2: cx2388x 8802 Driver Manager
cx88-mpeg driver manager 0000:02:04.2: PCI INT A -> GSI 21 (level, low) -> IRQ 21 cx88[0]/2: found at 0000:02:04.2, rev: 5, irq: 21, latency: 32, mmio: 0xfd000000 IRQ 21/cx88[0]: IRQF_DISABLED is not guaranteed on shared IRQs
cx88/2: cx2388x dvb driver version 0.0.6 loaded
cx88/2: registering cx8802 driver, type: dvb access: shared
cx88[0]/2: subsystem: 107d:665f, board: WinFast DTV1000-T [card=35]
cx88[0]/2: cx2388x based DVB/ATSC card
------------[ cut here ]------------ WARNING: at kernel/mutex.c:135 mutex_lock_nested+0x268/0x2b2() Hardware name: Modules linked in: cx88_dvb(+) cx88_vp3054_i2c videobuf_dvb dvb_core cx8802 cx8800 cx88xx snd_intel8x0 ir_common snd_ac97_codec snd_pcsp v4l2_common i2c_algo_bit videodev ac97_bus thermal tveeprom v4l1_compat v4l2_compat_ioctl32 snd_pcm btcx_risc processor snd_timer thermal_sys videobuf_dma_sg parport_pc 8139too snd videobuf_core parport sr_mod hwmon mii soundcore i2c_i801 cdrom button snd_page_alloc intel_agp iTCO_wdt sg sd_mod ehci_hcd uhci_hcd usbcore ext3 mbcache jbd ata_piix libata Pid: 1713, comm: modprobe Not tainted 2.6.29-rc3 #60 Call Trace: [<ffffffff80234508>] warn_slowpath+0xcd/0x11e [<ffffffff8020c23c>] ? restore_args+0x0/0x30 [<ffffffff802581df>] ? trace_hardirqs_on_caller+0x12e/0x17d [<ffffffff8043c065>] ? trace_hardirqs_on_thunk+0x3a/0x3f [<ffffffff8020c23c>] ? restore_args+0x0/0x30 [<ffffffff8043c4b0>] ? _spin_unlock_irqrestore+0x45/0x4a [<ffffffff802350c4>] ? vprintk+0x16a/0x3f5 [<ffffffff8043c4b0>] ? _spin_unlock_irqrestore+0x45/0x4a [<ffffffff802350c4>] ? vprintk+0x16a/0x3f5 [<ffffffffa0072172>] ? videobuf_dvb_get_frontend+0x21/0x73 [videobuf_dvb] [<ffffffff8043acc1>] mutex_lock_nested+0x268/0x2b2 [<ffffffffa0072172>] videobuf_dvb_get_frontend+0x21/0x73 [videobuf_dvb] [<ffffffffa022bd58>] cx8802_dvb_probe+0x113/0x1d61 [cx88_dvb] [<ffffffff802957b0>] ? kmem_cache_alloc+0x66/0x90 [<ffffffff8025823b>] ? trace_hardirqs_on+0xd/0xf [<ffffffffa020b26e>] cx8802_register_driver+0x1b0/0x229 [cx8802] [<ffffffffa022da40>] ? dvb_init+0x0/0x2c [cx88_dvb] [<ffffffffa022da67>] dvb_init+0x27/0x2c [cx88_dvb] [<ffffffff80209033>] _stext+0x33/0x151 [<ffffffff8025823b>] ? trace_hardirqs_on+0xd/0xf [<ffffffff80262d7b>] sys_init_module+0xa0/0x1de [<ffffffff8020b7db>] system_call_fastpath+0x16/0x1b ---[ end trace c6ad9ed793b52080 ]--- BUG: unable to handle kernel NULL pointer dereference at (null) IP: [<ffffffff8031f9a7>] __list_add+0x1f/0x98 PGD 37b79067 PUD 3795d067 PMD 0 Oops: 0000 [#1] last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/modalias CPU 0 Modules linked in: cx88_dvb(+) cx88_vp3054_i2c videobuf_dvb dvb_core cx8802 cx8800 cx88xx snd_intel8x0 ir_common snd_ac97_codec snd_pcsp v4l2_common i2c_algo_bit videodev ac97_bus thermal tveeprom v4l1_compat v4l2_compat_ioctl32 snd_pcm btcx_risc processor snd_timer thermal_sys videobuf_dma_sg parport_pc 8139too snd videobuf_core parport sr_mod hwmon mii soundcore i2c_i801 cdrom button snd_page_alloc intel_agp iTCO_wdt sg sd_mod ehci_hcd uhci_hcd usbcore ext3 mbcache jbd ata_piix libata Pid: 1713, comm: modprobe Tainted: G W 2.6.29-rc3 #60 RIP: 0010:[<ffffffff8031f9a7>] [<ffffffff8031f9a7>] __list_add+0x1f/0x98 RSP: 0018:ffff88003e4d5d38 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffff8800378f75e8 RCX: 0000000000000000 RDX: ffff8800378f75e8 RSI: 0000000000000000 RDI: ffff88003e4d5d88 RBP: ffff88003e4d5d58 R08: 0000000000000002 R09: 0000000000000001 R10: ffff88003ed670c0 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88003e4d5d88 R14: ffffffffa0072172 R15: ffff88003e4d5d88 FS: 00007f9c626046f0(0000) GS:ffffffff80604020(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 0000000000000000 CR3: 00000000378e2000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process modprobe (pid: 1713, threadinfo ffff88003e4d4000, task ffff88003ed670c0) Stack: 0000000000000000 ffff8800378f75b0 0000000000000246 ffff88003ed670c0 ffff88003e4d5de8 ffffffff8043ab28 ffffffffa0072172 ffff88003e473018 0000000000000000 ffff8800378f75e8 ffff88003e4d5d88 ffff88003e4d5d88 Call Trace: [<ffffffff8043ab28>] mutex_lock_nested+0xcf/0x2b2 [<ffffffffa0072172>] ? videobuf_dvb_get_frontend+0x21/0x73 [videobuf_dvb] [<ffffffffa0072172>] videobuf_dvb_get_frontend+0x21/0x73 [videobuf_dvb] [<ffffffffa022bd58>] cx8802_dvb_probe+0x113/0x1d61 [cx88_dvb] [<ffffffff802957b0>] ? kmem_cache_alloc+0x66/0x90 [<ffffffff8025823b>] ? trace_hardirqs_on+0xd/0xf [<ffffffffa020b26e>] cx8802_register_driver+0x1b0/0x229 [cx8802] [<ffffffffa022da40>] ? dvb_init+0x0/0x2c [cx88_dvb] [<ffffffffa022da67>] dvb_init+0x27/0x2c [cx88_dvb] [<ffffffff80209033>] _stext+0x33/0x151 [<ffffffff8025823b>] ? trace_hardirqs_on+0xd/0xf [<ffffffff80262d7b>] sys_init_module+0xa0/0x1de [<ffffffff8020b7db>] system_call_fastpath+0x16/0x1b Code: 31 c0 e8 b8 4a f1 ff 48 8b 13 eb 98 55 48 89 e5 41 55 41 54 53 48 83 ec 08 49 89 fd 49 89 f4 48 89 d3 48 8b 42 08 48 39 f0 75 24 <49> 8b 04 24 48 39 d8 75 40 4c 89 6b 08 49 89 5d 00 4d 89 65 08 RIP [<ffffffff8031f9a7>] __list_add+0x1f/0x98 RSP <ffff88003e4d5d38> CR2: 0000000000000000 ---[ end trace c6ad9ed793b52081 ]---
This is on x86-64. Any additional information available on request.
Thanks,
Signature · 1 line
Jean Delvare
Quoted 6 lines · On Thu, 29 Jan 2009 22:10:12 +0100 Jean Delvare <[email protected]> wrote:
Hi folks,
I have a CX88-based DVB-T adapter which worked fine up to 2.6.28 but is broken since 2.6.29-rc1 (and not fixed as off 2.6.29-rc3). The problem is that
/dev/dvbisn't created. Presumably the root cause is the following in the kernel logs as the driver is loaded:
I have already a pull request almost ready that will fix this issue. I'll likely send it today or tomorrow.
Cheers,
Mauro
Hi Mauro,
Quoted 5 lines · Mauro Carvalho Chehab
Quoted 2 lines · On Thu, 29 Jan 2009 22:10:12 +0100 Jean Delvare <[email protected]> wrote:
Hi folks,
Quoted 7 lines
Quoted 4 lines
I have a CX88-based DVB-T adapter which worked fine up to 2.6.28 but is broken since 2.6.29-rc1 (and not fixed as off 2.6.29-rc3). The problem is that
/dev/dvbisn't created. Presumably the root cause is the following in the kernel logs as the driver is loaded:I have already a pull request almost ready that will fix this issue. I'll likely send it today or tomorrow.
Did it happen? I've just tested kernel 2.6.29-rc3-git3 and the problem is still present.
Thanks,
Signature · 1 line
Jean Delvare
Quoted 13 lines · On Sun, 1 Feb 2009 14:29:27 +0100 Jean Delvare <[email protected]> wrote:
Hi Mauro,
Quoted 10 lines · Mauro Carvalho Chehab
Quoted 6 lines · On Thu, 29 Jan 2009 22:10:12 +0100 Jean Delvare <[email protected]> wrote:
Hi folks,
I have a CX88-based DVB-T adapter which worked fine up to 2.6.28 but is broken since 2.6.29-rc1 (and not fixed as off 2.6.29-rc3). The problem is that
/dev/dvbisn't created. Presumably the root cause is the following in the kernel logs as the driver is loaded:
Quoted 5 lines
Quoted 2 lines
I have already a pull request almost ready that will fix this issue. I'll likely send it today or tomorrow.
Did it happen? I've just tested kernel 2.6.29-rc3-git3 and the problem is still present.
I just sent today a pull request with this fix included:
From: Mauro Carvalho Chehab <[email protected]>
To: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>, [email protected], [email protected]
Subject: [GIT PATCHES for 2.6.29] V4L/DVB fixes
Date: Sun, 1 Feb 2009 11:06:47 -0200
Organization: Red Hat
Linus,
Please pull from:
ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6.git for_linus
For several driver fixes:
- em28xx: fix some race conditions, several audio fixes, some
memory leaks, and fix the support for Kworld 330U; - uvcvideo: updates copyright, fix GET_DEF detection and prints UVC version number in a coherent way; - cx88: Fix DVB support; - zoran: fix udev detection and uses the standard PCI detection methods;
- removed unused #include <version.h>'s on drivers;
- tvp514x: Don't write after line end;
- en50221: implement proper locking;
- tveeprom: Properly initialize tuner type (BZ#11367);
- Documentation: Fix a bug on the example v4lgrab.c;
- stb0899: Fix 'stb0899_get_srate' defined but not used warning;
- saa7127: fix broken S-Video with saa7129;
- cx23885: Fix Oops for mixed install of analog and digital only cards;
- saa7134: Prevent Oops due to stale IRQ status when enabling interrupts;
- v4l2-device: fix buggy macro;
- v4l2 core: Fix obvious swapped names in v4l2_subdev logic;
- v4l-dvb: fix a bunch of compile warnings;
- cx25840: fix regression: fw not loaded on first use;
- budget.c driver: Kernel oops: "BUG: unable to handle kernel paging request at ffffffff
- saa7146: fix unbalanced mutex_lock/unlock;
- af9015: fix second FE and fix init for sticks already plugged;
- cx25840: ignore TUNER_SET_CONFIG in the command callback.
- radio-mr800: fix radio->muted and radio->stereo
- gspca - main: Fix memory leak when USB disconnection while streaming;
- ivtv: fix memory leak;
- saa7134-alsa: saa7130 doesn't support digital audio;
- s5h1409: Perform s5h1409 soft reset after tuning.
Cheers,
Mauro.
---
Documentation/video4linux/v4lgrab.c | 25 +- drivers/media/common/saa7146_video.c | 1 + drivers/media/common/tuners/mxl5007t.c | 2 +- drivers/media/dvb/dvb-core/dvb_ca_en50221.c | 24 +- drivers/media/dvb/dvb-core/dvb_ca_en50221.h | 6 +- drivers/media/dvb/dvb-usb/af9005-fe.c | 2 +- drivers/media/dvb/dvb-usb/af9015.c | 30 +- drivers/media/dvb/dvb-usb/dib0700_devices.c | 18 +- drivers/media/dvb/dvb-usb/dvb-usb-ids.h | 2 + drivers/media/dvb/frontends/drx397xD.c | 2 +- drivers/media/dvb/frontends/s5h1409.c | 7 +- drivers/media/dvb/frontends/stb0899_algo.c | 3 + drivers/media/dvb/ttpci/budget.c | 1 + drivers/media/dvb/ttusb-dec/ttusb_dec.c | 2 +- drivers/media/radio/radio-mr800.c | 12 +- drivers/media/video/cs5345.c | 1 - drivers/media/video/cx23885/cx23885-417.c | 3 +- drivers/media/video/cx23885/cx23885-video.c | 5 +- drivers/media/video/cx25840/cx25840-core.c | 8 + drivers/media/video/cx88/cx88-dvb.c | 72 ++-- drivers/media/video/cx88/cx88.h | 2 +- drivers/media/video/em28xx/em28xx-audio.c | 14 +- drivers/media/video/em28xx/em28xx-cards.c | 32 +- drivers/media/video/em28xx/em28xx-core.c | 20 +- drivers/media/video/em28xx/em28xx-dvb.c | 20 +- drivers/media/video/em28xx/em28xx-video.c | 45 +- drivers/media/video/em28xx/em28xx.h | 21 +- drivers/media/video/gspca/gspca.c | 4 +- drivers/media/video/ivtv/ivtv-driver.c | 4 +- drivers/media/video/pwc/pwc-if.c | 1 - drivers/media/video/saa7127.c | 52 ++- drivers/media/video/saa7134/saa7134-alsa.c | 6 +- drivers/media/video/saa7134/saa7134-core.c | 4 + drivers/media/video/saa717x.c | 1 - drivers/media/video/tda9875.c | 2 +- drivers/media/video/tveeprom.c | 3 + drivers/media/video/tvp514x.c | 2 +- drivers/media/video/upd64031a.c | 1 - drivers/media/video/upd64083.c | 1 - drivers/media/video/usbvision/usbvision-i2c.c | 2 +- drivers/media/video/uvc/uvc_ctrl.c | 7 +- drivers/media/video/uvc/uvc_driver.c | 55 +-- drivers/media/video/uvc/uvc_isight.c | 2 + drivers/media/video/uvc/uvc_queue.c | 31 +- drivers/media/video/uvc/uvc_status.c | 3 +- drivers/media/video/uvc/uvc_v4l2.c | 10 +- drivers/media/video/uvc/uvc_video.c | 31 +- drivers/media/video/uvc/uvcvideo.h | 232 +++++----- drivers/media/video/v4l2-subdev.c | 4 +- drivers/media/video/zoran/zoran.h | 12 +- drivers/media/video/zoran/zoran_card.c | 620 ++++++++++++------------- drivers/media/video/zoran/zoran_card.h | 2 - drivers/media/video/zoran/zoran_driver.c | 105 ++--- include/media/v4l2-device.h | 8 +- 54 files changed, 854 insertions(+), 731 deletions(-)
Alexey Klimov (1):
V4L/DVB (10317): radio-mr800: fix radio->muted and radio->stereo
Andy Walls (3):
V4L/DVB (10218): cx23885: Fix Oops for mixed install of analog and digital only cards V4L/DVB (10219): saa7134: Prevent Oops due to stale IRQ status when enabling interrupts V4L/DVB (10229): cx88-dvb: Fix order of frontend allocations
Antti Palosaari (2):
V4L/DVB (10287): af9015: fix second FE
V4L/DVB (10288): af9015: bug fix: stick does not work always when plugged
Devin Heitmueller (2):
V4L/DVB (10261): em28xx: fix kernel panic on audio shutdown V4L/DVB (10411): s5h1409: Perform s5h1409 soft reset after tuning
Hans Verkuil (8):
V4L/DVB (10214): Fix 'stb0899_get_srate' defined but not used warning
V4L/DVB (10230): v4l2-device: fix buggy macro
V4L/DVB (10243): em28xx: fix compile warning
V4L/DVB (10248): v4l-dvb: fix a bunch of compile warnings.
V4L/DVB (10250): cx25840: fix regression: fw not loaded on first use
V4L/DVB (10270): saa7146: fix unbalanced mutex_lock/unlock
V4L/DVB (10314): cx25840: ignore TUNER_SET_CONFIG in the command callback.
V4L/DVB (10229): ivtv: fix memory leakHuang Weiyi (1):
V4L/DVB (10193): removed unused #include <version.h>'s
Jean-Francois Moine (1):
V4L/DVB (10385): gspca - main: Fix memory leak when USB disconnection while streaming.
Laurent Pinchart (3):
V4L/DVB (10197): uvcvideo: Whitespace and comments cleanup, copyright updates. V4L/DVB (10198): uvcvideo: Print the UVC version number in binary-coded decimal. V4L/DVB (10199): uvcvideo: Fix GET_DEF failure detection.
Martin Dauskardt (1):
V4L/DVB (10216): saa7127: fix broken S-Video with saa7129
Matthias Dahl (1):
V4L/DVB (9054): implement proper locking in the dvb ca en50221 driver
Mauro Carvalho Chehab (6):
V4L/DVB (10192): em28xx: fix input selection
V4L/DVB (10201): Fixes cx88 compilation bug
V4L/DVB (10208): zoran: Re-adds udev entry removed by changeset 60b4bde4
V4L/DVB (10209): tveeprom: Properly initialize tuner type (BZ#11367)
V4L/DVB (10228): em28xx: fix audio output PCM IN selection
V4L/DVB (10403): saa7134-alsa: saa7130 doesn't support digital audioMike Isely (1):
V4L/DVB (10240): Fix obvious swapped names in v4l2_subdev logic
Nicolas Fournier (1):
V4L/DVB (10233): [PATCH] Terratec Cinergy DT XS Diversity new USB ID (0ccd:0081)
Robert Krakora (4):
V4L/DVB (10254): em28xx: Fix audio URB transfer buffer race condition V4L/DVB (10256): em28xx: Fix for KWorld 330U AC97
V4L/DVB (10257): em28xx: Fix for KWorld 330U Board
V4L/DVB (10325): em28xx: Fix for fail to submit URB with IRQs and Pre-emption Disabled
Sebastian Andrzej Siewior (1):
V4L/DVB (10202): [PATCH] v4l/tvp514x: Don't write after line end
Simon Harrison (1):
V4L/DVB (10210): Fix a bug on v4lgrab.c
Tony Broad (1):
V4L/DVB (10265): budget.c driver: Kernel oops: "BUG: unable to handle kernel paging request at ffffffff
Trent Piepho (6):
V4L/DVB (10212): Convert to be a pci driver
V4L/DVB (10222): zoran: Better syntax for initializing array module params V4L/DVB (10223): zoran: Remove global device array
V4L/DVB (10224): zoran: Use pci device table to get card type V4L/DVB (10225): zoran: Remove zr36057_adr field
V4L/DVB (10226): zoran: Get rid of extra module ref count
Yusuf Altin (1):
V4L/DVB (10195): [PATCH] add Terratec Cinergy T Express to dibcom driver
---------------------------------------------------
V4L/DVB development is hosted at http://linuxtv.org
.
Cheers,
Mauro
Quoted 11 lines · Mauro Carvalho Chehab
Quoted 6 lines · On Sun, 1 Feb 2009 14:29:27 +0100 Jean Delvare <[email protected]> wrote:
Quoted 2 lines · Mauro Carvalho Chehab
I have already a pull request almost ready that will fix this issue. I'll likely send it today or tomorrow.
Did it happen? I've just tested kernel 2.6.29-rc3-git3 and the problem is still present.
I just sent today a pull request with this fix included:
Great, thanks.
Quoted 3 lines
From: Mauro Carvalho Chehab <[email protected]>
To: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>, [email protected], [email protected]
The last address looks like a typo.
Signature · 1 line
Jean Delvare
Quoted 13 lines · Jean Delvare
Quoted 11 lines · Mauro Carvalho Chehab
Quoted 6 lines · On Sun, 1 Feb 2009 14:29:27 +0100 Jean Delvare <[email protected]> wrote:
Quoted 2 lines · Mauro Carvalho Chehab
I have already a pull request almost ready that will fix this issue. I'll likely send it today or tomorrow.
Did it happen? I've just tested kernel 2.6.29-rc3-git3 and the problem is still present.
I just sent today a pull request with this fix included:
Quoted 7 lines
Great, thanks.
Quoted 3 lines
From: Mauro Carvalho Chehab <[email protected]>
To: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>, [email protected], [email protected]The last address looks like a typo.
Yes. It were a typo on my patchbomb script. Fixed, thanks!
Quoted 2 lines
Signature · 4 lines
Cheers, Mauro Carvalho Chehab http://linuxtv.org [email protected]
Quoted 16 lines · Mauro Carvalho Chehab
Quoted 13 lines · On Sun, 1 Feb 2009 14:29:27 +0100 Jean Delvare <[email protected]> wrote:
Hi Mauro,
Quoted 10 lines · Mauro Carvalho Chehab
Quoted 6 lines · On Thu, 29 Jan 2009 22:10:12 +0100 Jean Delvare <[email protected]> wrote:
Hi folks,
I have a CX88-based DVB-T adapter which worked fine up to 2.6.28 but is broken since 2.6.29-rc1 (and not fixed as off 2.6.29-rc3). The problem is that
/dev/dvbisn't created. Presumably the root cause is the following in the kernel logs as the driver is loaded:
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
I have already a pull request almost ready that will fix this issue. I'll likely send it today or tomorrow.
Did it happen? I've just tested kernel 2.6.29-rc3-git3 and the problem is still present.
I just sent today a pull request with this fix included:
I just tested 2.6.29-rc3-git5 and I confirm that cx88-dvb works again. Thank you!
Signature · 1 line
Jean Delvare