Re: [Intel-gfx] Lockup when switching displays using xrandr since kernel 3.5.x

2012-10-18 Thread Thilo-Alexander Ginkel
On Wed, Oct 17, 2012 at 1:26 AM, Thilo-Alexander Ginkel
th...@ginkel.com wrote:
 since upgrading from kernel 3.4.10 to 3.5.x or 3.6.2 (on Kubuntu
 12.04) I am getting sporadic (but frequent) lockups when switching
 displays using xrandr:
 [...]

BTW, the lockups also happen with i915.i915_enable_rc6=1 (instead of
the original i915.i915_enable_rc6=3).

Regards,
Thilo
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] Lockup when switching displays using xrandr since kernel 3.5.x

2012-10-18 Thread Daniel Vetter
On Thu, Oct 18, 2012 at 9:10 AM, Thilo-Alexander Ginkel
th...@ginkel.com wrote:
 On Wed, Oct 17, 2012 at 1:26 AM, Thilo-Alexander Ginkel
 th...@ginkel.com wrote:
 since upgrading from kernel 3.4.10 to 3.5.x or 3.6.2 (on Kubuntu
 12.04) I am getting sporadic (but frequent) lockups when switching
 displays using xrandr:
 [...]

 BTW, the lockups also happen with i915.i915_enable_rc6=1 (instead of
 the original i915.i915_enable_rc6=3).

Have you upgrade to the very latest xf86-video-intel version already?
We've fixed a few bugs related to modeset changes and hanging the gpu.
Otherwise, make sure that your kernel contains:


commit 5bb61643f6a70d48de9cfe91ad0fee0d618b6816
Author: Chris Wilson ch...@chris-wilson.co.uk
Date:   Thu Sep 27 21:25:58 2012 +0100

drm/i915: Flush the pending flips on the CRTC before modification

Yours, Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] Lockup when switching displays using xrandr since kernel 3.5.x

2012-10-18 Thread Paul Menzel
Am Donnerstag, den 18.10.2012, 09:10 +0200 schrieb Thilo-Alexander Ginkel:
 On Wed, Oct 17, 2012 at 1:26 AM, Thilo-Alexander Ginkel wrote:
  since upgrading from kernel 3.4.10 to 3.5.x or 3.6.2 (on Kubuntu
  12.04) I am getting sporadic (but frequent) lockups when switching
  displays using xrandr:
  [...]
 
 BTW, the lockups also happen with i915.i915_enable_rc6=1 (instead of
 the original i915.i915_enable_rc6=3).

Please follow the instructions on the page »How to file a good bug
report« [1].


Thanks,

Paul


[1] http://intellinuxgraphics.org/how_to_report_bug.html


signature.asc
Description: This is a digitally signed message part
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


[Intel-gfx] Lockup when switching displays using xrandr since kernel 3.5.x

2012-10-16 Thread Thilo-Alexander Ginkel
Hi there,

since upgrading from kernel 3.4.10 to 3.5.x or 3.6.2 (on Kubuntu
12.04) I am getting sporadic (but frequent) lockups when switching
displays using xrandr:

/usr/bin/xrandr -d :0.0 --output LVDS1 --off --output HDMI3
--mode 1600x1200 --primary --auto
sleep 2
/usr/bin/xrandr -d :0.0 --output HDMI2 --mode 1600x1200
--right-of HDMI3 --auto

$ uname -a
Linux orion 3.6.2 #41 SMP Tue Oct 16 23:45:38 CEST 2012 x86_64 x86_64
x86_64 GNU/Linux

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation
Core Processor Family Integrated Graphics Controller (rev 09) (prog-if
00 [VGA controller])
Subsystem: Lenovo Device 21d2
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at f000 (64-bit, non-prefetchable) [size=4M]
Memory at e000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at unassigned [disabled]
Capabilities: access denied
Kernel driver in use: i915
Kernel modules: i915

When the lockup happens the local display is completely unresponsive,
but connecting via ssh shows the following stuck tasks:

[  479.796787] INFO: task kworker/2:2:360 blocked for more than 120 seconds.
[  479.796798] echo 0  /proc/sys/kernel/hung_task_timeout_secs
disables this message.
[  479.796803] kworker/2:2 D  0   360  2 0x
[  479.796815]  88020ffb7c30 0046 88020fcfa080
88020ffb7fd8
[  479.796825]  88020ffb7fd8 88020ffb7fd8 8802148c2080
88020fcfa080
[  479.796834]  88020fcfa790 8802024a 88020fcfa740
0002
[  479.796844] Call Trace:
[  479.796862]  [81097e11] ? mark_held_locks+0x61/0x140
[  479.796876]  [815c44a5] ? mutex_lock_nested+0x1e5/0x320
[  479.796890]  [815c5a64] schedule+0x24/0x70
[  479.796902]  [815c5d79] schedule_preempt_disabled+0x9/0x10
[  479.796915]  [815c4411] mutex_lock_nested+0x151/0x320
[  479.796956]  [a00f79b1] ? output_poll_execute+0x51/0x1a0
[drm_kms_helper]
[  479.796973]  [a00f79b1] output_poll_execute+0x51/0x1a0
[drm_kms_helper]
[  479.796984]  [81060bba] process_one_work+0x18a/0x520
[  479.796992]  [81060b5e] ? process_one_work+0x12e/0x520
[  479.797001]  [812d2674] ? do_raw_spin_lock+0x54/0x120
[  479.797016]  [a00f7960] ?
drm_helper_connector_dpms+0x100/0x100 [drm_kms_helper]
[  479.797032]  [810613af] worker_thread+0x18f/0x4f0
[  479.797039]  [815c6cfa] ? _raw_spin_unlock_irqrestore+0x3a/0x70
[  479.797047]  [8109809d] ? trace_hardirqs_on+0xd/0x10
[  479.797055]  [81061220] ? rescuer_thread+0x290/0x290
[  479.797063]  [81066909] kthread+0xa9/0xb0
[  479.797069]  [8109809d] ? trace_hardirqs_on+0xd/0x10
[  479.797078]  [815cec44] kernel_thread_helper+0x4/0x10
[  479.797085]  [815c70b0] ? retint_restore_args+0x13/0x13
[  479.797092]  [81066860] ? __init_kthread_worker+0x70/0x70
[  479.797098]  [815cec40] ? gs_change+0x13/0x13
[  479.797104] 3 locks held by kworker/2:2/360:
[  479.797107]  #0:  (events_nrt){.+.+.+}, at: [81060b5e]
process_one_work+0x12e/0x520
[  479.797125]  #1:
(((dev-mode_config.output_poll_work)-work)){+.+.+.}, at:
[81060b5e] process_one_work+0x12e/0x520
[  479.797140]  #2:  (dev-mode_config.mutex){+.+.+.}, at:
[a00f79b1] output_poll_execute+0x51/0x1a0 [drm_kms_helper]
[  479.797185] INFO: task Xorg:1759 blocked for more than 120 seconds.
[  479.797189] echo 0  /proc/sys/kernel/hung_task_timeout_secs
disables this message.
[  479.797192] XorgD  0  1759   1716 0x0044
[  479.797201]  880211091898 0046 880211999040
880211091fd8
[  479.797211]  880211091fd8 880211091fd8 8801dd9ea080
880211999040
[  479.797219]  880211999708 880211999040 0007
0006
[  479.797228] Call Trace:
[  479.797235]  [81097e11] ? mark_held_locks+0x61/0x140
[  479.797243]  [815c6cfa] ? _raw_spin_unlock_irqrestore+0x3a/0x70
[  479.797249]  [81097ffd] ? trace_hardirqs_on_caller+0x10d/0x1a0
[  479.797256]  [8109809d] ? trace_hardirqs_on+0xd/0x10
[  479.797265]  [815c5a64] schedule+0x24/0x70
[  479.797299]  [a01253ad]
intel_crtc_wait_for_pending_flips+0x6d/0xc0 [i915]
[  479.797307]  [81067190] ? __init_waitqueue_head+0x60/0x60
[  479.797337]  [a0128f5d] ironlake_crtc_disable+0x4d/0x7a0 [i915]
[  479.797363]  [a0129749] ironlake_crtc_prepare+0x9/0x10 [i915]
[  479.797379]  [a00f7ebe]
drm_crtc_helper_set_mode+0x35e/0x520 [drm_kms_helper]
[  479.797403]  [a00f8a1d]
drm_crtc_helper_set_config+0x83d/0xaf0 [drm_kms_helper]
[  479.797440]  [a0071a1d] drm_mode_setcrtc+0x2ed/0x540 [drm]
[  479.797466]  [a00622dc] drm_ioctl+0x47c/0x540 [drm]
[  479.797496]  [a0071730] ?