[Bug 259670] graphics/drm-kmod: sporadic GPU hang with i915kms

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259670

--- Comment #2 from Oleh Vinichenko <[email protected]> ---
for testing purposes i updated for latest HEAD of drm-kmod and ran for a day
with
sway, which after some time resulted in kernel crash. Here is the debugger
information:

Reading symbols from
/usr/obj/usr/src/amd64.amd64/sys/CHAKLUNCHIK/kernel.full...

Unread portion of the kernel message buffer:
drmn0: GPU HANG: ecode 6:1:00000000, in sway [100963]


Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address   = 0x61
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80999d27
stack pointer           = 0x28:0xfffffe001b159b80
frame pointer           = 0x28:0xfffffe001b159bc0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (linuxkpi_short_wq_3)
trap number             = 12
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:616
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:616
WARNING !drm_modeset_is_locked(&dev->mode_config.connection_mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:661

<4>WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
panic: page fault
cpuid = 2
time = 1637288382
KDB: stack backtrace:
#0 0xffffffff80773ebb at kdb_backtrace+0x6b
#1 0xffffffff80726fb7 at vpanic+0x187
#2 0xffffffff80726e23 at panic+0x43
#3 0xffffffff80a43fd7 at trap_fatal+0x387
#4 0xffffffff80a4402f at trap_pfault+0x4f
#5 0xffffffff80a437a0 at trap+0x4a0
#6 0xffffffff80a1c878 at calltrap+0x8
#7 0xffffffff80999e1d at kmem_free+0x2d
#8 0xffffffff81d6633c at __i915_gpu_coredump_free+0xfc
#9 0xffffffff81d3d4e9 at intel_gt_handle_error+0xa9
#10 0xffffffff81d2bef0 at heartbeat+0x110
#11 0xffffffff808f19fd at linux_work_fn+0xed
#12 0xffffffff807889d7 at taskqueue_run_locked+0x197
#13 0xffffffff80789d03 at taskqueue_thread_loop+0xc3
#14 0xffffffff806e48ae at fork_exit+0x8e
#15 0xffffffff80a1d8ee at fork_trampoline+0xe
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:616
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:616
WARNING !drm_modeset_is_locked(&dev->mode_config.connection_mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:661

<4>WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
Uptime: 15h52m16s
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:616
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:616
WARNING !drm_modeset_is_locked(&dev->mode_config.connection_mutex) failed at
/var/src/drm-kmod/drivers/gpu/drm/drm_atomic_helper.c:661

<4>WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
Dumping 1930 out of 16242 MB:..1% (CTRL-C to abort)
..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.