]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix blank screen booting crashes
authorHugh Dickins <hughd@google.com>
Sat, 2 Oct 2021 10:17:29 +0000 (03:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 2 Oct 2021 16:39:15 +0000 (09:39 -0700)
commit4c5450444d478b81bcdfbc13a5a635208dfb2e7b
tree2b9739843598e59b4fb2526cde693dd6714aef8c
parent7a1360e5d9e210d7fcddbf3f02140b78b12de078
drm/i915: fix blank screen booting crashes

5.15-rc1 crashes with blank screen when booting up on two ThinkPads
using i915.  Bisections converge convincingly, but arrive at different
and suprising "culprits", none of them the actual culprit.

netconsole (with init_netconsole() hacked to call i915_init() when
logging has started, instead of by module_init()) tells the story:

kernel BUG at drivers/gpu/drm/i915/i915_sw_fence.c:245!
with RSI: ffffffff814d408b pointing to sw_fence_dummy_notify().
I've been building with CONFIG_CC_OPTIMIZE_FOR_SIZE=y, and that
function needs to be 4-byte aligned.

Fixes: d8d2ee02d17f ("drm/i915/guc: Support request cancellation")
Signed-off-by: Hugh Dickins <hughd@google.com>
Tested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/gt/intel_context.c