Bug 90155 - [i915] linux 3.19 and 4.0 make screen freeze when there are some oops occur.
Summary: [i915] linux 3.19 and 4.0 make screen freeze when there are some oops occur.
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-23 10:13 UTC by Zuyi Hu
Modified: 2017-07-24 22:47 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
myoops kernel module (538 bytes, application/x-gtar)
2015-04-23 10:13 UTC, Zuyi Hu
no flags Details

Description Zuyi Hu 2015-04-23 10:13:51 UTC
Created attachment 115292 [details]
myoops kernel module

I am using an asus laptop with intel i7 4700HQ haswell chips and intel hd 4600 gpu, those days I have experienced screen freeze when using linux kernel 3.19 and 4.0,and the magic is working, so the kernel doesn't crash.

then I found that if I use x window and there are some oops in kernel, if I do something, like move the cursor, or exit the terminal, then the screen will freeze.
(I found this problem by writing this oops module named myoops.c and insmod it, you can see attachment, you can test this by download attachment and follow those command:

tar xzvf myoops.tar.gz
cd myoops
make 
sudo insmod myoops.ko

then the screen may freeze.)

I also test above oops module on my virtualbox virtual machine and the screen won't freeze, so I think it must be the intel gpu driver's problem.

so I began to find which commit cause this problem,  I build a number of linux kernel ,finally I found the problem is cause by this patch: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/gpu/drm/drm_fb_helper.c?id=9aa609e1a3846d3c17087b62579867bab0f488de ,

if I revert this patch and build kernel 3.19 or 4.0, and insmod the oops module, the screen won't freeze again.

So what's problem about this patch, who can help me to fix screen freeze?
I am using archlinux x86_64.
Comment 1 Chris Wilson 2015-04-23 10:43:32 UTC
Disabling the fbdev panic handler (by disabling fbdev) is an effective workaround...
Comment 2 Jani Nikula 2015-08-18 15:00:15 UTC
commit c50bfd08d60cefbe1714c4a53b1c325982858549
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Jul 28 13:18:40 2015 +0200

    drm/fbdev: Return -EBUSY when oopsing


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.