On Thu, Oct 17, 2019 at 05:38:50PM +0000, Mikolaj Kucharski wrote:
> On Fri, Oct 18, 2019 at 01:10:08AM +1100, Jonathan Gray wrote:
> > > With intel driver compiled with above Git commit Xorg dies with:
> > > 
> > > Fatal server error:
> > > [   137.310] (EE) __kgem_bo_map__cpu:697 assertion 'err != -EINVAL || 
> > > bo->prime' failed
> > 
> > What is the value of err when this occurs?
> 
> It was later in the email, in the Xorg.0.log output, see below.
> 
> > The ktrace output at around this point would also help.
> 
> Ok, will try to get this.

Ok, I have `bt full` output, ktrace / kdump output and Xorg.0.log from
that particular crash.


(gdb) bt full
#0  thrkill () at -:3
No locals.
#1  0x000009584758fefe in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
        mask = 4294967263
        sa = <optimized out>
#2  0x00000955a6e3686a in OsAbort ()
No symbol table info available.
#3  0x00000955a6e3d4ee in AbortServer ()
No symbol table info available.
#4  0x00000955a6e3bc6b in FatalError ()
No symbol table info available.
#5  0x00000957f83c7ffe in __kgem_bo_map__cpu (kgem=0x9583ec3a000, 
bo=0x9582faf9a00)
    at 
/home/mkucharski/openbsd/xenocara/driver/xf86-video-intel/src/sna/kgem.c:697
        arg = {handle = 3, pad = 0, offset = 0, size = 65536, addr_ptr = 3}
        err = -22
#6  0x00000957f83ddf80 in kgem_bo_map__cpu (kgem=0x9583ec3a000, 
bo=0x9582faf9a00)
    at 
/home/mkucharski/openbsd/xenocara/driver/xf86-video-intel/src/sna/kgem.c:6969
No locals.
#7  0x00000957f83cbf1a in kgem_new_batch (kgem=0x9583ec3a000)
    at 
/home/mkucharski/openbsd/xenocara/driver/xf86-video-intel/src/sna/kgem.c:1843
        last = 0x0
        flags = 1028
#8  0x00000957f83ca08b in kgem_init (kgem=0x9583ec3a000, fd=9, 
dev=0x95821c33160, gen=74)
    at 
/home/mkucharski/openbsd/xenocara/driver/xf86-video-intel/src/sna/kgem.c:2099
        totalram = 0
        half_gpu_max = 0
        i = 2
        j = 16
        gtt_size = 140187732475152
#9  0x00000957f84e0ed5 in sna_pre_init (scrn=0x9589275c000, probe=0)
    at 
/home/mkucharski/openbsd/xenocara/driver/xf86-video-intel/src/sna/sna_driver.c:626
        sna = 0x9583ec3a000
        buf = "x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2", '\000' 
<repeats 12 times>, 
"r\244͏\244E\322\365\350\377\376\377\177\177\000\000\031\340\343\204X\t\000\000@\001\377\377\177\177\000\000\260J(\370W\t\000\000\377\330YGX\t\000\000\000\274\277CX\t\000\000\002\000\000\000\000\000\000\000\a",
 '\000' <repeats 15 times>, 
"r\244͏\244E\322\365\070\000\377\377\177\177\000\000\031\340\343\204X\t\000\000\000\000\000\000\000\000\000\000\270K(\370W\t\000\000É(\370W\t\000\000\b\244NGX\t\000\000\000(Ȕ"...
        defaultWeight = {red = 0, green = 0, blue = 0}
        pEnt = 0x9589275d7c0
        zeros = {red = 0, green = 0, blue = 0}
        fd = 9
#10 0x00000955a6ce45b2 in InitOutput ()
No symbol table info available.
#11 0x00000955a6c9a35a in dix_main ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#12 0x00000955a6c8113b in ___start ()
No symbol table info available.
#13 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) quit



[    17.130] 
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[    17.130] Build Operating System: OpenBSD 6.6 amd64 
[    17.130] Current Operating System: OpenBSD mbx-0013.home.lan 6.6 
GENERIC.MP#378 amd64
[    17.130] Build Date: 16 October 2019  11:31:40PM
[    17.130]  
[    17.130] Current version of pixman: 0.38.4
[    17.131]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    17.131] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    17.131] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 17 17:52:57 
2019
[    17.133] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    17.133] (==) Using system config directory 
"/usr/X11R6/share/X11/xorg.conf.d"
[    17.137] (==) No Layout section.  Using the first Screen section.
[    17.137] (==) No screen section available. Using defaults.
[    17.138] (**) |-->Screen "Default Screen Section" (0)
[    17.138] (**) |   |-->Monitor "<default monitor>"
[    17.139] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[    17.139] (**) |   |-->Device "Intel driver settings"
[    17.139] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    17.139] (**) Option "NoTrapSignals" "on"
[    17.139] (==) Automatically adding devices
[    17.139] (==) Automatically enabling devices
[    17.139] (==) Not automatically adding GPU devices
[    17.139] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    17.149] (**) FontPath set to:
        /usr/local/share/fonts/spleen,
        /usr/X11R6/lib/X11/fonts/misc/,
        /usr/X11R6/lib/X11/fonts/TTF/,
        /usr/X11R6/lib/X11/fonts/OTF/,
        /usr/X11R6/lib/X11/fonts/Type1/,
        /usr/X11R6/lib/X11/fonts/100dpi/,
        /usr/X11R6/lib/X11/fonts/75dpi/
[    17.149] (==) ModulePath set to "/usr/X11R6/lib/modules"
[    17.149] (II) The server relies on wscons to provide the list of input 
devices.
        If no devices become available, reconfigure wscons or disable 
AutoAddDevices.
[    17.149] (II) Loader magic: 0x955a6e48000
[    17.150] (II) Module ABI versions:
[    17.150]    X.Org ANSI C Emulation: 0.4
[    17.150]    X.Org Video Driver: 24.0
[    17.150]    X.Org XInput driver : 24.1
[    17.150]    X.Org Server Extension : 10.0
[    17.216] (--) Using wscons driver on /dev/ttyC4
[    17.232] (WW) checkDevMem: failed to open /dev/xf86 and /dev/mem
        (Operation not permitted)
        Check that you have set 'machdep.allowaperture=1'
        in /etc/sysctl.conf and reboot your machine
        refer to xf86(4) for details
[    17.232]    linear framebuffer access unavailable
[    17.232] (--) PCI:*(0@0:2:0) 8086:5916:19e5:3e02 rev 2, Mem @ 
0xa0000000/16777216, 0x90000000/268435456, I/O @ 0x00004000/64
[    17.232] (II) LoadModule: "glx"
[    17.236] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[    17.253] (II) Module glx: vendor="X.Org Foundation"
[    17.253]    compiled for 1.20.5, module version = 1.0.0
[    17.253]    ABI class: X.Org Server Extension, version 10.0
[    17.253] (II) LoadModule: "intel"
[    17.254] (II) Loading /usr/X11R6/lib/modules/drivers/intel_drv.so
[    17.259] (II) Module intel: vendor="X.Org Foundation"
[    17.259]    compiled for 1.20.5, module version = 2.99.917
[    17.259]    Module class: X.Org Video Driver
[    17.259]    ABI class: X.Org Video Driver, version 24.0
[    17.260] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    17.262] (II) intel: Driver for Intel(R) HD Graphics
[    17.262] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    17.262] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    17.299] sna_init_scrn: entity_num=0
[    17.299] (II) intel(0): Using Kernel Mode Setting driver: i915, version 
1.6.0 20180719
[    17.299] SNA compiled with full debug logging; expect to run slowly
[    17.299] (II) intel(0): SNA compiled with assertions enabled
[    17.300] (II) intel(0): SNA compiled with memory allocation reporting 
enabled
[    17.300] (II) intel(0): SNA compiled with extra pixmap/damage validation
[    17.300] xf86-video-intel version: not compiled from git
[    17.300] pixman version: 0.38.4
[    17.300] sna_pre_init flags=0, numEntities=1
[    17.301] sna_acpi_open
[    17.302] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 
620
[    17.302] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, 
avx, avx2; using a maximum of 1 threads
[    17.302] (II) intel(0): Creating default Display subsection in Screen 
section
        "Default Screen Section" for depth/fbbpp 24/32
[    17.302] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    17.302] (==) intel(0): RGB weight 888
[    17.302] (==) intel(0): Default visual is TrueColor
[    17.302] (**) intel(0): Option "TearFree" "on"
[    17.302] kgem_init: fd=9, gen=74
[    17.303] kgem_init: has BLT ring? 1
[    17.303] kgem_init: has relaxed delta? 1
[    17.303] kgem_init: has relaxed fencing? 1
[    17.303] kgem_init: has coherent writes into GTT maps? 0
[    17.303] kgem_init: has shared last-level-cache? 1
[    17.303] kgem_init: has write-through caching for scanouts? 0
[    17.304] kgem_init: has wc-mmapping? 1
[    17.304] kgem_init: has set-cache-level? 1
[    17.304] kgem_init: has userptr? 0
[    17.304] kgem_init: has create2? 0
[    17.304] kgem_init: has no-reloc? 1
[    17.304] kgem_init: has handle-lut? 1
[    17.304] kgem_init: semaphores enabled? 0
[    17.304] kgem_init: can blt to cpu? 1
[    17.304] gem_write(handle=1, offset=0, len=32)
[    17.304] kgem_init: can blit to Y-tiled surfaces? 1
[    17.304] kgem_init: can render to Y-tiled surfaces? 1
[    17.304] kgem_init: can scanout Y-tiled surfaces? 1
[    17.304] kgem_init: has dirty fb? 0
[    17.304] kgem_init: can use privileged batchbuffers? 0
[    17.304] kgem_init: can use pinned batchbuffers (to avoid CS w/a)? 1
[    17.304] kgem_init_pinned_batches: new handle=1, num_pages=1
[    17.305] __kgem_bo_init(handle=1, num_pages=1)
[    17.306] __kgem_bo_init(handle=1, num_pages=1)
[    17.306] __kgem_bo_init(handle=2, num_pages=4)
[    17.306] kgem_init: maximum batch size? 16384
[    17.306] kgem_create_linear(65536)
[    17.306] search_linear_cache: num_pages=16, flags=406, use_active? 0, 
use_large=0 [max=65536]
[    17.306] search_linear_cache: inactive and cache bucket empty
[    17.306] search_linear_cache: active cache bucket empty
[    17.306] kgem_create_linear: new handle=3, num_pages=16
[    17.306] __kgem_bo_init(handle=3, num_pages=16)
[    17.306] kgem_bo_map__cpu(handle=3, size=65536, map=0x0:0x0)
[    17.307] kgem_trim_vma_cache: type=1, count=-32767 (bucket: 4)
[    17.307] __kgem_bo_map__cpu: failed -22, throttling/cleaning caches
[    17.307] (EE) 
Fatal server error:
[    17.307] (EE) __kgem_bo_map__cpu:697 assertion 'err != -EINVAL || 
bo->prime' failed
[    17.307] (EE) 
[    17.307] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[    17.307] (EE) Please also check the log file at "/var/log/Xorg.0.log" for 
additional information.
[    17.307] (EE) 
[    17.310] (EE) Server terminated with error (1). Closing log file.


-- 
Regards,
 Mikolaj

Attachment: ktrace.Xorg.txt.gz
Description: application/gunzip

Reply via email to