Package: crystalhd-dkms; Maintainer for crystalhd-dkms is (unknown);
Reported by: tom schorpp <thomas.schorpp@googlemail.com>
Date: Thu, 31 Jan 2013 18:27:01 UTC
Severity: critical
Tags: patch
Found in version crystalhd/1:0.0~git20110715.fdd2f19-7
Fixed in version crystalhd/1:0.0~git20110715.fdd2f19-8
Done: Andres Mejia <amejia@debian.org>
Bug is archived. No further changes may be made.
View this report as an mbox folder, status mbox, maintainer mbox
Report forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Thu, 31 Jan 2013 18:27:04 GMT) (full text, mbox, link).
Acknowledgement sent
to tom schorpp <thomas.schorpp@googlemail.com>:
New Bug report received and forwarded. Copy sent to Andres Mejia <amejia@debian.org>.
(Thu, 31 Jan 2013 18:27:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: crystalhd-dkms
Version: 1:0.0~git20110715.fdd2f19-7
Severity: critical
Tags: patch
Justification: breaks the whole system
Reproducible NULL pointer BUG at crystalhd-0.0~git20110715.fdd2f19/driver/linux/crystalhd_misc.c:515,
triggered by adobe flash plugin from dmo repo, ffmpeg, mplayer, bino or other, mostly on heavy ioq usage
or after FETCH_TIMEOUT and/or unclosed driver HANDLEs.
Your package is affected, reproducible on all 3.x kernel.org "stable" kernel versions.
Subsequent driver access without reboot or after rmmod -f && modprobe again will trigger kernel freeze by
kernel unhandled paging request.
This patch has fixed this bug for me until now.
Upstream maintainer/owner of codebase host git.linuxtv.org or Broadcom authors have not responded yet,
but affected BCM70015 chip hardware is still in production state and wholeselling as mini-PCI-E card.
Signed-off-by: Thomas Schorpp <thomas.schorpp@gmail.com>
y
tom
8043-Jan 24 18:33:14 tom3 kernel: [ 457.636878] BUG: unable to handle kernel NULL pointer dereference at 000000000000002c
8044:Jan 24 18:33:14 tom3 kernel: [ 457.637016] IP: [<ffffffffa043a14c>] crystalhd_dioq_fetch_wait+0x25c/0x410 [crystalhd]
8045-Jan 24 18:33:14 tom3 kernel: [ 457.637150] PGD 631fe067 PUD 57474067 PMD 0
8046-Jan 24 18:33:14 tom3 kernel: [ 457.637238] Oops: 0000 [#1] PREEMPT SMP
8047-Jan 24 18:33:14 tom3 kernel: [ 457.637326] CPU 0
8048-Jan 24 18:33:14 tom3 kernel: [ 457.637361] Modules linked in: uinput parport_pc ppdev lp parport bluetooth nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs acpi_cpufreq mperf cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_performance cpufreq_ondemand freq_table fuse dm_mod ext3 jbd pciehp arc4 ath5k ath snd_hda_codec_analog mac80211 cfg80211 snd_hda_intel snd_hda_codec snd_usb_audio thinkpad_acpi snd_pcm_oss snd_mixer_oss snd_hwdep rfkill snd_pcm snd_usbmidi_lib snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device gspca_zc3xx gspca_main snd videodev pcmcia usb_storage v4l2_compat_ioctl32 psmouse yenta_socket tpm_tis pcmcia_rsrc crystalhd(O) snd_page_alloc soundcore tpm pcmcia_core tpm_bios pcspkr serio_raw i2c_i801 nvram wmi rtc_cmos battery ac evdev processor nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_limit xt_tcpudp iptable_filter ip_tables
x
_tables ext4 mbcache jbd2 crc16
8049-Jan 24 18:33:14 tom3 kernel: usbhid hid sg sd_mod crc_t10dif ata_generic uhci_hcd ahci libahci ata_piix atkbd libata thermal xhci_hcd ehci_hcd usbcore e1000e usb_common [last unloaded: scsi_wait_scan]
8050-Jan 24 18:33:14 tom3 kernel: [ 457.637841]
8051-Jan 24 18:33:14 tom3 kernel: [ 457.637841] Pid: 6318, comm: ffmpeg Tainted: G O 3.2.36-dirty #7 LENOVO 7735Y1T/7735Y1T
8052:Jan 24 18:33:14 tom3 kernel: [ 457.637841] RIP: 0010:[<ffffffffa043a14c>] [<ffffffffa043a14c>] crystalhd_dioq_fetch_wait+0x25c/0x410 [crystalhd]
8053-Jan 24 18:33:14 tom3 kernel: [ 457.637841] RSP: 0018:ffff88006300dd48 EFLAGS: 00010246
8054-Jan 24 18:33:14 tom3 kernel: [ 457.637841] RAX: 0000000000000000 RBX: ffff88007b1cde50 RCX: 0000000000000000
8055-Jan 24 18:33:14 tom3 kernel: [ 457.637841] RDX: 0000000000000046 RSI: ffffffffa04395c3 RDI: ffffffff81493e82
8056-Jan 24 18:33:14 tom3 kernel: [ 457.637841] RBP: ffff88006300ddf8 R08: 0000000000000000 R09: 0000000000000000
8057-Jan 24 18:33:14 tom3 kernel: [ 457.637841] R10: 0000000000000000 R11: ffff88007b1ce510 R12: ffff88007a855d80
8058-Jan 24 18:33:14 tom3 kernel: [ 457.637841] R13: 0000000000000000 R14: ffff88007a855da8 R15: ffff88007b1cde50
8059-Jan 24 18:33:14 tom3 kernel: [ 457.637841] FS: 00007f559fa7b760(0000) GS:ffff88007f400000(0000) knlGS:0000000000000000
8060-Jan 24 18:33:14 tom3 kernel: [ 457.637841] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
8061-Jan 24 18:33:14 tom3 kernel: [ 457.637841] CR2: 000000000000002c CR3: 0000000057470000 CR4: 00000000000006f0
8062-Jan 24 18:33:14 tom3 kernel: [ 457.637841] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
8063-Jan 24 18:33:14 tom3 kernel: [ 457.637841] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
8064-Jan 24 18:33:14 tom3 kernel: [ 457.637841] Process ffmpeg (pid: 6318, threadinfo ffff88006300c000, task ffff88007b1cde50)
8065-Jan 24 18:33:14 tom3 kernel: [ 457.637841] Stack:
8066-Jan 24 18:33:14 tom3 kernel: [ 457.637841] 0000000000000327 ffff88007b1ce510 ffff88006b199400 ffff88007c1b1090
8067-Jan 24 18:33:14 tom3 kernel: [ 457.637841] ffff88006300de14 ffff8800594145b0 ffff880059414400 ffff88007b1cde50
8068-Jan 24 18:33:14 tom3 kernel: [ 457.637841] ffff88007a855de0 0000000100026d5c 0000000000000000 ffff88007b1cde50
8069-Jan 24 18:33:14 tom3 kernel: [ 457.637841] Call Trace:
8070-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffff810497e0>] ? try_to_wake_up+0x260/0x260
8071-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffffa043b7b0>] ? bc_cproc_start_capture+0x100/0x100 [crystalhd]
8072-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffffa043d566>] crystalhd_hw_get_cap_buffer+0x56/0x1a0 [crystalhd]
8073-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffffa043b83d>] bc_cproc_fetch_frame+0x8d/0x1b0 [crystalhd]
8074-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffffa0438db1>] chd_dec_api_cmd+0x81/0x100 [crystalhd]
8075-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffffa0438ec0>] chd_dec_ioctl+0x90/0x170 [crystalhd]
8076-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffff811704bc>] do_vfs_ioctl+0x9c/0x330
8077-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffff8115ebb0>] ? fget_light+0x40/0x140
8078-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffff8108d9bd>] ? trace_hardirqs_on_caller+0x11d/0x1b0
8079-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffff8117079f>] sys_ioctl+0x4f/0x80
8080-Jan 24 18:33:14 tom3 kernel: [ 457.637841] [<ffffffff8149b6eb>] system_call_fastpath+0x16/0x1b
8081-Jan 24 18:33:14 tom3 kernel: [ 457.637841] Code: 89 f7 e8 18 9d 05 e1 45 85 ed 75 81 48 8b bd 78 ff ff ff e8 77 17 c4 e0 85 c0 0f 85 c7 00 00 00 4c 89 e7 e8 57 f3 ff ff 49 89 c0 <f6> 40 2c 03 0f 85 3d 01 00 00 48 8b 4d 80 48 8b 81 d0 00 00 00
8082:Jan 24 18:33:14 tom3 kernel: [ 457.637841] RIP [<ffffffffa043a14c>] crystalhd_dioq_fetch_wait+0x25c/0x410 [crystalhd]
8083-Jan 24 18:33:14 tom3 kernel: [ 457.637841] RSP <ffff88006300dd48>
8084-Jan 24 18:33:14 tom3 kernel: [ 457.637841] CR2: 000000000000002c
8085-Jan 24 18:33:14 tom3 kernel: [ 457.663980] ---[ end trace 784283982dcd2475 ]---
8081-Jan 24 18:33:14 tom3 kernel: [ 457.637841] Code: 89 f7 e8 18 9d 05 e1 45 85 ed 75 81 48 8b bd 78 ff ff ff e8 77 17 c4 e0 85 c0 0f 85 c7 00 00 00 4c 89 e7 e8 57 f3 ff ff 49 89 c0 <f6> 40 2c 03 0f 85 3d 01 00 00 48 8b 4d 80 48 8b 81 d0 00 00 00
$ linux-stable/scripts/decodecode < oops.txt
All code
========
0: 89 f7 mov %esi,%edi
2: e8 18 9d 05 e1 callq 0xffffffffe1059d1f
7: 45 85 ed test %r13d,%r13d
a: 75 81 jne 0xffffffffffffff8d
c: 48 8b bd 78 ff ff ff mov -0x88(%rbp),%rdi
13: e8 77 17 c4 e0 callq 0xffffffffe0c4178f
18: 85 c0 test %eax,%eax
1a: 0f 85 c7 00 00 00 jne 0xe7
20: 4c 89 e7 mov %r12,%rdi
23: e8 57 f3 ff ff callq 0xfffffffffffff37f
28: 49 89 c0 mov %rax,%r8
2b:* f6 40 2c 03 testb $0x3,0x2c(%rax) <-- trapping instruction
2f: 0f 85 3d 01 00 00 jne 0x172
35: 48 8b 4d 80 mov -0x80(%rbp),%rcx
39: 48 8b 81 d0 00 00 00 mov 0xd0(%rcx),%rax
Code starting with the faulting instruction
===========================================
0: f6 40 2c 03 testb $0x3,0x2c(%rax)
4: 0f 85 3d 01 00 00 jne 0x147
a: 48 8b 4d 80 mov -0x80(%rbp),%rcx
e: 48 8b 81 d0 00 00 00 mov 0xd0(%rcx),%rax
$ gdb /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd.ko
(gdb) l *(crystalhd_dioq_fetch_wait + 604)
0x216c is in crystalhd_dioq_fetch_wait (/mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_misc.c:516).
511 /* Lock against checks from get status calls */
512 if(down_interruptible(&hw->fetch_sem))
513 goto sem_error;
514 r_pkt = crystalhd_dioq_fetch(ioq);
515 /* If format change packet, then return with out checking anything */
516 if (r_pkt->flags & (COMP_FLAG_PIB_VALID | COMP_FLAG_FMT_CHANGE)) <--- x86 testb instruction XXXXXX
517 goto sem_rel_return;
518 if (hw->adp->pdev->device == BC_PCI_DEVID_LINK) {
519 picYcomp = link_GetRptDropParam(hw, hw->PICHeight, hw->PICWidth, (void *)r_pkt);
520 }
(gdb) l *(crystalhd_dioq_fetch_wait + 0x410)
0x2320 is in bc_kern_dma_free (/mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_misc.c:262).
257 * Return:
258 * none.
259 */
260 void bc_kern_dma_free(struct crystalhd_adp *adp, uint32_t sz, void *ka,
261 dma_addr_t phy_addr)
262 {
263 if (!adp || !ka || !sz || !phy_addr) {
264 printk(KERN_ERR "%s: Invalid arg\n", __func__);
265 return;
266 }
crystalhd-nullpointer-bugfix.schorpp.01.patch
diff --git a/driver/linux/crystalhd_misc.c b/driver/linux/crystalhd_misc.c
index 410ab9d..b3ce457 100644
--- a/driver/linux/crystalhd_misc.c
+++ b/driver/linux/crystalhd_misc.c
@@ -512,7 +512,10 @@ void *crystalhd_dioq_fetch_wait(struct crystalhd_hw *hw, uint32_t to_secs, uint3
if(down_interruptible(&hw->fetch_sem))
goto sem_error;
r_pkt = crystalhd_dioq_fetch(ioq);
- /* If format change packet, then return with out checking anything */
+ /* If no packet then up and return zero otherwise will *0 BUG the kernel on heavy dioq load */
+ if (!r_pkt)
+ goto sem_rel_return;
+ /* If format change packet then return without checking anything */
if (r_pkt->flags & (COMP_FLAG_PIB_VALID | COMP_FLAG_FMT_CHANGE))
goto sem_rel_return;
if (hw->adp->pdev->device == BC_PCI_DEVID_LINK) {
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.37-PM (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
[crystalhd-nullpointer-bugfix.schorpp.01.patch (text/x-diff, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Feb 2013 01:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Feb 2013 01:57:03 GMT) (full text, mbox, link).
Message #10 received at 699470@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
This patch should pass the 2nd test case of this bug.
The Broadcom driver can only handle strict open->close sequences, not in parallel or subsequent open() before HANDLE close(),
so using the usual multithreaded or faulty apps will crash the kernel due to missing !ctx->hw_ctx exception catchers:
[545486.745240] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
[545486.832451] BUG: unable to handle kernel NULL pointer dereference at 00000000000002c8
[545486.832525] IP: [<ffffffffa0765b0b>] bc_cproc_reg_rd+0x3b/0x50 [crystalhd]
[545486.832587] PGD 4508067 PUD fb7c067 PMD 0
[545486.832624] Oops: 0000 [#1] PREEMPT SMP
[545486.832660] CPU 0
[545486.832676] Modules linked in: crystalhd(O) udf crc_itu_t sr_mod cdrom nfs fscache uinput parport_pc ppdev lp parport bluetooth nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs acpi_cpufreq mperf cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_performance cpufreq_ondemand freq_table fuse dm_mod ext3 jbd pciehp arc4 ath5k ath mac80211 snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_usb_audio cfg80211 snd_pcm_oss snd_mixer_oss snd_hwdep snd_usbmidi_lib snd_pcm thinkpad_acpi
[545486.833129] crystalhd_hw_stats: Invalid Arguments
[545486.833014] snd_seq_dummy snd_seq_oss rfkill snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq gspca_zc3xx pcmcia gspca_main snd_timer tpm_tis snd_seq_device videodev psmouse tpm usb_storage yenta_socket snd pcmcia_rsrc tpm_bios i2c_i801 nvram v4l2_compat_ioctl32 pcmcia_core soundcore snd_page_alloc rtc_cmos wmi pcspkr serio_raw processor battery ac evdev nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_limit xt_tcpudp iptable_filter ip_tables x_tables ext4 mbcache jbd2 crc16 usbhid hid sg sd_mod crc_t10dif ata_generic uhci_hcd xhci_hcd ahci libahci ata_piix libata thermal ehci_hcd atkbd usbcore e1000e usb_common [last unloaded: crystalhd]
[545486.833014]
[545486.833014] Pid: 27551, comm: matroskademux1: Tainted: G W O 3.2.37-dirty #8 LENOVO 7735Y1T/7735Y1T
[545486.833014] RIP: 0010:[<ffffffffa0765b0b>] [<ffffffffa0765b0b>] bc_cproc_reg_rd+0x3b/0x50 [crystalhd]
[545486.833014] RSP: 0018:ffff8800171f1e68 EFLAGS: 00010286
[545486.833014] RAX: 0000000000000000 RBX: ffff880011fc9800 RCX: 00000000fffffffc
[545486.833014] RDX: 0000000000000000 RSI: 000000000034000c RDI: ffff88000ddd6e00
[545486.833014] RBP: ffff8800171f1e78 R08: 0000000000000001 R09: 0000000000000000
[545486.833014] R10: fffffffff3640327 R11: ffff880031fd45a0 R12: 0000000003054fb0
[545486.833014] R13: ffff880011fc9800 R14: 0000000000000000 R15: ffffffffa0765ad0
[545486.833014] FS: 00007fd179f36700(0000) GS:ffff88007f400000(0000) knlGS:0000000000000000
[545486.833014] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[545486.833014] CR2: 00000000000002c8 CR3: 0000000017098000 CR4: 00000000000006f0
[545486.833014] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[545486.833014] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[545486.833014] Process matroskademux1: (pid: 27551, threadinfo ffff8800171f0000, task ffff880031fd3ee0)
[545486.833014] Stack:
[545486.833014] 0000000000000000 ffff88000ddd6e00 ffff8800171f1ec8 ffffffffa0763da1
[545486.833014] 0000000000000000 00000000c2206202 ffff8800171f1ec8 ffff88000ddd6e00
[545486.833014] ffff88000ddd6ed0 00000000c2206202 0000000003054fb0 0000000000000000
[545486.833014] Call Trace:
[545486.833014] [<ffffffffa0763da1>] chd_dec_api_cmd+0x81/0x100 [crystalhd]
[545486.833014] [<ffffffffa0763eb0>] chd_dec_ioctl+0x90/0x170 [crystalhd]
[545486.833014] [<ffffffff811701fc>] do_vfs_ioctl+0x9c/0x330
[545486.833014] [<ffffffff8115e930>] ? fget_light+0x40/0x140
[545486.833014] [<ffffffff8108d8bd>] ? trace_hardirqs_on_caller+0x11d/0x1b0
[545486.833014] [<ffffffff811704df>] sys_ioctl+0x4f/0x80
[545486.833014] [<ffffffff8149ad6b>] system_call_fastpath+0x16/0x1b
[545486.833014] Code: f3 48 85 f6 75 12 48 83 c4 08 b8 01 00 00 00 5b c9 c3 66 0f 1f 44 00 00 48 85 ff 74 e9 48 8b 87 80 00 00 00 8b 76 10 48 8b 7f 08 <ff> 90 c8 02 00 00 89 43 14 48 83 c4 08 31 c0 5b c9 c3 0f 1f 00
[545486.833014] RIP [<ffffffffa0765b0b>] bc_cproc_reg_rd+0x3b/0x50 [crystalhd]
[545486.833014] RSP <ffff8800171f1e68>
[545486.833014] CR2: 00000000000002c8
[545486.860403] ---[ end trace 32f093356a8be591 ]---
[545486.836574] BUG: unable to handle kernel NULL pointer dereference at 0000000000000084
[545486.836574] IP: [<ffffffff812355fe>] do_raw_spin_lock+0x1e/0x140
[545486.836574] PGD 4508067 PUD fb7c067 PMD 0
[545486.836574] Oops: 0000 [#2] PREEMPT SMP
[545486.836574] CPU 1
[545486.836574] Modules linked in: crystalhd(O) udf crc_itu_t sr_mod cdrom nfs fscache uinput parport_pc ppdev lp parport bluetooth nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs acpi_cpufreq mperf cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_performance cpufreq_ondemand freq_table fuse dm_mod ext3 jbd pciehp arc4 ath5k ath mac80211 snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_usb_audio cfg80211 snd_pcm_oss snd_mixer_oss snd_hwdep snd_usbmidi_lib snd_pcm thinkpad_acpi snd_seq_dummy snd_seq_oss rfkill snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq gspca_zc3xx pcmcia gspca_main snd_timer tpm_tis snd_seq_device videodev psmouse tpm usb_storage yenta_socket snd pcmcia_rsrc tpm_bios i2c_i801 nvram v4l2_compat_ioctl32 pcmcia_core soundcore snd_page_alloc rtc_cmos wmi pcspkr serio_raw processor battery ac evdev nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_limit xt_tcpudp iptable_filter ip_ta
bles x_tables ext4 mbcache jbd2 crc16 usbhid hid sg sd_mod crc_t10dif ata_generic uhci_hcd xhci_hcd ahci libahci ata_piix libata thermal ehci_hcd atkbd usbcore e1000e usb_common [last unloaded: crystalhd]
[545486.836574]
[545486.836574] Pid: 27553, comm: matroskademux1: Tainted: G D W O 3.2.37-dirty #8 LENOVO 7735Y1T/7735Y1T
[545486.836574] RIP: 0010:[<ffffffff812355fe>] [<ffffffff812355fe>] do_raw_spin_lock+0x1e/0x140
[545486.836574] RSP: 0018:ffff8800045c9dc8 EFLAGS: 00010082
[545486.836574] RAX: ffff880011f65e50 RBX: 0000000000000080 RCX: 0000000000000000
[545486.836574] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000080
[545486.836574] RBP: ffff8800045c9de8 R08: 0000000000000000 R09: 0000000000000001
[545486.836574] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000282
[545486.836574] R13: ffff8800045c9e28 R14: 0000000000000000 R15: ffffffffa07662a0
[545486.836574] FS: 00007fd179530700(0000) GS:ffff88007f500000(0000) knlGS:0000000000000000
[545486.836574] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[545486.836574] CR2: 0000000000000084 CR3: 0000000017098000 CR4: 00000000000006e0
[545486.836574] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[545486.836574] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[545486.836574] Process matroskademux1: (pid: 27553, threadinfo ffff8800045c8000, task ffff880011f65e50)
[545486.836574] Stack:
[545486.836574] 0000000000000080 0000000000000282 ffff8800045c9e28 0000000000000000
[545486.836574] ffff8800045c9e18 ffffffff81492ece ffffffffa0766374 0000000000000000
[545486.836574] ffff880011fcbc00 ffff88000ddd6ec0 ffff8800045c9e78 ffffffffa0766374
[545486.836574] Call Trace:
[545486.836574] [<ffffffff81492ece>] _raw_spin_lock_irqsave+0x4e/0x60
[545486.836574] [<ffffffffa0766374>] ? bc_cproc_get_stats+0xd4/0x2b0 [crystalhd]
[545486.836574] [<ffffffffa0766374>] bc_cproc_get_stats+0xd4/0x2b0 [crystalhd]
[545486.836574] [<ffffffffa0763b15>] ? chd_dec_proc_user_data+0x65/0x270 [crystalhd]
[545486.836574] [<ffffffffa0763da1>] chd_dec_api_cmd+0x81/0x100 [crystalhd]
[545486.836574] [<ffffffffa0763eb0>] chd_dec_ioctl+0x90/0x170 [crystalhd]
[545486.836574] [<ffffffff811701fc>] do_vfs_ioctl+0x9c/0x330
[545486.836574] [<ffffffff8115e930>] ? fget_light+0x40/0x140
[545486.836574] [<ffffffff8108d7c0>] ? trace_hardirqs_on_caller+0x20/0x1b0
[545486.836574] [<ffffffff811704df>] sys_ioctl+0x4f/0x80
[545486.836574] [<ffffffff8149ad6b>] system_call_fastpath+0x16/0x1b
[545486.836574] Code: eb 8b 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 48 83 ec 20 48 89 1c 24 4c 89 64 24 08 4c 89 6c 24 10 4c 89 74 24 18 48 89 fb <81> 7f 04 ad 4e ad de 0f 85 d2 00 00 00 65 48 8b 04 25 00 b6 00
[545486.836574] RIP [<ffffffff812355fe>] do_raw_spin_lock+0x1e/0x140
[545486.836574] RSP <ffff8800045c9dc8>
[545486.836574] CR2: 0000000000000084
[545486.836574] ---[ end trace 32f093356a8be592 ]---
[545486.860850] note: matroskademux1:[27553] exited with preempt_count 1
The patch will prevent accessing nonexistant driver instances but gstreamer will fail, but totem-gstreamer OK with it:
Feb 1 02:14:11 tom3 kernel: [ 713.297215] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 02:14:12 tom3 kernel: [ 713.552294] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
Feb 1 02:14:12 tom3 kernel: [ 713.756852] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 02:14:12 tom3 kernel: [ 713.757000] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 02:14:12 tom3 kernel: [ 713.757086] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
Feb 1 02:14:12 tom3 kernel: [ 713.758074] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 02:14:12 tom3 kernel: [ 714.011311] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
Feb 1 02:14:12 tom3 kernel: [ 714.092062] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.094653] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.096877] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.099108] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.101308] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.103516] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.105788] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.108209] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.110543] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.112902] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.115448] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.117792] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.120130] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.122453] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.124742] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.126979] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.129194] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.131377] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.133582] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.135812] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.138164] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.140509] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.142820] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.145174] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.147475] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.149903] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.152618] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.154957] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.157631] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.159962] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.162588] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.164878] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.167105] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.169320] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.171507] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.173748] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.175952] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.178202] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.180469] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.182766] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.186970] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.189621] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.192253] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.194577] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.195362] crystalhd_hw_setup_dma_rings: Invalid Arguments
Feb 1 02:14:12 tom3 kernel: [ 714.197048] crystalhd 0000:03:00.0: bc_cproc_flush_cap_buffs: Invalid Arg
Feb 1 02:14:12 tom3 kernel: [ 714.202175] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
Feb 1 02:14:12 tom3 kernel: [ 714.202181] crystalhd_hw_stop_capture: Invalid Arguments
Feb 1 02:14:12 tom3 kernel: [ 714.202184] crystalhd_hw_free_dma_rings: Invalid Arguments
Feb 1 02:14:12 tom3 kernel: [ 714.202267] crystalhd_hw_close: Invalid Arguments
schorpp@tom3:~$ transmageddon
Traceback (most recent call last):
File "transmageddon.py", line 676, in on_presetchoice_changed
self.devicename= self.presetchoices[presetchoice]
KeyError: 'Keine Voreinstellungen'
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDevRegisterRead: Ioctl failed: 1
DtsDevRegisterWr: Ioctl failed: 1
DtsDevRegisterWr: Ioctl failed: 1
Clock set to 180
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsDevRegisterRead: Ioctl failed: 1
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsNotifyMode: Ioctl failed: 1
Notify Operating Mode Failed
DtsAllocIoctlData Error
Unable to detach from Dil shared memory ...
DtsDelDilShMem:Unable get shmid ...
Stream with high frequencies VQ coding
/usr/bin/transmageddon: Zeile 3: 6499 Speicherzugriffsfehler python transmageddon.py
schorpp@tom3:~$
This is a quick&dirty hack emergency critical bug fix only! May break other apps than totem, ffmpeg, mplayer, be warned!
--------------------------
Patch attached.
crystalhd git.linuxtv.org kernel driver: FIX MORE null pointer BUGs triggered by multithreaded or faulty apps
Signed-off-by: Thomas Schorpp <thomas.schorpp@gmail.com>
y
tom
[crystalhd-nullpointer-bugfix.schorpp.02.patch (text/x-diff, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Feb 2013 20:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Feb 2013 20:27:05 GMT) (full text, mbox, link).
Message #15 received at 699470@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
This patch should pass the 3rd test case of this bug (kernel unhandled paging request) and maybe the PM resume issue, too:
21370-Feb 1 18:39:52 tom3 kernel: [59853.620636] crystalhd 0000:03:00.0: Opening new user[0] handle
21371-Feb 1 18:39:52 tom3 kernel: [59853.875306] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
21372-Feb 1 18:39:52 tom3 kernel: [59854.079584] crystalhd 0000:03:00.0: Opening new user[0] handle
21373-Feb 1 18:39:52 tom3 kernel: [59854.079607] crystalhd 0000:03:00.0: Opening new user[0] handle
21374-Feb 1 18:39:52 tom3 kernel: [59854.079633] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
21375-Feb 1 18:39:52 tom3 kernel: [59854.080022] crystalhd 0000:03:00.0: Opening new user[0] handle
21376:Feb 1 18:39:52 tom3 kernel: [59854.283228] BUG: unable to handle kernel paging request at 0000071e00000000
21377-Feb 1 18:39:52 tom3 kernel: [59854.283358] IP: [<0000071e00000000>] 0x71dffffffff
21378-Feb 1 18:39:52 tom3 kernel: [59854.283447] PGD 0
21379-Feb 1 18:39:52 tom3 kernel: [59854.283490] Oops: 0010 [#1] PREEMPT SMP
21380-Feb 1 18:39:52 tom3 kernel: [59854.283575] CPU 0
21381-Feb 1 18:39:52 tom3 kernel: [59854.283609] Modules linked in: crystalhd(O) nfs fscache uinput parport_pc ppdev lp parport bluetooth nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs acpi_cpufreq mperf cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_performance cpufreq_ondemand freq_table fuse dm_mod ext3 jbd pciehp arc4 ath5k ath mac80211 snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_usb_audio snd_pcm_oss cfg80211 thinkpad_acpi snd_mixer_oss snd_hwdep snd_pcm snd_usbmidi_lib snd_seq_dummy snd_seq_oss rfkill snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer pcmcia snd_seq_device gspca_zc3xx gspca_main snd yenta_socket psmouse pcmcia_rsrc videodev tpm_tis tpm tpm_bios v4l2_compat_ioctl32 pcmcia_core i2c_i801 nvram pcspkr usb_storage soundcore serio_raw snd_page_alloc rtc_cmos wmi ac battery processor evdev nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_limit xt_tcpudp iptable_filte
r ip_tables x_tables ext4 mbcach
21382-Feb 1 18:39:52 tom3 kernel: e jbd2 crc16 usbhid hid sg sr_mod sd_mod cdrom crc_t10dif ata_generic uhci_hcd ahci libahci xhci_hcd ata_piix libata ehci_hcd atkbd thermal e1000e usbcore usb_common [last unloaded: crystalhd]
21383-Feb 1 18:39:52 tom3 kernel: [59854.284016]
21384-Feb 1 18:39:52 tom3 kernel: [59854.284016] Pid: 12285, comm: matroskademux0: Tainted: G O 3.2.37-dirty #8 LENOVO 7735Y1T/7735Y1T
21385-Feb 1 18:39:52 tom3 kernel: [59854.284016] RIP: 0010:[<0000071e00000000>] [<0000071e00000000>] 0x71dffffffff
21386-Feb 1 18:39:52 tom3 kernel: [59854.284016] RSP: 0018:ffff8800164d3b50 EFLAGS: 00010292
21387-Feb 1 18:39:52 tom3 kernel: [59854.284016] RAX: 000000000000007f RBX: ffff880004b9a400 RCX: 0000000000000000
21388-Feb 1 18:39:52 tom3 kernel: [59854.284016] RDX: 0000000000000001 RSI: 0000000000340000 RDI: ffff88000f437400
21389-Feb 1 18:39:52 tom3 kernel: [59854.284016] RBP: ffff8800164d3b68 R08: 0000000000000001 R09: 0000000000000000
21390-Feb 1 18:39:52 tom3 kernel: [59854.284016] R10: 0000000000000000 R11: ffff8800084d86c0 R12: ffff88007c256090
21391-Feb 1 18:39:52 tom3 kernel: [59854.284016] R13: ffff88000f437400 R14: ffff88000f4374d0 R15: ffffffffa0489f20
21392-Feb 1 18:39:52 tom3 kernel: [59854.284016] FS: 00007f70d559c700(0000) GS:ffff88007f400000(0000) knlGS:0000000000000000
21393-Feb 1 18:39:52 tom3 kernel: [59854.284016] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
21394-Feb 1 18:39:52 tom3 kernel: [59854.284016] CR2: 0000071e00000000 CR3: 00000000339b1000 CR4: 00000000000006f0
21395-Feb 1 18:39:52 tom3 kernel: [59854.284016] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
21396-Feb 1 18:39:52 tom3 kernel: [59854.284016] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
21397-Feb 1 18:39:52 tom3 kernel: [59854.284016] Process matroskademux0: (pid: 12285, threadinfo ffff8800164d2000, task ffff8800084d8000)
21398-Feb 1 18:39:52 tom3 kernel: [59854.284016] Stack:
21399-Feb 1 18:39:52 tom3 kernel: [59854.284016] ffffffffa047df98 ffff8800164d3b88 ffff880004b9a400 ffff8800164d3b88
21400-Feb 1 18:39:52 tom3 kernel: [59854.284016] ffffffffa047e48b ffff880004b9a400 ffff88007c256090 ffff8800164d3bb8
21401-Feb 1 18:39:52 tom3 kernel: [59854.284016] ffffffffa047c6fa 0000000000000000 ffff88000f4374c0 0000000000000000
21402-Feb 1 18:39:52 tom3 kernel: [59854.284016] Call Trace:
21403-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffffa047df98>] ? crystalhd_link_soft_rst+0x28/0x80 [crystalhd]
21404-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffffa047e48b>] crystalhd_link_start_device+0xcb/0x150 [crystalhd]
21405-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffffa047c6fa>] crystalhd_hw_open+0x23a/0x400 [crystalhd]
21406-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffffa047a760>] crystalhd_user_open+0x160/0x180 [crystalhd]
21407-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff811621d4>] ? chrdev_open+0x64/0x290
21408-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffffa0476377>] chd_dec_open+0x67/0x110 [crystalhd]
21409-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff811622c0>] chrdev_open+0x150/0x290
21410-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8115ee98>] ? files_lglock_local_unlock+0x48/0x70
21411-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff81162170>] ? register_chrdev_region+0xc0/0xc0
21412-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8115c752>] __dentry_open+0x242/0x400
21413-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff81493495>] ? _raw_spin_unlock+0x35/0x60
21414-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff811f5120>] ? devcgroup_seq_read+0x150/0x150
21415-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8115ca11>] nameidata_to_filp+0x71/0x80
21416-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8116b4a8>] do_last+0x3f8/0x7f0
21417-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8116c9b5>] path_openat+0xd5/0x3c0
21418-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8116cdb9>] do_filp_open+0x49/0xa0
21419-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff81493495>] ? _raw_spin_unlock+0x35/0x60
21420-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8117acda>] ? alloc_fd+0xfa/0x140
21421-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8115cc08>] do_sys_open+0x108/0x1f0
21422-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8115cd30>] sys_open+0x20/0x30
21423-Feb 1 18:39:52 tom3 kernel: [59854.284016] [<ffffffff8149ad6b>] system_call_fastpath+0x16/0x1b
21424-Feb 1 18:39:52 tom3 kernel: [59854.284016] Code: Bad RIP value.
21425-Feb 1 18:39:52 tom3 kernel: [59854.284016] RIP [<0000071e00000000>] 0x71dffffffff
21426-Feb 1 18:39:52 tom3 kernel: [59854.284016] RSP <ffff8800164d3b50>
21427-Feb 1 18:39:52 tom3 kernel: [59854.284016] CR2: 0000071e00000000
21428-Feb 1 18:39:52 tom3 kernel: [59854.342607] ---[ end trace f9fc7381abc03c15 ]---
21429-Feb 1 18:39:55 tom3 kernel: [59856.776490] start_capture: pause_th:12, resume_th:5
21430-Feb 1 18:39:55 tom3 kernel: [59856.927007] crystalhd 0000:03:00.0: [FMT CH] PIB:0 1 420 2 780 438 780 0 0 0
21431-Feb 1 18:39:55 tom3 kernel: [59857.031972] crystalhd 0000:03:00.0: MISSING 3 PICTURES
21432-Feb 1 19:25:07 tom3 kernel: [62569.274438] crystalhd 0000:03:00.0: Closing user[0] handle with mode 1c200
21433-Feb 1 19:25:15 tom3 kernel: [62576.649821] ------------[ cut here ]------------
Increased sys usage with totem with the patch could be a sign that something is wrong due to blocking pointer checks and debian stable
$ transmageddon
Traceback (most recent call last):
File "transmageddon.py", line 676, in on_presetchoice_changed
self.devicename= self.presetchoices[presetchoice]
KeyError: 'Keine Voreinstellungen'
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
Clock set to 180
DtsDrvCmd Failed with status -1
DtsPushFwBinToLink: DeviceIoControl Failed
DtsPushAuthFwToLink: Failed to download firmware
DtsSetupHardware: Failed from Open
DtsGetDriveStats: Ioctl failed: 1
...
txThreadProc: Got status 1 from GetDriverStatus
DtsGetDriveStats: Ioctl failed: 1
txThreadProc: Got status 1 from GetDriverStatus
DtsAllocIoctlData Error
Unable to detach from Dil shared memory ...
DtsDelDilShMem:Unable get shmid ...
Stream with high frequencies VQ coding
/usr/bin/transmageddon: Zeile 3: 6692 Speicherzugriffsfehler python transmageddon.py
schorpp@tom3:~$
Feb 1 20:21:44 tom3 kernel: [ 1900.117133] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 20:21:46 tom3 kernel: [ 1902.371194] start_capture: pause_th:12, resume_th:5
Feb 1 20:21:47 tom3 kernel: [ 1902.726493] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
Feb 1 20:21:59 tom3 kernel: [ 1914.586429] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 20:21:59 tom3 kernel: [ 1914.841273] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
Feb 1 20:21:59 tom3 kernel: [ 1915.045784] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 20:21:59 tom3 kernel: [ 1915.045988] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 20:21:59 tom3 kernel: [ 1915.046103] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
Feb 1 20:21:59 tom3 kernel: [ 1915.046802] crystalhd 0000:03:00.0: Opening new user[0] handle
Feb 1 20:21:59 tom3 kernel: [ 1915.300288] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
Feb 1 20:21:59 tom3 kernel: [ 1915.493945] crystalhd 0000:03:00.0: Invalid hw config.. otp not programmed
Feb 1 20:21:59 tom3 kernel: [ 1915.493955] crystalhd 0000:03:00.0: Firmware Download Failure!! - -1
Feb 1 20:21:59 tom3 kernel: [ 1915.505631] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg ctx,hw,data: 0x0 0xffff880079ecf0c0 0xffff880036e82c00
Feb 1 20:21:59 tom3 kernel: [ 1915.507970] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg ctx,hw,data: 0x0 0xffff880079ecf0c0 0xffff880036e82c00
...
Feb 1 20:22:00 tom3 kernel: [ 1915.589897] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg ctx,hw,data: 0x0 0xffff880079ecf0c0 0xffff880036e82c00
Feb 1 20:22:00 tom3 kernel: [ 1915.592526] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg ctx,hw,data: 0x0 0xffff880079ecf0c0 0xffff880036e82c00
Feb 1 20:22:00 tom3 kernel: [ 1915.594811] crystalhd 0000:03:00.0: bc_cproc_get_stats: Invalid Arg ctx,hw,data: 0x0 0xffff880079ecf0c0 0xffff880036e82c00
Feb 1 20:22:00 tom3 kernel: [ 1915.597345] crystalhd 0000:03:00.0: bc_cproc_flush_cap_buffs: Invalid Arg
Feb 1 20:22:00 tom3 kernel: [ 1915.602438] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
Feb 1 20:22:00 tom3 kernel: [ 1915.602444] crystalhd_hw_stop_capture: Invalid Arguments
Feb 1 20:22:00 tom3 kernel: [ 1915.602448] crystalhd_hw_free_dma_rings: Invalid Arguments
Feb 1 20:22:00 tom3 kernel: [ 1915.602537] crystalhd_hw_close: Invalid Arguments
Feb 1 20:22:02 tom3 kernel: [ 1917.532285] matroskademux0:[6701]: segfault at 7fbc69548018 ip 00007fbc6ac044d2 sp 00007fbc4f7fd080 error 6 in libpthread-2.11.3.so[7fbc6abf7000+17000]
is still not working but not crashing my kernel anymore. totem, ffmpeg, mplayer tests passed.
Since none of the "maintainers" nor Broadcom corp. care or agree on a common codebase, I've no motivation to fix
21372-Feb 1 18:39:52 tom3 kernel: [59854.079584] crystalhd 0000:03:00.0: Opening new user[0] handle
21373-Feb 1 18:39:52 tom3 kernel: [59854.079607] crystalhd 0000:03:00.0: Opening new user[0] handle
or any more.
Future efforts should focus on the new kernel staging GPL driver.
--------------------------
Patch attached.
crystalhd git.linuxtv.org kernel driver: FIX kernel unhandled paging request BUG triggered by multithreaded or faulty apps
Signed-off-by: Thomas Schorpp <thomas.schorpp@gmail.com>
y
tom
[crystalhd-paging-bugfix.schorpp.01.patch (text/x-diff, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Mon, 04 Feb 2013 15:24:05 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Mon, 04 Feb 2013 15:24:05 GMT) (full text, mbox, link).
Message #20 received at 699470@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
As expectable, the (unhandled?) false returns from the NULL pointer "fixes" may lead to kernel deadlock freezes and crashes in the ISRs. Reproducing scenario: ctrl-c at capture startup, e.g. Next try to fix it. Future efforts should focus on the new kernel staging GPL driver. -------------------------- Patch attached. crystalhd git.linuxtv.org kernel driver: FIX kernel freeze or OOPS in ISRs Signed-off-by: Thomas Schorpp <thomas.schorpp@gmail.com> y tom
[crystalhd-isr-deadlock-bugfix.schorpp.01.patch (text/x-diff, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 08 Feb 2013 14:03:06 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 08 Feb 2013 14:03:06 GMT) (full text, mbox, link).
Message #25 received at 699470@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Fix PM suspend() broken by emergency patches, thanks to Philip Langdale for pointing out.
...But PM resume() didn't work anyway with the original code, always err invalid args.
Recommended workaround user space PM handling for ACPI S3:
/etc/pm/config.d/00suspend_modules:2:SUSPEND_MODULES="dvb_ttpci crystalhd"
/etc/pm/sleep.d/92_crystalhd
#!/bin/sh
#SERVICES="crystalhd"
#for service in $SERVICES; do
# services_reverse="$service $services_reverse"
#done
case "$1" in
hibernate|suspend)
;;
thaw|resume)
echo 1 > /sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/reset
# echo 1 > /sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/rescan
esac
and after malfunction with "FW Command T/O", etc, crystalhd PCI-E device needs the reset up to 3x and module reload.
--------------------------
Patch attached.
crystalhd git.linuxtv.org kernel driver: Fix PM suspend broken by emergency patches
Signed-off-by: Thomas Schorpp <thomas.schorpp@gmail.com>
y
tom
[crystalhd-fix-PM-suspend.schorpp.01.patch (text/x-diff, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Thu, 28 Feb 2013 19:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Thu, 28 Feb 2013 19:45:03 GMT) (full text, mbox, link).
Message #30 received at 699470@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thu, Jan 31, 2013 at 19:25:50 +0100, tom schorpp wrote: > Package: crystalhd-dkms > Version: 1:0.0~git20110715.fdd2f19-7 > Severity: critical > Tags: patch > Justification: breaks the whole system > > Reproducible NULL pointer BUG at crystalhd-0.0~git20110715.fdd2f19/driver/linux/crystalhd_misc.c:515, > triggered by adobe flash plugin from dmo repo, ffmpeg, mplayer, bino or other, mostly on heavy ioq usage > or after FETCH_TIMEOUT and/or unclosed driver HANDLEs. > Does the maintainer or somebody on pkg-multimedia plan on fixing this RC bug? If not I'll consider a NMU removing the dkms package from crystalhd source. Cheers, Julien
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Thu, 28 Feb 2013 21:54:06 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Thu, 28 Feb 2013 21:54:06 GMT) (full text, mbox, link).
Message #35 received at 699470@bugs.debian.org (full text, mbox, reply):
On 28.02.2013 20:41, Julien Cristau wrote: > On Thu, Jan 31, 2013 at 19:25:50 +0100, tom schorpp wrote: > >> Package: crystalhd-dkms >> Version: 1:0.0~git20110715.fdd2f19-7 >> Severity: critical >> Tags: patch >> Justification: breaks the whole system >> >> Reproducible NULL pointer BUG at crystalhd-0.0~git20110715.fdd2f19/driver/linux/crystalhd_misc.c:515, >> triggered by adobe flash plugin from dmo repo, ffmpeg, mplayer, bino or other, mostly on heavy ioq usage >> or after FETCH_TIMEOUT and/or unclosed driver HANDLEs. >> > Does the maintainer or somebody on pkg-multimedia plan on fixing this RC > bug? If not I'll consider a NMU removing the dkms package from > crystalhd source. > > Cheers, > Julien > Known linux-media Maintainers STAGING - CRYSTAL HD VIDEO DECODER M: Naren Sankar <nsankar@broadcom.com> M: Jarod Wilson <jarod@wilsonet.com> M: Scott Davilla <davilla@4pi.com> M: Manu Abraham <abraham.manu@gmail.com> seem to have left the Broadcom's legacy driver code, focusing on the new linux-media staging driver, but limited time, one stated lately on the linux-media/LKML, nothing read from the others. I could adapt it to new kernel releases the next 2-3 years, but nothing more, not a experienced kernel driver coder, no debian package/policy maintaining motivation because I do not use dkms or debian kernels packages. If my last patch applies to Your codebase in the debian git repository (mine is from git.linuxtv.org, according to the git changelog more advanced in the gstreamer plugin, merge?) You may consider it "hotfixed" and release with known multithreading (gstreamer based transcoders/matroska demuxers) and PM ACPI S3 issues? Has not crashed here any more, nor notable side effects with usual playback use cases, including Totem (gstreamer). y tom
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Mar 2013 17:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Andres Mejia <amejia004@gmail.com>:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Mar 2013 17:39:03 GMT) (full text, mbox, link).
Message #40 received at 699470@bugs.debian.org (full text, mbox, reply):
It looks like the crystalhd drivers are buggy with newer kernel releases. I opt for removing the dkms package. I will do this over the weekend. On Thu, Feb 28, 2013 at 4:52 PM, thomas schorpp <thomas.schorpp@gmail.com> wrote: > On 28.02.2013 20:41, Julien Cristau wrote: >> >> On Thu, Jan 31, 2013 at 19:25:50 +0100, tom schorpp wrote: >> >>> Package: crystalhd-dkms >>> Version: 1:0.0~git20110715.fdd2f19-7 >>> Severity: critical >>> Tags: patch >>> Justification: breaks the whole system >>> >>> Reproducible NULL pointer BUG at >>> crystalhd-0.0~git20110715.fdd2f19/driver/linux/crystalhd_misc.c:515, >>> triggered by adobe flash plugin from dmo repo, ffmpeg, mplayer, bino or >>> other, mostly on heavy ioq usage >>> or after FETCH_TIMEOUT and/or unclosed driver HANDLEs. >>> >> Does the maintainer or somebody on pkg-multimedia plan on fixing this RC >> bug? If not I'll consider a NMU removing the dkms package from >> crystalhd source. >> >> Cheers, >> Julien >> > > Known linux-media Maintainers > > STAGING - CRYSTAL HD VIDEO DECODER > M: Naren Sankar <nsankar@broadcom.com> > M: Jarod Wilson <jarod@wilsonet.com> > M: Scott Davilla <davilla@4pi.com> > M: Manu Abraham <abraham.manu@gmail.com> > > seem to have left the Broadcom's legacy driver code, focusing on the new > linux-media staging driver, but limited time, > one stated lately on the linux-media/LKML, nothing read from the others. > I could adapt it to new kernel releases the next 2-3 years, but nothing > more, not a experienced kernel driver coder, > no debian package/policy maintaining motivation because I do not use dkms or > debian kernels packages. > > If my last patch applies to Your codebase in the debian git repository (mine > is from git.linuxtv.org, according to the > git changelog more advanced in the gstreamer plugin, merge?) You may > consider it > > "hotfixed" > > and release with known multithreading (gstreamer based transcoders/matroska > demuxers) and PM ACPI S3 issues? > Has not crashed here any more, nor notable side effects with usual playback > use cases, including Totem (gstreamer). > > y > tom > > _______________________________________________ > pkg-multimedia-maintainers mailing list > pkg-multimedia-maintainers@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers -- ~ Andres
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Mar 2013 18:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Mar 2013 18:39:03 GMT) (full text, mbox, link).
Message #45 received at 699470@bugs.debian.org (full text, mbox, reply):
On 01.03.2013 18:36, Andres Mejia wrote: > It looks like the crystalhd drivers are buggy with newer kernel > releases. I opt for removing the dkms package. I will do this over the > weekend. Top posting on list and removal announce without valid bug report for Your claimed issue and any confirmation? Driver does not behave different from linux 3.2...3.7.1 here, see my posts on the linux-media list, xbmc people? y tom > > On Thu, Feb 28, 2013 at 4:52 PM, thomas schorpp > <thomas.schorpp@gmail.com> wrote: >> On 28.02.2013 20:41, Julien Cristau wrote: >>> >>> On Thu, Jan 31, 2013 at 19:25:50 +0100, tom schorpp wrote: >>> >>>> Package: crystalhd-dkms >>>> Version: 1:0.0~git20110715.fdd2f19-7 >>>> Severity: critical >>>> Tags: patch >>>> Justification: breaks the whole system >>>> >>>> Reproducible NULL pointer BUG at >>>> crystalhd-0.0~git20110715.fdd2f19/driver/linux/crystalhd_misc.c:515, >>>> triggered by adobe flash plugin from dmo repo, ffmpeg, mplayer, bino or >>>> other, mostly on heavy ioq usage >>>> or after FETCH_TIMEOUT and/or unclosed driver HANDLEs. >>>> >>> Does the maintainer or somebody on pkg-multimedia plan on fixing this RC >>> bug? If not I'll consider a NMU removing the dkms package from >>> crystalhd source. >>> >>> Cheers, >>> Julien >>> >> >> Known linux-media Maintainers >> >> STAGING - CRYSTAL HD VIDEO DECODER >> M: Naren Sankar <nsankar@broadcom.com> >> M: Jarod Wilson <jarod@wilsonet.com> >> M: Scott Davilla <davilla@4pi.com> >> M: Manu Abraham <abraham.manu@gmail.com> >> >> seem to have left the Broadcom's legacy driver code, focusing on the new >> linux-media staging driver, but limited time, >> one stated lately on the linux-media/LKML, nothing read from the others. >> I could adapt it to new kernel releases the next 2-3 years, but nothing >> more, not a experienced kernel driver coder, >> no debian package/policy maintaining motivation because I do not use dkms or >> debian kernels packages. >> >> If my last patch applies to Your codebase in the debian git repository (mine >> is from git.linuxtv.org, according to the >> git changelog more advanced in the gstreamer plugin, merge?) You may >> consider it >> >> "hotfixed" >> >> and release with known multithreading (gstreamer based transcoders/matroska >> demuxers) and PM ACPI S3 issues? >> Has not crashed here any more, nor notable side effects with usual playback >> use cases, including Totem (gstreamer). >> >> y >> tom
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Mar 2013 20:42:03 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Mar 2013 20:42:03 GMT) (full text, mbox, link).
Message #50 received at 699470@bugs.debian.org (full text, mbox, reply):
On 01.03.2013 18:36, Andres Mejia wrote:
> It looks like the crystalhd drivers are buggy with newer kernel
> releases. I opt for removing the dkms package. I will do this over the
> weekend.
Driver is maintainable and supported up to at least Linux 3.8 series, when we'll have 4.0 in debian stable, 2015?
schorpp@tom3:/mnt/data/usr/local/src/crystalhd/driver/linux$ make clean
rm -f *.map *.list *.o *.ko crystalhd.mod.c crystalhd_lnx.o crystalhd_misc.o crystalhd_cmds.o crystalhd_hw.o crystalhd_linkfuncs.o crystalhd_fleafuncs.o crystalhd_flea_ddr.o
schorpp@tom3:/mnt/data/usr/local/src/crystalhd/driver/linux$
schorpp@tom3:/mnt/data/usr/local/src/crystalhd/driver/linux$ make
make -C /lib/modules/3.8.1/build SUBDIRS=/mnt/data/usr/local/src/crystalhd/driver/linux modules
make[1]: Entering directory `/mnt/data/usr/local/src/linux-laststable'
CC [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_lnx.o
CC [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_misc.o
CC [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_cmds.o
CC [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_hw.o
CC [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_linkfuncs.o
CC [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_fleafuncs.o
CC [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd_flea_ddr.o
LD [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd.o
Building modules, stage 2.
MODPOST 1 modules
CC /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd.mod.o
LD [M] /mnt/data/usr/local/src/crystalhd/driver/linux/crystalhd.ko
make[1]: Leaving directory `/mnt/data/usr/local/src/linux-laststable'
schorpp@tom3:/mnt/data/usr/local/src/crystalhd/driver/linux$
Builds without warnings with my patches.
schorpp@tom3:~$ uname -a
Linux tom3 3.8.1 #12 SMP PREEMPT Fri Mar 1 20:41:00 CET 2013 x86_64 GNU/Linux
schorpp@tom3:~$ hellobcm
starting up
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
Clock set to 180
Setting Color Mode to 1
try calls done
Unable to open input file
DtsAllocIoctlData Error
schorpp@tom3:~$ dmesg |grep crystal
[ 6.426460] Loading crystalhd v3.10.1
[ 6.426515] crystalhd 0000:03:00.0: Starting Device:0x1612
[ 6.429600] crystalhd 0000:03:00.0: irq 51 for MSI/MSI-X
[ 99.896730] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 102.604770] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
[ 243.648468] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 246.325373] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
[ 334.105537] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 336.776957] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
[ 510.322855] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 510.577299] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
[ 510.781740] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 511.036308] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
[ 511.240825] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 513.801093] crystalhd 0000:03:00.0: [FMT CH] PIB:0 ff 420 6 2d0 162 2d0 0 0 0
[ 513.921604] crystalhd 0000:03:00.0: MISSING 3 PICTURES
[ 514.587208] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
[ 535.989772] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 536.244314] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
[ 536.448772] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 536.703282] crystalhd 0000:03:00.0: Closing user[0] handle with mode ffffffff
[ 536.907816] crystalhd 0000:03:00.0: Opening new user[0] handle
[ 539.435257] crystalhd 0000:03:00.0: [FMT CH] PIB:0 ff 420 6 2d0 162 2d0 0 0 0
[ 539.508317] crystalhd 0000:03:00.0: MISSING 3 PICTURES
[ 616.455975] crystalhd 0000:03:00.0: Closing user[0] handle via ioctl with mode 1c200
schorpp@tom3:~$
Loads and runs with Totem and MPlayer.
root@tom3:~# lspci -vvv -s 03:00.0 |grep Sta
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR+ <PERR- INTx-
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=1 PME-
DevSta: CorrErr+ UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSViol-
CESta: RxErr+ BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
Status: InProgress-
Status: NegoPending- InProgress-
root@tom3:~#
Some non-fatal pci errors, but lspci is usually reporting incorrectly here or my old pci-e host is pretty incompatible.
So no technical reasons to drop the package?
y
tom
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Mar 2013 20:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Mar 2013 20:57:03 GMT) (full text, mbox, link).
Message #55 received at 699470@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Fri, Mar 1, 2013 at 21:38:54 +0100, thomas schorpp wrote: > So no technical reasons to drop the package? > Until and unless the driver is in mainline, there's every reason to drop it. Cheers, Julien
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Mar 2013 20:57:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Mar 2013 20:57:05 GMT) (full text, mbox, link).
Message #60 received at 699470@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Fri, Mar 1, 2013 at 12:36:03 -0500, Andres Mejia wrote: > It looks like the crystalhd drivers are buggy with newer kernel > releases. I opt for removing the dkms package. I will do this over the > weekend. > Thanks. Julien
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Mar 2013 21:15:05 GMT) (full text, mbox, link).
Acknowledgement sent
to thomas.schorpp@gmail.com:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Mar 2013 21:15:05 GMT) (full text, mbox, link).
Message #65 received at 699470@bugs.debian.org (full text, mbox, reply):
On 01.03.2013 21:55, Julien Cristau wrote: > On Fri, Mar 1, 2013 at 21:38:54 +0100, thomas schorpp wrote: > >> So no technical reasons to drop the package? >> > Until and unless the driver is in mainline, there's every reason to drop > it. > Well, then drop all the other non-"mainline" drivers dkms packages, too. This is getting unserious, I wish You all much fun with more root holes in closed source vdpau GPU drivers. Thanks to Broadcom for the nice effort. Bye, tom
Information forwarded
to debian-bugs-dist@lists.debian.org, Andres Mejia <amejia@debian.org>:
Bug#699470; Package crystalhd-dkms.
(Fri, 01 Mar 2013 23:12:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Andres Mejia <amejia004@gmail.com>:
Extra info received and forwarded to list. Copy sent to Andres Mejia <amejia@debian.org>.
(Fri, 01 Mar 2013 23:12:03 GMT) (full text, mbox, link).
Message #70 received at 699470@bugs.debian.org (full text, mbox, reply):
On Fri, Mar 1, 2013 at 3:55 PM, Julien Cristau <jcristau@debian.org> wrote: > On Fri, Mar 1, 2013 at 21:38:54 +0100, thomas schorpp wrote: > >> So no technical reasons to drop the package? >> > Until and unless the driver is in mainline, there's every reason to drop > it. > > Cheers, > Julien I just checked the crystalhd driver in the mainline kernel. The driver seems to be much better maintained over there than at linuxtv.org. See [1]. I'm going to drop the driver from linuxtv.org. If after I drop the package someone has some compelling reason to use the driver from linuxtv.org, they can submit another bug to the crystalhd package and explain why the linuxtv.org driver should be used. 1. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/staging/crystalhd -- ~ Andres
Reply sent
to Andres Mejia <amejia@debian.org>:
You have taken responsibility.
(Sat, 02 Mar 2013 19:06:11 GMT) (full text, mbox, link).
Notification sent
to tom schorpp <thomas.schorpp@googlemail.com>:
Bug acknowledged by developer.
(Sat, 02 Mar 2013 19:06:11 GMT) (full text, mbox, link).
Message #75 received at 699470-close@bugs.debian.org (full text, mbox, reply):
Source: crystalhd
Source-Version: 1:0.0~git20110715.fdd2f19-8
We believe that the bug you reported is fixed in the latest version of
crystalhd, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 699470@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andres Mejia <amejia@debian.org> (supplier of updated crystalhd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 02 Mar 2013 13:34:36 -0500
Source: crystalhd
Binary: libcrystalhd-dev libcrystalhd3 gstreamer0.10-crystalhd
Architecture: source amd64
Version: 1:0.0~git20110715.fdd2f19-8
Distribution: unstable
Urgency: high
Maintainer: Andres Mejia <amejia@debian.org>
Changed-By: Andres Mejia <amejia@debian.org>
Description:
gstreamer0.10-crystalhd - Crystal HD Video Decoder (GStreamer plugin)
libcrystalhd-dev - Crystal HD Video Decoder (development files)
libcrystalhd3 - Crystal HD Video Decoder (shared library)
Closes: 682252 699470
Changes:
crystalhd (1:0.0~git20110715.fdd2f19-8) unstable; urgency=high
.
* Remove dkms package which contained buggy driver.
Driver already existed in mainline kernel. Any issues with the driver
should be directed to the kernel package.
(Closes: #682252)
(Closes: #699470)
* Bump to Standards-Version 3.9.4.
* Build with hardening options to satisfy Wheezy release goal.
Checksums-Sha1:
45042a247a90cd4577ec6c3d9106e9aad563b459 2180 crystalhd_0.0~git20110715.fdd2f19-8.dsc
597fc881f8dae9aaf8582d198d7949ba63d57ca4 4963 crystalhd_0.0~git20110715.fdd2f19-8.debian.tar.gz
ac575d8f0d96f015cb677bc7324bdcd7533ee656 17994 libcrystalhd-dev_0.0~git20110715.fdd2f19-8_amd64.deb
790bf11f0ad0bcd65a6794498a82dfe2752de1ca 53082 libcrystalhd3_0.0~git20110715.fdd2f19-8_amd64.deb
098c5fc0f7ba09489e4169319d404a25dab5e905 28760 gstreamer0.10-crystalhd_0.0~git20110715.fdd2f19-8_amd64.deb
Checksums-Sha256:
c3c403361e331aaae519998e7f4a1c570546338a394304b45b3696ba6fd189a6 2180 crystalhd_0.0~git20110715.fdd2f19-8.dsc
7d317c911d720003a0600c7935aea68a600fdad0a24f3bec017936796c1c88c0 4963 crystalhd_0.0~git20110715.fdd2f19-8.debian.tar.gz
7536f2b0586992005704cb2fda112fc959857d59417597d00733d02d8906a712 17994 libcrystalhd-dev_0.0~git20110715.fdd2f19-8_amd64.deb
b350bcfa97f98e289c19ef701da8c9a7a9abb997a4217562c9b5dbd844ba5d1d 53082 libcrystalhd3_0.0~git20110715.fdd2f19-8_amd64.deb
da659740e69590f2bc2ee9e178c27ffa3a63cf03b801cc768deaca55dcb5de8f 28760 gstreamer0.10-crystalhd_0.0~git20110715.fdd2f19-8_amd64.deb
Files:
43bd4b8da573c62f4e1d6857b237905c 2180 libs optional crystalhd_0.0~git20110715.fdd2f19-8.dsc
3614728dd1ad122df5599c368d1792bf 4963 libs optional crystalhd_0.0~git20110715.fdd2f19-8.debian.tar.gz
5d0e037399e1b362d6dd549996ba62d9 17994 libdevel optional libcrystalhd-dev_0.0~git20110715.fdd2f19-8_amd64.deb
cffa8eb43f07b1af3f43dd0e54ce3cce 53082 libs optional libcrystalhd3_0.0~git20110715.fdd2f19-8_amd64.deb
c5f3665050555fa274412279969eb7af 28760 video optional gstreamer0.10-crystalhd_0.0~git20110715.fdd2f19-8_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBAgAGBQJRMkqGAAoJED+5x4pTyFTfIroQAKzo5TxJDzZ6YNtLlBRL3W99
72WJrmRfFVY+XfnABZqe857/SGSjWVHKqpv0/3KTssfHZIAfjVTSz0mXb9QFqnyg
uRHyWDnJsCoGh/22YD75W7BUNpZW2Yep8qb76uYd9L/HqbaAHBMPXnumW37FpDs4
k089Knq/TausrCTTFyFVIkl0zd/9JdM3sVjjn3ZVkyG33tjKwOhJuHLa3DyGyFp9
xoeEzkW+Ng740LJ3y6ZgkSSMe+Ftphm85B+xOF3OKdZCD+ZRL+WQl6RBd2G8hOMh
GzGefhEGlfqLqa+FB9fvoe7xhW1qR6fwC2QEh2IrWm/CGJxyRgGBPQaiQ8dIkZ5m
NvGftIsEsfRBfYcaakT0WmUgpaNKBd3SS5SVF1tVY8uS0S8tw2ttynsf6XmUyL+0
xKOsxnSMyGfB7DbhaHwQ0b32MEnnt6Wq9H9AY/JvcKGgfKclbxpU5DjIXEq1UYd9
8AePSFN5LPjTav6FcKD79qhkgJUCKt6tC5oTfoa8w70ww2ETpL1WqoUMStSLnvRn
NI4oXZPP3g7nxTsaD29siMvalrXoxRcEAm+HZNp58wLKsMrjmTUdj7Lz4R1tgvPQ
w4jcnJmi7iiZZgEkfEAmOBkAKo3v7Ai/SuDTtYL8EJ0sG4puRhS9Re/0nhKr0qkE
6jPVKO5NxAvmTuYGB7Dc
=e/MH
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 31 Mar 2013 07:29:57 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.