NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/56815: Lenovo ThinkCentre with i915drmkms graphics fails to boot -current



The following reply was made to PR port-amd64/56815; it has been noted by GNATS.

From: Jarle Greipsland <jarle.greipsland%norid.no@localhost>
To: riastradh%NetBSD.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: port-amd64/56815: Lenovo ThinkCentre with i915drmkms graphics
 fails to boot -current
Date: Tue, 11 Jul 2023 14:33:04 +0200 (CEST)

 Taylor R Campbell <riastradh%NetBSD.org@localhost> writes:
 >> Date: Tue, 11 Jul 2023 12:56:48 +0200 (CEST)
 >> From: Jarle Greipsland <jarle.greipsland%norid.no@localhost>
 >> 
 >> A -current kernel as of today (GENERIC plus the above options
 >> plus DDB_ONPANIC=1) goes black and unresponsive as before, but
 >> now produces a crash dump!  The dmesg output from the dump and a
 >> ps listing from ditto below.  I also tried a bt/a command on the
 >> only non-idle running process, but the frame pointer might be
 >> mangled, or the crash program in question might not handle a
 >> newer crash dump correctly.  Let me know what you want me to look
 >> for.
 > 
 > Excellent!  Can you see if gdb does better about a stack trace?
 > 
 > $ gdb netbsd.gdb
 > (gdb) target kvm netbsd.1.core
 > (gdb) bt
 > 
 > Also, can you try with a newer crash?
 Extracts using a -current gdb and -current crash below.  The
 crash one seems relevant.
 
 				-jarle
 -- 
 "Things always look the darkest before they go completely black."
 
 $ gdb netbsd.gdb
 GNU gdb (GDB) 11.0.50.20200914-git
 Copyright (C) 2020 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Type "show copying" and "show warranty" for details.
 This GDB was configured as "x86_64--netbsd".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <https://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.
 
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from netbsd.gdb...
 (gdb) target kvm netbsd.1.core
 0xffffffff80239c85 in cpu_reboot (howto=howto@entry=256, 
     bootstr=bootstr@entry=0x0) at /usr/src/sys/arch/amd64/amd64/machdep.c:717
 717                     dumpsys();
 (gdb) bt
 #0  0xffffffff80239c85 in cpu_reboot (howto=howto@entry=256, 
     bootstr=bootstr@entry=0x0) at /usr/src/sys/arch/amd64/amd64/machdep.c:717
 #1  0xffffffff80dd5fee in kern_reboot (howto=howto@entry=256, 
     bootstr=bootstr@entry=0x0) at /usr/src/sys/kern/kern_reboot.c:73
 #2  0xffffffff80b5f873 in db_sync_cmd (addr=<optimized out>, 
     have_addr=<optimized out>, count=<optimized out>, modif=<optimized out>)
     at /usr/src/sys/ddb/db_command.c:1650
 #3  0xffffffff80b6001a in db_command (
     last_cmdp=last_cmdp@entry=0xffffdb023a6d8748)
     at /usr/src/sys/ddb/db_command.c:964
 #4  0xffffffff80b6060f in db_execute_commandlist (
     cmdlist=0xffffffff81873880 <db_cmd_on_enter> "bt;ps;show all tstiles/t;sync") at /usr/src/sys/ddb/db_command.c:460
 #5  db_command_loop () at /usr/src/sys/ddb/db_command.c:612
 #6  0xffffffff80b647d8 in db_trap (type=type@entry=6, code=code@entry=0)
     at /usr/src/sys/ddb/db_trap.c:91
 #7  0xffffffff80236b07 in kdb_trap (type=type@entry=6, code=code@entry=0, 
     regs=regs@entry=0xffffdb023a6d8a00)
     at /usr/src/sys/arch/amd64/amd64/db_interface.c:251
 #8  0xffffffff8023c274 in trap (frame=0xffffdb023a6d8a00)
     at /usr/src/sys/arch/amd64/amd64/trap.c:315
 #9  0xffffffff80234ad4 in alltraps ()
 #10 0xfffffffffffffff0 in ?? ()
 --Type <RET> for more, q to quit, c to continue without paging--
 #11 0x0000000000000001 in ?? ()
 #12 0x0000000000000001 in ?? ()
 #13 0x0000000000000000 in ?? ()
 
 crash
 
 bash-5.2$ crash -M netbsd.1.core -N netbsd.gdb 
 Crash version 10.99.5, image version 10.99.5.
 crash: _kvm_kvatop(0)
 Kernel compiled without options LOCKDEBUG.
 System panicked: dump forced via kernel debugger
 Backtrace from time of crash is available.
 crash> bt
 __kernel_end() at 0
 kern_reboot() at sys_reboot
 db_sync_cmd() at db_sifting_cmd
 db_command() at db_command+0x123
 db_command_loop() at db_command_loop+0x1c7
 db_trap() at db_trap+0xcc
 kdb_trap() at kdb_trap+0x106
 trap() at trap+0x2f4
 --- trap (number 6) ---
 mutex_oncpu() at mutex_oncpu+0x20
 mutex_vector_enter() at mutex_vector_enter+0xa7
 intel_rps_mark_interactive() at intel_rps_mark_interactive+0x1e
 intel_prepare_plane_fb() at intel_prepare_plane_fb+0x230
 drm_atomic_helper_prepare_planes() at drm_atomic_helper_prepare_planes+0x8f
 intel_atomic_commit() at intel_atomic_commit+0xb8
 drm_client_modeset_commit_atomic() at drm_client_modeset_commit_atomic+0x19a
 drm_client_modeset_commit_force() at drm_client_modeset_commit_force+0x4c
 drm_fb_helper_restore_fbdev_mode_unlocked() at drm_fb_helper_restore_fbdev_mode_
 unlocked+0x55
 drmfb_genfb_setmode() at drmfb_genfb_setmode+0x17
 genfb_attach() at genfb_attach+0x1af
 drmfb_attach() at drmfb_attach+0x23c
 intelfb_attach_task() at intelfb_attach_task+0x4e
 i915drmkms_attach_real() at i915drmkms_attach_real+0xb6
 config_mountroot_thread() at config_mountroot_thread+0x60
 crash> 
 


Home | Main Index | Thread Index | Old Index