Bug 90053

Summary: Fatal server error: has_coherent_ptr:1532 assertion '!priv->cpu_bo->needs_flush' failed
Product: xorg Reporter: Christian von Schultz <christian.bugs>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
journalctl /usr/bin/X --since='2015-04-08 13:09:53' --until='2015-04-08 13:12:29' _PID=502
none
journalctl /usr/bin/X --since='2015-04-16 13:22:21' --until='2015-04-16 15:15:26' _PID=496 none

Description Christian von Schultz 2015-04-16 13:33:51 UTC
Created attachment 115123 [details]
journalctl /usr/bin/X --since='2015-04-08 13:09:53' --until='2015-04-08 13:12:29' _PID=502

* Problem: Intermittent X crash (assertion failed)
* Symptoms: X session terminates, gdm gives me a new login screen.

I'm not yet sure how trigger the crash. It has happened to me twice now, but I haven't figured out what causes it or how to test for it.

* Error message in logs:
(EE) Backtrace:
(EE) 0: /usr/bin/Xorg (xorg_backtrace+0x48) [0x581ea8]
(EE) 1: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5c8fcff000+0x56277) [0x7f5c8fd55277]
(EE) 2: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5c8fcff000+0x6eecf) [0x7f5c8fd6decf]
(EE) 3: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5c8fcff000+0x3e32c) [0x7f5c8fd3d32c]
(EE) 4: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5c8fcff000+0x3e551) [0x7f5c8fd3d551]
(EE) 5: /usr/bin/Xorg (0x400000+0x11190c) [0x51190c]
(EE) 6: /usr/bin/Xorg (0x400000+0x338cd) [0x4338cd]
(EE) 7: /usr/bin/Xorg (0x400000+0x373ee) [0x4373ee]
(EE) 8: /usr/bin/Xorg (0x400000+0x3b1eb) [0x43b1eb]
(EE) 9: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x30e4621ad5]
(EE) 10: /usr/bin/Xorg (0x400000+0x2697e) [0x42697e]
(EE) Fatal server error:
(EE) has_coherent_ptr:1532 assertion '!priv->cpu_bo->needs_flush' failed

* Software involved:
X.Org X Server 1.17.1 (Release Date: 2015-02-10)
Distro: Gentoo.
Linux 3.18.11 (sys-kernel/gentoo-sources-3.18.11)

# equery list '*xorg*'
 * Searching for *xorg* ...
[IP-] [  ] x11-base/xorg-drivers-1.17:0
[IP-] [  ] x11-base/xorg-server-1.17.1-r1:0/1.17.1
[IP-] [  ] x11-base/xorg-x11-7.4-r2:0
[IP-] [  ] x11-misc/xorg-cf-files-1.0.5:0
# equery list 'x11-drivers/*'
 * Searching for * in x11-drivers ...
[IP-] [  ] x11-drivers/xf86-input-evdev-2.9.2:0
[IP-] [  ] x11-drivers/xf86-input-keyboard-1.8.0:0
[IP-] [  ] x11-drivers/xf86-input-mouse-1.9.1:0
[IP-] [  ] x11-drivers/xf86-input-synaptics-1.8.2:0
[IP-] [  ] x11-drivers/xf86-video-intel-2.99.917:0
[IP-] [  ] x11-drivers/xf86-video-nouveau-1.0.11:0
Comment 1 Christian von Schultz 2015-04-16 13:34:54 UTC
Created attachment 115124 [details]
journalctl /usr/bin/X --since='2015-04-16 13:22:21' --until='2015-04-16 15:15:26' _PID=496
Comment 2 Chris Wilson 2015-04-16 19:46:52 UTC
commit 574ab948af15c8deaf5afa11bd79b2ea2d9c202d
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Jan 7 14:08:05 2015 +0000

    sna: Add mmap(wc) handling to has_coherent_ptr assertion
    
    Extend the debuging sanity checks to also cover WC mappings.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 3 Chris Wilson 2015-04-16 19:47:30 UTC
Easiest w/a is not to enable the debugging assertions, or just use the git version.
Comment 4 Chris Wilson 2015-04-16 19:48:18 UTC
(Actually, fingers crossed that is the right bug!)

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.