Linux CrystalHD causing video blackout/freezing
#1
Question 
Having been using XBMC11 on 32 bit Ubuntu 10.04 with CrystalHD on a Mac Mini for a long time now, Frodo was finally the kick to update things.

At this stage, I'm running Frodo on 64 bit Linux Mint 13 (based on Ubuntu 12.04) with the CrystalHD drivers based on the LinuxTV drivers thread (http://code.google.com/p/indicator-cryst...talHDHowTo). Unfortunately it's 50/50 as to whether a video will play or it will just freeze completely (whether that's an improvement from just shutting off the video output completely is debatable!). I get audio through but no video; response to the keyboard is also gone.[/code]

I've included a debug log on pastebin (http://pastebin.com/v6HULD7M) but must admit, at this stage I'm pretty sure it's a combination of hardware and Crystal HD drivers.

Trawling through DMESG showed that the i915 module wasn't overly impressed at life:
Code:
[  248.496303] kernel BUG at /build/buildd/linux-3.2.0/drivers/gpu/drm/i915/i915_gem.c:3333!
[  248.496343] invalid opcode: 0000 [#1] SMP
[  248.496372] CPU 1
[  248.496385] Modules linked in: autofs4 btusb rfcomm bnep bluetooth parport_pc ppdev applesmc input_polldev nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc binfmt_misc snd_hda_codec_idt hid_ortek i915 drm_kms_helper snd_hda_intel snd_hda_codec drm snd_hwdep snd_pcm i2c_algo_bit snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd crystalhd(O) soundcore snd_page_alloc mac_hid video lp parport usbhid hid firewire_ohci firewire_core crc_itu_t sky2
[  248.496759]
[  248.496771] Pid: 1846, comm: xbmc.bin Tainted: G           O 3.2.0-23-generic #36-Ubuntu Apple Inc. Macmini2,1/Mac-F4208EAA
[  248.496835] RIP: 0010:[<ffffffffa01cc1b9>]  [<ffffffffa01cc1b9>] i915_gem_object_pin+0x179/0x1c0 [i915]
[  248.496908] RSP: 0018:ffff88009b053c18  EFLAGS: 00210246
[  248.496935] RAX: 00000000000be452 RBX: ffff880096b2c200 RCX: 0000000000000001
[  248.496969] RDX: 000000000001e000 RSI: 0000000000000000 RDI: ffff880096b2c200
[  248.497002] RBP: ffff88009b053c48 R08: 0000000000000023 R09: ffff88009b273b40
[  248.497035] R10: 0000000000000000 R11: 0000000000000011 R12: 0000000000000000
[  248.497068] R13: 0000000000000001 R14: ffff8800368ae000 R15: ffff880036d6dc00
[  248.497102] FS:  00007f5b61836780(0000) GS:ffff8800bdd00000(0000) knlGS:0000000000000000
[  248.497142] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  248.497170] CR2: 00007f5b4d7e40f0 CR3: 0000000091c35000 CR4: 00000000000006e0
[  248.497203] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  248.497236] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  248.497270] Process xbmc.bin (pid: 1846, threadinfo ffff88009b052000, task ffff880096b38000)
[  248.497310] Stack:
[  248.497323]  ffff880091de2df0 ffff8800368ae040 ffff880096b2c200 ffff88009b053d28
[  248.497371]  ffff880036d6df80 ffff88009b053d01 ffff88009b053cb8 ffffffffa01cea75
[  248.497419]  ffff88009b053cb8 ffffffff81162d4c 000000009b053c88 ffff8800368ae040
[  248.497466] Call Trace:
[  248.497491]  [<ffffffffa01cea75>] i915_gem_execbuffer_reserve.isra.6+0x195/0x380 [i915]
[  248.498601]  [<ffffffff81162d4c>] ? __kmalloc+0x12c/0x190
[  248.499688]  [<ffffffffa01cf51b>] i915_gem_do_execbuffer.isra.8+0x55b/0x940 [i915]
[  248.500009]  [<ffffffffa01cfdc3>] i915_gem_execbuffer2+0xa3/0x270 [i915]
[  248.500009]  [<ffffffffa01035d4>] drm_ioctl+0x444/0x510 [drm]
[  248.500009]  [<ffffffffa01cfd20>] ? i915_gem_execbuffer+0x420/0x420 [i915]
[  248.500009]  [<ffffffff81189cfa>] do_vfs_ioctl+0x8a/0x340
[  248.500009]  [<ffffffff81659f0c>] ? __schedule+0x3cc/0x6f0
[  248.500009]  [<ffffffff8118a041>] sys_ioctl+0x91/0xa0
[  248.500009]  [<ffffffff81664a82>] system_call_fastpath+0x16/0x1b
[  248.500009] Code: 00 02 0f 85 48 ff ff ff e9 17 ff ff ff 0f 1f 44 00 00 41 0f b6 d5 44 89 e6 48 89 df e8 21 cb ff ff 85 c0 0f 84 21 ff ff ff eb b4 <0f> 0b 0f b6 83 e2 00 00 00 8b 8b 20 01 00 00 45 0f b6 cd 45 89
[  248.500009] RIP  [<ffffffffa01cc1b9>] i915_gem_object_pin+0x179/0x1c0 [i915]
[  248.500009]  RSP <ffff88009b053c18>
[  249.352634] start_capture: pause_th:12, resume_th:5
[  249.538459] crystalhd 0000:02:00.0: [FMT CH] PIB:0 1 420 2 780 438 780 0 0 0
[  249.665013] crystalhd 0000:02:00.0: MISSING 3 PICTURES

A brief trawl around showed a few known bugs and so I've enabled the backport updates which hasn't fixed anything although it now claims to be an error instead of a warning...
Code:
[ 2009.972891] ------------[ cut here ]------------
[ 2009.972930] WARNING: at /build/buildd/linux-3.2.0/drivers/gpu/drm/i915/i915_gem.c:3371 i915_gem_object_pin+0x18a/0x1d0 [i915]()
[ 2009.972937] Hardware name: Macmini2,1
[ 2009.972940] Modules linked in: crystalhd(O) autofs4 snd_hda_codec_idt btusb rfcomm bnep parport_pc bluetooth ppdev binfmt_misc nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc hid_ortek applesmc input_polldev usbhid snd_hda_intel snd_hda_codec snd_hwdep snd_pcm hid snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq i915 snd_timer snd_seq_device drm_kms_helper drm snd i2c_algo_bit soundcore mac_hid snd_page_alloc video lp parport firewire_ohci firewire_core crc_itu_t sky2 [last unloaded: crystalhd]
[ 2009.973015] Pid: 2593, comm: xbmc.bin Tainted: G        W  O 3.2.0-37-generic #58-Ubuntu
[ 2009.973019] Call Trace:
[ 2009.973031]  [<ffffffff81067f0f>] warn_slowpath_common+0x7f/0xc0
[ 2009.973039]  [<ffffffff81067f6a>] warn_slowpath_null+0x1a/0x20
[ 2009.973062]  [<ffffffffa011b5ca>] i915_gem_object_pin+0x18a/0x1d0 [i915]
[ 2009.973086]  [<ffffffffa011de85>] i915_gem_execbuffer_reserve.isra.4+0x195/0x380 [i915]
[ 2009.973096]  [<ffffffff8116446c>] ? __kmalloc+0x12c/0x190
[ 2009.973120]  [<ffffffffa011e8ff>] i915_gem_do_execbuffer.isra.7+0x4ff/0x9a0 [i915]
[ 2009.973130]  [<ffffffff810459ec>] ? ptep_set_access_flags+0x6c/0x70
[ 2009.973154]  [<ffffffffa011f269>] i915_gem_execbuffer2+0xa9/0x270 [i915]
[ 2009.973177]  [<ffffffffa00955d4>] drm_ioctl+0x444/0x510 [drm]
[ 2009.973201]  [<ffffffffa011f1c0>] ? i915_gem_execbuffer+0x420/0x420 [i915]
[ 2009.973210]  [<ffffffff81013878>] ? __switch_to+0x288/0x360
[ 2009.973218]  [<ffffffff8105702d>] ? set_next_entity+0xad/0xd0
[ 2009.973225]  [<ffffffff8118b71a>] do_vfs_ioctl+0x8a/0x340
[ 2009.973234]  [<ffffffff8165acfc>] ? __schedule+0x3cc/0x6f0
[ 2009.973241]  [<ffffffff8118ba61>] sys_ioctl+0x91/0xa0
[ 2009.973249]  [<ffffffff81665842>] system_call_fastpath+0x16/0x1b
[ 2009.973254] ---[ end trace 669effe39cf078aa ]---

I'm hoping someone smarter than me has some thoughts as I'm running out of ideas right now! Sad




Reply

Logout Mark Read Team Forum Stats Members Help
CrystalHD causing video blackout/freezing0