On Tue, Oct 17, 2023 at 10:07:14AM +1100, Matthew Green wrote: > > panic: kernel diagnostic assertion "offset < map->dm_maps" failed: file > > "/usr/src/sys/arch/x86/x86/bus_dma.c", line 826 bad offset 0x0 >= 0x0 > > this is from: > > KASSERTMSG(offset < map->dm_mapsize, > "bad offset 0x%"PRIxBUSADDR" >= 0x%"PRIxBUSSIZE, > offset, map->dm_mapsize); > > the mapsize being zero indicates that there's nothing mapped > currently in this dma map, so there's nothing to sync. ie, > the caller seems to be trying to sync something not mapped. > > can you post the full back trace?
Sure: (gdb) bt #0 0xffffffff80239c75 in cpu_reboot () #1 0xffffffff80ddb28d in kern_reboot () #2 0xffffffff80e21798 in vpanic () #3 0xffffffff80fe6e5f in kern_assert () #4 0xffffffff8058be67 in bus_dmamap_sync () #5 0xffffffff8044edc7 in rge_rxeof () #6 0xffffffff804536fd in rge_intr () #7 0xffffffff80592c15 in intr_biglock_wrapper () #8 0xffffffff80214405 in Xhandle_ioapic_edge18 () #9 0xffffffff8023547d in x86_mwait () #10 0xffffffff805819d0 in acpicpu_cstate_idle () #11 0xffffffff80dbe5d6 in idle_loop () #12 0xffffffff80210327 in lwp_trampoline () #13 0x0000000000000000 in ?? () Thomas