{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21497","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21497/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21497/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21497/events","html_url":"https://github.com/NixOS/nixpkgs/issues/21497","id":198010460,"number":21497,"title":"Weird Behaviour after trying to switch TTYs","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"labels":[{"id":185850329,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20kernel","name":"6.topic: kernel","color":"fef2c0","default":false},{"id":60265212,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20nixos","name":"6.topic: nixos","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-29T13:52:21Z","updated_at":"2016-12-29T17:07:30Z","closed_at":null,"body":"## Issue description\r\n\r\nI get a very weird behaviour when trying to switch TTYs with CTRL+ALT+F<1-8>:\r\n\r\nMy machine starts to freeze for 3-6 seconds every few seconds... so you only can use the device in a certain window of time, then it is frozen again.\r\n\r\nHere are the kernel logs:\r\n\r\n```\r\nDez 29 14:33:14 yuu kernel: ------------[ cut here ]------------\r\nDez 29 14:33:14 yuu kernel: WARNING: CPU: 0 PID: 917 at /tmp/nix-build-linux-4.9.drv-0/linux-4.9/drivers/gpu/drm/i915/intel_display.c:14189 intel_atomic_commit_tail+0xff4/0x1000 [i915]\r\nDez 29 14:33:14 yuu kernel: pipe A vblank wait timed out\r\nDez 29 14:33:14 yuu kernel: Modules linked in: ctr ccm af_packet msr mousedev snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic nf_conntrack_ipv6 nf_defrag_ipv6 mei_wdt nf_conntrack_ipv4 i915 nf_defrag_ipv4 x86_p\r\nDez 29 14:33:14 yuu kernel:  intel_gtt agpgart snd_hda_codec i2c_algo_bit fb_sys_fops thinkpad_acpi syscopyarea sysfillrect sysimgblt e1000e mei_me i2c_core fjes snd_hda_core nvram battery ip6table_filter rfkill snd_hwdep led_\r\nDez 29 14:33:14 yuu kernel: CPU: 0 PID: 917 Comm: X Not tainted 4.9.0 #1-NixOS\r\nDez 29 14:33:14 yuu kernel: Hardware name: LENOVO 4290A11/4290A11, BIOS 8DET66WW (1.36 ) 10/22/2012\r\nDez 29 14:33:14 yuu kernel:  ffffa1cf02027850 ffffffffab2f3ae3 ffffa1cf020278a0 0000000000000000\r\nDez 29 14:33:14 yuu kernel:  ffffa1cf02027890 ffffffffab06f30b 0000376dde20fdc0 0000000000000000\r\nDez 29 14:33:14 yuu kernel:  0000000000000000 0000000000000000 0000000000000001 ffff939ec4be7000\r\nDez 29 14:33:14 yuu kernel: Call Trace:\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab2f3ae3>] dump_stack+0x63/0x90\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab06f30b>] __warn+0xcb/0xf0\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab06f37f>] warn_slowpath_fmt+0x4f/0x60\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab0ad056>] ? finish_wait+0x56/0x70\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc0d81494>] intel_atomic_commit_tail+0xff4/0x1000 [i915]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab0ad3a0>] ? wake_atomic_t_function+0x60/0x60\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc0d817fb>] intel_atomic_commit+0x35b/0x4c0 [i915]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc0935707>] ? drm_atomic_add_affected_connectors+0x57/0xf0 [drm]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc0935229>] drm_atomic_commit+0x49/0x50 [drm]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc097191c>] restore_fbdev_mode+0x14c/0x260 [drm_kms_helper]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc0973573>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80 [drm_kms_helper]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc09735ed>] drm_fb_helper_set_par+0x2d/0x60 [drm_kms_helper]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffc0d9b3c8>] intel_fbdev_set_par+0x18/0x70 [i915]\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab369828>] fb_set_var+0x238/0x460\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab097c5b>] ? check_preempt_curr+0x7b/0x90\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab35fe19>] fbcon_blank+0x2e9/0x330\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab3ed343>] do_unblank_screen+0xd3/0x1a0\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab3e2dd9>] complete_change_console+0x59/0xe0\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab3e354e>] vt_ioctl+0x6ee/0x12a0\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab1696d3>] ? unlock_page+0x33/0x40\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab3d79ea>] tty_ioctl+0x35a/0xc70\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab19f6c0>] ? handle_mm_fault+0x820/0x10d0\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab1e8708>] ? __vfs_write+0x28/0x120\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab1fd282>] do_vfs_ioctl+0x92/0x5a0\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab05def7>] ? __do_page_fault+0x287/0x4b0\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab1fd809>] SyS_ioctl+0x79/0x90\r\nDez 29 14:33:14 yuu kernel:  [<ffffffffab55d8b7>] entry_SYSCALL_64_fastpath+0x1a/0xa9\r\nDez 29 14:33:14 yuu kernel: ---[ end trace e27a86fb3dfb03e6 ]---\r\nDez 29 14:33:14 yuu kernel: [drm:drm_atomic_helper_commit_cleanup_done [drm_kms_helper]] *ERROR* [CRTC:26:pipe A] flip_done timed out\r\nDez 29 14:33:14 yuu kernel: [drm:drm_atomic_helper_commit_cleanup_done [drm_kms_helper]] *ERROR* [CRTC:26:pipe A] flip_done timed out\r\nDez 29 14:33:14 yuu kernel: [drm:drm_atomic_helper_commit_cleanup_done [drm_kms_helper]] *ERROR* [CRTC:26:pipe A] flip_done timed out\r\n```\r\n\r\nI'm not sure whether I should send this to the LKML? Can someone help me with this?\r\n\r\n### Steps to reproduce\r\n\r\nI'm not sure how to reproduce this. I'm using Kernel \r\n\r\n```\r\nLinux yuu 4.9.0 #1-NixOS SMP Sun Dec 11 19:17:54 UTC 2016 x86_64 GNU/Linux\r\n```\r\n\r\non a Thinkpad X220.\r\n\r\n## Technical details\r\n\r\n* System: 17.03pre97792.c311871 (Gorilla)\r\n* Nix version: nix-env (Nix) 1.11.4\r\n* Nixpkgs version: \"17.03pre97792.c311871\""},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/269660661","html_url":"https://github.com/NixOS/nixpkgs/issues/21497#issuecomment-269660661","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21497","id":269660661,"user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T17:07:29Z","updated_at":"2016-12-29T17:07:29Z","body":"Submitted to LKML in https://lkml.org/lkml/2016/12/29/178"}}
{"actor":{"display_login":"matthiasbeyer"}}