[Bug 87649] After archlinux system update switching on both of internal and external graphics card does not work anymore (vgaswitcheroo)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 3 12:12:02 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=87649

--- Comment #4 from fabian.ifflaender at posteo.de ---
Hello,

I needed some time to reproduce the issue. My description was not completely
correct.

Steps to reproduce:


(1) Use grub boot option to switch hardware multiplexer to discrete card before
start of window manager:


echo ON > /sys/kernel/debug/vgaswitcheroo/switch
echo DIS > /sys/kernel/debug/vgaswitcheroo/switch



(2) Toggle integrated card


echo ON > /sys/kernel/debug/vgaswitcheroo/switch
-> dmesg output:
[   14.326076] i915: switched on


echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
-> dmesg output:
[  119.977018] i915: switched off


echo ON > /sys/kernel/debug/vgaswitcheroo/switch
-> dmesg output:
[  119.977018] i915: switched off
[  120.261682] ------------[ cut here ]------------
[  120.261695] WARNING: CPU: 2 PID: 1130 at drivers/pci/pci.c:1535
pci_disable_device+0x99/0xb0()
[  120.261698] i915 0000:00:02.0: disabling already-disabled device
[  120.261700] Modules linked in:
[  120.261703]  fuse ctr ccm hp_wmi sparse_keymap arc4 brcmsmac cordic brcmutil
b43 mac80211 cfg80211 ssb mmc_core rng_core pcmcia pcmcia_core iTCO_wdt
iTCO_vendor_support ecb btusb coretemp intel_powerclamp bluetooth kvm_intel
rfkill kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel
aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media
mousedev joydev psmouse serio_raw r8169 i2c_i801 bcma snd_hda_codec_idt
intel_ips mii lpc_ich snd_hda_codec_generic snd_hda_codec_hdmi wmi fan
snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm hp_accel
snd_timer led_class lis3lv02d snd input_polldev battery ac thermal evdev
mac_hid mei_me intel_agp mei acpi_cpufreq shpchp processor soundcore
[  120.261774]  sch_fq_codel ext4 crc16 mbcache jbd2 hid_logitech_dj usbhid hid
sd_mod sr_mod crc_t10dif crct10dif_common cdrom atkbd libps2 ahci libahci
libata ehci_pci ehci_hcd scsi_mod usbcore usb_common i8042 serio i915 button
intel_gtt video radeon hwmon i2c_algo_bit drm_kms_helper ttm drm i2c_core
[  120.261808] CPU: 2 PID: 1130 Comm: bash Not tainted 3.17.6-1-ARCH #1
[  120.261811] Hardware name: Hewlett-Packard HP ENVY 14 Notebook PC         
/1436, BIOS F.23 11/11/2010
[  120.261813]  0000000000000000 000000000bb54064 ffff88008639fd60
ffffffff81537c3e
[  120.261817]  ffff88008639fda8 ffff88008639fd98 ffffffff8107079d
ffff880151852000
[  120.261820]  ffff880151b4f1b0 0000000000000002 ffff88008639ff48
0000000000000000
[  120.261824] Call Trace:
[  120.261831]  [<ffffffff81537c3e>] dump_stack+0x4d/0x6f
[  120.261838]  [<ffffffff8107079d>] warn_slowpath_common+0x7d/0xa0
[  120.261842]  [<ffffffff8107081c>] warn_slowpath_fmt+0x5c/0x80
[  120.261869]  [<ffffffffa028371a>] ? intel_display_set_init_power+0x2a/0x50
[i915]
[  120.261876]  [<ffffffff812e4be9>] pci_disable_device+0x99/0xb0
[  120.261889]  [<ffffffffa022ac3c>] i915_suspend+0x5c/0xb0 [i915]
[  120.261906]  [<ffffffffa02bc96b>] i915_switcheroo_set_state+0x3b/0x90 [i915]
[  120.261911]  [<ffffffff813a51d8>] vga_switchoff.part.2+0x18/0x40
[  120.261916]  [<ffffffff813a5883>] vga_switcheroo_debugfs_write+0x303/0x3b0
[  120.261921]  [<ffffffff811ca1e8>] ? __sb_start_write+0x58/0x110
[  120.261927]  [<ffffffff812652a3>] ? security_file_permission+0x23/0xa0
[  120.261931]  [<ffffffff811c7967>] vfs_write+0xb7/0x200
[  120.261934]  [<ffffffff811c85d9>] SyS_write+0x59/0xd0
[  120.261939]  [<ffffffff8153dc69>] system_call_fastpath+0x16/0x1b
[  120.261942] ---[ end trace 63b5ef02d0e89d31 ]---


echo ON > /sys/kernel/debug/vgaswitcheroo/switch
-> dmesg output:
[  139.628835] i915: switched on



(3) Prepare switch to integrated card


echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch
-> dmesg output:
[  146.237656] vga_switcheroo: client 1 refused switch
[  146.237662] vga_switcheroo: setting delayed switch to client 0



(4) Restart X (Strg + Alt + Del)

-> dmesg output:
[  172.751769] vga_switcheroo: processing delayed switch to 0
[  172.751784] snd_hda_intel 0000:01:00.1: Disabling via VGA-switcheroo
[  173.134994] fbcon: Remapping primary device, fb0, to tty 1-63
[  180.531979] [drm] stuck on render ring
[  180.535219] [drm] GPU HANG: ecode 0:0x85ffaafc, in Xorg.bin [1246], reason:
Ring hung, action: reset
[  180.535309] [drm] GPU hangs can indicate a bug anywhere in the entire gfx
stack, including userspace.
[  180.535347] [drm] Please file a _new_ bug report on bugs.freedesktop.org
against DRI -> DRM/Intel
[  180.535349] [drm] drm/i915 developers can then reassign to the right
component if it's not a kernel issue.
[  180.535351] [drm] The gpu crash dump is required to analyze gpu hangs, so
please always attach it.
[  180.535367] [drm] GPU crash dump saved to /sys/class/drm/card1/error
[  180.535390] [drm:intel_pipe_set_base] *ERROR* pin & fence failed
[  181.042044] [drm:i915_reset] *ERROR* Failed to reset chip: -110


I attached the logfiles.

Thanks for your support!
Fabian

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150103/0935f77f/attachment.html>


More information about the intel-gfx-bugs mailing list