Summary: | Regression on Atom graphics ("black screen of death", EeePc 1015? Pineview only?): kernel BUG with 3.16.x | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | Erich Schubert <erich> | ||||||||
Component: | DRM/Intel | Assignee: | Intel GFX Bugs mailing list <intel-gfx-bugs> | ||||||||
Status: | CLOSED FIXED | QA Contact: | Intel GFX Bugs mailing list <intel-gfx-bugs> | ||||||||
Severity: | normal | ||||||||||
Priority: | high | CC: | acecile, intel-gfx-bugs, jargon | ||||||||
Version: | unspecified | ||||||||||
Hardware: | x86 (IA32) | ||||||||||
OS: | Linux (All) | ||||||||||
URL: | http://bugs.debian.org/768027 | ||||||||||
Whiteboard: | |||||||||||
i915 platform: | i915 features: | ||||||||||
Attachments: |
|
Description
Erich Schubert
2014-11-30 21:57:50 UTC
A drm.debug=7 dmesg culminating with the oops would be useful. Created attachment 110320 [details]
3.16 kernel log with drm.debug=7
Here we go (log with drm.debug)
Thx
Hi! I can confirm this bug for the Samsung N210 netbook, Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-13) ) #1 SMP Debian 3.16.7-2 (2014-11-06): Dec 9 19:21:42 hostname kernel: [ 15.754683] samsung_laptop: Disabling ACPI video driver Dec 9 19:21:42 hostname kernel: [ 15.772261] samsung_laptop: enabled workaround for brightness stepping quirk Dec 9 19:21:42 hostname kernel: [ 15.773588] samsung_laptop: detected SABI interface: SwSmi@ Dec 9 19:21:42 hostname kernel: [ 15.780503] [drm:i915_irq_handler] *ERROR* pipe B underrun Dec 9 19:21:42 hostname kernel: [ 15.789700] ------------[ cut here ]------------ Dec 9 19:21:42 hostname kernel: [ 15.789719] kernel BUG at /build/linux-Y9HjRe/linux-3.16.7/drivers/gpu/drm/i915/i915_gem_stolen.c:431! Dec 9 19:21:42 hostname kernel: [ 15.789732] invalid opcode: 0000 [#1] SMP Dec 9 19:21:42 hostname kernel: [ 15.789743] Modules linked in: samsung_laptop(+) snd_hda_controller cfg80211 snd_hda_codec i915(+) coretemp snd_hwdep 6lowpan_iphc snd_pcm psmouse rfkill snd_timer lpc_ich evdev mfd_core serio_raw snd drm_kms_helper i2c_i801 soundcore drm tpm_tis battery i2c_algo_bit ac tpm i2c_core video button shpchp acpi_cpufreq processor fuse parport_pc ppdev lp parport autofs4 ext4 crc16 mbcache jbd2 xts gf128mul algif_skcipher af_alg dm_crypt dm_mod sg sd_mod crc_t10dif crct10dif_generic crct10dif_common ahci libahci libata scsi_mod ehci_pci uhci_hcd ehci_hcd usbcore usb_common sky2 thermal thermal_sys Dec 9 19:21:42 hostname kernel: [ 15.789907] CPU: 0 PID: 271 Comm: systemd-udevd Not tainted 3.16.0-4-amd64 #1 Debian 3.16.7-2 Dec 9 19:21:42 hostname kernel: [ 15.789920] Hardware name: SAMSUNG ELECTRONICS CO., LTD. N150/N210/N220 /N150/N210/N220 , BIOS 05JI.M039.20100109.JIP 01/09/2010 Dec 9 19:21:42 hostname kernel: [ 15.789936] task: ffff88003600e2d0 ti: ffff880078efc000 task.ti: ffff880078efc000 Dec 9 19:21:42 hostname kernel: [ 15.789950] RIP: 0010:[<ffffffffa03bb0aa>] [<ffffffffa03bb0aa>] i915_gem_object_create_stolen_for_preallocated+0x26a/0x2e0 [i915] Dec 9 19:21:42 hostname kernel: [ 15.790028] RSP: 0018:ffff880078eff990 EFLAGS: 00010206 Dec 9 19:21:42 hostname kernel: [ 15.790039] RAX: 0000000000000000 RBX: ffff880078d47b70 RCX: 0000000000139000 Dec 9 19:21:42 hostname kernel: [ 15.790050] RDX: 00000000001d4c00 RSI: 00000000001d4c00 RDI: ffff880078d47800 Dec 9 19:21:42 hostname kernel: [ 15.790062] RBP: ffff88007bdd0000 R08: ffff88007bdd0004 R09: ffff880078f50d00 Dec 9 19:21:42 hostname kernel: [ 15.790073] R10: 0000000000000003 R11: ffff880078d47b40 R12: 0000000000139000 Dec 9 19:21:42 hostname kernel: [ 15.790085] R13: ffff880078d47800 R14: 00000000001d4c00 R15: 00000000001d4c00 Dec 9 19:21:42 hostname kernel: [ 15.790098] FS: 00007f3a0827e880(0000) GS:ffff88007f200000(0000) knlGS:0000000000000000 Dec 9 19:21:42 hostname kernel: [ 15.790112] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Dec 9 19:21:42 hostname kernel: [ 15.790123] CR2: 00007f3a082b1000 CR3: 000000007bc76000 CR4: 00000000000007f0 Dec 9 19:21:42 hostname kernel: [ 15.790134] Stack: Dec 9 19:21:42 hostname kernel: [ 15.790142] ffff88007bdd0004 ffff880078d47b70 ffff880078d47800 ffff88007bdd0000 Dec 9 19:21:42 hostname kernel: [ 15.790160] ffff880078eff9e4 ffff88007a084000 0000000000000042 ffffffffa03ecfd2 Dec 9 19:21:42 hostname kernel: [ 15.790178] 0000000000000004 0000000000000093 0000000000000093 0000000000000000 Dec 9 19:21:42 hostname kernel: [ 15.790196] Call Trace: Dec 9 19:21:42 hostname kernel: [ 15.790271] [<ffffffffa03ecfd2>] ? intel_modeset_init+0x8e2/0x1370 [i915] Dec 9 19:21:42 hostname kernel: [ 15.790351] [<ffffffffa0418870>] ? i915_driver_load+0xb20/0x1000 [i915] Dec 9 19:21:42 hostname kernel: [ 15.790369] [<ffffffff813f75b0>] ? powercap_register_zone+0x680/0x680 Dec 9 19:21:42 hostname kernel: [ 15.790386] [<ffffffff812a9ed0>] ? cleanup_uevent_env+0x10/0x10 Dec 9 19:21:42 hostname kernel: [ 15.790402] [<ffffffff812aa27d>] ? kobject_uevent_env+0x17d/0x6b0 Dec 9 19:21:42 hostname kernel: [ 15.790423] [<ffffffff814f995b>] ? klist_add_tail+0x1b/0x40 Dec 9 19:21:42 hostname kernel: [ 15.790438] [<ffffffff8139c149>] ? device_add+0x219/0x610 Dec 9 19:21:42 hostname kernel: [ 15.790466] [<ffffffffa02783b4>] ? drm_dev_register+0xa4/0x100 [drm] Dec 9 19:21:42 hostname kernel: [ 15.790493] [<ffffffffa027ada8>] ? drm_get_pci_dev+0x88/0x1f0 [drm] Dec 9 19:21:42 hostname kernel: [ 15.790510] [<ffffffff812dfedf>] ? local_pci_probe+0x3f/0xa0 Dec 9 19:21:42 hostname kernel: [ 15.790524] [<ffffffff812e119a>] ? pci_device_probe+0xda/0x130 Dec 9 19:21:42 hostname kernel: [ 15.790541] [<ffffffff8139f0cd>] ? driver_probe_device+0x9d/0x3d0 Dec 9 19:21:42 hostname kernel: [ 15.790556] [<ffffffff8139f4cb>] ? __driver_attach+0x8b/0x90 Dec 9 19:21:42 hostname kernel: [ 15.790571] [<ffffffff8139f440>] ? __device_attach+0x40/0x40 Dec 9 19:21:42 hostname kernel: [ 15.790585] [<ffffffff8139d1db>] ? bus_for_each_dev+0x5b/0x90 Dec 9 19:21:42 hostname kernel: [ 15.790600] [<ffffffff8139e760>] ? bus_add_driver+0x180/0x250 Dec 9 19:21:42 hostname kernel: [ 15.790624] [<ffffffffa0341000>] ? 0xffffffffa0340fff Dec 9 19:21:42 hostname kernel: [ 15.790638] [<ffffffff8139fc1b>] ? driver_register+0x5b/0xe0 Dec 9 19:21:42 hostname kernel: [ 15.790653] [<ffffffff8100213c>] ? do_one_initcall+0xcc/0x200 Dec 9 19:21:42 hostname kernel: [ 15.790670] [<ffffffff810d8aaa>] ? load_module+0x20da/0x26b0 Dec 9 19:21:42 hostname kernel: [ 15.790684] [<ffffffff810d46b0>] ? store_uevent+0x40/0x40 Dec 9 19:21:42 hostname kernel: [ 15.790701] [<ffffffff810d91dd>] ? SyS_finit_module+0x7d/0xa0 Dec 9 19:21:42 hostname kernel: [ 15.790718] [<ffffffff8150cc2d>] ? system_call_fast_compare_end+0x10/0x15 Dec 9 19:21:42 hostname kernel: [ 15.790729] Code: df e8 3b 12 ec ff eb ae 41 89 c8 48 c7 c7 c0 3b 42 a0 89 d1 31 c0 89 f2 48 c7 c6 18 3a 43 a0 e8 fd cd eb ff e9 d6 fd ff ff 0f 0b <0f> 0b be b2 01 00 00 48 c7 c7 80 37 43 a0 e8 13 a7 ca e0 31 c0 Dec 9 19:21:42 hostname kernel: [ 15.790850] RIP [<ffffffffa03bb0aa>] i915_gem_object_create_stolen_for_preallocated+0x26a/0x2e0 [i915] Dec 9 19:21:42 hostname kernel: [ 15.790929] RSP <ffff880078eff990> Dec 9 19:21:42 hostname kernel: [ 15.790944] ---[ end trace 4cd82bf016c2d973 ]--- Created attachment 110791 [details]
dmesg with drm.debug=7
Note: I bootet the system, got the lockup, but I had forgotten to put drm.debug=7 on the boot command line first. At the second boot (with debug=7), the system booted correctly; on the third attempt (with debug=7), drm crashed again. I am able to login via ssh to the system to access the logs.
The first difference is right before the BUG_ON is triggered:
---[unsuccessful]---
[drm:i9xx_get_plane_config] pipe/plane 1/1 with fb: size=640x400@32, offset=1d4c00, pitch 3200, size 0x139000
[drm:i915_gem_object_create_stolen_for_preallocated] creating preallocated stolen object: stolen_offset=1d4c00, gtt_offset=1d4c00, size=139000
kernel BUG at /build/linux-cizhNw/linux-3.16.7/drivers/gpu/drm/i915/i915_gem_stolen.c:431!
--- 8>< --
---[successful]---
[drm:i9xx_get_plane_config] pipe/plane 1/1 with fb: size=640x400@32, offset=0, pitch 3200, size 0x139000
[drm:i915_gem_object_create_stolen_for_preallocated] creating preallocated stolen object: stolen_offset=0, gtt_offset=0, size=139000
[drm:i915_pages_create_for_stolen] offset=0x0, size=1282048
--- 8>< --
Note the offset in i9xx_get_plane_config not being 0 in the unsuccessful boot.
So we have a patch and a ton of bikeshedding at [1]. Please try the patch and let's see if we can move this bug in some direction. Thanks. [1] http://patchwork.freedesktop.org/patch/38659 (In reply to Jani Nikula from comment #5) > So we have a patch and a ton of bikeshedding at [1]. Please try the patch > and let's see if we can move this bug in some direction. Thanks. > > [1] http://patchwork.freedesktop.org/patch/38659 Thanks! With this patch I can boot without problems: Jan 22 01:35:19 hostname kernel: samsung_laptop: Disabling ACPI video driver Jan 22 01:35:19 hostname kernel: samsung_laptop: enabled workaround for brightness stepping quirk Jan 22 01:35:19 hostname kernel: samsung_laptop: detected SABI interface: SwSmi@ Jan 22 01:35:19 hostname mtp-probe[290]: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8" Jan 22 01:35:19 hostname mtp-probe[290]: bus: 1, device: 3 was not an MTP device Jan 22 01:35:19 hostname kernel: [drm] Memory usable by graphics device = 512M Jan 22 01:35:19 hostname kernel: [drm] Replacing VGA console driver Jan 22 01:35:19 hostname kernel: Console: switching to colour dummy device 80x25 Jan 22 01:35:19 hostname kernel: i915 0000:00:02.0: irq 47 for MSI/MSI-X Jan 22 01:35:19 hostname kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). Jan 22 01:35:19 hostname kernel: [drm] Driver supports precise vblank timestamp query. Jan 22 01:35:19 hostname kernel: vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem Jan 22 01:35:19 hostname kernel: iTCO_vendor_support: vendor-support=0 Jan 22 01:35:19 hostname kernel: [drm] initialized overlay support Sorry for the long delay in getting around to do a proper patch. Please test: https://freedesktop.org/patch/42259/ Created attachment 113497 [details] [review] The patch in https://freedesktop.org/patch/42259/ adapted to Debian Jessie's linux_3.16.7-ckt4-3 (In reply to Daniel Vetter from comment #7) > Sorry for the long delay in getting around to do a proper patch. Please test: > > https://freedesktop.org/patch/42259/ Thanks Daniel! I had to adapt v3 of your patch (md5 9deb80da202eed38964d3059ec1e39d0) to Debian Jessie's kernel 3.16.7-ckt4-3 (see attachment 113497 [details] [review]), but after that it worked! Fixed by commit f37b5c2be8979993efee2da50b51126e3908eb8b Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Tue Feb 10 23:12:27 2015 +0100 drm/i915: Align initial plane backing objects correctly in drm-intel-fixes. |
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.