You are not logged in.

#1 2016-12-21 00:17:23

FallenSnow
Member
Registered: 2014-04-07
Posts: 39

System hang with primusrun

I am using the intel modesetting driver while trying to use

optirun -b primus glxgears

but my system instantly hangs after running it. Once I restart my laptop, the journal shows the following.

-- Reboot --
Dec 20 16:04:34 AyrtonsLaptop kernel: RIP  [<          (null)>]           (null)
Dec 20 16:04:34 AyrtonsLaptop kernel: Code:  Bad RIP value.
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffff8158f2ae>] entry_SYSCALL_64_fastpath+0x12/0x6d
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffff811ef1d9>] SyS_ioctl+0x79/0x90
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffff814700e0>] ? __sys_recvmsg+0x80/0x90
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffff811eef59>] do_vfs_ioctl+0x2a9/0x4b0
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffffa010c4e0>] ? i915_gem_execbuffer+0x320/0x320 [i915]
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffffa0018752>] drm_ioctl+0x152/0x540 [drm]
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffffa010c5b4>] i915_gem_execbuffer2+0xd4/0x240 [i915]
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffffa010b804>] i915_gem_do_execbuffer.isra.13+0x1374/0x1410 [i915]
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffffa012bc3d>] intel_execlists_submission+0x1cd/0x420 [i915]
Dec 20 16:04:34 AyrtonsLaptop kernel:  [<ffffffffa0118b19>] ? i915_gem_object_sync+0x1a9/0x310 [i915]
Dec 20 16:04:34 AyrtonsLaptop kernel: Call Trace:
Dec 20 16:04:34 AyrtonsLaptop kernel:  ffff88045812fcb6 ffff88045b629180 ffff88045812fb60 00000000cd4ff5ec
Dec 20 16:04:34 AyrtonsLaptop kernel:  ffff88045812fbc8 ffff88042a78d8c0 ffff88045cf9b000 ffff8804638a9680
Dec 20 16:04:34 AyrtonsLaptop kernel:  ffffffffa0118b19 0000000000000002 ffff8804ac8f20dc fffff6d500000000
Dec 20 16:04:34 AyrtonsLaptop kernel: Stack:
Dec 20 16:04:34 AyrtonsLaptop kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Dec 20 16:04:34 AyrtonsLaptop kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Dec 20 16:04:34 AyrtonsLaptop kernel: CR2: 0000000000000000 CR3: 00000004589c0000 CR4: 00000000003406e0
Dec 20 16:04:34 AyrtonsLaptop kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Dec 20 16:04:34 AyrtonsLaptop kernel: FS:  00007f09853a4700(0000) GS:ffff8804c1d00000(0000) knlGS:0000000000000000
Dec 20 16:04:34 AyrtonsLaptop kernel: R13: ffff8804ac8f4568 R14: ffff8804ac8f20d8 R15: 0000000000000000
Dec 20 16:04:34 AyrtonsLaptop kernel: R10: 00000000000000a0 R11: ffff88035e178900 R12: 0000000000000001
Dec 20 16:04:34 AyrtonsLaptop kernel: RBP: ffff88045812fb88 R08: 00000000000000cf R09: ffff88035e178900
Dec 20 16:04:34 AyrtonsLaptop kernel: RDX: 00000000fffff6d5 RSI: ffff8804ac8f20d8 RDI: ffff88035e178900
Dec 20 16:04:34 AyrtonsLaptop kernel: RAX: ffff88045812fbc8 RBX: ffff88045cf9b000 RCX: 00000000fffff6d5
Dec 20 16:04:34 AyrtonsLaptop kernel: RSP: 0018:ffff88045812fb00  EFLAGS: 00010286
Dec 20 16:04:34 AyrtonsLaptop kernel: RIP: 0010:[<0000000000000000>]  [<          (null)>]           (null)
Dec 20 16:04:34 AyrtonsLaptop kernel: task: ffff8800163f8ec0 ti: ffff88045812c000 task.ti: ffff88045812c000
Dec 20 16:04:34 AyrtonsLaptop kernel: Hardware name: ASUSTeK COMPUTER INC. N501VW/N501VW, BIOS N501VW.303 10/31/2016
Dec 20 16:04:34 AyrtonsLaptop kernel: CPU: 4 PID: 1629 Comm: glxgears Tainted: P     U  W  O    4.4.39-1-lts #1
Dec 20 16:04:34 AyrtonsLaptop kernel:  cryptd soundcore led_class mei_me idma64 hci_uart iosf_mbi pcspkr mei i2c_i801 elan_i2c btbcm btqca i2c_hid intel_lpss_pci btintel bluetooth int3403_thermal rfkill pinctrl_sunrisepoint pinctrl_intel c
Dec 20 16:04:34 AyrtonsLaptop kernel: Modules linked in: nvidia_modeset(PO) nvidia(PO) bbswitch(O) sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm fuse bnep arc4 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic intel
Dec 20 16:04:34 AyrtonsLaptop kernel: Oops: 0010 [#1] SMP 
Dec 20 16:04:34 AyrtonsLaptop kernel: PGD 4589c3067 PUD 4589c2067 PMD 0 
Dec 20 16:04:34 AyrtonsLaptop kernel: IP: [<          (null)>]           (null)
Dec 20 16:04:34 AyrtonsLaptop kernel: BUG: unable to handle kernel NULL pointer dereference at           (null)

However, if I do

optirun -b virtualgl glxgears

everything runs as expected. I've tried multiple kernel versions (linux-ck, linux 4.5.4, and linux-lts) all provide the same result.

Offline

#2 2016-12-21 22:03:13

FallenSnow
Member
Registered: 2014-04-07
Posts: 39

Re: System hang with primusrun

I have been using i915.enable_execlists=0 as a kernel parameter but it seems that it hasn't been taking effect. As you can see below, enable_execlists is still enabled. I don't have the xf86-video-intel drivers installed and have a Intel 6700hq.

$ sudo grep . /sys/module/i915/parameters/*
/sys/module/i915/parameters/disable_display:N
/sys/module/i915/parameters/disable_power_well:1
/sys/module/i915/parameters/edp_vswing:0
/sys/module/i915/parameters/enable_cmd_parser:1
/sys/module/i915/parameters/enable_dc:-1
/sys/module/i915/parameters/enable_dpcd_backlight:N
/sys/module/i915/parameters/enable_dp_mst:Y
/sys/module/i915/parameters/enable_execlists:1
/sys/module/i915/parameters/enable_fbc:1
/sys/module/i915/parameters/enable_guc_loading:0
/sys/module/i915/parameters/enable_guc_submission:0
/sys/module/i915/parameters/enable_gvt:N
/sys/module/i915/parameters/enable_hangcheck:Y
/sys/module/i915/parameters/enable_ips:1
/sys/module/i915/parameters/enable_ppgtt:3
/sys/module/i915/parameters/enable_psr:0
/sys/module/i915/parameters/enable_rc6:1
/sys/module/i915/parameters/fastboot:N
/sys/module/i915/parameters/guc_log_level:-1
/sys/module/i915/parameters/inject_load_failure:0
/sys/module/i915/parameters/invert_brightness:0
/sys/module/i915/parameters/load_detect_test:N
/sys/module/i915/parameters/lvds_channel_mode:0
/sys/module/i915/parameters/lvds_use_ssc:-1
/sys/module/i915/parameters/mmio_debug:0
/sys/module/i915/parameters/modeset:-1
/sys/module/i915/parameters/nuclear_pageflip:N
/sys/module/i915/parameters/panel_ignore_lid:1
/sys/module/i915/parameters/prefault_disable:N
/sys/module/i915/parameters/preliminary_hw_support:0
/sys/module/i915/parameters/reset:Y
/sys/module/i915/parameters/semaphores:1
/sys/module/i915/parameters/use_mmio_flip:0
/sys/module/i915/parameters/vbt_sdvo_panel_type:-1
/sys/module/i915/parameters/verbose_state_checks:Y

Offline

#3 2016-12-22 01:32:24

Crozepp
Member
From: Basque Country
Registered: 2010-04-03
Posts: 42

Re: System hang with primusrun

Is your problem possibly related o this bug?

https://github.com/Bumblebee-Project/Bu … -234494238

In my case booting with only  acpi_osi="!Windows 2015" solves the hard lockups.

Offline

#4 2016-12-27 23:13:01

FallenSnow
Member
Registered: 2014-04-07
Posts: 39

Re: System hang with primusrun

Thanks for the response. I now have it working but I have no idea how. All I know is I am using the intel driver, not modesetting. Also yes, the acpi_osi="!Windows 2015" came into play later when I ran into freezing on boot.

Offline

Board footer

Powered by FluxBB