__kgem_bo_map__cpu:697 assertion 'err != -EINVAL || bo->prime' failed
Submitted by Mikolaj
Assigned to Chris Wilson @ickle
Link to original bug (#112040)
Description
I'm failing random Xorg crashes where I suspect intel_drv.so as the culprit. It happens on the Xorg start or often triggered by GIMP start or open file dialog in GIMP.
My system is Huawei MateBook X with Intel HD Graphics 620 running on OpenBSD:
OpenBSD 6.6-current (GENERIC.MP) #378: Wed Oct 16 23:06:01 MDT 2019
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
I've compiled commit bff5eca4 from https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel.git with --enable-debug=full option and during crash I see following in Xorg.0.log:
...
[ 137.310] sna_screen_init
[ 137.310] sna_accel_init
[ 137.310] sna_picture_init
[ 137.310] gen9_render_setup: gt=3
[ 137.310] uploaded 41600 bytes of static state
[ 137.310] kgem_create_linear(41600)
[ 137.310] search_linear_cache: num_pages=11, flags=2, use_active? 0, use_large=0 [max=65536]
[ 137.310] search_linear_cache: inactive and cache bucket empty
[ 137.310] search_linear_cache: active cache bucket empty
[ 137.310] kgem_create_linear: new handle=4, num_pages=11
[ 137.310] __kgem_bo_init(handle=4, num_pages=11)
[ 137.310] __kgem_bo_map__cpu: failed -22, throttling/cleaning caches
[ 137.310] (EE)
Fatal server error:
[ 137.310] (EE) __kgem_bo_map__cpu:697 assertion 'err != -EINVAL || bo->prime' failed
[ 137.310] (EE)
[ 137.310] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 137.310] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 137.310] (EE)
[ 137.311] (EE) Server terminated with error (1). Closing log file.
I have couple of logs like that. I've compressed them with xz(1) however there are max 10MB each.