[Bug 266315] linuxkpi panic after recent updates (13.1-STABLE #0 stable/13-9cbba5950: Wed Sep 7 23:42:41 CEST 2022)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 23 Feb 2023 01:47:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266315

--- Comment #45 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Paul Dufresne from comment #44)
- userptr isn't supported on FreeBSD except the unstable version per
https://github.com/FreeBSDDesktop/kms-drm/issues/197
- xf86-video-intel prefers the unstable version since
https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/commit/dd66ba8e5666
- drm-515-kmod no longer supports the unstable version since
https://github.com/torvalds/linux/commit/c6bcc0c2fdfd

Given the above one can try disabling userptr in xf86-video-intel e.g.,

--- src/sna/kgem.c.orig 2021-01-15 20:59:05 UTC
+++ src/sna/kgem.c
@@ -68,7 +68,7 @@ search_snoop_cache(struct kgem *kgem, unsigned int num
 #define DBG_NO_CACHE_LEVEL 0
 #define DBG_NO_CPU 0
 #define DBG_NO_CREATE2 0
-#define DBG_NO_USERPTR 0
+#define DBG_NO_USERPTR 1
 #define DBG_NO_UNSYNCHRONIZED_USERPTR 0
 #define DBG_NO_COHERENT_MMAP_GTT 0
 #define DBG_NO_LLC 0

-- 
You are receiving this mail because:
You are on the CC list for the bug.