gpu hang in BLFS-11
by derguteweka from LinuxQuestions.org on (#5SXXZ)
Moin,
Just built a BLFS-11 on a i3-sandybridge PC. Apart from the "usual" B/LFS problems there's one nasty thing, where i don't know if i've a chance to fix it:
Looks like some time after booting the gpu hangs. Until next reboot.
dmesg shows this:
Code:[ 17.255883] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready
[ 2711.831454] [drm:fw_domains_get [i915]] *ERROR* render: timed out waiting for forcewake ack request
.
[ 2711.831525] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by fw_domains_get+0x162/0x1b0 [i915]
[ 2711.836622] ------------[ cut here ]------------
[ 2711.836623] i915 0000:00:02.0: GT thread status wait timed out
[ 2711.836641] WARNING: CPU: 2 PID: 108 at drivers/gpu/drm/i915/intel_uncore.c:335 __gen6_gt_wait_for_thread_c0+0x7f/0x90 [i915]
[ 2711.836693] Modules linked in: i915 video iosf_mbi ttm mei_me mei
[ 2711.836703] CPU: 2 PID: 108 Comm: kworker/2:1H Tainted: G W 5.15.7 #1
[ 2711.836708] Hardware name: BIOSTAR Group TH61 ITX/TH61 ITX, BIOS 4.6.4 06/01/2011
[ 2711.836710] Workqueue: events_highpri heartbeat [i915]
[ 2711.836767] RIP: 0010:__gen6_gt_wait_for_thread_c0+0x7f/0x90 [i915]
[ 2711.836818] Code: 1d 00 01 48 8b 78 08 4c 8b 67 50 4d 85 e4 75 03 4c 8b 27 e8 93 d7 6c c6 4c 89 e2 48 c7 c7 30 09 3b c0 48 89 c6 e8 86 d7 a8 c6 <0f> 0b eb bc 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 55 49 89 fd
[ 2711.836822] RSP: 0018:ffffa11c40163c50 EFLAGS: 00010082
[ 2711.836826] RAX: 0000000000000000 RBX: ffff8987008f07d0 RCX: 0000000000000027
[ 2711.836829] RDX: ffff898837b1b2d8 RSI: 0000000000000001 RDI: ffff898837b1b2d0
[ 2711.836832] RBP: 0000027765c2b175 R08: ffffffff8772bd48 R09: 00000000ffffdfff
[ 2711.836835] R10: ffffffff8764bd60 R11: ffffffff8764bd60 R12: ffff8987009b05b0
[ 2711.836837] R13: ffff8987008f0000 R14: ffff8987008f07e8 R15: ffff898837b24505
[ 2711.836840] FS: 0000000000000000(0000) GS:ffff898837b00000(0000) knlGS:0000000000000000
[ 2711.836844] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2711.836847] CR2: 00007f43b1750030 CR3: 000000002900c002 CR4: 00000000000606e0
[ 2711.836850] Call Trace:
[ 2711.836855] <TASK>
[ 2711.836857] gen6_read32+0xa7/0x160 [i915]
[ 2711.836909] intel_gt_coredump_alloc+0x126/0x710 [i915]
[ 2711.836966] i915_gpu_coredump+0x54/0x460 [i915]
[ 2711.837020] i915_capture_error_state+0xa/0x70 [i915]
[ 2711.837074] intel_gt_handle_error+0x359/0x370 [i915]
[ 2711.837136] ? lock_timer_base+0x5c/0x80
[ 2711.837143] ? mod_delayed_work_on+0x52/0x90
[ 2711.837149] heartbeat+0x3a4/0x3c0 [i915]
[ 2711.837205] process_one_work+0x1b1/0x310
[ 2711.837211] worker_thread+0x48/0x3d0
[ 2711.837216] ? process_one_work+0x310/0x310
[ 2711.837221] kthread+0x122/0x140
[ 2711.837225] ? set_kthread_struct+0x30/0x30
[ 2711.837229] ret_from_fork+0x22/0x30
[ 2711.837234] </TASK>
[ 2711.837236] ---[ end trace 8e91c8caa275c465 ]---
[ 2711.887251] [drm:fw_domains_get [i915]] *ERROR* render: timed out waiting for forcewake ack request.
[ 2711.887312] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by fw_domains_get+0x162/0x1b0 [i915]
[ 2711.942424] [drm:fw_domains_get [i915]] *ERROR* render: timed out waiting for forcewake ack request.
[ 2711.942482] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by fw_domains_get+0x162/0x1b0 [i915]When this happend, prboom (which before ran as expected) just shows this on startup:
Code:Failed to create hardware context.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 96
Current serial number in output stream: 97
M_LoadDefaults: Load system defaults.
default file: /home/wk/.prboom-plus/prboom-plus.cfg
found /usr/share/prboom-plus/prboom-plus.wad
PrBoom-Plus v2.6.1um (https://github.com/coelckers/prboom-plus)
I_SetAffinityMask: manual affinity mask is 1(Fun fact: Via ssh -Y ... it still works remotly)
Also MPlayer then just shows a black window with no video in it, audio still running, in the console couples of:
Code:Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 1280x720 => 1280x720 Planar YV12
A: 0.1 V: 0.0 A-V: 0.057 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 ESC[J
X11 error: BadAlloc (insufficient resources for operation)
A: 0.1 V: 0.0 A-V: 0.029 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 ESC[J
X11 error: BadAlloc (insufficient resources for operation)
A: 0.1 V: 0.1 A-V: -0.000 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 ESC[J
X11 error: BadAlloc (insufficient resources for operation)This happens with both original linux-5.13.12 and also linux-5.15.7 in BLFS-11.
On the same hardware, theres also running an older BLFS (approx. 7.6) with linux 3.15.1 like a charm (for a couple of years now). Including prboom, MPlayer,...
Any help would be highly appreciated.
Cheers,
WK
Just built a BLFS-11 on a i3-sandybridge PC. Apart from the "usual" B/LFS problems there's one nasty thing, where i don't know if i've a chance to fix it:
Looks like some time after booting the gpu hangs. Until next reboot.
dmesg shows this:
Code:[ 17.255883] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready
[ 2711.831454] [drm:fw_domains_get [i915]] *ERROR* render: timed out waiting for forcewake ack request
.
[ 2711.831525] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by fw_domains_get+0x162/0x1b0 [i915]
[ 2711.836622] ------------[ cut here ]------------
[ 2711.836623] i915 0000:00:02.0: GT thread status wait timed out
[ 2711.836641] WARNING: CPU: 2 PID: 108 at drivers/gpu/drm/i915/intel_uncore.c:335 __gen6_gt_wait_for_thread_c0+0x7f/0x90 [i915]
[ 2711.836693] Modules linked in: i915 video iosf_mbi ttm mei_me mei
[ 2711.836703] CPU: 2 PID: 108 Comm: kworker/2:1H Tainted: G W 5.15.7 #1
[ 2711.836708] Hardware name: BIOSTAR Group TH61 ITX/TH61 ITX, BIOS 4.6.4 06/01/2011
[ 2711.836710] Workqueue: events_highpri heartbeat [i915]
[ 2711.836767] RIP: 0010:__gen6_gt_wait_for_thread_c0+0x7f/0x90 [i915]
[ 2711.836818] Code: 1d 00 01 48 8b 78 08 4c 8b 67 50 4d 85 e4 75 03 4c 8b 27 e8 93 d7 6c c6 4c 89 e2 48 c7 c7 30 09 3b c0 48 89 c6 e8 86 d7 a8 c6 <0f> 0b eb bc 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 55 49 89 fd
[ 2711.836822] RSP: 0018:ffffa11c40163c50 EFLAGS: 00010082
[ 2711.836826] RAX: 0000000000000000 RBX: ffff8987008f07d0 RCX: 0000000000000027
[ 2711.836829] RDX: ffff898837b1b2d8 RSI: 0000000000000001 RDI: ffff898837b1b2d0
[ 2711.836832] RBP: 0000027765c2b175 R08: ffffffff8772bd48 R09: 00000000ffffdfff
[ 2711.836835] R10: ffffffff8764bd60 R11: ffffffff8764bd60 R12: ffff8987009b05b0
[ 2711.836837] R13: ffff8987008f0000 R14: ffff8987008f07e8 R15: ffff898837b24505
[ 2711.836840] FS: 0000000000000000(0000) GS:ffff898837b00000(0000) knlGS:0000000000000000
[ 2711.836844] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2711.836847] CR2: 00007f43b1750030 CR3: 000000002900c002 CR4: 00000000000606e0
[ 2711.836850] Call Trace:
[ 2711.836855] <TASK>
[ 2711.836857] gen6_read32+0xa7/0x160 [i915]
[ 2711.836909] intel_gt_coredump_alloc+0x126/0x710 [i915]
[ 2711.836966] i915_gpu_coredump+0x54/0x460 [i915]
[ 2711.837020] i915_capture_error_state+0xa/0x70 [i915]
[ 2711.837074] intel_gt_handle_error+0x359/0x370 [i915]
[ 2711.837136] ? lock_timer_base+0x5c/0x80
[ 2711.837143] ? mod_delayed_work_on+0x52/0x90
[ 2711.837149] heartbeat+0x3a4/0x3c0 [i915]
[ 2711.837205] process_one_work+0x1b1/0x310
[ 2711.837211] worker_thread+0x48/0x3d0
[ 2711.837216] ? process_one_work+0x310/0x310
[ 2711.837221] kthread+0x122/0x140
[ 2711.837225] ? set_kthread_struct+0x30/0x30
[ 2711.837229] ret_from_fork+0x22/0x30
[ 2711.837234] </TASK>
[ 2711.837236] ---[ end trace 8e91c8caa275c465 ]---
[ 2711.887251] [drm:fw_domains_get [i915]] *ERROR* render: timed out waiting for forcewake ack request.
[ 2711.887312] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by fw_domains_get+0x162/0x1b0 [i915]
[ 2711.942424] [drm:fw_domains_get [i915]] *ERROR* render: timed out waiting for forcewake ack request.
[ 2711.942482] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by fw_domains_get+0x162/0x1b0 [i915]When this happend, prboom (which before ran as expected) just shows this on startup:
Code:Failed to create hardware context.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 96
Current serial number in output stream: 97
M_LoadDefaults: Load system defaults.
default file: /home/wk/.prboom-plus/prboom-plus.cfg
found /usr/share/prboom-plus/prboom-plus.wad
PrBoom-Plus v2.6.1um (https://github.com/coelckers/prboom-plus)
I_SetAffinityMask: manual affinity mask is 1(Fun fact: Via ssh -Y ... it still works remotly)
Also MPlayer then just shows a black window with no video in it, audio still running, in the console couples of:
Code:Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 1280x720 => 1280x720 Planar YV12
A: 0.1 V: 0.0 A-V: 0.057 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 ESC[J
X11 error: BadAlloc (insufficient resources for operation)
A: 0.1 V: 0.0 A-V: 0.029 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 ESC[J
X11 error: BadAlloc (insufficient resources for operation)
A: 0.1 V: 0.1 A-V: -0.000 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 ESC[J
X11 error: BadAlloc (insufficient resources for operation)This happens with both original linux-5.13.12 and also linux-5.15.7 in BLFS-11.
On the same hardware, theres also running an older BLFS (approx. 7.6) with linux 3.15.1 like a charm (for a couple of years now). Including prboom, MPlayer,...
Any help would be highly appreciated.
Cheers,
WK