Bug 117131

Summary: vga_switcheroo does not switch IGP -> DIS ( IGP == i915 , DIS == radeon )
Product: Drivers Reporter: Jason Vas Dias (jason.vas.dias)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: high CC: 3pb33h+1ymmkx54pslys, alexdeucher
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 4.5.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg boot log

Description Jason Vas Dias 2016-04-24 19:17:57 UTC
I have built the latest GIT tag of :
   git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
(v4.5.0) 
and after much experimentation I have concluded that the vga_switcheroo
switch operation just isn't working correctly .

I have VGA hardware :

$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06)
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Neptune XT [Radeon HD 8970M] [1002:6801]

CPU: 
cpu family      : 6
model           : 60
model name      : Intel(R) Core(TM) i7-4910MQ CPU @ 2.90GHz

with 16GB RAM, 1TB PATA disk & 256GB SDD .

I have both the i915 and radeon drivers and related DRM drivers built-in -
this should show the relevant configs, when in kernel build directory :
$ egrep -i 'radeon|drm|i915' .config | egrep -v '^#' 
CONFIG_DRM=y
CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_TTM=y
CONFIG_DRM_RADEON=y
CONFIG_DRM_RADEON_USERPTR=y
CONFIG_DRM_AMDGPU=y
CONFIG_DRM_AMDGPU_CIK=y
CONFIG_DRM_AMDGPU_USERPTR=y
CONFIG_DRM_AMD_POWERPLAY=y
CONFIG_DRM_I915=y
CONFIG_DRM_VMWGFX=m
CONFIG_DRM_VMWGFX_FBCON=y
CONFIG_DRM_GMA500=y
CONFIG_DRM_GMA600=y
CONFIG_DRM_GMA3600=y
CONFIG_DRM_UDL=m
CONFIG_DRM_CIRRUS_QEMU=m
CONFIG_DRM_QXL=y
CONFIG_DRM_BOCHS=y
CONFIG_DRM_VIRTIO_GPU=m
CONFIG_DRM_PANEL=y
CONFIG_DRM_PANEL_SIMPLE=m
CONFIG_DRM_PANEL_SAMSUNG_LD9040=m
CONFIG_DRM_PANEL_LG_LG4573=m
CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00=m
CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=m
CONFIG_DRM_PANEL_SHARP_LQ101R1SX01=m
CONFIG_DRM_PANEL_SHARP_LS043T1LE01=m
CONFIG_DRM_BRIDGE=y
CONFIG_DRM_NXP_PTN3460=m
CONFIG_DRM_PARADE_PS8622=m
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
CONFIG_FB_RADEON_DEBUG=y
CONFIG_SND_HDA_I915=y

( I try to make the kernel not need any modules in order to boot into
  graphics mode ).

But I can't even get the card to go into graphics mode .

I have tried using all combinations of related kernel boot parameters:

  radeon.modeset=1 \
  video=1920x1080@60e | video=radeon:1920x1080@60e \
  fbcon=map:01 \
  drm_kms_helper.edid_firmware=edid/1920x1080.bin 

- I've tried these individually on their own, or all together, or none
  of them at all, and various combinations of them, but no combination 
  of them allow the framebuffers to be controlled by the radeon card .

When the system comes up with a getty login session on a terminal,

$ cat /sys/kernel/debug/vga_switcheroo/switch 

says:

0:DIS: :DynOff:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0

At first I tried :

  $ echo ON > /sys/kernel/debug/vga_switcheroo/switch

to turn the non-selected FB on - right ? But this has no effect -
contents of the switch are as before.

Then trying to do:

  $ echo DIS > /sys/kernel/debug/vga_switcheroo

makes the screen go blank for @ 60 seconds - pressing VT-Switch keystrokes
have no effect; eventually, after about 1 minute, no matter what key I press,
the terminal session is displayed again, and I see lots of DMESGs have been 
logged, as shown below. 

The following DMESGs were collected in my logs after doing :

  $ dmesg -c >/var/log/dmesg-4.5.0-boot.log
  $ { echo ON   >/sys/kernel/debug/vgaswitcheroo/switch; 
      echo DDIS >/sys/kernel/debug/vgaswitcheroo/switch; 
      Xorg  -logverbose 7 -verbose 7 :0 vt04 || 
        { echo ON >/sys/kernel/debug/vgaswitcheroo/switch; 
         echo IGP >/sys/kernel/debug/vgaswitcheroo/switch; } ; 
        } & 
   ( sleep 3; 
     cat /sys/kernel/debug/vgaswitcheroo/switch > 
     ~/vga_switcheroo_switch_last;  xterm & )
   )

Then waiting for @ 60 seconds, and pressing <CTRL>+<ALT>+<F1> to switch
back to VT #1.

The contents of ~/vga_switcheroo_switch_last (when xterm is run) are :

0:DIS:+:DynOff:0000:01:00.0
1:IGD: :Off:0000:00:02.0

 (  How can an FB not be in the Pwr state and be connected ?
 ) 

Then once the screen comes back after @ 1 minute hang, I doing

$ dmesg 2>&1 | tee /var/log/dmesg-4.5.0-drm-problem.log

would show :
[  274.182788] i915: switched off
[  275.466825] ------------[ cut here ]------------
[  275.466854] WARNING: CPU: 0 PID: 4403 at drivers/gpu/drm/i915/intel_display.c:9475 hsw_enable_pc8+0x4f6/0x750()
[  275.466864] Power well on
[  275.466869] Modules linked in:
[  275.466881] CPU: 0 PID: 4403 Comm: bash Tainted: G        W       4.5.0 #3
[  275.466889] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  275.466901]  0000000000000286 00000000ddcb0b11 ffff8804179dfc08 ffffffff814d9550
[  275.466916]  ffff8804179dfc50 ffffffff821be4f0 ffff8804179dfc40 ffffffff810608b2
[  275.466929]  ffff8800c89c0000 ffff880415003cf8 ffff880415003d08 ffff880415003800
[  275.466943] Call Trace:
[  275.466957]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  275.466972]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  275.466982]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  275.466993]  [<ffffffff818710e6>] hsw_enable_pc8+0x4f6/0x750
[  275.467007]  [<ffffffff817efd8e>] intel_suspend_complete+0xee/0x720
[  275.467016]  [<ffffffff817f03fd>] i915_drm_suspend_late+0x3d/0xe0
[  275.467026]  [<ffffffff817f04ea>] i915_suspend_switcheroo+0x4a/0xb0
[  275.467039]  [<ffffffff8173d817>] ? radeon_atpx_switchto+0x197/0x1b0
[  275.467053]  [<ffffffff818adfc9>] i915_switcheroo_set_state+0x39/0x80
[  275.467065]  [<ffffffff818db1b8>] vga_switchoff.part.2+0x18/0x40
[  275.467074]  [<ffffffff818db2e4>] vga_switchto_stage2+0x104/0x110
[  275.467083]  [<ffffffff818da459>] ? vga_set_default_device+0x29/0x40
[  275.467092]  [<ffffffff818db689>] vga_switcheroo_debugfs_write+0x2e9/0x390
[  275.467107]  [<ffffffff811f7115>] ? do_filp_open+0xa5/0x100
[  275.467118]  [<ffffffff811e6507>] __vfs_write+0x37/0x120
[  275.467129]  [<ffffffff810850e5>] ? preempt_count_sub+0xa5/0xf0
[  275.467140]  [<ffffffff810a7626>] ? update_fast_ctr+0x46/0x70
[  275.467149]  [<ffffffff810a7697>] ? percpu_down_read+0x17/0x50
[  275.467158]  [<ffffffff811e6d89>] vfs_write+0xa9/0x1a0
[  275.467168]  [<ffffffff811e7998>] SyS_write+0x58/0xd0
[  275.467179]  [<ffffffff812050b3>] ? __close_fd+0xa3/0xd0
[  275.467194]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  275.467218] ---[ end trace b1cc3f6a5140ca17 ]---
[  275.467229] ------------[ cut here ]------------
[  275.467241] WARNING: CPU: 0 PID: 4403 at drivers/gpu/drm/i915/intel_display.c:9486 hsw_enable_pc8+0x574/0x750()
[  275.467250] PCH PWM1 enabled
[  275.467254] Modules linked in:
[  275.467323] CPU: 0 PID: 4403 Comm: bash Tainted: G        W       4.5.0 #3
[  275.467337] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  275.467347]  0000000000000286 00000000ddcb0b11 ffff8804179dfc08 ffffffff814d9550
[  275.467361]  ffff8804179dfc50 ffffffff821be4f0 ffff8804179dfc40 ffffffff810608b2
[  275.467373]  ffff8800c89c0000 ffff880415003cf8 ffff880415003d08 ffff880415003800
[  275.467386] Call Trace:
[  275.467393]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  275.467403]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  275.467413]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  275.467424]  [<ffffffff81871164>] hsw_enable_pc8+0x574/0x750
[  275.467433]  [<ffffffff817efd8e>] intel_suspend_complete+0xee/0x720
[  275.467443]  [<ffffffff817f03fd>] i915_drm_suspend_late+0x3d/0xe0
[  275.467452]  [<ffffffff817f04ea>] i915_suspend_switcheroo+0x4a/0xb0
[  275.467463]  [<ffffffff8173d817>] ? radeon_atpx_switchto+0x197/0x1b0
[  275.467473]  [<ffffffff818adfc9>] i915_switcheroo_set_state+0x39/0x80
[  275.467483]  [<ffffffff818db1b8>] vga_switchoff.part.2+0x18/0x40
[  275.467492]  [<ffffffff818db2e4>] vga_switchto_stage2+0x104/0x110
[  275.467500]  [<ffffffff818da459>] ? vga_set_default_device+0x29/0x40
[  275.467510]  [<ffffffff818db689>] vga_switcheroo_debugfs_write+0x2e9/0x390
[  275.467521]  [<ffffffff811f7115>] ? do_filp_open+0xa5/0x100
[  275.467531]  [<ffffffff811e6507>] __vfs_write+0x37/0x120
[  275.467539]  [<ffffffff810850e5>] ? preempt_count_sub+0xa5/0xf0
[  275.467548]  [<ffffffff810a7626>] ? update_fast_ctr+0x46/0x70
[  275.467556]  [<ffffffff810a7697>] ? percpu_down_read+0x17/0x50
[  275.467566]  [<ffffffff811e6d89>] vfs_write+0xa9/0x1a0
[  275.467576]  [<ffffffff811e7998>] SyS_write+0x58/0xd0
[  275.467585]  [<ffffffff812050b3>] ? __close_fd+0xa3/0xd0
[  275.467596]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  275.467605] ---[ end trace b1cc3f6a5140ca18 ]---
[  276.000207] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[  276.000213] [drm] PCIE gen 3 link speeds already enabled
[  276.003659] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[  276.003765] radeon 0000:01:00.0: WB enabled
[  276.003768] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000c00 and cpu addr 0xffff880414f02c00
[  276.003770] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000c04 and cpu addr 0xffff880414f02c04
[  276.003772] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000c08 and cpu addr 0xffff880414f02c08
[  276.003775] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000c0c and cpu addr 0xffff880414f02c0c
[  276.003777] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000c10 and cpu addr 0xffff880414f02c10
[  276.004150] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90000435a18
[  276.024251] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000c18 and cpu addr 0xffff880414f02c18
[  276.024254] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000c1c and cpu addr 0xffff880414f02c1c
[  276.171575] [drm] ring test on 0 succeeded in 2 usecs
[  276.171579] [drm] ring test on 1 succeeded in 1 usecs
[  276.171583] [drm] ring test on 2 succeeded in 1 usecs
[  276.171589] [drm] ring test on 3 succeeded in 3 usecs
[  276.171595] [drm] ring test on 4 succeeded in 3 usecs
[  276.348661] [drm] ring test on 5 succeeded in 2 usecs
[  276.348665] [drm] UVD initialized successfully.
[  276.458706] [drm] ring test on 6 succeeded in 14 usecs
[  276.458719] [drm] ring test on 7 succeeded in 5 usecs
[  276.458720] [drm] VCE initialized successfully.
[  276.458780] f 0#2: signaled from fence_wait
[  276.458782] [drm] ib test on ring 0 succeeded in 0 usecs
[  276.458806] f 1#2: signaled from fence_wait
[  276.458809] [drm] ib test on ring 1 succeeded in 0 usecs
[  276.458833] f 2#2: signaled from fence_wait
[  276.458837] [drm] ib test on ring 2 succeeded in 0 usecs
[  276.458856] f 3#2: signaled from fence_wait
[  276.458857] [drm] ib test on ring 3 succeeded in 0 usecs
[  276.458875] f 4#2: signaled from fence_wait
[  276.458876] [drm] ib test on ring 4 succeeded in 0 usecs
[  277.110075] f 5#4: signaled from fence_wait
[  277.110081] [drm] ib test on ring 5 succeeded
[  277.611068] f 6#4: signaled from fence_wait
[  277.611074] [drm] ib test on ring 6 succeeded
[  278.112069] f 7#4: signaled from fence_wait
[  278.112075] [drm] ib test on ring 7 succeeded
[  278.179408] device: 'vcs4': device_add
[  278.179424] PM: Adding info for No Bus:vcs4
[  278.179536] device: 'vcsa4': device_add
[  278.179545] PM: Adding info for No Bus:vcsa4
[  284.285685] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  284.285690] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  284.285694] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  284.285698] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  284.285701] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  284.285706] failed to evaluate ATPX got AE_NOT_EXIST
[  328.793402] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[  328.793409] [drm] PCIE gen 3 link speeds already enabled
[  328.798453] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[  328.798608] radeon 0000:01:00.0: WB enabled
[  328.798612] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000c00 and cpu addr 0xffff880414f02c00
[  328.798615] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000c04 and cpu addr 0xffff880414f02c04
[  328.798617] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000c08 and cpu addr 0xffff880414f02c08
[  328.798619] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000c0c and cpu addr 0xffff880414f02c0c
[  328.798621] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000c10 and cpu addr 0xffff880414f02c10
[  328.798991] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90000435a18
[  328.819100] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000c18 and cpu addr 0xffff880414f02c18
[  328.819102] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000c1c and cpu addr 0xffff880414f02c1c
[  328.970232] [drm] ring test on 0 succeeded in 2 usecs
[  328.970236] [drm] ring test on 1 succeeded in 1 usecs
[  328.970239] [drm] ring test on 2 succeeded in 1 usecs
[  328.970245] [drm] ring test on 3 succeeded in 3 usecs
[  328.970250] [drm] ring test on 4 succeeded in 3 usecs
[  329.147318] [drm] ring test on 5 succeeded in 2 usecs
[  329.147321] [drm] UVD initialized successfully.
[  329.257363] [drm] ring test on 6 succeeded in 15 usecs
[  329.257372] [drm] ring test on 7 succeeded in 3 usecs
[  329.257373] [drm] VCE initialized successfully.
[  329.257410] f 0#3: signaled from fence_wait
[  329.257411] [drm] ib test on ring 0 succeeded in 0 usecs
[  329.257434] f 1#3: signaled from fence_wait
[  329.257437] [drm] ib test on ring 1 succeeded in 0 usecs
[  329.257485] f 2#3: signaled from fence_wait
[  329.257487] [drm] ib test on ring 2 succeeded in 0 usecs
[  329.257525] f 3#9: signaled from fence_wait
[  329.257526] [drm] ib test on ring 3 succeeded in 0 usecs
[  329.257543] f 4#3: signaled from fence_wait
[  329.257544] [drm] ib test on ring 4 succeeded in 0 usecs
[  329.909618] f 5#6: signaled from fence_wait
[  329.909630] [drm] ib test on ring 5 succeeded
[  330.410610] f 6#6: signaled from fence_wait
[  330.410622] [drm] ib test on ring 6 succeeded
[  330.911609] f 7#6: signaled from fence_wait
[  330.911621] [drm] ib test on ring 7 succeeded
[  331.185084] ------------[ cut here ]------------
[  331.185088] WARNING: CPU: 0 PID: 4406 at drivers/gpu/drm/i915/intel_pm.c:3646 ilk_update_wm+0x15a/0x160()
[  331.185089] WARN_ON(cstate->base.active != intel_crtc->active)
[  331.185089] Modules linked in:
[  331.185091] CPU: 0 PID: 4406 Comm: Xorg Tainted: G        W       4.5.0 #3
[  331.185091] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  331.185093]  0000000000000286 00000000eb645194 ffff8804198177f8 ffffffff814d9550
[  331.185094]  ffff880419817840 ffffffff821b74d8 ffff880419817830 ffffffff810608b2
[  331.185095]  ffff8800c899a000 ffff8800c8b3d800 ffff8800c89c0000 ffff8800c899a000
[  331.185096] Call Trace:
[  331.185099]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  331.185102]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  331.185103]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  331.185104]  [<ffffffff817fefca>] ilk_update_wm+0x15a/0x160
[  331.185105]  [<ffffffff81803e1e>] intel_update_watermarks+0x1e/0x20
[  331.185107]  [<ffffffff8186abb1>] intel_pre_plane_update+0x71/0xb0
[  331.185108]  [<ffffffff8186b667>] intel_atomic_commit+0x667/0x1870
[  331.185111]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  331.185113]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  331.185113]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  331.185114]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  331.185117]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  331.185118]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  331.185119]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  331.185120]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  331.185122]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  331.185123]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  331.185125]  [<ffffffff81dd8168>] ? _raw_spin_unlock+0x18/0x30
[  331.185127]  [<ffffffff811751d2>] ? free_pcppages_bulk+0x2a2/0x3b0
[  331.185129]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  331.185131]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  331.185133]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  331.185136]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  331.185138]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  331.185139]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  331.185141]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  331.185142]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  331.185143]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  331.185144]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  331.185145]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  331.185147]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  331.185148]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  331.185150]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  331.185152]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  331.185153]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  331.185154] ---[ end trace b1cc3f6a5140ca19 ]---
[  331.185157] ------------[ cut here ]------------
[  331.185159] WARNING: CPU: 0 PID: 4406 at drivers/gpu/drm/i915/intel_uncore.c:599 hsw_unclaimed_reg_debug+0x69/0x90()
[  331.185160] Unclaimed register detected before writing to register 0x4510c
[  331.185160] Modules linked in:
[  331.185161] CPU: 0 PID: 4406 Comm: Xorg Tainted: G        W       4.5.0 #3
[  331.185161] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  331.185162]  0000000000000086 00000000eb645194 ffff880419817608 ffffffff814d9550
[  331.185163]  ffff880419817650 ffffffff821bce90 ffff880419817640 ffffffff810608b2
[  331.185164]  ffff8800c89c0000 ffff8800c89c0000 000000000004510c 0000000000000000
[  331.185164] Call Trace:
[  331.185165]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  331.185166]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  331.185167]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  331.185169]  [<ffffffff81846589>] hsw_unclaimed_reg_debug+0x69/0x90
[  331.185170]  [<ffffffff818494b2>] hsw_write32+0x82/0x1c0
[  331.185171]  [<ffffffff817fbae5>] _ilk_disable_lp_wm+0xc5/0xd0
[  331.185171]  [<ffffffff817fe9e6>] ilk_program_watermarks+0x4a6/0x930
[  331.185173]  [<ffffffff817fefa4>] ilk_update_wm+0x134/0x160
[  331.185174]  [<ffffffff81803e1e>] intel_update_watermarks+0x1e/0x20
[  331.185175]  [<ffffffff8186abb1>] intel_pre_plane_update+0x71/0xb0
[  331.185176]  [<ffffffff8186b667>] intel_atomic_commit+0x667/0x1870
[  331.185177]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  331.185178]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  331.185179]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  331.185180]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  331.185181]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  331.185181]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  331.185183]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  331.185184]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  331.185185]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  331.185186]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  331.185187]  [<ffffffff81dd8168>] ? _raw_spin_unlock+0x18/0x30
[  331.185188]  [<ffffffff811751d2>] ? free_pcppages_bulk+0x2a2/0x3b0
[  331.185189]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  331.185190]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  331.185192]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  331.185193]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  331.185194]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  331.185195]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  331.185196]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  331.185197]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  331.185198]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  331.185198]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  331.185199]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  331.185200]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  331.185202]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  331.185203]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  331.185204]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  331.185205]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  331.185206] ---[ end trace b1cc3f6a5140ca1a ]---
[  331.185208] ------------[ cut here ]------------
[  331.185209] WARNING: CPU: 0 PID: 4406 at drivers/gpu/drm/i915/intel_sprite.c:104 intel_pipe_update_start+0x30c/0x320()
[  331.185210] WARN_ON(drm_crtc_vblank_get(&crtc->base))
[  331.185210] Modules linked in:
[  331.185211] CPU: 0 PID: 4406 Comm: Xorg Tainted: G        W       4.5.0 #3
[  331.185211] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  331.185212]  0000000000000086 00000000eb645194 ffff880419817750 ffffffff814d9550
[  331.185213]  ffff880419817798 ffffffff821c2c00 ffff880419817788 ffffffff810608b2
[  331.185214]  0000000000000437 ffff8800c899a000 0000000000000431 ffff880415003800
[  331.185215] Call Trace:
[  331.185215]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  331.185216]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  331.185217]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  331.185219]  [<ffffffff81880a0c>] intel_pipe_update_start+0x30c/0x320
[  331.185221]  [<ffffffff810a11c0>] ? wake_atomic_t_function+0x60/0x60
[  331.185222]  [<ffffffff8185c90a>] intel_begin_crtc_commit+0x4a/0x1b0
[  331.185223]  [<ffffffff8161bf2b>] drm_atomic_helper_commit_planes_on_crtc+0x5b/0x270
[  331.185224]  [<ffffffff81803e1e>] ? intel_update_watermarks+0x1e/0x20
[  331.185225]  [<ffffffff8186b76e>] intel_atomic_commit+0x76e/0x1870
[  331.185226]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  331.185227]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  331.185228]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  331.185229]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  331.185230]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  331.185230]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  331.185232]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  331.185233]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  331.185234]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  331.185235]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  331.185236]  [<ffffffff81dd8168>] ? _raw_spin_unlock+0x18/0x30
[  331.185237]  [<ffffffff811751d2>] ? free_pcppages_bulk+0x2a2/0x3b0
[  331.185237]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  331.185239]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  331.185240]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  331.185242]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  331.185243]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  331.185244]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  331.185245]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  331.185245]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  331.185246]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  331.185247]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  331.185248]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  331.185249]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  331.185250]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  331.185251]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  331.185253]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  331.185254]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  331.185255] ---[ end trace b1cc3f6a5140ca1b ]---
[  331.185260] [drm:intel_pipe_update_end] *ERROR* Atomic update failure on pipe A (start=948 end=4294967295) time 325358875 us, min 1073, max 1079, scanline start 60, end 198
[  331.185261] ------------[ cut here ]------------
[  331.185262] WARNING: CPU: 0 PID: 4406 at drivers/gpu/drm/drm_irq.c:1320 drm_wait_one_vblank+0x177/0x1c0()
[  331.185263] vblank not available on crtc 0, ret=-22
[  331.185263] Modules linked in:
[  331.185264] CPU: 0 PID: 4406 Comm: Xorg Tainted: G        W       4.5.0 #3
[  331.185264] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  331.185265]  0000000000000286 00000000eb645194 ffff8804198177f0 ffffffff814d9550
[  331.185266]  ffff880419817838 ffffffff8215da84 ffff880419817828 ffffffff810608b2
[  331.185267]  ffff880415003800 0000000000000000 ffff88041526f400 ffff8800c899a000
[  331.185267] Call Trace:
[  331.185268]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  331.185269]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  331.185270]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  331.185271]  [<ffffffff8162698c>] ? drm_vblank_get+0x7c/0xd0
[  331.185272]  [<ffffffff81626be7>] drm_wait_one_vblank+0x177/0x1c0
[  331.185273]  [<ffffffff8161c024>] ? drm_atomic_helper_commit_planes_on_crtc+0x154/0x270
[  331.185275]  [<ffffffff8186b715>] intel_atomic_commit+0x715/0x1870
[  331.185276]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  331.185276]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  331.185277]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  331.185278]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  331.185279]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  331.185280]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  331.185281]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  331.185282]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  331.185283]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  331.185284]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  331.185285]  [<ffffffff81dd8168>] ? _raw_spin_unlock+0x18/0x30
[  331.185286]  [<ffffffff811751d2>] ? free_pcppages_bulk+0x2a2/0x3b0
[  331.185287]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  331.185288]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  331.185290]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  331.185291]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  331.185292]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  331.185293]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  331.185294]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  331.185295]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  331.185295]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  331.185296]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  331.185297]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  331.185298]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  331.185300]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  331.185301]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  331.185302]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  331.185303]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  331.185304] ---[ end trace b1cc3f6a5140ca1c ]---
[  331.185305] ------------[ cut here ]------------
[  331.185306] WARNING: CPU: 0 PID: 4406 at drivers/gpu/drm/i915/intel_pm.c:3646 ilk_update_wm+0x15a/0x160()
[  331.185307] WARN_ON(cstate->base.active != intel_crtc->active)
[  331.185307] Modules linked in:
[  331.185307] CPU: 0 PID: 4406 Comm: Xorg Tainted: G        W       4.5.0 #3
[  331.185308] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  331.185309]  0000000000000286 00000000eb645194 ffff880419817820 ffffffff814d9550
[  331.185310]  ffff880419817868 ffffffff821b74d8 ffff880419817858 ffffffff810608b2
[  331.185311]  ffff8800c899a000 ffff8800c8b3d800 ffff8800c89c0000 ffff8800c899a000
[  331.185311] Call Trace:
[  331.185312]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  331.185313]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  331.185314]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  331.185315]  [<ffffffff8187930a>] ? intel_frontbuffer_flush+0x6a/0x80
[  331.185316]  [<ffffffff817fefca>] ilk_update_wm+0x15a/0x160
[  331.185316]  [<ffffffff81803e1e>] intel_update_watermarks+0x1e/0x20
[  331.185318]  [<ffffffff8186b77b>] intel_atomic_commit+0x77b/0x1870
[  331.185319]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  331.185319]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  331.185320]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  331.185321]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  331.185322]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  331.185323]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  331.185324]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  331.185325]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  331.185326]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  331.185327]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  331.185328]  [<ffffffff81dd8168>] ? _raw_spin_unlock+0x18/0x30
[  331.185329]  [<ffffffff811751d2>] ? free_pcppages_bulk+0x2a2/0x3b0
[  331.185330]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  331.185331]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  331.185333]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  331.185334]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  331.185336]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  331.185336]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  331.185337]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  331.185338]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  331.185339]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  331.185339]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  331.185340]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  331.185342]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  331.185343]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  331.185344]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  331.185345]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  331.185346]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  331.185347] ---[ end trace b1cc3f6a5140ca1d ]---
[  331.185350] [drm:intel_check_cpu_fifo_underruns] *ERROR* fifo underrun on pipe A
[  331.185352] [drm:intel_check_cpu_fifo_underruns] *ERROR* fifo underrun on pipe B
[  331.185353] [drm:intel_check_cpu_fifo_underruns] *ERROR* fifo underrun on pipe C
[  331.185367] ------------[ cut here ]------------
[  331.185368] WARNING: CPU: 0 PID: 4406 at drivers/gpu/drm/i915/intel_sprite.c:104 intel_pipe_update_start+0x30c/0x320()
[  331.185369] WARN_ON(drm_crtc_vblank_get(&crtc->base))
[  331.185369] Modules linked in:
[  331.185370] CPU: 0 PID: 4406 Comm: Xorg Tainted: G        W       4.5.0 #3
[  331.185370] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  331.185371]  0000000000000086 00000000eb645194 ffff880419817768 ffffffff814d9550
[  331.185372]  ffff8804198177b0 ffffffff821c2c00 ffff8804198177a0 ffffffff810608b2
[  331.185373]  0000000000000437 ffff8800c899a000 0000000000000431 ffff880415003800
[  331.185373] Call Trace:
[  331.185374]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  331.185375]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  331.185376]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  331.185377]  [<ffffffff81880a0c>] intel_pipe_update_start+0x30c/0x320
[  331.185379]  [<ffffffff810a11c0>] ? wake_atomic_t_function+0x60/0x60
[  331.185380]  [<ffffffff8185c90a>] intel_begin_crtc_commit+0x4a/0x1b0
[  331.185381]  [<ffffffff8161bf2b>] drm_atomic_helper_commit_planes_on_crtc+0x5b/0x270
[  331.185382]  [<ffffffff8186b76e>] intel_atomic_commit+0x76e/0x1870
[  331.185383]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  331.185384]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  331.185385]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  331.185386]  [<ffffffff8161df27>] drm_fb_helper_pan_display+0x1e7/0x250
[  331.185387]  [<ffffffff81882eba>] intel_fbdev_pan_display+0x1a/0x60
[  331.185388]  [<ffffffff8154be3b>] fb_pan_display+0xdb/0x170
[  331.185389]  [<ffffffff8154c4c7>] fb_set_var+0x267/0x460
[  331.185390]  [<ffffffff81dd8168>] ? _raw_spin_unlock+0x18/0x30
[  331.185391]  [<ffffffff811751d2>] ? free_pcppages_bulk+0x2a2/0x3b0
[  331.185392]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  331.185393]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  331.185395]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  331.185396]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  331.185398]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  331.185398]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  331.185399]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  331.185400]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  331.185401]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  331.185402]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  331.185402]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  331.185404]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  331.185405]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  331.185406]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  331.185408]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  331.185409]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  331.185410] ---[ end trace b1cc3f6a5140ca1e ]---
[  331.185414] [drm:intel_pipe_update_end] *ERROR* Atomic update failure on pipe A (start=948 end=4294967295) time 325359029 us, min 1073, max 1079, scanline start 60, end 198
[  331.186766] Xorg (4406) used greatest stack depth: 12016 bytes left
[  331.186838] i915: switched on
[  331.606319] i2c i2c-9: master_xfer[0] W, addr=0x50, len=1
[  331.606321] i2c i2c-9: master_xfer[1] R, addr=0x50, len=1
[  337.272281] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  337.272916] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  337.273556] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  337.274236] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  337.274910] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  337.275600] failed to evaluate ATPX got AE_NOT_EXIST


After the screen comes back up after the 1 minute hang, the contents of 
/sys/kernel/debug/vga_switcheroo/switch are :

0:DIS:+:DynOff:0000:01:00.0
1:IGD: :Pwr:0000:00:02.0

very confusing that device with Pwr status is not connected, but
device in '*Off' state is 'connected'. 

I have not been able to get the 'DIS' device to be in 'Pwr' state -
I think this is my problem ?

Could this be related to the ACPI parse failure :

[  337.272281] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  337.272916] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  337.273556] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  337.274236] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  337.274910] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  337.275600] failed to evaluate ATPX got AE_NOT_EXIST

This occurs each time I attempt to switch into graphics mode with the 
Xorg X-server, with configuration :

$ cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen         0                "Screen0"       0        0
        Inactive       "Intel"
        InputDevice    "Mouse0"         "CorePointer"
        InputDevice    "Keyboard0"      "CoreKeyboard"
EndSection

Section "ServerFlags"
        Option       "AutoAddDevices"    "false"
        Option       "AutoEnableDevices" "false"
        Option       "AutoAddGPU"        "false"
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc/"
        FontPath     "/usr/share/fonts/X11/TTF/"
        FontPath     "/usr/share/fonts/X11/OTF/"
        FontPath     "/usr/share/fonts/X11/Type1/"
        FontPath     "/usr/share/fonts/X11/100dpi/"
        FontPath     "/usr/share/fonts/X11/75dpi/"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "evdev"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "synaptics"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
#       Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Modes"
        Identifier  "Modes0"
        ModeLine     "1920x1080_60.0-V"  152.54  1920 2010 2070 2226  1080 1086 1095 1142 +Hsync -Vsync
        ModeLine     "1920x1080_60.0-H"  172.78  1920 2040 2248 2576  1080 1081 1084 1118 -Hsync +Vsync
        ModeLine     "1920x1080_40.0"     96.27  1920 1973 2008 2158  1080 1083 1088 1115 +Hsync -Vsync
        ModeLine     "1400x1050_60.0"    122.00  1400 1488 1640 1880  1050 1052 1064 1082 +Hsync +Vsync
        ModeLine     "1280x1024_60.0"    108.00  1280 1328 1440 1688  1024 1025 1028 1066 +Hsync +Vsync
        ModeLine     "1280x960_60.0"     108.00  1280 1376 1488 1800  960  961  964  1000 +Hsync +Vsync
        ModeLine     "1024x768_60.0"      65.00  1024 1048 1184 1344  768  771  777  806  -Hsync -Vsync
        ModeLine     "800x600_60.3"       40.00   800  840  968 1056  600  601  605  628  +Hsync +Vsync
        ModeLine     "800x600_56.2"       36.00   800  824  896 1024  600  601  603  625  +Hsync +Vsync
        ModeLine     "640x480_59.9"       25.18   640  656  752  800  480  490  492  525  -Hsync -Vsync
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "CLEVO"
        ModelName    "LCD 1900x1080"
#       Option       "DPMS" "true"
        UseModes     "Modes0"
        Option       "DefaultModes" "false"
        Option       "PreferredMode" "1920x1080_60.0-H"
        Option       "Primary" "true"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "CLEVO"
        ModelName    "LCD 1900x1080"
        Option       "DPMS" "true"
        Option       "Enabled" "false"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "DefaultRefresh"            # [<bool>]
        #Option     "ModeSetClearScreen"        # [<bool>]
        Identifier  "Radeon"
        Driver      "ati"
        Option      "DRI" "2"
        Option      "IgnoreEDID" "false"
        Option      "UseEDID" "true"
        Option      "CustomEDID" "eDP-1:/etc/X11/neptune_edid.bin"
        Screen      0
        BusID       "PCI:1:0:0"
EndSection

Section "Device"
        Identifier "Intel"
        Driver     "intel"
        Option     "DRI" "2"
        Screen     1
        BusID      "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Radeon"
        Monitor    "Monitor0"
        Option     "InitPrimary" "true"
        SubSection "Display"
                Viewport   0 0
                Depth      24
                Modes      "1920x1080_60.0-H" "1920x1080_60.0-V"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Intel"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth      24
        EndSubSection
EndSection
Comment 1 Jason Vas Dias 2016-04-24 19:28:33 UTC
Next steps: hacking X-Server & kernel drm & dri code to emit more debug log messages .

Any suggestions as to how to bring up an X-Server on Radeon 8970M card when
Intel i915 IGP is active under Linux 4.5+ ?
I would have thought X-Server v1.18.3 should be capable of detecting if
it needs to use vga_switcheroo and be able to use it automatically by now - 
but apparently not ; and it seems impossible to get the X-Server to work
(via libfb) without doing a vga_switcheroo . 

I think the kernel needs a way of specifying an initial vga_switcheroo/switch 
state at boot, like:
   'vga_switcheroo=DIS:Pwr;IGP:Off'
.
Comment 2 3pb33h+1ymmkx54pslys 2016-04-24 19:46:29 UTC
Check this bug https://bugs.freedesktop.org/show_bug.cgi?id=95078
Does it work if you revert that commit?
Comment 3 Jason Vas Dias 2016-04-24 20:30:54 UTC
(In reply to 3pb33h+1ymmkx54pslys from comment #2)
> Check this bug https://bugs.freedesktop.org/show_bug.cgi?id=95078
> Does it work if you revert that commit?

Thanks for the info ! But 'git revert e64c952efb8e0c15ae82cec8e455ab4910690ef1'
didn't work, and the code looks rather different now than it did for that
commit back in March:

> commit e64c952efb8e0c15ae82cec8e455ab4910690ef1
> Author: Alex Deucher <alexander.deucher@amd.com>
> Date:   Wed Mar 2 11:47:29 2016 -0500
>
>    drm/radeon: disable runtime pm on PX laptops without dGPU power control

There is no 'radeon_has_atpx_dgpu_power_cntl' function being called in
radeon_atpx_handler.c as
was added with that commit in the 'v4.5' branch.

Maybe if I try disabling radeon power management with radeon.dpm=0 ?

But I think the problem is triggered via this function making an ACPI 
call that goes wrong ? :



/**
 * radeon_atpx_call - call an ATPX method
 *
 * @handle: acpi handle
 * @function: the ATPX function to execute
 * @params: ATPX function params
 *
 * Executes the requested ATPX function (all asics).
 * Returns a pointer to the acpi output buffer.
 */
static union acpi_object *radeon_atpx_call(acpi_handle handle, int function,
					   struct acpi_buffer *params)
{
	acpi_status status;
	union acpi_object atpx_arg_elements[2];
	struct acpi_object_list atpx_arg;
	struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };

	atpx_arg.count = 2;
	atpx_arg.pointer = &atpx_arg_elements[0];

	atpx_arg_elements[0].type = ACPI_TYPE_INTEGER;
	atpx_arg_elements[0].integer.value = function;

	if (params) {
		atpx_arg_elements[1].type = ACPI_TYPE_BUFFER;
		atpx_arg_elements[1].buffer.length = params->length;
		atpx_arg_elements[1].buffer.pointer = params->pointer;
	} else {
		/* We need a second fake parameter */
		atpx_arg_elements[1].type = ACPI_TYPE_INTEGER;
		atpx_arg_elements[1].integer.value = 0;
	}

	status = acpi_evaluate_object(handle, NULL, &atpx_arg, &buffer);

	/* Fail only if calling the method fails and ATPX is supported */
	if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
		printk("failed to evaluate ATPX got %s\n",
		       acpi_format_exception(status));
		kfree(buffer.pointer);
		return NULL;
	}

	return buffer.pointer;
}


The question is, how fatal to vga_switcheroo is this ACPI call failure ?
investigating ...
Comment 4 Jason Vas Dias 2016-04-24 20:44:00 UTC
Aha, so this ACPI call failure looks very fatal to any vga_switcheroo :

/**
 * radeon_atpx_switch_start - notify the sbios of a GPU switch
 *
 * @atpx: atpx info struct
 * @mux_id: mux state (0 = integrated GPU, 1 = discrete GPU)
 *
 * Execute the ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION ATPX
 * function to notify the sbios that a switch between the discrete GPU and
 * integrated GPU has begun (all asics).
 * Returns 0 on success, error on failure.
 */
static int radeon_atpx_switch_start(struct radeon_atpx *atpx, u16 mux_id)
{
	struct acpi_buffer params;
	union acpi_object *info;
	struct atpx_mux input;

	if (atpx->functions.switch_start) {
		input.size = 4;
		input.mux = mux_id;
		params.length = input.size;
		params.pointer = &input;
		info = radeon_atpx_call(atpx->handle,
					ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION,
					&params);
		if (!info)
			return -EIO;
		kfree(info);
	}
	return 0;
}

/**
 * radeon_atpx_switch_end - notify the sbios of a GPU switch
 *
 * @atpx: atpx info struct
 * @mux_id: mux state (0 = integrated GPU, 1 = discrete GPU)
 *
 * Execute the ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION ATPX
 * function to notify the sbios that a switch between the discrete GPU and
 * integrated GPU has ended (all asics).
 * Returns 0 on success, error on failure.
 */
static int radeon_atpx_switch_end(struct radeon_atpx *atpx, u16 mux_id)
{
	struct acpi_buffer params;
	union acpi_object *info;
	struct atpx_mux input;

	if (atpx->functions.switch_end) {
		input.size = 4;
		input.mux = mux_id;
		params.length = input.size;
		params.pointer = &input;
		info = radeon_atpx_call(atpx->handle,
					ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION,
					&params);
		if (!info)
			return -EIO;
		kfree(info);
	}
	return 0;
}





So if any of these ACPI calls fail, the entire switch fails .

There is obviously some way that the closed source FGLRX driver 
is able to make these calls successfully ; the card goes into
graphics mode OK with fglrx under Linux 3.10 (EL7) .

But it appears that the new open source radeon driver 8970M support 
is not working correctly in Linux 4.5.0 .

I guess this bug should more properly be raised directly against the
drivers/gpu/drm/radeon driver then .

Maybe I should try running the EL7 partition OS in a VM and tracing how
FGLRX is calling these ACPI calls & modifying radeon_atpx_handler to make
them the same way ? a rather cumbersome way to get to the bottom of it ...

I will also try various combinations of the above kernel parameters and
radeon.dpm=1 or radeon.dpm=0 .
Comment 5 Jason Vas Dias 2016-04-24 23:21:50 UTC
OK, I tried adding 'radeon.dpm=1' to kernel command line:

fbcon=map:01 radeon.modeset=1 radeon.dpm=1 video=radeon:1920x1080@60e \
drm_kms_helper.edid_firmware=edid/1920x1080.bin


(I have copied a valid 1920x1080.bin to /lib/firmware/edid/1920x1080.bin made
 by translating the EDID dumped by FGLRX to binary:
 $ tail -n +150 /var/log/Xorg.0.log | head -n 9  
[    13.280] (II) fglrx(0): EDID (in hex):
[    13.280] (II) fglrx(0):     00ffffffffffff000daeb11500000000
[    13.280] (II) fglrx(0):     01160104902213780231d59f56589527
[    13.280] (II) fglrx(0):     15505400000001010101010101010101
[    13.280] (II) fglrx(0):     010101010101963b803271383e405a3c
[    13.280] (II) fglrx(0):     690058c21000001a9b2580ee70382340
[    13.280] (II) fglrx(0):     3523350058c21000001a000000fe0056
[    13.280] (II) fglrx(0):     434d3858024e31353648470a00000000
[    13.280] (II) fglrx(0):     000041319e0000000002010a20200005
 $ tail -n +151 /var/log/Xorg.0.log | head -n 8  | sed -r 's/^.*[[:space:]]+//' | tr -d '\n' | perl -e 'while(<>){ while( $_ =~ /([0-9a-f][0-9a-f])/g){ $v=eval "0x$1"; print pack("C",$v); } }' > /tmp/neptune_edid.bin
 $ od -t x1 /tmp/neptune_edid.bin 
0000000 00 ff ff ff ff ff ff 00 0d ae b1 15 00 00 00 00
0000020 01 16 01 04 90 22 13 78 02 31 d5 9f 56 58 95 27
0000040 15 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
0000060 01 01 01 01 01 01 96 3b 80 32 71 38 3e 40 5a 3c
0000100 69 00 58 c2 10 00 00 1a 9b 25 80 ee 70 38 23 40
0000120 35 23 35 00 58 c2 10 00 00 1a 00 00 00 fe 00 56
0000140 43 4d 38 58 02 4e 31 35 36 48 47 0a 00 00 00 00
0000160 00 00 41 31 9e 00 00 00 00 02 01 0a 20 20 00 05
0000200

I attempt to get this loaded both by kernel command line argument
and in xorg.conf, but it never gets to that stage .  
)


Now, with the radeon.dpm=1 kernel boot parameter specified, the 
dmesg log produced by the command :

$ { echo ON >/sys/kernel/debug/vgaswitcheroo/switch; 
   echo DIS >/sys/kernel/debug/vgaswitcheroo/switch; sleep 1; 
   echo OFF >/sys/kernel/debug/vgaswitcheroo/switch; sleep 1; 
   cp /sys/kernel/debug/vgaswitcheroo/switch ~/vga_switcheroo_switch_at_X;  Xorg  -logverbose 7 -verbose 7 :0 vt04 || 
   { echo ON >/sys/kernel/debug/vgaswitcheroo/switch; 
     echo IGP >/sys/kernel/debug/vgaswitcheroo/switch; } ; 
  } & 
  ( sleep 3; cat /sys/kernel/debug/vgaswitcheroo/switch \
    > ~/vga_switcheroo_switch_last; 
    xterm & 
  )
... wait 60 seconds for screen to blank no matter what key I press...
[   468.365] (II) LoadModule: "glamoregl"
[   468.366] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[   468.404] (II) Module glamoregl: vendor="X.Org Foundation"
[   468.404]    compiled for 1.18.3, module version = 1.0.0
[   468.404]    ABI class: X.Org ANSI C Emulation, version 0.4
[   468.404] (II) glamor: OpenGL accelerated X.org driver based.
[   468.629] (II) glamor: EGL version 1.4 (DRI2):
[   468.632] (II) RADEON(0): glamor detected, initialising EGL layer.
[   468.632] (II) RADEON(0): KMS Color Tiling: enabled
[   468.632] (II) RADEON(0): KMS Color Tiling 2D: enabled
[   468.632] (II) RADEON(0): KMS Pageflipping: enabled
[   468.632] (II) RADEON(0): SwapBuffers wait for vsync: enabled
[   468.632] (II) RADEON(0): Initializing outputs ...
[   468.632] (II) RADEON(0): 0 crtcs needed for screen.
[   468.632] (II) RADEON(0): Allocated crtc nr. 0 to this screen.
[   468.632] (II) RADEON(0): Allocated crtc nr. 1 to this screen.
[   468.632] (II) RADEON(0): Allocated crtc nr. 2 to this screen.
[   468.632] (II) RADEON(0): Allocated crtc nr. 3 to this screen.
[   468.632] (II) RADEON(0): Allocated crtc nr. 4 to this screen.
[   468.632] (II) RADEON(0): Allocated crtc nr. 5 to this screen.
[   468.632] (WW) RADEON(0): No outputs definitely connected, trying again...
[   468.632] (WW) RADEON(0): Unable to find connected outputs - setting 1024x768 initial framebuffer
[   468.632] (II) RADEON(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[   468.632] (II) RADEON(0): mem size init: gart size :7fbcc000 vram size: s:100000000 visible:ff916000
[   468.632] (==) RADEON(0): DPI set to (96, 96)
[   468.632] (II) Loading sub module "ramdac"
[   468.632] (II) LoadModule: "ramdac"
[   468.632] (II) Module "ramdac" already built-in
[   468.632] (EE) RADEON(0): No modes.
[   468.632] (II) RADEON(0): RADEONFreeScreen
[   468.632] (II) UnloadModule: "radeon"
[   468.632] (II) UnloadSubModule: "glamoregl"
[   468.632] (II) Unloading glamoregl
[   468.632] (II) UnloadSubModule: "fb"
[   468.632] (II) Unloading fb
[   468.633] (EE) Screen(s) found, but none have a usable configuration.
[   468.633] (EE) 
Fatal server error:
[   468.633] (EE) no screens found(EE) 
...
$ dmesg > /var/log/dmesg-4.5.0-drm-problem-4.log 
$ cat /var/log/dmesg-4.5.0-drm-problem-4.log 
[  409.640975] i915: switched off
[  410.909809] ------------[ cut here ]------------
[  410.909838] WARNING: CPU: 0 PID: 4397 at drivers/gpu/drm/i915/intel_display.c:9475 hsw_enable_pc8+0x4f6/0x750()
[  410.909847] Power well on
[  410.909852] Modules linked in:
[  410.909864] CPU: 0 PID: 4397 Comm: bash Tainted: G        W       4.5.0 #3
[  410.909873] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  410.909885]  0000000000000286 000000004aadfe03 ffff880413c57c08 ffffffff814d9550
[  410.909901]  ffff880413c57c50 ffffffff821be4f0 ffff880413c57c40 ffffffff810608b2
[  410.909914]  ffff880414b20000 ffff880414f174f8 ffff880414f17508 ffff880414f17000
[  410.909927] Call Trace:
[  410.909940]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  410.909955]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  410.909965]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  410.909977]  [<ffffffff818710e6>] hsw_enable_pc8+0x4f6/0x750
[  410.909991]  [<ffffffff817efd8e>] intel_suspend_complete+0xee/0x720
[  410.910000]  [<ffffffff817f03fd>] i915_drm_suspend_late+0x3d/0xe0
[  410.910010]  [<ffffffff817f04ea>] i915_suspend_switcheroo+0x4a/0xb0
[  410.910024]  [<ffffffff8173d817>] ? radeon_atpx_switchto+0x197/0x1b0
[  410.910037]  [<ffffffff818adfc9>] i915_switcheroo_set_state+0x39/0x80
[  410.910050]  [<ffffffff818db1b8>] vga_switchoff.part.2+0x18/0x40
[  410.910059]  [<ffffffff818db2e4>] vga_switchto_stage2+0x104/0x110
[  410.910068]  [<ffffffff818da459>] ? vga_set_default_device+0x29/0x40
[  410.910078]  [<ffffffff818db689>] vga_switcheroo_debugfs_write+0x2e9/0x390
[  410.910092]  [<ffffffff811f7115>] ? do_filp_open+0xa5/0x100
[  410.910104]  [<ffffffff811e6507>] __vfs_write+0x37/0x120
[  410.910114]  [<ffffffff810850e5>] ? preempt_count_sub+0xa5/0xf0
[  410.910126]  [<ffffffff810a7626>] ? update_fast_ctr+0x46/0x70
[  410.910134]  [<ffffffff810a7697>] ? percpu_down_read+0x17/0x50
[  410.910144]  [<ffffffff811e6d89>] vfs_write+0xa9/0x1a0
[  410.910154]  [<ffffffff811e7998>] SyS_write+0x58/0xd0
[  410.910165]  [<ffffffff812050b3>] ? __close_fd+0xa3/0xd0                                                                                                                                                                                  
[  410.910180]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d                                                                                                                                                                     
[  410.910189] ---[ end trace 015a5ef8b36b4997 ]---                                                                                                                                                                                          
[  410.910200] ------------[ cut here ]------------                                                                                                                                                                                          
[  410.910211] WARNING: CPU: 0 PID: 4397 at drivers/gpu/drm/i915/intel_display.c:9486 hsw_enable_pc8+0x574/0x750()                                                                                                                           
[  410.910220] PCH PWM1 enabled                                                                                                                                                                                                              
[  410.910224] Modules linked in:                                                                                                                                                                                                            
[  410.910233] CPU: 0 PID: 4397 Comm: bash Tainted: G        W       4.5.0 #3                                                                                                                                                                
[  410.910240] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013                                                                                      
[  410.910251]  0000000000000286 000000004aadfe03 ffff880413c57c08 ffffffff814d9550                                                                                                                                                          
[  410.910264]  ffff880413c57c50 ffffffff821be4f0 ffff880413c57c40 ffffffff810608b2                                                                                                                                                          
[  410.910277]  ffff880414b20000 ffff880414f174f8 ffff880414f17508 ffff880414f17000                                                                                                                                                          
[  410.910290] Call Trace:                                                                                                                                                                                                                   
[  410.910297]  [<ffffffff814d9550>] dump_stack+0x99/0xd9                                                                                                                                                                                    
[  410.910307]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0                                                                                                                                                                          
[  410.910317]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80                                                                                                                                                                             
[  410.910328]  [<ffffffff81871164>] hsw_enable_pc8+0x574/0x750                                                                                                                                                                              
[  410.910337]  [<ffffffff817efd8e>] intel_suspend_complete+0xee/0x720                                                                                                                                                                       
[  410.910347]  [<ffffffff817f03fd>] i915_drm_suspend_late+0x3d/0xe0                                                                                                                                                                         
[  410.910356]  [<ffffffff817f04ea>] i915_suspend_switcheroo+0x4a/0xb0                                                                                                                                                                       
[  410.910367]  [<ffffffff8173d817>] ? radeon_atpx_switchto+0x197/0x1b0                                                                                                                                                                      
[  410.910378]  [<ffffffff818adfc9>] i915_switcheroo_set_state+0x39/0x80                                                                                                                                                                     
[  410.910387]  [<ffffffff818db1b8>] vga_switchoff.part.2+0x18/0x40                                                                                                                                                                          
[  410.910396]  [<ffffffff818db2e4>] vga_switchto_stage2+0x104/0x110                                                                                                                                                                         
[  410.910405]  [<ffffffff818da459>] ? vga_set_default_device+0x29/0x40                                                                                                                                                                      
[  410.910414]  [<ffffffff818db689>] vga_switcheroo_debugfs_write+0x2e9/0x390
[  410.910426]  [<ffffffff811f7115>] ? do_filp_open+0xa5/0x100
[  410.910436]  [<ffffffff811e6507>] __vfs_write+0x37/0x120
[  410.910444]  [<ffffffff810850e5>] ? preempt_count_sub+0xa5/0xf0
[  410.910454]  [<ffffffff810a7626>] ? update_fast_ctr+0x46/0x70
[  410.910462]  [<ffffffff810a7697>] ? percpu_down_read+0x17/0x50
[  410.910472]  [<ffffffff811e6d89>] vfs_write+0xa9/0x1a0
[  410.910482]  [<ffffffff811e7998>] SyS_write+0x58/0xd0
[  410.910491]  [<ffffffff812050b3>] ? __close_fd+0xa3/0xd0
[  410.910502]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  410.910510] ---[ end trace 015a5ef8b36b4998 ]---
[  413.448159] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[  413.448166] [drm] PCIE gen 3 link speeds already enabled
[  413.452386] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[  413.452501] radeon 0000:01:00.0: WB enabled
[  413.452505] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000c00 and cpu addr 0xffff880414ef9c00
[  413.452510] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000c04 and cpu addr 0xffff880414ef9c04
[  413.452514] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000c08 and cpu addr 0xffff880414ef9c08
[  413.452518] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000c0c and cpu addr 0xffff880414ef9c0c
[  413.452522] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000c10 and cpu addr 0xffff880414ef9c10
[  413.452900] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90000435a18
[  413.473006] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000c18 and cpu addr 0xffff880414ef9c18
[  413.473010] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000c1c and cpu addr 0xffff880414ef9c1c
[  413.621611] [drm] ring test on 0 succeeded in 2 usecs
[  413.621618] [drm] ring test on 1 succeeded in 1 usecs
[  413.621622] [drm] ring test on 2 succeeded in 1 usecs
[  413.621630] [drm] ring test on 3 succeeded in 3 usecs
[  413.621637] [drm] ring test on 4 succeeded in 3 usecs
[  413.798718] [drm] ring test on 5 succeeded in 2 usecs
[  413.798723] [drm] UVD initialized successfully.
[  413.908769] [drm] ring test on 6 succeeded in 15 usecs
[  413.908781] [drm] ring test on 7 succeeded in 4 usecs
[  413.908783] [drm] VCE initialized successfully.
[  413.908827] f 0#2: signaled from fence_wait
[  413.908831] [drm] ib test on ring 0 succeeded in 0 usecs
[  413.908857] f 1#2: signaled from fence_wait
[  413.908860] [drm] ib test on ring 1 succeeded in 0 usecs
[  413.908884] f 2#2: signaled from fence_wait
[  413.908887] [drm] ib test on ring 2 succeeded in 0 usecs
[  413.908907] f 3#2: signaled from fence_wait
[  413.908909] [drm] ib test on ring 3 succeeded in 0 usecs
[  413.908928] f 4#2: signaled from fence_wait
[  413.908930] [drm] ib test on ring 4 succeeded in 0 usecs
[  414.560648] f 5#4: signaled from fence_wait
[  414.560655] [drm] ib test on ring 5 succeeded
[  415.061640] f 6#4: signaled from fence_wait
[  415.061643] [drm] ib test on ring 6 succeeded
[  415.562656] f 7#4: signaled from fence_wait
[  415.562663] [drm] ib test on ring 7 succeeded
[  415.562727] switching from power state:
[  415.562731]  ui class: none
[  415.562735]  internal class: boot 
[  415.562739]  caps: 
[  415.562742]  uvd    vclk: 0 dclk: 0
[  415.562746]          power level 0    sclk: 30000 mclk: 15000 vddc: 900 vddci: 850 pcie gen: 3
[  415.562749]  status: c b 
[  415.562754] switching to power state:
[  415.562756]  ui class: performance
[  415.562759]  internal class: none
[  415.562763]  caps: 
[  415.562766]  uvd    vclk: 0 dclk: 0
[  415.562769]          power level 0    sclk: 30000 mclk: 15000 vddc: 825 vddci: 850 pcie gen: 3
[  415.562774]          power level 1    sclk: 45000 mclk: 125000 vddc: 900 vddci: 975 pcie gen: 3
[  415.562778]          power level 2    sclk: 85000 mclk: 125000 vddc: 1025 vddci: 975 pcie gen: 3
[  415.562782]          power level 3    sclk: 90000 mclk: 125000 vddc: 1050 vddci: 975 pcie gen: 3
[  415.562785]  status: r 
[  415.636375] device: 'vcs4': device_add
[  415.636395] PM: Adding info for No Bus:vcs4
[  415.636427] device: 'vcsa4': device_add
[  415.636450] PM: Adding info for No Bus:vcsa4
[  421.276941] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  421.276945] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  421.276950] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  421.276954] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  421.276957] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  421.276962] failed to evaluate ATPX got AE_NOT_EXIST
[  466.256270] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[  466.256277] [drm] PCIE gen 3 link speeds already enabled
[  466.261331] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[  466.261488] radeon 0000:01:00.0: WB enabled
[  466.261492] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000c00 and cpu addr 0xffff880414ef9c00
[  466.261494] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000c04 and cpu addr 0xffff880414ef9c04
[  466.261496] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000c08 and cpu addr 0xffff880414ef9c08
[  466.261499] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000c0c and cpu addr 0xffff880414ef9c0c
[  466.261501] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000c10 and cpu addr 0xffff880414ef9c10
[  466.261871] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90000435a18
[  466.281980] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000c18 and cpu addr 0xffff880414ef9c18
[  466.281982] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000c1c and cpu addr 0xffff880414ef9c1c
[  466.433191] [drm] ring test on 0 succeeded in 2 usecs
[  466.433194] [drm] ring test on 1 succeeded in 1 usecs
[  466.433198] [drm] ring test on 2 succeeded in 1 usecs
[  466.433203] [drm] ring test on 3 succeeded in 3 usecs
[  466.433209] [drm] ring test on 4 succeeded in 3 usecs
[  466.610282] [drm] ring test on 5 succeeded in 2 usecs
[  466.610286] [drm] UVD initialized successfully.
[  466.720326] [drm] ring test on 6 succeeded in 14 usecs
[  466.720335] [drm] ring test on 7 succeeded in 3 usecs
[  466.720336] [drm] VCE initialized successfully.
[  466.720397] f 0#3: signaled from fence_wait
[  466.720399] [drm] ib test on ring 0 succeeded in 0 usecs
[  466.720421] f 1#3: signaled from fence_wait
[  466.720423] [drm] ib test on ring 1 succeeded in 0 usecs
[  466.720443] f 2#3: signaled from fence_wait
[  466.720444] [drm] ib test on ring 2 succeeded in 0 usecs
[  466.720461] f 3#9: signaled from fence_wait
[  466.720462] [drm] ib test on ring 3 succeeded in 0 usecs
[  466.720480] f 4#3: signaled from fence_wait
[  466.720480] [drm] ib test on ring 4 succeeded in 0 usecs
[  467.372424] f 5#6: signaled from fence_wait
[  467.372435] [drm] ib test on ring 5 succeeded
[  467.873422] f 6#6: signaled from fence_wait
[  467.873433] [drm] ib test on ring 6 succeeded
[  468.374418] f 7#6: signaled from fence_wait
[  468.374429] [drm] ib test on ring 7 succeeded
[  468.374552] switching from power state:
[  468.374557]  ui class: none
[  468.374562]  internal class: boot 
[  468.374568]  caps: 
[  468.374572]  uvd    vclk: 0 dclk: 0
[  468.374578]          power level 0    sclk: 30000 mclk: 15000 vddc: 900 vddci: 850 pcie gen: 3
[  468.374580]  status: c b 
[  468.374588] switching to power state:
[  468.374590]  ui class: performance
[  468.374594]  internal class: none
[  468.374599]  caps: 
[  468.374603]  uvd    vclk: 0 dclk: 0
[  468.374607]          power level 0    sclk: 30000 mclk: 15000 vddc: 825 vddci: 850 pcie gen: 3
[  468.374612]          power level 1    sclk: 45000 mclk: 125000 vddc: 900 vddci: 975 pcie gen: 3
[  468.374616]          power level 2    sclk: 85000 mclk: 125000 vddc: 1025 vddci: 975 pcie gen: 3
[  468.374620]          power level 3    sclk: 90000 mclk: 125000 vddc: 1050 vddci: 975 pcie gen: 3
[  468.374622]  status: r 
[  468.653614] ------------[ cut here ]------------
[  468.653618] WARNING: CPU: 1 PID: 4407 at drivers/gpu/drm/i915/intel_pm.c:3646 ilk_update_wm+0x15a/0x160()
[  468.653619] WARN_ON(cstate->base.active != intel_crtc->active)
[  468.653619] Modules linked in:
[  468.653621] CPU: 1 PID: 4407 Comm: Xorg Tainted: G        W       4.5.0 #3
[  468.653621] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  468.653623]  0000000000000286 00000000a05f76dd ffff8804190bf7f8 ffffffff814d9550
[  468.653624]  ffff8804190bf840 ffffffff821b74d8 ffff8804190bf830 ffffffff810608b2
[  468.653625]  ffff88041cc06000 ffff88041d25b800 ffff880414b20000 ffff88041cc06000
[  468.653626] Call Trace:
[  468.653629]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  468.653632]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  468.653633]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  468.653634]  [<ffffffff817fefca>] ilk_update_wm+0x15a/0x160
[  468.653635]  [<ffffffff81803e1e>] intel_update_watermarks+0x1e/0x20
[  468.653637]  [<ffffffff8186abb1>] intel_pre_plane_update+0x71/0xb0
[  468.653638]  [<ffffffff8186b667>] intel_atomic_commit+0x667/0x1870
[  468.653641]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  468.653643]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  468.653643]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  468.653644]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  468.653647]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  468.653648]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  468.653649]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  468.653650]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  468.653652]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  468.653654]  [<ffffffff813b502d>] ? free_extent_state+0x8d/0x110
[  468.653655]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  468.653657]  [<ffffffff814f71b3>] ? __this_cpu_preempt_check+0x13/0x20
[  468.653660]  [<ffffffff811dc024>] ? memcg_check_events+0x44/0x2c0
[  468.653662]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  468.653664]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  468.653666]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  468.653669]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  468.653670]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  468.653671]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  468.653673]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  468.653675]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  468.653675]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  468.653676]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  468.653677]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  468.653679]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  468.653681]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  468.653683]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  468.653684]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  468.653686]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  468.653687] ---[ end trace 015a5ef8b36b4999 ]---
[  468.653690] ------------[ cut here ]------------
[  468.653691] WARNING: CPU: 1 PID: 4407 at drivers/gpu/drm/i915/intel_uncore.c:599 hsw_unclaimed_reg_debug+0x69/0x90()
[  468.653692] Unclaimed register detected before writing to register 0x4510c
[  468.653692] Modules linked in:
[  468.653693] CPU: 1 PID: 4407 Comm: Xorg Tainted: G        W       4.5.0 #3
[  468.653693] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  468.653695]  0000000000000086 00000000a05f76dd ffff8804190bf608 ffffffff814d9550
[  468.653696]  ffff8804190bf650 ffffffff821bce90 ffff8804190bf640 ffffffff810608b2
[  468.653697]  ffff880414b20000 ffff880414b20000 000000000004510c 0000000000000000
[  468.653697] Call Trace:
[  468.653698]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  468.653699]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  468.653700]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  468.653701]  [<ffffffff81846589>] hsw_unclaimed_reg_debug+0x69/0x90
[  468.653702]  [<ffffffff818494b2>] hsw_write32+0x82/0x1c0
[  468.653703]  [<ffffffff817fbae5>] _ilk_disable_lp_wm+0xc5/0xd0
[  468.653704]  [<ffffffff817fe9e6>] ilk_program_watermarks+0x4a6/0x930
[  468.653705]  [<ffffffff817fefa4>] ilk_update_wm+0x134/0x160
[  468.653706]  [<ffffffff81803e1e>] intel_update_watermarks+0x1e/0x20
[  468.653707]  [<ffffffff8186abb1>] intel_pre_plane_update+0x71/0xb0
[  468.653708]  [<ffffffff8186b667>] intel_atomic_commit+0x667/0x1870
[  468.653709]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  468.653710]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  468.653711]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  468.653712]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  468.653713]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  468.653714]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  468.653715]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  468.653716]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  468.653717]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  468.653718]  [<ffffffff813b502d>] ? free_extent_state+0x8d/0x110
[  468.653719]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  468.653720]  [<ffffffff814f71b3>] ? __this_cpu_preempt_check+0x13/0x20
[  468.653721]  [<ffffffff811dc024>] ? memcg_check_events+0x44/0x2c0
[  468.653722]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  468.653724]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  468.653725]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  468.653727]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  468.653728]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  468.653729]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  468.653730]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  468.653730]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  468.653731]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  468.653732]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  468.653733]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  468.653734]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  468.653735]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  468.653737]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  468.653738]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  468.653739]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  468.653740] ---[ end trace 015a5ef8b36b499a ]---
[  468.653742] ------------[ cut here ]------------
[  468.653743] WARNING: CPU: 1 PID: 4407 at drivers/gpu/drm/i915/intel_sprite.c:104 intel_pipe_update_start+0x30c/0x320()
[  468.653744] WARN_ON(drm_crtc_vblank_get(&crtc->base))
[  468.653744] Modules linked in:
[  468.653745] CPU: 1 PID: 4407 Comm: Xorg Tainted: G        W       4.5.0 #3
[  468.653745] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  468.653746]  0000000000000086 00000000a05f76dd ffff8804190bf750 ffffffff814d9550
[  468.653747]  ffff8804190bf798 ffffffff821c2c00 ffff8804190bf788 ffffffff810608b2
[  468.653748]  0000000000000437 ffff88041cc06000 0000000000000431 ffff880414f17000
[  468.653748] Call Trace:
[  468.653749]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  468.653750]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  468.653751]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  468.653753]  [<ffffffff81880a0c>] intel_pipe_update_start+0x30c/0x320
[  468.653755]  [<ffffffff810a11c0>] ? wake_atomic_t_function+0x60/0x60
[  468.653756]  [<ffffffff8185c90a>] intel_begin_crtc_commit+0x4a/0x1b0
[  468.653758]  [<ffffffff8161bf2b>] drm_atomic_helper_commit_planes_on_crtc+0x5b/0x270
[  468.653759]  [<ffffffff81803e1e>] ? intel_update_watermarks+0x1e/0x20
[  468.653760]  [<ffffffff8186b76e>] intel_atomic_commit+0x76e/0x1870
[  468.653761]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  468.653762]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  468.653762]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  468.653763]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  468.653764]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  468.653765]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  468.653766]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  468.653768]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  468.653768]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  468.653769]  [<ffffffff813b502d>] ? free_extent_state+0x8d/0x110
[  468.653770]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  468.653771]  [<ffffffff814f71b3>] ? __this_cpu_preempt_check+0x13/0x20
[  468.653772]  [<ffffffff811dc024>] ? memcg_check_events+0x44/0x2c0
[  468.653773]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  468.653775]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  468.653776]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  468.653778]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  468.653779]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  468.653780]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  468.653781]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  468.653781]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  468.653782]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  468.653783]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  468.653784]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  468.653785]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  468.653786]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  468.653787]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  468.653789]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  468.653790]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  468.653791] ---[ end trace 015a5ef8b36b499b ]---
[  468.653797] [drm:intel_pipe_update_end] *ERROR* Atomic update failure on pipe A (start=1801 end=4294967295) time 462855734 us, min 1073, max 1079, scanline start 1127, end 198
[  468.653797] ------------[ cut here ]------------
[  468.653798] WARNING: CPU: 1 PID: 4407 at drivers/gpu/drm/drm_irq.c:1320 drm_wait_one_vblank+0x177/0x1c0()
[  468.653799] vblank not available on crtc 0, ret=-22
[  468.653799] Modules linked in:
[  468.653800] CPU: 1 PID: 4407 Comm: Xorg Tainted: G        W       4.5.0 #3
[  468.653800] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  468.653801]  0000000000000286 00000000a05f76dd ffff8804190bf7f0 ffffffff814d9550
[  468.653802]  ffff8804190bf838 ffffffff8215da84 ffff8804190bf828 ffffffff810608b2
[  468.653803]  ffff880414f17000 0000000000000000 ffff880415755800 ffff88041cc06000
[  468.653803] Call Trace:
[  468.653804]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  468.653805]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  468.653806]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  468.653807]  [<ffffffff8162698c>] ? drm_vblank_get+0x7c/0xd0
[  468.653808]  [<ffffffff81626be7>] drm_wait_one_vblank+0x177/0x1c0
[  468.653809]  [<ffffffff8161c024>] ? drm_atomic_helper_commit_planes_on_crtc+0x154/0x270
[  468.653811]  [<ffffffff8186b715>] intel_atomic_commit+0x715/0x1870
[  468.653812]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  468.653812]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  468.653813]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  468.653814]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  468.653815]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  468.653816]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  468.653817]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  468.653818]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  468.653819]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  468.653820]  [<ffffffff813b502d>] ? free_extent_state+0x8d/0x110
[  468.653821]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  468.653822]  [<ffffffff814f71b3>] ? __this_cpu_preempt_check+0x13/0x20
[  468.653823]  [<ffffffff811dc024>] ? memcg_check_events+0x44/0x2c0
[  468.653824]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  468.653825]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  468.653827]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  468.653828]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  468.653830]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  468.653830]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  468.653831]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  468.653832]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  468.653833]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  468.653833]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  468.653834]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  468.653836]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  468.653837]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  468.653838]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  468.653839]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  468.653840]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  468.653841] ---[ end trace 015a5ef8b36b499c ]---
[  468.653842] ------------[ cut here ]------------
[  468.653843] WARNING: CPU: 1 PID: 4407 at drivers/gpu/drm/i915/intel_pm.c:3646 ilk_update_wm+0x15a/0x160()
[  468.653844] WARN_ON(cstate->base.active != intel_crtc->active)
[  468.653844] Modules linked in:
[  468.653845] CPU: 1 PID: 4407 Comm: Xorg Tainted: G        W       4.5.0 #3
[  468.653845] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  468.653846]  0000000000000286 00000000a05f76dd ffff8804190bf820 ffffffff814d9550
[  468.653847]  ffff8804190bf868 ffffffff821b74d8 ffff8804190bf858 ffffffff810608b2
[  468.653848]  ffff88041cc06000 ffff88041d25b800 ffff880414b20000 ffff88041cc06000
[  468.653848] Call Trace:
[  468.653849]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  468.653850]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  468.653851]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  468.653852]  [<ffffffff8187930a>] ? intel_frontbuffer_flush+0x6a/0x80
[  468.653853]  [<ffffffff817fefca>] ilk_update_wm+0x15a/0x160
[  468.653854]  [<ffffffff81803e1e>] intel_update_watermarks+0x1e/0x20
[  468.653855]  [<ffffffff8186b77b>] intel_atomic_commit+0x77b/0x1870
[  468.653856]  [<ffffffff81dd5d8e>] ? __ww_mutex_lock+0xe/0x10
[  468.653857]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  468.653858]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  468.653858]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  468.653859]  [<ffffffff8161ce3f>] restore_fbdev_mode+0x22f/0x260
[  468.653860]  [<ffffffff8163f57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0
[  468.653861]  [<ffffffff8161f083>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80
[  468.653862]  [<ffffffff8161f0fd>] drm_fb_helper_set_par+0x2d/0x50
[  468.653863]  [<ffffffff81882f7a>] intel_fbdev_set_par+0x1a/0x60
[  468.653864]  [<ffffffff813b502d>] ? free_extent_state+0x8d/0x110
[  468.653865]  [<ffffffff8154c4ab>] fb_set_var+0x24b/0x460
[  468.653866]  [<ffffffff814f71b3>] ? __this_cpu_preempt_check+0x13/0x20
[  468.653867]  [<ffffffff811dc024>] ? memcg_check_events+0x44/0x2c0
[  468.653868]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  468.653870]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  468.653871]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  468.653873]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  468.653874]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  468.653875]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  468.653875]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  468.653876]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  468.653877]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  468.653878]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  468.653878]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  468.653880]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  468.653881]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  468.653882]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  468.653883]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  468.653885]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  468.653885] ---[ end trace 015a5ef8b36b499d ]---
[  468.653888] [drm:intel_check_cpu_fifo_underruns] *ERROR* fifo underrun on pipe A
[  468.653890] [drm:intel_check_cpu_fifo_underruns] *ERROR* fifo underrun on pipe B
[  468.653891] [drm:intel_check_cpu_fifo_underruns] *ERROR* fifo underrun on pipe C
[  468.653904] ------------[ cut here ]------------
[  468.653906] WARNING: CPU: 1 PID: 4407 at drivers/gpu/drm/i915/intel_sprite.c:104 intel_pipe_update_start+0x30c/0x320()
[  468.653906] WARN_ON(drm_crtc_vblank_get(&crtc->base))
[  468.653906] Modules linked in:
[  468.653907] CPU: 1 PID: 4407 Comm: Xorg Tainted: G        W       4.5.0 #3
[  468.653907] Hardware name: Notebook                         P15SM                           /P15SM                           , BIOS 4.6.5 12/26/2013
[  468.653908]  0000000000000086 00000000a05f76dd ffff8804190bf768 ffffffff814d9550
[  468.653909]  ffff8804190bf7b0 ffffffff821c2c00 ffff8804190bf7a0 ffffffff810608b2
[  468.653910]  0000000000000437 ffff88041cc06000 0000000000000431 ffff880414f17000
[  468.653911] Call Trace:
[  468.653911]  [<ffffffff814d9550>] dump_stack+0x99/0xd9
[  468.653913]  [<ffffffff810608b2>] warn_slowpath_common+0x82/0xc0
[  468.653914]  [<ffffffff8106094c>] warn_slowpath_fmt+0x5c/0x80
[  468.653915]  [<ffffffff81880a0c>] intel_pipe_update_start+0x30c/0x320
[  468.653916]  [<ffffffff810a11c0>] ? wake_atomic_t_function+0x60/0x60
[  468.653917]  [<ffffffff8185c90a>] intel_begin_crtc_commit+0x4a/0x1b0
[  468.653919]  [<ffffffff8161bf2b>] drm_atomic_helper_commit_planes_on_crtc+0x5b/0x270
[  468.653920]  [<ffffffff8186b76e>] intel_atomic_commit+0x76e/0x1870
[  468.653921]  [<ffffffff816404c2>] ? drm_atomic_check_only+0x192/0x620
[  468.653922]  [<ffffffff81640d77>] ? drm_atomic_add_affected_connectors+0x27/0xf0
[  468.653923]  [<ffffffff81640987>] drm_atomic_commit+0x37/0x60
[  468.653924]  [<ffffffff8161df27>] drm_fb_helper_pan_display+0x1e7/0x250
[  468.653925]  [<ffffffff81882eba>] intel_fbdev_pan_display+0x1a/0x60
[  468.653926]  [<ffffffff8154be3b>] fb_pan_display+0xdb/0x170
[  468.653926]  [<ffffffff8154c4c7>] fb_set_var+0x267/0x460
[  468.653927]  [<ffffffff814f71b3>] ? __this_cpu_preempt_check+0x13/0x20
[  468.653929]  [<ffffffff811dc024>] ? memcg_check_events+0x44/0x2c0
[  468.653930]  [<ffffffff81200f58>] ? igrab+0x48/0x50
[  468.653931]  [<ffffffff813b09d4>] ? btrfs_get_token_32+0x104/0x120
[  468.653933]  [<ffffffff81545cb6>] fbcon_blank+0x366/0x3b0
[  468.653934]  [<ffffffff815e16e3>] do_unblank_screen+0xc3/0x190
[  468.653936]  [<ffffffff815d780a>] vt_ioctl+0x50a/0x12e0
[  468.653936]  [<ffffffff811cc509>] ? kmem_cache_free+0x1f9/0x200
[  468.653937]  [<ffffffff81b9718f>] ? sock_destroy_inode+0x2f/0x40
[  468.653938]  [<ffffffff815cb001>] tty_ioctl+0x361/0xc40
[  468.653939]  [<ffffffff811fd86e>] ? dentry_free+0x4e/0x90
[  468.653939]  [<ffffffff811fe73d>] ? __dentry_kill+0x14d/0x1d0
[  468.653940]  [<ffffffff812074ac>] ? mntput_no_expire+0x2c/0x1b0
[  468.653941]  [<ffffffff811fa2a1>] do_vfs_ioctl+0xa1/0x5b0
[  468.653943]  [<ffffffff811e863e>] ? ____fput+0xe/0x10
[  468.653944]  [<ffffffff8107d498>] ? task_work_run+0x78/0x90
[  468.653945]  [<ffffffff811fa829>] SyS_ioctl+0x79/0x90
[  468.653946]  [<ffffffff81dd89ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
[  468.653947] ---[ end trace 015a5ef8b36b499e ]---
[  468.653951] [drm:intel_pipe_update_end] *ERROR* Atomic update failure on pipe A (start=1801 end=4294967295) time 462855889 us, min 1073, max 1079, scanline start 1127, end 198
[  468.655372] i915: switched on
[  469.062869] i2c i2c-9: master_xfer[0] W, addr=0x50, len=1
[  469.062872] i2c i2c-9: master_xfer[1] R, addr=0x50, len=1
[  474.269102] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  474.269724] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  474.270325] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  474.270940] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  474.271548] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  474.272164] failed to evaluate ATPX got AE_NOT_EXIST


The 2 copies of the vga_switcheroo/switch created by command were :

::::::::::::::
/root/vga_switcheroo_switch_at_X
::::::::::::::
0:DIS:+:DynOff:0000:01:00.0
1:IGD: :Off:0000:00:02.0
::::::::::::::
/root/vga_switcheroo_switch_last
::::::::::::::
0:DIS:+:DynOff:0000:01:00.0
1:IGD: :Off:0000:00:02.0

And when the terminal finally returns it is still at:

0:DIS:+:DynOff:0000:01:00.0
1:IGD: :Off:0000:00:02.0

which is nonsensical, because we know the i915 never relinquished control
and is being used.

So it looks like the Radeon driver thinks it has power control, but doesn't.

Does anyone know what 'DynOff' state means ?
Or how to transition from 'DynOff' to 'Pwr' ?
The 'ON' command to vga_switcheroo/switch does not work in state:
0:DIS: :DynOff:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0
to transition DIS from 'DynOff' into 'Pwr' state.
Comment 6 Alex Deucher 2016-04-25 13:58:11 UTC
Your system is muxless so there is no mux to switch.  The displays are only connected to the IGP.  You need to use the xserver PRIME stuff to render with the dGPU.  The dGPU renders offscreen and then the result is copied to the IGP for display.  See:
https://wiki.archlinux.org/index.php/PRIME
Comment 7 Jason Vas Dias 2016-04-25 17:43:09 UTC
(In reply to Alex Deucher from comment #6)
> Your system is muxless so there is no mux to switch.  The displays are only
> connected to the IGP.  You need to use the xserver PRIME stuff to render
> with the dGPU.  The dGPU renders offscreen and then the result is copied to
> the IGP for display.  See:
> https://wiki.archlinux.org/index.php/PRIME

Thanks for the info, Alex .

But that page seems mainly to be a reference for xrandr usage, 
which as I understand it works only with a running X-server , 
which I do not have :

$ unset DISPLAY;  xrandr --listproviders 
Can't open display 
$ 

I am trying to get the X-server running, which it refuses to do 
because it cannot probe for display modes, and seemingly 
cannot be configured not to do so without major reworking.

The modes cannot be determined because it seems the card is not 
in the fully 'powered on' state , and because whenever I attempt
to switch into graphics mode, the radeon driver fails to execute
this ACPI callout :
[  474.269102] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  474.269724] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  474.270325] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  474.270940] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  474.271548] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  474.272164] failed to evaluate ATPX got AE_NOT_EXIST

I think the Linux radeon driver needs to be fixed to make the ACPI 
calls correctly - if anyone can please decode what it is trying to
do by invoking this ACPI method, please let me know .

If you or anyone could please suggest how to start the X-server with 
the xf86-video-ati driver controlling the Radeon Card, as it claims to
be able to do, I'd be most appreciative of any tips .

My xorg.conf as shown above was largely copied from the 
https://wiki.archlinux.org/index.php/PRIME
page, and still does not work to enable me to start 
the X-server - the X-server cannot determine the 
display modes of the card and will not allow the
modes to be specified in any other way - I guess
I'll have to hack it to forget trying to determine
the modes and use a hard-coded mode table.
Comment 8 Jason Vas Dias 2016-04-25 17:49:31 UTC
As stated on the web-page quoted above , 
( https://wiki.archlinux.org/index.php/PRIME )
an example xorg.conf to use the discrete card
as primary GPU is:


# Discrete Card as Primary GPU

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nouveau"
    Inactive "intel"
EndSection

Section "Device"
    Identifier  "nouveau"
    Driver      "nouveau"
    BusID       "PCI:x:x:x" # Sample: "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nouveau"
    Device "nouveau"
EndSection

Section "Device"
    Identifier  "intel"
    Driver      "intel"
    BusID       "PCI:x:x:x"  # Sample: "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection




My xorg.conf is basically the same with the string 'nouveau' 
replaced by 'ati' .

It started out as simple as this, but then grew as I tried 
every conceivable method to specify the modes ,  but still
the X-server exits with a 'No modes.' error in every case .

The reason the X-server cannot determine the modes is because
of this Linux bug - the radeon DRM driver makes incorrect ACPI
calls.

Also I think that if vga_switcheroo does not work or is 
incapable of working , as it provably is in the above 
example, it should return EIO on the write to the 
debugfs control 'switch' file , and not proceed to
display spurious data in that file.
Comment 9 Alex Deucher 2016-04-25 17:59:04 UTC
(In reply to Jason Vas Dias from comment #8)
> As stated on the web-page quoted above , 
> ( https://wiki.archlinux.org/index.php/PRIME )
> an example xorg.conf to use the discrete card
> as primary GPU is:
> 

This is only possible if there are displays physically connected to the dGPU (e.g., laptop panel is connected to IGP and HDMI is connected to dGPU).  I'd need to see your full dmesg output, but I suspect there are no displays physically connected to the dGPU on your system.  As such, there is no way to make it the primary.

> 
> 
> My xorg.conf is basically the same with the string 'nouveau' 
> replaced by 'ati' .
> 
> It started out as simple as this, but then grew as I tried 
> every conceivable method to specify the modes ,  but still
> the X-server exits with a 'No modes.' error in every case .
> 
> The reason the X-server cannot determine the modes is because
> of this Linux bug - the radeon DRM driver makes incorrect ACPI
> calls.

No.  There are no displays or display connectors actually wired to the dGPU.  This is what is called a mux-less laptop.  mux-less in that there is no mux to switch the display connections between the IGP and the dGPU.

> 
> Also I think that if vga_switcheroo does not work or is 
> incapable of working , as it provably is in the above 
> example, it should return EIO on the write to the 
> debugfs control 'switch' file , and not proceed to
> display spurious data in that file.

vag-switcheroo should only be used on old muxed laptops where there was a mux to switch the display routing.

As I said, the only way to use the dGPU on your system is to follow the "PRIME GPU offloading" section of that page.
Comment 10 Jason Vas Dias 2016-04-25 18:49:22 UTC
OK, fine, I have to use FGLRX to use the Radeon as the primary display 
as I do under OEL7 (Linux 3.10) - 
what a terrific new open source radeon driver Linux 4.5 has.

But I cannot even get the Intel card to go into graphics mode under Linux 4.5.0, 
owing to the failure of the radeon module to call that ACPI method .

My xorg.conf now has no references to radeon driver :


Section "ServerLayout"
        Identifier     "X Radeon"
        Screen         0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc/"
        FontPath     "/usr/share/fonts/X11/TTF/"
        FontPath     "/usr/share/fonts/X11/OTF/"
        FontPath     "/usr/share/fonts/X11/Type1/"
        FontPath     "/usr/share/fonts/X11/100dpi/"
        FontPath     "/usr/share/fonts/X11/75dpi/"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "evdev"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "synaptics"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        Option       "DPMS" "true"
EndSection

Section "Device"
        Identifier  "Intel"
        Screen      0
        Driver      "intel"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Intel"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth      24
        EndSubSection
EndSection




Now, I boot only with the 'i915.modeset=1' kernel boot parameter .

I do :

$ dmesg -c >/var/log/dmesg-4.5.0.boot.log # available on request
$ export DISPLAY=:0
$ Xorg -logverbose 7 :0 vt04 & (sleep 2; xterm &)

Now the X-server gets a segmentation violation in the xf86-video-intel driver,
and the following dmesgs are generated :

$ dmesg
[  121.166547] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[  121.167141] [drm] PCIE gen 3 link speeds already enabled
[  121.171391] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[  121.172068] radeon 0000:01:00.0: WB enabled
[  121.172638] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000c00 and cpu addr 0xffff880414eb5c00
[  121.173232] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000c04 and cpu addr 0xffff880414eb5c04
[  121.173821] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000c08 and cpu addr 0xffff880414eb5c08
[  121.174409] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000c0c and cpu addr 0xffff880414eb5c0c
[  121.174990] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000c10 and cpu addr 0xffff880414eb5c10
[  121.175941] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90000435a18
[  121.196617] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000c18 and cpu addr 0xffff880414eb5c18
[  121.197169] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000c1c and cpu addr 0xffff880414eb5c1c
[  121.344986] [drm] ring test on 0 succeeded in 2 usecs
[  121.345536] [drm] ring test on 1 succeeded in 1 usecs
[  121.346090] [drm] ring test on 2 succeeded in 1 usecs
[  121.346659] [drm] ring test on 3 succeeded in 4 usecs
[  121.347202] [drm] ring test on 4 succeeded in 2 usecs
[  121.524819] [drm] ring test on 5 succeeded in 2 usecs
[  121.525345] [drm] UVD initialized successfully.
[  121.635907] [drm] ring test on 6 succeeded in 13 usecs
[  121.636449] [drm] ring test on 7 succeeded in 4 usecs
[  121.636978] [drm] VCE initialized successfully.
[  121.637570] f 0#2: signaled from fence_wait
[  121.638109] [drm] ib test on ring 0 succeeded in 0 usecs
[  121.638641] f 1#2: signaled from fence_wait
[  121.639152] [drm] ib test on ring 1 succeeded in 0 usecs
[  121.639722] f 2#2: signaled from fence_wait
[  121.640233] [drm] ib test on ring 2 succeeded in 0 usecs
[  121.640801] f 3#2: signaled from fence_wait
[  121.641313] [drm] ib test on ring 3 succeeded in 0 usecs
[  121.641878] f 4#2: signaled from fence_wait
[  121.642404] [drm] ib test on ring 4 succeeded in 0 usecs
[  122.295105] f 5#4: signaled from fence_wait
[  122.295672] [drm] ib test on ring 5 succeeded
[  122.797067] f 6#4: signaled from fence_wait
[  122.797648] [drm] ib test on ring 6 succeeded
[  123.299048] f 7#4: signaled from fence_wait
[  123.299662] [drm] ib test on ring 7 succeeded
[  123.387817] device: 'vcs4': device_add
[  123.387832] PM: Adding info for No Bus:vcs4
[  123.387875] device: 'vcsa4': device_add
[  123.387893] PM: Adding info for No Bus:vcsa4
[  123.400978] Xorg (4385) used greatest stack depth: 12016 bytes left
[  129.273612] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  129.274317] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  129.275027] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  129.275779] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  129.276495] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  129.277229] failed to evaluate ATPX got AE_NOT_EXIST

It seems even when I specify Intel driver should be used, the Intel driver
is still hooking into the Radeon driver which initiates its incorrect ACPI
transaction.

Must I remove the radeon driver from the kernel completely in order to get
my display into graphics mode, in order to work around the buggy radeon driver ?
Comment 11 Alex Deucher 2016-04-25 19:02:25 UTC
(In reply to Jason Vas Dias from comment #10)
> OK, fine, I have to use FGLRX to use the Radeon as the primary display 
> as I do under OEL7 (Linux 3.10) - 
> what a terrific new open source radeon driver Linux 4.5 has.

fglrx still uses the intel card for display, it just hacks a bunch of stuff under the covers rather than using the PRIME infrastructure.

> 
> But I cannot even get the Intel card to go into graphics mode under Linux
> 4.5.0, 
> owing to the failure of the radeon module to call that ACPI method .
> 
> My xorg.conf now has no references to radeon driver :
> 

Please remove your xorg config completely.  You shouldn't need one, and some older xservers didn't properly handle multi-GPU with one in place.

> 
> 
> Now, I boot only with the 'i915.modeset=1' kernel boot parameter .
> 
> I do :
> 
> $ dmesg -c >/var/log/dmesg-4.5.0.boot.log # available on request
> $ export DISPLAY=:0
> $ Xorg -logverbose 7 :0 vt04 & (sleep 2; xterm &)
> 
> Now the X-server gets a segmentation violation in the xf86-video-intel
> driver,
> and the following dmesgs are generated :
> 
> $ dmesg
> [  121.166547] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
> [  121.167141] [drm] PCIE gen 3 link speeds already enabled
> [  121.171391] [drm] PCIE GART of 2048M enabled (table at
> 0x00000000002E8000).
> [  121.172068] radeon 0000:01:00.0: WB enabled
> [  121.172638] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr
> 0x0000000100000c00 and cpu addr 0xffff880414eb5c00
> [  121.173232] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr
> 0x0000000100000c04 and cpu addr 0xffff880414eb5c04
> [  121.173821] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr
> 0x0000000100000c08 and cpu addr 0xffff880414eb5c08
> [  121.174409] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr
> 0x0000000100000c0c and cpu addr 0xffff880414eb5c0c
> [  121.174990] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr
> 0x0000000100000c10 and cpu addr 0xffff880414eb5c10
> [  121.175941] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr
> 0x0000000000075a18 and cpu addr 0xffffc90000435a18
> [  121.196617] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr
> 0x0000000100000c18 and cpu addr 0xffff880414eb5c18
> [  121.197169] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr
> 0x0000000100000c1c and cpu addr 0xffff880414eb5c1c
> [  121.344986] [drm] ring test on 0 succeeded in 2 usecs
> [  121.345536] [drm] ring test on 1 succeeded in 1 usecs
> [  121.346090] [drm] ring test on 2 succeeded in 1 usecs
> [  121.346659] [drm] ring test on 3 succeeded in 4 usecs
> [  121.347202] [drm] ring test on 4 succeeded in 2 usecs
> [  121.524819] [drm] ring test on 5 succeeded in 2 usecs
> [  121.525345] [drm] UVD initialized successfully.
> [  121.635907] [drm] ring test on 6 succeeded in 13 usecs
> [  121.636449] [drm] ring test on 7 succeeded in 4 usecs
> [  121.636978] [drm] VCE initialized successfully.
> [  121.637570] f 0#2: signaled from fence_wait
> [  121.638109] [drm] ib test on ring 0 succeeded in 0 usecs
> [  121.638641] f 1#2: signaled from fence_wait
> [  121.639152] [drm] ib test on ring 1 succeeded in 0 usecs
> [  121.639722] f 2#2: signaled from fence_wait
> [  121.640233] [drm] ib test on ring 2 succeeded in 0 usecs
> [  121.640801] f 3#2: signaled from fence_wait
> [  121.641313] [drm] ib test on ring 3 succeeded in 0 usecs
> [  121.641878] f 4#2: signaled from fence_wait
> [  121.642404] [drm] ib test on ring 4 succeeded in 0 usecs
> [  122.295105] f 5#4: signaled from fence_wait
> [  122.295672] [drm] ib test on ring 5 succeeded
> [  122.797067] f 6#4: signaled from fence_wait
> [  122.797648] [drm] ib test on ring 6 succeeded
> [  123.299048] f 7#4: signaled from fence_wait
> [  123.299662] [drm] ib test on ring 7 succeeded
> [  123.387817] device: 'vcs4': device_add
> [  123.387832] PM: Adding info for No Bus:vcs4
> [  123.387875] device: 'vcsa4': device_add
> [  123.387893] PM: Adding info for No Bus:vcsa4
> [  123.400978] Xorg (4385) used greatest stack depth: 12016 bytes left
> [  129.273612] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0)
> [EmbeddedControl] (20160108/evregion-166)
> [  129.274317] ACPI Error: Region EmbeddedControl (ID=3) has no handler
> (20160108/exfldio-299)
> [  129.275027] ACPI Error: Method parse/execution failed
> [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST
> (20160108/psparse-542)
> [  129.275779] ACPI Error: Method parse/execution failed
> [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST
> (20160108/psparse-542)
> [  129.276495] ACPI Error: Method parse/execution failed
> [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST
> (20160108/psparse-542)
> [  129.277229] failed to evaluate ATPX got AE_NOT_EXIST
> 
> It seems even when I specify Intel driver should be used, the Intel driver
> is still hooking into the Radeon driver which initiates its incorrect ACPI
> transaction.
> 
> Must I remove the radeon driver from the kernel completely in order to get
> my display into graphics mode, in order to work around the buggy radeon
> driver ?

Please attach your dmesg output from boot without starting X.

You may be hitting a regression in 4.5 that was recently fixed.  Please try appending radeon.runpm=0 to the kernel command line in grub.
Comment 12 Jason Vas Dias 2016-04-25 19:25:58 UTC
Created attachment 214151 [details]
dmesg boot log

Boot DMESG log as requested
Comment 13 Jason Vas Dias 2016-04-25 19:39:37 UTC
Yes, radeon.runpm=0 has stopped the ACPI problem - but the latest Xorg 
xf86-video-intel driver ( 2.99.917 ) apparently does not work with the
latest xorg server (1.18.3) and gets a segmentation violation on initialization -
S.N.A.F.U .
So, still no graphics mode under 4.5.0 until Xorg gets fixed or I can bother
building each previous Xorg server to find one that works with the intel driver.

So, please confirm: 

In order to use the Radeon 8970M at all, currently I have no choice but to run
FGLRX closed source drivers and OpenGL user-space library stack, and
the open-source radeon drivers (both kernel and Xorg) are of no use to me?

There is no way I can use any open-source driver or OpenGL implementation
to control the card for X-Windows display use ?

Is there any xorg.conf that might potentially let me use the 
Radeon GPU for display on the laptop LCD without using FGLRX ?

I can't see how any xorg.conf can load the Radeon driver for 
the card, since that driver cannot determine the display modes .

I'll see about getting the 8970M card removed from my laptop so I can sell it
on ebay - it is of no use to me in the computer.
Comment 14 Alex Deucher 2016-04-25 20:19:46 UTC
It sounds like it's a bug in the intel driver.  The radeon driver appears to be loading fine.  Can you get any display on the intel card at all?  You can blacklist the radeon driver (append modeprobe.blanklist=radeon to the kernel command line in grub) to get that out of the way.  If you can't get any display on the intel card, I'd suggest updating the intel xorg driver or trying a different kernel to get a different intel kernel driver.
Comment 15 3pb33h+1ymmkx54pslys 2016-04-25 20:48:42 UTC
Seems like alex made an typo i think it should be modprobe.blacklist=radeon
Comment 16 Alex Deucher 2016-04-25 20:51:35 UTC
(In reply to 3pb33h+1ymmkx54pslys from comment #15)
> Seems like alex made an typo i think it should be modprobe.blacklist=radeon

Yes you are correct, sorry about that.
Comment 17 Jason Vas Dias 2016-04-26 00:43:02 UTC
OK, I tried appending modprobe.blacklist=radeon to the kernel command line -
that had no effect - the radeon module is built-in ; only using 
radeon.runpm=0 stops the ACPI error messages .

RE: > I'd suggest updating the intel xorg driver or trying a different kernel 
    > to get a different intel kernel driver.

The intel xorg driver is at its latest GIT version : 2.99.917 as is the 
X-Server : 1.18.3 . I have raised Freedesktop.org bug # 95140 :
https://bugs.freedesktop.org/show_bug.cgi?id=95140
about the failure of the latest version of the Xorg intel driver to work
with the latest version of the Xorg X-server .

What is the latest known version of Linux known to work with the 
Intel Integrated HD Graphics card ( PCI: 8086:0416 ) ?

Are you sure that card is capable of driving the display on its own on my laptop?
I have never been able to get the display into graphics mode using any
other driver than FGLRX - all OS installers eg. anaconda / ARCH Linux 
also failed to even get it into VESA mode, forcing me to use the 
terminal dialog interface for configuration .
I don't like using FGLRX because it forces me to use a distro that is 100% binary compatible with its OpenGL libraries 
and does not allow me to investigate OpenGL development with Mesa or to
build my own libraries or to use the latest Linux kernel .

It is a shame that it appears Linux has lost graphics capability 
in a large segment of the modern laptop market because of issues like this -
it always used to work fine up until @ 2010 .
Comment 18 Jason Vas Dias 2016-04-26 15:26:25 UTC
I think FGLRX is evidently able to run my laptop's display in 
dual-driver mode whereby the Intel IGP card runs the LCD in some sort of
"slave" mode under the control of the fglrx Radeon 8970M controller module,
to display frames produced by the Radeon card.

It would be nice if Linux would either 
A) fully support this configuration 
OR
B) detect that this configuration is not supported and refuse
   to attempt to go into graphics mode at all on the radeon card.
  - this would include things like vga_switcheroo complaining 
    / returning an error when asked to switch without a MUX .

Linux is evidently not doing either yet .

I'm not convinced the intel driver can "go it alone" either in this
scenario -
see: https://bugs.freedesktop.org/show_bug.cgi?id=95078
Comment 19 Jason Vas Dias 2016-04-26 15:52:59 UTC
Oops, the link should have been:
 https://bugs.freedesktop.org/show_bug.cgi?id=95140
but as it turns out, that other bug could be equally relevant.
Comment 20 Jason Vas Dias 2016-04-26 16:55:59 UTC
When I look at linux 4.5.0 boot dmesg log messages like :

[    3.115380] vga_switcheroo: enabled
[    3.115463] ATPX version 1, functions 0x00000033
[    3.115541] [drm] DMAR active, disabling use of stolen memory


I think 'you lie, Linux' !

vga_switcheroo can never be enabled on this platform because 
it has no MUX , and the logs above show the quality of the 
ACPI ATPX support.

I think this is the core linux relevant issue here - plus, I think it
should in the case where only one card has control of the actual
laptop display:

[    3.115580] device: 'i2c-8': device_add
[    3.115587] bus: 'i2c': add device i2c-8
[    3.115598] PM: Adding info for i2c:i2c-8
[    3.115607] i2c i2c-8: adapter [i915 gmbus ssc] registered
[    3.115706] device: 'i2c-9': device_add
[    3.115710] bus: 'i2c': add device i2c-9
[    3.115720] PM: Adding info for i2c:i2c-9
[    3.115724] i2c i2c-9: adapter [i915 gmbus vga] registered
[    3.115730] device: 'i2c-10': device_add
[    3.115734] bus: 'i2c': add device i2c-10
[    3.115742] PM: Adding info for i2c:i2c-10
[    3.115746] i2c i2c-10: adapter [i915 gmbus panel] registered
[    3.115751] device: 'i2c-11': device_add
[    3.115755] bus: 'i2c': add device i2c-11
[    3.115762] PM: Adding info for i2c:i2c-11
[    3.115767] i2c i2c-11: adapter [i915 gmbus dpc] registered
[    3.115772] device: 'i2c-12': device_add
[    3.115776] bus: 'i2c': add device i2c-12
[    3.115784] PM: Adding info for i2c:i2c-12
[    3.115787] i2c i2c-12: adapter [i915 gmbus dpb] registered
[    3.115792] device: 'i2c-13': device_add
[    3.115796] bus: 'i2c': add device i2c-13
[    3.115804] PM: Adding info for i2c:i2c-13
[    3.115807] i2c i2c-13: adapter [i915 gmbus dpd] registered
[    3.115843] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[    3.115848] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem
[    3.116170] device: 'card1-VGA-1': device_add
[    3.116188] PM: Adding info for No Bus:card1-VGA-1
[    3.116212] device: 'card1-eDP-1': device_add
[    3.116231] PM: Adding info for No Bus:card1-eDP-1
[    3.116251] device: 'i2c-14': device_add
[    3.116257] bus: 'i2c': add device i2c-14
[    3.116265] PM: Adding info for i2c:i2c-14
[    3.116269] i2c i2c-14: adapter [DPDDC-A] registered
[    3.116961] i2c i2c-14: master_xfer[0] W, addr=0x50, len=1
[    3.116962] i2c i2c-14: master_xfer[1] R, addr=0x50, len=1
[    3.118007] i2c i2c-14: master_xfer[0] W, addr=0x50, len=1
[    3.118009] i2c i2c-14: master_xfer[1] R, addr=0x50, len=128
[    3.137993] device: 'card1-DP-1': device_add
[    3.138011] PM: Adding info for No Bus:card1-DP-1
[    3.138023] device: 'i2c-15': device_add
[    3.138028] bus: 'i2c': add device i2c-15
[    3.138037] PM: Adding info for i2c:i2c-15
[    3.138042] i2c i2c-15: adapter [DPDDC-B] registered
[    3.138062] device: 'card1-HDMI-A-1': device_add
[    3.138076] PM: Adding info for No Bus:card1-HDMI-A-1
[    3.138091] device: 'card1-HDMI-A-2': device_add
[    3.138104] PM: Adding info for No Bus:card1-HDMI-A-2
[    3.138124] device: 'card1-DP-2': device_add
[    3.138142] PM: Adding info for No Bus:card1-DP-2
[    3.138154] device: 'i2c-16': device_add
[    3.138162] bus: 'i2c': add device i2c-16
[    3.138171] PM: Adding info for i2c:i2c-16
[    3.138176] i2c i2c-16: adapter [DPDDC-D] registered
[    3.138203] device: 'card1-HDMI-A-3': device_add
[    3.138216] PM: Adding info for No Bus:card1-HDMI-A-3
[    3.161200] device: 'intel_backlight': device_add
[    3.161224] PM: Adding info for No Bus:intel_backlight
[    3.161286] bus: 'acpi': add driver video
[    3.161319] bus: 'acpi': driver_probe_device: matched device LNXVIDEO:00 with driver video
[    3.161322] bus: 'acpi': really_probe: probing driver video with device LNXVIDEO:00
[    3.161327] video LNXVIDEO:00: no default pinctrl state
[    3.161333] devices_kset: Moving LNXVIDEO:00 to end of list
[    3.161349] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    3.161394] ACPI: Video Device [PEGP] (multi-head: yes  rom: no  post: no)
[    3.161559] device: 'input4': device_add
[    3.161597] PM: Adding info for No Bus:input4
[    3.161615] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4
[    3.161625] driver: 'video': driver_bound: bound to device 'LNXVIDEO:00'
[    3.161627] bus: 'acpi': really_probe: bound device LNXVIDEO:00 to driver video
[    3.161631] bus: 'acpi': driver_probe_device: matched device LNXVIDEO:01 with driver video
[    3.161633] bus: 'acpi': really_probe: probing driver video with device LNXVIDEO:01
[    3.161636] video LNXVIDEO:01: no default pinctrl state
[    3.161640] devices_kset: Moving LNXVIDEO:01 to end of list
[    3.161710] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    3.161923] device: 'input5': device_add
[    3.161959] PM: Adding info for No Bus:input5
[    3.161973] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5
[    3.161983] driver: 'video': driver_bound: bound to device 'LNXVIDEO:01'
[    3.161985] bus: 'acpi': really_probe: bound device LNXVIDEO:01 to driver video
[    3.162001] i915 0000:00:02.0: adding component (ops 0xffffffff81efb930)
[    3.162004] [drm] Initialized i915 1.6.0 20151218 for 0000:00:02.0 on minor 1
[    3.162008] driver: 'i915': driver_bound: bound to device '0000:00:02.0'
[    3.162012] bus: 'pci': really_probe: bound device 0000:00:02.0 to driver i915
[    3.162045] bus: 'pci': add driver qxl
[    3.162064] bus: 'pci': add driver bochs-drm
[    3.162086] device: 'lightnvm': device_add


something in the kernel should see that only one device has the actual
laptop display connected and cause an error for operations that cannot
be performed like vga_switcheroo or putting the radeon device into
graphics console mode.

My primary question is : How do I refer to this device where the actual laptop
LCD is connected in xorg.conf ? 

PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem
[    3.116170] device: 'card1-VGA-1': device_add
[    3.116188] PM: Adding info for No Bus:card1-VGA-1
[    3.116212] device: 'card1-eDP-1': device_add
[    3.116231] PM: Adding info for No Bus:card1-eDP-1
[    3.116251] device: 'i2c-14': device_add



Where in xorg.conf / on the X-server command line can the fact that I want
driver X to control output Y be specified ? 

  Do I have to use a config like :

Section "Device"
  Identifier "Intel"
  Driver "intel"
  Option "Monitor-eDP-1" "eDP" 
  Option "Monitor-DisplayPort-0" "eDP"
EndSection


What are the precise values of X and Y in my case ? 
Guessing:  X:"intel" Y: "eDP-1" / "EDP1" /  "DP-1" / "DP1" / "VGA-1" / "VGA1" ?
Comment 21 Jason Vas Dias 2016-04-26 18:37:02 UTC
Aha! It was :

Section "Device"
  Identifier "Intel"
  Driver "intel"
  Option "Monitor-eDP-1" "eDP-1" 
  Option "Monitor-DisplayPort-0" "eDP-1"
EndSection

and also :

 Section "ServerLayout"
        Identifier     "X Intel"
        Screen         0  "Screen0" 0 0
        Inactive       "Radeon"
 ...
 EndSection

That did it! 

X-Server now initializes & xterm displays OK !
( with patch applied to latest xf86-video-intel driver, 
  see : https://bugs.freedesktop.org/show_bug.cgi?id=95140
) 

The Monitor-DisplayPort-0 xorg.conf Device section option
appears to only be documented in online blogs, eg:
 https://wiki.archlinux.org/index.php/multihead
It is not mentioned in any manual page installed by any Xorg package.
Let us eagerly anticipate the release of X11 7.8 and complete documentation ...




But still there are these dmesgs after successfully switching into 
graphics mode with the Intel driver:
[  173.684435] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[  173.684460] [drm] PCIE gen 3 link speeds already enabled
[  173.688244] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[  173.688390] radeon 0000:01:00.0: WB enabled
[  173.688405] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000c00 and cpu addr 0xffff880414fb6c00
[  173.688436] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000c04 and cpu addr 0xffff880414fb6c04
[  173.688465] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000c08 and cpu addr 0xffff880414fb6c08
[  173.688495] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000c0c and cpu addr 0xffff880414fb6c0c
[  173.689306] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000c10 and cpu addr 0xffff880414fb6c10
[  173.690471] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90000435a18
[  173.711357] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000c18 and cpu addr 0xffff880414fb6c18
[  173.712128] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000c1c and cpu addr 0xffff880414fb6c1c
[  173.860206] [drm] ring test on 0 succeeded in 2 usecs
[  173.860941] [drm] ring test on 1 succeeded in 1 usecs
[  173.861661] [drm] ring test on 2 succeeded in 1 usecs
[  173.862381] [drm] ring test on 3 succeeded in 1 usecs
[  173.863045] [drm] ring test on 4 succeeded in 3 usecs
[  174.040803] [drm] ring test on 5 succeeded in 2 usecs
[  174.041484] [drm] UVD initialized successfully.
[  174.152209] [drm] ring test on 6 succeeded in 15 usecs
[  174.152884] [drm] ring test on 7 succeeded in 4 usecs
[  174.153545] [drm] VCE initialized successfully.
[  174.154235] f 0#2: signaled from fence_wait
[  174.154923] [drm] ib test on ring 0 succeeded in 0 usecs
[  174.155606] f 1#2: signaled from fence_wait
[  174.156273] [drm] ib test on ring 1 succeeded in 0 usecs
[  174.156960] f 2#2: signaled from fence_wait
[  174.157611] [drm] ib test on ring 2 succeeded in 0 usecs
[  174.158282] f 3#2: signaled from fence_wait
[  174.158959] [drm] ib test on ring 3 succeeded in 0 usecs
[  174.159604] f 4#2: signaled from fence_wait
[  174.160242] [drm] ib test on ring 4 succeeded in 0 usecs
[  174.812851] f 5#4: signaled from fence_wait
[  174.813666] [drm] ib test on ring 5 succeeded
[  175.314798] f 6#4: signaled from fence_wait
[  175.315606] [drm] ib test on ring 6 succeeded
[  175.816796] f 7#4: signaled from fence_wait
[  175.817602] [drm] ib test on ring 7 succeeded
[  175.898550] device: 'vcs4': device_add
[  175.898567] PM: Adding info for No Bus:vcs4
[  175.898612] device: 'vcsa4': device_add
[  175.898621] PM: Adding info for No Bus:vcsa4
[  181.380548] ACPI Error: No handler for Region [EC81] (ffff88041d8d9bd0) [EmbeddedControl] (20160108/evregion-166)
[  181.380553] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20160108/exfldio-299)
[  181.380557] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.SGOF] (Node ffff88041d8fca50), AE_NOT_EXIST (20160108/psparse-542)
[  181.380561] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP._OFF] (Node ffff88041d8fce88), AE_NOT_EXIST (20160108/psparse-542)
[  181.380564] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0.ATPX] (Node ffff88041d9034b0), AE_NOT_EXIST (20160108/psparse-542)
[  181.380569] failed to evaluate ATPX got AE_NOT_EXIST
[  264.565810] i2c i2c-9: master_xfer[0] W, addr=0x50, len=1
[  264.565813] i2c i2c-9: master_xfer[1] R, addr=0x50, len=1


It looks like the Intel driver cannot execute that ATPX method either -
I definitely did specify 'radeon.runpm=0' , so this time it must be
something else invoking it .
Do I need to specify 'intel.runpm=0' ?
Comment 22 Jason Vas Dias 2016-04-26 18:38:50 UTC
It looks like the Intel driver is actually internally using the Radeon driver?
Comment 23 Jason Vas Dias 2016-04-26 18:50:23 UTC
Xorg server log of successful session

[   173.214] 
X.Org X Server 1.18.3
Release Date: 2016-04-04
[   173.214] X Protocol Version 11, Revision 0
[   173.214] Build Operating System: Linux 4.5.0 x86_64 
[   173.214] Current Operating System: Linux jvdlux 4.5.0 #3 SMP PREEMPT Fri Apr 22 23:01:54 GMT 2016 x86_64
[   173.214] Kernel command line: BOOT_IMAGE=/vmlinuz-4.5.0 root=/dev/OS/linux rd.lvm.lv=OS/linux ro i915.modeset=1 radeon.runpm=1
[   173.214] Build Date: 23 April 2016  08:17:36PM
[   173.214]  
[   173.214] Current version of pixman: 0.34.0
[   173.214]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   173.214] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   173.215] (==) Log file: "/usr/var/log/Xorg.0.log", Time: Tue Apr 26 19:03:03 2016
[   173.216] (==) Using config file: "/etc/X11/xorg.conf"
[   173.216] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   173.217] (==) ServerLayout "X Intel"
[   173.217] (**) |-->Screen "Screen0" (0)
[   173.217] (**) |   |-->Monitor "Monitor0"
[   173.217] (**) |   |-->Device "Intel"
[   173.217] (**) |   |-->GPUDevice "Radeon"
[   173.217] (**) |-->Inactive Device "Radeon"
[   173.217] (**) |-->Input Device "Mouse0"
[   173.217] (**) |-->Input Device "Keyboard0"
[   173.217] (==) Automatically adding devices
[   173.217] (==) Automatically enabling devices
[   173.217] (==) Automatically adding GPU devices
[   173.217] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   173.220] (**) FontPath set to:
...
[   173.220] (II) Module ABI versions:
[   173.220]    X.Org ANSI C Emulation: 0.4
[   173.220]    X.Org Video Driver: 20.0
[   173.220]    X.Org XInput driver : 22.1
[   173.220]    X.Org Server Extension : 9.0
[   173.220] (II) xfree86: Adding drm device (/dev/dri/card0)
[   175.811] (II) xfree86: Adding drm device (/dev/dri/card1)
[   175.812] (--) PCI:*(0:0:2:0) 8086:0416:1558:5106 rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[   175.812] (--) PCI: (0:1:0:0) 1002:6801:1558:5106 rev 0, Mem @ 0xe0000000/268435456, 0xf7b00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[   175.812] (II) Open ACPI successful (/var/run/acpid.socket)
[   175.812] (II) "glx" will be loaded by default.
[   175.812] (II) LoadModule: "dri2"
[   175.812] (II) Module "dri2" already built-in
[   175.812] (II) LoadModule: "glamoregl"
[   175.816] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[   175.830] (II) Module glamoregl: vendor="X.Org Foundation"
[   175.830]    compiled for 1.18.3, module version = 1.0.0
[   175.830]    ABI class: X.Org ANSI C Emulation, version 0.4
[   175.830] (II) LoadModule: "glx"
[   175.830] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   175.848] (II) Module glx: vendor="X.Org Foundation"
[   175.848]    compiled for 1.18.3, module version = 1.0.0
[   175.848]    ABI class: X.Org Server Extension, version 9.0
[   175.848] (==) AIGLX enabled
[   175.848] (II) LoadModule: "intel"
[   175.848] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   175.859] (II) Module intel: vendor="X.Org Foundation"
[   175.859]    compiled for 1.18.3, module version = 2.99.917
[   175.859]    Module class: X.Org Video Driver
[   175.859]    ABI class: X.Org Video Driver, version 20.0
[   175.859] (II) LoadModule: "ati"
[   175.859] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[   175.867] (II) Module ati: vendor="X.Org Foundation"
[   175.867]    compiled for 1.18.3, module version = 7.7.0
[   175.867]    Module class: X.Org Video Driver
[   175.867]    ABI class: X.Org Video Driver, version 20.0
[   175.867] (II) LoadModule: "radeon"
[   175.867] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[   175.878] (II) Module radeon: vendor="X.Org Foundation"
[   175.878]    compiled for 1.18.3, module version = 7.7.0
[   175.878]    Module class: X.Org Video Driver
[   175.879]    ABI class: X.Org Video Driver, version 20.0
[   175.879] (II) LoadModule: "synaptics"
[   175.879] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
[   175.881] (II) Module synaptics: vendor="X.Org Foundation"
[   175.881]    compiled for 1.18.3, module version = 1.8.3
[   175.881]    Module class: X.Org XInput Driver
[   175.881]    ABI class: X.Org XInput driver, version 22.1
[   175.881] (II) LoadModule: "evdev"
[   175.881] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[   175.884] (II) Module evdev: vendor="X.Org Foundation"
[   175.884]    compiled for 1.18.3, module version = 2.10.1
[   175.884]    Module class: X.Org XInput Driver
[   175.884]    ABI class: X.Org XInput driver, version 22.1
[   175.884] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   175.884] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[   175.884] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[   175.884] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[   175.884] (II) RADEON: Driver for ATI Radeon chipsets:
...
[   175.888] (++) using VT number 4

[   175.892] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20151218
[   175.892] (II) [KMS] Kernel modesetting enabled.
[   175.892] (EE) Screen 1 deleted because of no matching config section.
[   175.892] (II) RADEON(1): RADEONFreeScreen
[   175.892] (II) UnloadModule: "radeon"
[   175.892] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4600
[   175.892] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2
[   175.892] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   175.892] (==) intel(0): RGB weight 888
[   175.892] (==) intel(0): Default visual is TrueColor
[   175.893] (II) intel(0): Output eDP1 using monitor section Monitor0
[   175.898] (--) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[   175.898] (II) intel(0): Enabled output eDP1
[   175.898] (II) intel(0): Output VGA1 has no monitor section
[   175.898] (II) intel(0): Enabled output VGA1
[   175.898] (II) intel(0): Output DP1 has no monitor section
[   175.898] (II) intel(0): Enabled output DP1
[   175.898] (II) intel(0): Output HDMI1 has no monitor section
[   175.898] (II) intel(0): Enabled output HDMI1
[   175.898] (II) intel(0): Output HDMI2 has no monitor section
[   175.898] (II) intel(0): Enabled output HDMI2
[   175.898] (II) intel(0): Output DP2 has no monitor section
[   175.898] (II) intel(0): Enabled output DP2
[   175.898] (II) intel(0): Output HDMI3 has no monitor section
[   175.898] (II) intel(0): Enabled output HDMI3
[   175.898] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[   175.898] (II) intel(0): Output VIRTUAL1 has no monitor section
[   175.898] (II) intel(0): Enabled output VIRTUAL1
[   175.898] (--) intel(0): Output eDP1 using initial mode 1920x1080 on pipe 0
[   175.898] (==) intel(0): TearFree disabled
[   175.898] (==) intel(0): DPI set to (96, 96)
[   175.898] (II) Loading sub module "dri2"
[   175.898] (II) LoadModule: "dri2"
[   175.898] (II) Module "dri2" already built-in
[   175.898] (II) Loading sub module "present"
[   175.898] (II) LoadModule: "present"
[   175.898] (II) Module "present" already built-in
[   175.898] (==) Depth 24 pixmap format is 32 bpp
[   175.898] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[   175.898] (==) intel(0): Backing store enabled
[   175.898] (==) intel(0): Silken mouse enabled
[   175.898] (II) intel(0): HW Cursor enabled
[   175.898] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   175.899] (**) intel(0): DPMS enabled
[   175.899] (==) intel(0): display hotplug detection enabled
[   175.899] (II) intel(0): [DRI2] Setup complete
[   175.899] (II) intel(0): [DRI2]   DRI driver: i965
[   175.899] (II) intel(0): [DRI2]   VDPAU driver: i965
[   175.899] (II) intel(0): direct rendering: DRI2 enabled
[   175.899] (II) intel(0): hardware support for Present enabled
[   175.899] (WW) intel(0): Option "Monitor-eDP-1" is not used
[   175.899] (WW) intel(0): Option "Monitor-DisplayPort-0" is not used
[   175.899] (--) RandR disabled
[   175.934] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   175.934] (II) AIGLX: enabled GLX_ARB_create_context
[   175.934] (II) AIGLX: enabled GLX_ARB_create_context_profile
[   175.934] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[   175.934] (II) AIGLX: enabled GLX_INTEL_swap_event
[   175.934] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[   175.934] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[   175.934] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[   175.934] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[   175.934] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[   175.934] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[   175.934] (II) AIGLX: Loaded and initialized i965
[   175.934] (II) GLX: Initialized DRI2 GL provider for screen 0
[   175.936] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[   175.956] (II) intel(0): Setting screen physical size to 508 x 285
[   175.978] (II) XKB: Reusing cached keymap
[   175.979] (II) Using input driver 'synaptics' for 'Mouse0'
[   175.979]    Option "Protocol" "auto"
[   175.979]    Option "Device" "/dev/input/mice"
[   175.979]    Option "CorePointer"
[   175.979]    Option "driver" "synaptics"
[   175.979]    Option "identifier" "Mouse0"
[   175.979] (**) Option "CorePointer"
[   175.979] (**) Mouse0: always reports core events
[   175.979] (**) Option "Protocol" "auto"
[   175.979] (**) Option "Device" "/dev/input/mice"
[   175.979] (EE) synaptics: Mouse0: Synaptics driver unable to detect protocol
[   175.979] (EE) PreInit returned 11 for "Mouse0"
[   175.979] (II) UnloadModule: "synaptics"
[   175.980] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[   175.980] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   175.980] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   175.980] (II) LoadModule: "libinput"
[   175.980] (II) Loading /usr/lib64/xorg/modules/input/libinput_drv.so
[   176.010] (II) Module libinput: vendor="X.Org Foundation"
[   176.010]    compiled for 1.18.3, module version = 0.18.0
[   176.010]    Module class: X.Org XInput Driver
[   176.010]    ABI class: X.Org XInput driver, version 22.1
[   176.010] (II) Using input driver 'libinput' for 'Video Bus'
[   176.010]    Option "_source" "server/udev"
[   176.010]    Option "name" "Video Bus"
[   176.010]    Option "path" "/dev/input/event4"
[   176.010]    Option "device" "/dev/input/event4"
[   176.010]    Option "major" "13"
[   176.010]    Option "minor" "68"
[   176.010]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5/event4"
[   176.010]    Option "driver" "libinput"
[   176.010] (**) Video Bus: always reports core events
[   176.010] (**) Option "Device" "/dev/input/event4"
[   176.010] (**) Option "_source" "server/udev"
[   176.010] (**) Option "Device" "/dev/input/event4"
[   176.010] (II) input device 'Video Bus', /dev/input/event4 is tagged by udev as: Keyboard
[   176.010] (II) input device 'Video Bus', /dev/input/event4 is a keyboard
[   176.018] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5/event4"
[   176.018] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 6)
[   176.018] (II) XKB: Reusing cached keymap
[   176.018] (**) Option "Device" "/dev/input/event4"
[   176.018] (II) input device 'Video Bus', /dev/input/event4 is tagged by udev as: Keyboard
[   176.018] (II) input device 'Video Bus', /dev/input/event4 is a keyboard
[   176.018] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[   176.018] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   176.018] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   176.018] (II) Using input driver 'libinput' for 'Video Bus'
[   176.018]    Option "_source" "server/udev"
[   176.018]    Option "name" "Video Bus"
[   176.018]    Option "path" "/dev/input/event3"
[   176.018]    Option "device" "/dev/input/event3"
[   176.018]    Option "major" "13"
[   176.018]    Option "minor" "67"
[   176.018]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4/event3"
[   176.018]    Option "driver" "libinput"
[   176.018] (**) Video Bus: always reports core events
[   176.018] (**) Option "Device" "/dev/input/event3"
[   176.018] (**) Option "_source" "server/udev"
[   176.019] (**) Option "Device" "/dev/input/event3"
[   176.019] (II) input device 'Video Bus', /dev/input/event3 is tagged by udev as: Keyboard
[   176.019] (II) input device 'Video Bus', /dev/input/event3 is a keyboard
[   176.030] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4/event3"
[   176.030] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[   176.030] (II) XKB: Reusing cached keymap
[   176.030] (**) Option "Device" "/dev/input/event3"
[   176.030] (II) input device 'Video Bus', /dev/input/event3 is tagged by udev as: Keyboard
[   176.030] (II) input device 'Video Bus', /dev/input/event3 is a keyboard
[   176.030] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[   176.030] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   176.030] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   176.030] (II) Using input driver 'libinput' for 'Power Button'
[   176.030]    Option "_source" "server/udev"
[   176.030]    Option "name" "Power Button"
[   176.030]    Option "path" "/dev/input/event0"
[   176.030]    Option "device" "/dev/input/event0"
[   176.030]    Option "major" "13"
[   176.030]    Option "minor" "64"
[   176.030]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[   176.030]    Option "driver" "libinput"
[   176.030] (**) Power Button: always reports core events
[   176.030] (**) Option "Device" "/dev/input/event0"
[   176.030] (**) Option "_source" "server/udev"
[   176.030] (**) Option "Device" "/dev/input/event0"
[   176.030] (II) input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[   176.030] (II) input device 'Power Button', /dev/input/event0 is a keyboard
[   176.036] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[   176.036] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[   176.036] (II) XKB: Reusing cached keymap
[   176.036] (**) Option "Device" "/dev/input/event0"
[   176.036] (II) input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[   176.036] (II) input device 'Power Button', /dev/input/event0 is a keyboard
[   176.036] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[   176.036] (II) No input driver specified, ignoring this device.
[   176.036] (II) This device may have been added with another device file.
[   176.036] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[   176.036] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[   176.036] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[   176.036] (II) Using input driver 'libinput' for 'Sleep Button'
[   176.036]    Option "_source" "server/udev"
[   176.036]    Option "name" "Sleep Button"
[   176.036]    Option "path" "/dev/input/event1"
[   176.036]    Option "device" "/dev/input/event1"
[   176.036]    Option "major" "13"
[   176.036]    Option "minor" "65"
[   176.036]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   176.036]    Option "driver" "libinput"
[   176.036] (**) Sleep Button: always reports core events
[   176.036] (**) Option "Device" "/dev/input/event1"
[   176.036] (**) Option "_source" "server/udev"
[   176.036] (**) Option "Device" "/dev/input/event1"
[   176.037] (II) input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard
[   176.037] (II) input device 'Sleep Button', /dev/input/event1 is a keyboard
[   176.045] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   176.045] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[   176.045] (II) XKB: Reusing cached keymap
[   176.045] (**) Option "Device" "/dev/input/event1"
[   176.045] (II) input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard
[   176.045] (II) input device 'Sleep Button', /dev/input/event1 is a keyboard
[   176.045] (II) config/udev: Adding input device HDA Intel HDMI HDMI (/dev/input/event10)
[   176.045] (II) No input driver specified, ignoring this device.
[   176.045] (II) This device may have been added with another device file.
[   176.045] (II) config/udev: Adding input device HDA Intel HDMI HDMI (/dev/input/event11)
[   176.046] (II) No input driver specified, ignoring this device.
[   176.046] (II) This device may have been added with another device file.
[   176.046] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event8)
[   176.046] (II) No input driver specified, ignoring this device.
[   176.046] (II) This device may have been added with another device file.
[   176.046] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event9)
[   176.046] (II) No input driver specified, ignoring this device.
[   176.046] (II) This device may have been added with another device file.
[   176.046] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event6)
[   176.046] (II) No input driver specified, ignoring this device.
[   176.046] (II) This device may have been added with another device file.
[   176.046] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event7)
[   176.046] (II) No input driver specified, ignoring this device.
[   176.046] (II) This device may have been added with another device file.
[   176.046] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[   176.046] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[   176.046] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[   176.046] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[   176.046]    Option "_source" "server/udev"
[   176.046]    Option "name" "AT Translated Set 2 keyboard"
[   176.046]    Option "path" "/dev/input/event5"
[   176.046]    Option "device" "/dev/input/event5"
[   176.046]    Option "major" "13"
[   176.046]    Option "minor" "69"
[   176.046]    Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input6/event5"
[   176.046]    Option "driver" "libinput"
[   176.046] (**) AT Translated Set 2 keyboard: always reports core events
[   176.046] (**) Option "Device" "/dev/input/event5"
[   176.046] (**) Option "_source" "server/udev"
[   176.046] (**) Option "Device" "/dev/input/event5"
[   176.046] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is tagged by udev as: Keyboard
[   176.046] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is a keyboard
[   176.057] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input6/event5"
[   176.057] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 10)
[   176.057] (II) XKB: Reusing cached keymap
[   176.057] (**) Option "Device" "/dev/input/event5"
[   176.057] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is tagged by udev as: Keyboard
[   176.057] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is a keyboard
[   176.057] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event12)
[   176.057] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
[   176.057] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[   176.057] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[   176.057] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall"
[   176.057] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
[   176.057]    Option "_source" "server/udev"
[   176.057]    Option "name" "SynPS/2 Synaptics TouchPad"
[   176.057]    Option "path" "/dev/input/event12"
[   176.057]    Option "device" "/dev/input/event12"
[   176.057]    Option "major" "13"
[   176.057]    Option "minor" "76"
[   176.057]    Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input16/event12"
[   176.057]    Option "driver" "libinput"
[   176.057]    Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[   176.057]    Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
[   176.057] (**) SynPS/2 Synaptics TouchPad: always reports core events
[   176.057] (**) Option "Device" "/dev/input/event12"
[   176.057] (**) Option "_source" "server/udev"
[   176.057] (**) Option "Device" "/dev/input/event12"
[   176.057] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is tagged by udev as: Touchpad
[   176.057] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is a touchpad
[   176.072] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input16/event12"
[   176.072] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 11)
[   176.072] (**) Option "AccelerationScheme" "none"
[   176.072] (**) SynPS/2 Synaptics TouchPad: (accel) selected scheme none/0
[   176.072] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[   176.072] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[   176.072] (**) Option "Device" "/dev/input/event12"
[   176.072] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is tagged by udev as: Touchpad
[   176.072] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is a touchpad
[   176.072] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[   176.072] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
[   176.127] (II) UnloadModule: "libinput"
[   176.127] (II) UnloadModule: "libinput"
[   176.127] (II) UnloadModule: "libinput"
[   176.127] (II) UnloadModule: "libinput"
[   176.127] (II) UnloadModule: "libinput"
[   176.127] (II) UnloadModule: "libinput"
[   176.156] (II) Open ACPI successful (/var/run/acpid.socket)
[   176.156] (II) APM registered successfully
[   176.156] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[   176.157] (II) intel(0): HW Cursor enabled
[   176.157] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   176.157] (**) intel(0): DPMS enabled
[   176.157] (==) intel(0): display hotplug detection enabled
[   176.157] (II) intel(0): [DRI2] Setup complete
[   176.157] (II) intel(0): [DRI2]   DRI driver: i965
[   176.157] (II) intel(0): [DRI2]   VDPAU driver: i965
[   176.157] (II) intel(0): direct rendering: DRI2 enabled
[   176.157] (II) intel(0): hardware support for Present enabled
[   176.157] (--) RandR disabled
[   176.160] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   176.160] (II) AIGLX: enabled GLX_ARB_create_context
[   176.160] (II) AIGLX: enabled GLX_ARB_create_context_profile
[   176.160] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[   176.160] (II) AIGLX: enabled GLX_INTEL_swap_event
[   176.160] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[   176.160] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[   176.160] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[   176.160] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[   176.160] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[   176.160] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[   176.160] (II) AIGLX: Loaded and initialized i965
[   176.160] (II) GLX: Initialized DRI2 GL provider for screen 0
[   176.162] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[   176.189] (II) intel(0): Setting screen physical size to 508 x 285
[   176.201] (II) XKB: Reusing cached keymap
[   176.201] (II) Using input driver 'synaptics' for 'Mouse0'
[   176.201]    Option "Protocol" "auto"
[   176.201]    Option "Device" "/dev/input/mice"
[   176.201]    Option "CorePointer"
[   176.201]    Option "driver" "synaptics"
[   176.201]    Option "identifier" "Mouse0"
[   176.201] (**) Option "CorePointer"
[   176.201] (**) Mouse0: always reports core events
[   176.201] (**) Option "Protocol" "auto"
[   176.201] (**) Option "Device" "/dev/input/mice"
[   176.201] (EE) synaptics: Mouse0: Synaptics driver unable to detect protocol
[   176.201] (EE) PreInit returned 11 for "Mouse0"
[   176.201] (II) UnloadModule: "synaptics"
[   176.202] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[   176.202] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   176.202] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   176.202] (II) Using input driver 'libinput' for 'Video Bus'
[   176.202]    Option "_source" "server/udev"
[   176.202]    Option "name" "Video Bus"
[   176.202]    Option "path" "/dev/input/event4"
[   176.202]    Option "device" "/dev/input/event4"
[   176.202]    Option "major" "13"
[   176.202]    Option "minor" "68"
[   176.202]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5/event4"
[   176.202]    Option "driver" "libinput"
[   176.202] (**) Video Bus: always reports core events
[   176.202] (**) Option "Device" "/dev/input/event4"
[   176.202] (**) Option "_source" "server/udev"
[   176.202] (**) Option "Device" "/dev/input/event4"
[   176.202] (II) input device 'Video Bus', /dev/input/event4 is tagged by udev as: Keyboard
[   176.202] (II) input device 'Video Bus', /dev/input/event4 is a keyboard
[   176.207] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5/event4"
[   176.207] (II) XKB: Reusing cached keymap
[   176.207] (**) Option "Device" "/dev/input/event4"
[   176.207] (II) input device 'Video Bus', /dev/input/event4 is tagged by udev as: Keyboard
[   176.207] (II) input device 'Video Bus', /dev/input/event4 is a keyboard
[   176.207] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[   176.207] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   176.207] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   176.207] (II) Using input driver 'libinput' for 'Video Bus'
[   176.207]    Option "_source" "server/udev"
[   176.207]    Option "name" "Video Bus"
[   176.207]    Option "path" "/dev/input/event3"
[   176.207]    Option "device" "/dev/input/event3"
[   176.207]    Option "major" "13"
[   176.207]    Option "minor" "67"
[   176.207]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4/event3"
[   176.207]    Option "driver" "libinput"
[   176.207] (**) Video Bus: always reports core events
[   176.207] (**) Option "Device" "/dev/input/event3"
[   176.207] (**) Option "_source" "server/udev"
[   176.207] (**) Option "Device" "/dev/input/event3"
[   176.207] (II) input device 'Video Bus', /dev/input/event3 is tagged by udev as: Keyboard
[   176.207] (II) input device 'Video Bus', /dev/input/event3 is a keyboard
[   176.213] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4/event3"
[   176.213] (II) XKB: Reusing cached keymap
[   176.213] (**) Option "Device" "/dev/input/event3"
[   176.213] (II) input device 'Video Bus', /dev/input/event3 is tagged by udev as: Keyboard
[   176.213] (II) input device 'Video Bus', /dev/input/event3 is a keyboard
[   176.213] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[   176.213] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   176.213] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   176.213] (II) Using input driver 'libinput' for 'Power Button'
[   176.213]    Option "_source" "server/udev"
[   176.213]    Option "name" "Power Button"
[   176.213]    Option "path" "/dev/input/event0"
[   176.213]    Option "device" "/dev/input/event0"
[   176.213]    Option "major" "13"
[   176.213]    Option "minor" "64"
[   176.213]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[   176.213]    Option "driver" "libinput"
[   176.213] (**) Power Button: always reports core events
[   176.213] (**) Option "Device" "/dev/input/event0"
[   176.213] (**) Option "_source" "server/udev"
[   176.213] (**) Option "Device" "/dev/input/event0"
[   176.213] (II) input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[   176.213] (II) input device 'Power Button', /dev/input/event0 is a keyboard
[   176.219] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[   176.219] (II) XKB: Reusing cached keymap
[   176.219] (**) Option "Device" "/dev/input/event0"
[   176.219] (II) input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[   176.219] (II) input device 'Power Button', /dev/input/event0 is a keyboard
[   176.219] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[   176.219] (II) No input driver specified, ignoring this device.
[   176.219] (II) This device may have been added with another device file.
[   176.219] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[   176.219] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[   176.219] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[   176.219] (II) Using input driver 'libinput' for 'Sleep Button'
[   176.219]    Option "_source" "server/udev"
[   176.219]    Option "name" "Sleep Button"
[   176.219]    Option "path" "/dev/input/event1"
[   176.219]    Option "device" "/dev/input/event1"
[   176.219]    Option "major" "13"
[   176.219]    Option "minor" "65"
[   176.219]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   176.219]    Option "driver" "libinput"
[   176.219] (**) Sleep Button: always reports core events
[   176.219] (**) Option "Device" "/dev/input/event1"
[   176.219] (**) Option "_source" "server/udev"
[   176.219] (**) Option "Device" "/dev/input/event1"
[   176.219] (II) input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard
[   176.220] (II) input device 'Sleep Button', /dev/input/event1 is a keyboard
[   176.228] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   176.228] (II) XKB: Reusing cached keymap
[   176.228] (**) Option "Device" "/dev/input/event1"
[   176.228] (II) input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard
[   176.228] (II) input device 'Sleep Button', /dev/input/event1 is a keyboard
[   176.228] (II) config/udev: Adding input device HDA Intel HDMI HDMI (/dev/input/event10)
[   176.228] (II) No input driver specified, ignoring this device.
[   176.228] (II) This device may have been added with another device file.
[   176.228] (II) config/udev: Adding input device HDA Intel HDMI HDMI (/dev/input/event11)
[   176.229] (II) No input driver specified, ignoring this device.
[   176.229] (II) This device may have been added with another device file.
[   176.229] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event8)
[   176.229] (II) No input driver specified, ignoring this device.
[   176.229] (II) This device may have been added with another device file.
[   176.229] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event9)
[   176.229] (II) No input driver specified, ignoring this device.
[   176.229] (II) This device may have been added with another device file.
[   176.229] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event6)
[   176.229] (II) No input driver specified, ignoring this device.
[   176.229] (II) This device may have been added with another device file.
[   176.229] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event7)
[   176.229] (II) No input driver specified, ignoring this device.
[   176.229] (II) This device may have been added with another device file.
[   176.229] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[   176.229] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[   176.229] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[   176.229] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[   176.229]    Option "_source" "server/udev"
[   176.229]    Option "name" "AT Translated Set 2 keyboard"
[   176.229]    Option "path" "/dev/input/event5"
[   176.229]    Option "device" "/dev/input/event5"
[   176.229]    Option "major" "13"
[   176.229]    Option "minor" "69"
[   176.229]    Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input6/event5"
[   176.229]    Option "driver" "libinput"
[   176.229] (**) AT Translated Set 2 keyboard: always reports core events
[   176.229] (**) Option "Device" "/dev/input/event5"
[   176.229] (**) Option "_source" "server/udev"
[   176.229] (**) Option "Device" "/dev/input/event5"
[   176.229] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is tagged by udev as: Keyboard
[   176.229] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is a keyboard
[   176.237] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input6/event5"
[   176.237] (II) XKB: Reusing cached keymap
[   176.237] (**) Option "Device" "/dev/input/event5"
[   176.237] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is tagged by udev as: Keyboard
[   176.237] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is a keyboard
[   176.237] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event12)
[   176.237] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
[   176.237] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[   176.237] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[   176.237] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall"
[   176.237] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
[   176.237]    Option "_source" "server/udev"
[   176.237]    Option "name" "SynPS/2 Synaptics TouchPad"
[   176.237]    Option "path" "/dev/input/event12"
[   176.237]    Option "device" "/dev/input/event12"
[   176.237]    Option "major" "13"
[   176.237]    Option "minor" "76"
[   176.237]    Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input16/event12"
[   176.237]    Option "driver" "libinput"
[   176.237]    Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[   176.237]    Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
[   176.237] (**) SynPS/2 Synaptics TouchPad: always reports core events
[   176.237] (**) Option "Device" "/dev/input/event12"
[   176.237] (**) Option "_source" "server/udev"
[   176.237] (**) Option "Device" "/dev/input/event12"
[   176.237] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is tagged by udev as: Touchpad
[   176.237] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is a touchpad
[   176.249] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input16/event12"
[   176.249] (**) Option "AccelerationScheme" "none"
[   176.249] (**) SynPS/2 Synaptics TouchPad: (accel) selected scheme none/0
[   176.249] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[   176.249] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[   176.249] (**) Option "Device" "/dev/input/event12"
[   176.249] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is tagged by udev as: Touchpad
[   176.249] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is a touchpad
[   176.249] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[   176.249] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
[   196.193] (II) AIGLX: Suspending AIGLX clients for VT switch
[   264.296] (II) Open ACPI successful (/var/run/acpid.socket)
[   264.296] (II) AIGLX: Resuming AIGLX clients after VT switch
[   264.296] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[   264.299] (II) intel(0): EDID vendor "CMN", prod id 5553
[   264.299] (II) intel(0): Printing DDC gathered Modelines:
[   264.299] (II) intel(0): Modeline "1920x1080"x0.0  152.54  1920 2010 2070 2226  1080 1086 1095 1142 +hsync -vsync (68.5 kHz eP)
[   264.299] (II) intel(0): Modeline "1920x1080"x0.0   96.27  1920 1973 2008 2158  1080 1083 1088 1115 +hsync -vsync (44.6 kHz e)
[   264.579] (**) Option "Device" "/dev/input/event4"
[   264.579] (II) input device 'Video Bus', /dev/input/event4 is tagged by udev as: Keyboard
[   264.579] (II) input device 'Video Bus', /dev/input/event4 is a keyboard
[   264.579] (**) Option "Device" "/dev/input/event3"
[   264.579] (II) input device 'Video Bus', /dev/input/event3 is tagged by udev as: Keyboard
[   264.579] (II) input device 'Video Bus', /dev/input/event3 is a keyboard
[   264.579] (**) Option "Device" "/dev/input/event0"
[   264.579] (II) input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[   264.579] (II) input device 'Power Button', /dev/input/event0 is a keyboard
[   264.579] (**) Option "Device" "/dev/input/event1"
[   264.579] (II) input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard
[   264.579] (II) input device 'Sleep Button', /dev/input/event1 is a keyboard
[   264.579] (**) Option "Device" "/dev/input/event5"
[   264.579] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is tagged by udev as: Keyboard
[   264.579] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is a keyboard
[   264.579] (**) Option "Device" "/dev/input/event12"
[   264.580] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is tagged by udev as: Touchpad
[   264.580] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is a touchpad
[   289.922] (II) AIGLX: Suspending AIGLX clients for VT switch
[   342.104] (II) UnloadModule: "libinput"
[   342.104] (II) UnloadModule: "libinput"
[   342.104] (II) UnloadModule: "libinput"
[   342.104] (II) UnloadModule: "libinput"
[   342.104] (II) UnloadModule: "libinput"
[   342.104] (II) UnloadModule: "libinput"
[   343.307] (II) Open ACPI successful (/var/run/acpid.socket)
[   343.307] (II) APM registered successfully
[   343.307] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[   343.307] (II) intel(0): HW Cursor enabled
[   343.307] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   343.307] (**) intel(0): DPMS enabled
[   343.307] (==) intel(0): display hotplug detection enabled
[   343.307] (II) intel(0): [DRI2] Setup complete
[   343.307] (II) intel(0): [DRI2]   DRI driver: i965
[   343.307] (II) intel(0): [DRI2]   VDPAU driver: i965
[   343.307] (II) intel(0): direct rendering: DRI2 enabled
[   343.307] (II) intel(0): hardware support for Present enabled
[   343.307] (--) RandR disabled
[   343.311] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   343.311] (II) AIGLX: enabled GLX_ARB_create_context
[   343.311] (II) AIGLX: enabled GLX_ARB_create_context_profile
[   343.311] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[   343.311] (II) AIGLX: enabled GLX_INTEL_swap_event
[   343.311] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[   343.311] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[   343.311] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[   343.311] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[   343.311] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[   343.311] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[   343.311] (II) AIGLX: Loaded and initialized i965
[   343.311] (II) GLX: Initialized DRI2 GL provider for screen 0
[   343.313] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[   343.324] (II) intel(0): Setting screen physical size to 508 x 285
[   343.335] (II) XKB: Reusing cached keymap
[   343.336] (II) Using input driver 'synaptics' for 'Mouse0'
[   343.336]    Option "Protocol" "auto"
[   343.336]    Option "Device" "/dev/input/mice"
[   343.336]    Option "CorePointer"
[   343.336]    Option "driver" "synaptics"
[   343.336]    Option "identifier" "Mouse0"
[   343.336] (**) Option "CorePointer"
[   343.336] (**) Mouse0: always reports core events
[   343.336] (**) Option "Protocol" "auto"
[   343.336] (**) Option "Device" "/dev/input/mice"
[   343.336] (EE) synaptics: Mouse0: Synaptics driver unable to detect protocol
[   343.336] (EE) PreInit returned 11 for "Mouse0"
[   343.336] (II) UnloadModule: "synaptics"
[   343.336] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[   343.336] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   343.337] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   343.337] (II) Using input driver 'libinput' for 'Video Bus'
[   343.337]    Option "_source" "server/udev"
[   343.337]    Option "name" "Video Bus"
[   343.337]    Option "path" "/dev/input/event4"
[   343.337]    Option "device" "/dev/input/event4"
[   343.337]    Option "major" "13"
[   343.337]    Option "minor" "68"
[   343.337]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5/event4"
[   343.337]    Option "driver" "libinput"
[   343.337] (**) Video Bus: always reports core events
[   343.337] (**) Option "Device" "/dev/input/event4"
[   343.337] (**) Option "_source" "server/udev"
[   343.337] (**) Option "Device" "/dev/input/event4"
[   343.337] (II) input device 'Video Bus', /dev/input/event4 is tagged by udev as: Keyboard
[   343.337] (II) input device 'Video Bus', /dev/input/event4 is a keyboard

[   343.345] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5/event4"
[   343.345] (II) XKB: Reusing cached keymap
[   343.345] (**) Option "Device" "/dev/input/event4"
[   343.345] (II) input device 'Video Bus', /dev/input/event4 is tagged by udev as: Keyboard
[   343.345] (II) input device 'Video Bus', /dev/input/event4 is a keyboard
[   343.345] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[   343.345] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   343.345] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   343.345] (II) Using input driver 'libinput' for 'Video Bus'
[   343.345]    Option "_source" "server/udev"
[   343.345]    Option "name" "Video Bus"
[   343.345]    Option "path" "/dev/input/event3"
[   343.345]    Option "device" "/dev/input/event3"
[   343.345]    Option "major" "13"
[   343.345]    Option "minor" "67"
[   343.345]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4/event3"
[   343.345]    Option "driver" "libinput"
[   343.345] (**) Video Bus: always reports core events
[   343.345] (**) Option "Device" "/dev/input/event3"
[   343.345] (**) Option "_source" "server/udev"
[   343.345] (**) Option "Device" "/dev/input/event3"
[   343.345] (II) input device 'Video Bus', /dev/input/event3 is tagged by udev as: Keyboard
[   343.345] (II) input device 'Video Bus', /dev/input/event3 is a keyboard
[   343.351] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4/event3"
[   343.351] (II) XKB: Reusing cached keymap
[   343.351] (**) Option "Device" "/dev/input/event3"
[   343.351] (II) input device 'Video Bus', /dev/input/event3 is tagged by udev as: Keyboard
[   343.351] (II) input device 'Video Bus', /dev/input/event3 is a keyboard
[   343.351] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[   343.351] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   343.351] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   343.351] (II) Using input driver 'libinput' for 'Power Button'
[   343.351]    Option "_source" "server/udev"
[   343.351]    Option "name" "Power Button"
[   343.351]    Option "path" "/dev/input/event0"
[   343.351]    Option "device" "/dev/input/event0"
[   343.351]    Option "major" "13"
[   343.351]    Option "minor" "64"
[   343.351]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[   343.351]    Option "driver" "libinput"
[   343.351] (**) Power Button: always reports core events
[   343.351] (**) Option "Device" "/dev/input/event0"
[   343.351] (**) Option "_source" "server/udev"
[   343.351] (**) Option "Device" "/dev/input/event0"
[   343.351] (II) input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[   343.351] (II) input device 'Power Button', /dev/input/event0 is a keyboard
[   343.357] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[   343.357] (II) XKB: Reusing cached keymap
[   343.357] (**) Option "Device" "/dev/input/event0"
[   343.357] (II) input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[   343.357] (II) input device 'Power Button', /dev/input/event0 is a keyboard
[   343.357] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[   343.357] (II) No input driver specified, ignoring this device.
[   343.357] (II) This device may have been added with another device file.
[   343.357] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[   343.357] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[   343.357] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[   343.357] (II) Using input driver 'libinput' for 'Sleep Button'
[   343.357]    Option "_source" "server/udev"
[   343.357]    Option "name" "Sleep Button"
[   343.357]    Option "path" "/dev/input/event1"
[   343.357]    Option "device" "/dev/input/event1"
[   343.357]    Option "major" "13"
[   343.357]    Option "minor" "65"
[   343.357]    Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   343.357]    Option "driver" "libinput"
[   343.357] (**) Sleep Button: always reports core events
[   343.357] (**) Option "Device" "/dev/input/event1"
[   343.357] (**) Option "_source" "server/udev"
[   343.357] (**) Option "Device" "/dev/input/event1"
[   343.357] (II) input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard
[   343.358] (II) input device 'Sleep Button', /dev/input/event1 is a keyboard
[   343.366] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   343.366] (II) XKB: Reusing cached keymap
[   343.366] (**) Option "Device" "/dev/input/event1"
[   343.366] (II) input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard
[   343.366] (II) input device 'Sleep Button', /dev/input/event1 is a keyboard
[   343.366] (II) config/udev: Adding input device HDA Intel HDMI HDMI (/dev/input/event10)
[   343.366] (II) No input driver specified, ignoring this device.
[   343.366] (II) This device may have been added with another device file.
[   343.366] (II) config/udev: Adding input device HDA Intel HDMI HDMI (/dev/input/event11)
[   343.366] (II) No input driver specified, ignoring this device.
[   343.366] (II) This device may have been added with another device file.
[   343.367] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event8)
[   343.367] (II) No input driver specified, ignoring this device.
[   343.367] (II) This device may have been added with another device file.
[   343.367] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event9)
[   343.367] (II) No input driver specified, ignoring this device.
[   343.367] (II) This device may have been added with another device file.
[   343.367] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event6)
[   343.367] (II) No input driver specified, ignoring this device.
[   343.367] (II) This device may have been added with another device file.
[   343.367] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event7)
[   343.367] (II) No input driver specified, ignoring this device.
[   343.367] (II) This device may have been added with another device file.
[   343.367] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[   343.367] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[   343.367] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[   343.367] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[   343.367]    Option "_source" "server/udev"
[   343.367]    Option "name" "AT Translated Set 2 keyboard"
[   343.367]    Option "path" "/dev/input/event5"
[   343.367]    Option "device" "/dev/input/event5"
[   343.367]    Option "major" "13"
[   343.367]    Option "minor" "69"
[   343.367]    Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input6/event5"
[   343.367]    Option "driver" "libinput"
[   343.367] (**) AT Translated Set 2 keyboard: always reports core events
[   343.367] (**) Option "Device" "/dev/input/event5"
[   343.367] (**) Option "_source" "server/udev"
[   343.367] (**) Option "Device" "/dev/input/event5"
[   343.367] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is tagged by udev as: Keyboard
[   343.367] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is a keyboard
[   343.375] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input6/event5"
[   343.375] (II) XKB: Reusing cached keymap
[   343.375] (**) Option "Device" "/dev/input/event5"
[   343.375] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is tagged by udev as: Keyboard
[   343.375] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event5 is a keyboard
[   343.375] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event12)
[   343.375] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
[   343.375] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[   343.375] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[   343.375] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall"
[   343.375] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
[   343.375]    Option "_source" "server/udev"
[   343.375]    Option "name" "SynPS/2 Synaptics TouchPad"
[   343.375]    Option "path" "/dev/input/event12"
[   343.375]    Option "device" "/dev/input/event12"
[   343.375]    Option "major" "13"
[   343.375]    Option "minor" "76"
[   343.375]    Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input16/event12"
[   343.375]    Option "driver" "libinput"
[   343.375]    Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[   343.375]    Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
[   343.375] (**) SynPS/2 Synaptics TouchPad: always reports core events
[   343.375] (**) Option "Device" "/dev/input/event12"
[   343.375] (**) Option "_source" "server/udev"
[   343.375] (**) Option "Device" "/dev/input/event12"
[   343.375] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is tagged by udev as: Touchpad
[   343.375] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is a touchpad
[   343.387] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input16/event12"
[   343.387] (**) Option "AccelerationScheme" "none"
[   343.387] (**) SynPS/2 Synaptics TouchPad: (accel) selected scheme none/0
[   343.387] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[   343.387] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[   343.387] (**) Option "Device" "/dev/input/event12"
[   343.387] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is tagged by udev as: Touchpad
[   343.387] (II) input device 'SynPS/2 Synaptics TouchPad', /dev/input/event12 is a touchpad
[   343.387] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[   343.387] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
[   344.318] (II) UnloadModule: "libinput"
[   344.318] (II) UnloadModule: "libinput"
[   344.318] (II) UnloadModule: "libinput"
[   344.318] (II) UnloadModule: "libinput"
[   344.318] (II) UnloadModule: "libinput"
[   344.318] (II) UnloadModule: "libinput"
[   344.381] (II) Server terminated successfully (0). Closing log file.

( just to document the contrast between success log and failed logs shown above,
  and to show the device map eventually used .
)
  I think both the Intel and Radeon drivers appear to be active here ?
Comment 24 Alex Deucher 2016-04-26 22:11:05 UTC
(In reply to Jason Vas Dias from comment #20)
> When I look at linux 4.5.0 boot dmesg log messages like :
> 
> [    3.115380] vga_switcheroo: enabled
> [    3.115463] ATPX version 1, functions 0x00000033
> [    3.115541] [drm] DMAR active, disabling use of stolen memory
> 
> 
> I think 'you lie, Linux' !

The driver reads the supported ATPX functions from ACPI.  So it's a bios bug.

> 
> vga_switcheroo can never be enabled on this platform because 
> it has no MUX , and the logs above show the quality of the 
> ACPI ATPX support.
>

vga_switcheroo and ATPX are used on muxed and mux-less platforms to powerdown the dGPU dynamically when it's not in use.

The ATPX error messages are harmless though as they are not checked anywhere.
Comment 25 Alex Deucher 2016-04-26 22:16:15 UTC
Please attach you logs rather than pasting them in the comments, it's much harder to follow with them inline.

Also, as per comment 11, please try removing your xorg config file completely.  The drivers are able to auto detect everything they need and having the file generally causes more problems than good as you saw for yourself.  It may be preventing the radeon x driver from loading if you have having problems selecting it for render offload.
Comment 26 Alex Deucher 2016-04-26 22:20:39 UTC
(In reply to Jason Vas Dias from comment #22)
> It looks like the Intel driver is actually internally using the Radeon
> driver?

No.  The drivers are independent. vga_switcheroo provides the intermediary for alerting the drivers when the user has switched the mux for muxed laptops.  For muxless laptops, the dGPU driver uses vga_switcheroo and ATPX to power down the dGPU when it's not in use.  The IGP driver is not involved in that.