Port-arm archive

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

Strange KASSERTs triggering on (some?) shark in -current



Hey folks,

I have a very strange issue: I recently ressurected one of my sharks
after its spinning disk died. After unsuccessfully trying various ATA<->SD
adapters I ended up with a working ATA<->CF adapter, and running some slightly
older -current on that machine works fine (9.99.71 from August 24 last year).

Trying a -current kernel (with old userland) fails spectacularily with
random KASSERT like this:

[ 107.6750871] panic: kernel diagnostic assertion "VALID_PSR(tf->tf_spsr)" failed: file "../../../../arch/arm/arm/syscall.c", line 104 spsr: 0x13
[ 107.6750871] cpu0: Begin traceback...
[ 107.6750871] 0xf422bdcc: netbsd:db_panic+0xc
[ 107.6750871] 0xf422bde4: netbsd:vpanic+0x11c
[ 107.6750871] 0xf422bdfc: netbsd:kern_assert+0x3c
[ 107.6750871] 0xf422bebc: netbsd:swi_handler+0xc8
[ 107.6750871] 0xf422bf64: netbsd:swi_entry+0x5c
[ 107.6750871] cpu0: End traceback...
[ 107.6750871] boot: howto=00000104 curlwp=0xf1191300
[ 107.6750871] current_mask=0000c3b8
[ 107.6750871] ipl_bio=ffffbf5f ipl_net=ffffbf5f ipl_tty=ffffbf5f ipl_vm=ffffbf5f
[ 107.6750871] ipl_clock=ffff3c5f ipl_none=ffffffff
[ 107.6750871] spl_masks[0]=ffffffff
[ 107.6750871] spl_masks[1]=ffffffff
[ 107.6750871] spl_masks[2]=ffffffff
[ 107.6750871] spl_masks[3]=ffffffff
[ 107.6750871] spl_masks[4]=ffffffff
[ 107.6750871] spl_masks[5]=ffffbf5f
[ 107.6750871] spl_masks[6]=ffff3c5f
[ 107.6750871] spl_masks[7]=ffff3c47


This happens after reaching multiuser but without any special action - maybe
some deamon (ntpd? dhcpcd?) doing something, but no user interaction.

It starts to get funny when I look at another shark, running same kernel
and latest userland too - that machine works fine.

Only differences between the machines is the amount of ram installed (96MB
one working, 64 MB one failing) and the concrete disk/CF-card.

Both dmesgs attached, diff between the two:

--- drowsy.dmesg	2021-04-12 16:21:51.650350122 +0200
+++ night-rest.dmesg	2021-04-12 18:51:13.021166985 +0200
@@ -6,8 +6,8 @@
 
 NetBSD 9.99.81 (GENERIC) #6: Mon Apr 12 15:09:50 CEST 2021
 	martin%martins.aprisoft.de@localhost:/usr/src/sys/arch/shark/compile/GENERIC
-total memory = 65536 KB
-avail memory = 58396 KB
+total memory = 98304 KB
+avail memory = 90508 KB
 timecounter: Timecounters tick every 15.625 msec
 mainbus0 (root)
 cpu0 at mainbus0 core 0: SA-110 step S (SA-1 V4 core)
@@ -31,7 +31,7 @@
 openprom at ofbus0 not configured
 options at ofbus0 not configured
 aliases at ofbus0 not configured
-memory@e000000 at ofbus0 not configured
+memory@f000000 at ofbus0 not configured
 mmu at ofbus0 not configured
 ofbus2 at ofbus0 (vlbus)
 igsfb0 at ofbus2 (display@it3b0): IGS CyberPro 2010 at 0x06000000
@@ -57,7 +57,7 @@
 scr0 at ofisascr0
 com1 at ofisa0 (ir@i2f8): ns16550a, 1-byte FIFO
 cs0 at ofisa0 (ethernet@i300): CRUS,CS8900
-cs0: cs0: CS8900 rev. F, address 08:00:2b:81:62:5e, media UTP
+cs0: cs0: CS8900 rev. F, address 08:00:2b:81:65:72, media UTP
 joy0 at ofisa0 (game@i201): ESST,game
 joy0: joystick not connected
 midi@i330 at ofisa0 not configured
@@ -98,9 +98,9 @@
 chacha: Portable C ChaCha
 blake2s: self-test passed
 wd0 at atabus0 drive 0
-wd0: <TS16GCF133>
-wd0: drive supports 1-sector PIO transfers, LBA48 addressing
-wd0: 15279 MB, 31045 cyl, 16 head, 63 sec, 512 bytes/sect x 31293360 sectors
+wd0: <SAMSUNG HM120IC>
+wd0: drive supports 16-sector PIO transfers, LBA48 addressing
+wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 boot device: wd0
 root on wd0a dumps on wd0b


Any ideas?

Martin
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.99.81 (GENERIC) #6: Mon Apr 12 15:09:50 CEST 2021
	martin%martins.aprisoft.de@localhost:/usr/src/sys/arch/shark/compile/GENERIC
total memory = 65536 KB
avail memory = 58396 KB
timecounter: Timecounters tick every 15.625 msec
mainbus0 (root)
cpu0 at mainbus0 core 0: SA-110 step S (SA-1 V4 core)
cpu0: DC enabled IC enabled WB enabled LABT
cpu0: 16KB/32B 32-way L1 VIVT Instruction cache
cpu0: 16KB/32B 32-way write-back L1 VIVT Data cache
ofbus0 (root)
ofbus1 at ofbus0 (packages)
client-services at ofbus1 not configured
terminal-emulator at ofbus1 not configured
stringio at ofbus1 not configured
deblocker at ofbus1 not configured
obp-tftp at ofbus1 not configured
ufs-file-system at ofbus1 not configured
fat-file-system at ofbus1 not configured
iso9660-file-system at ofbus1 not configured
disk-label at ofbus1 not configured
dropin-file-system at ofbus1 not configured
sound.wav at ofbus1 not configured
chosen at ofbus0 not configured
openprom at ofbus0 not configured
options at ofbus0 not configured
aliases at ofbus0 not configured
memory@e000000 at ofbus0 not configured
mmu at ofbus0 not configured
ofbus2 at ofbus0 (vlbus)
igsfb0 at ofbus2 (display@it3b0): IGS CyberPro 2010 at 0x06000000
unable to find font Gallant 12x22
igsfb0: 2MB, 1024x768, 8bpp
igsfb0: using 8bpp for X
wsdisplay0 at igsfb0 kbdmux 1
wsmux1: connecting to wsdisplay0
ofisa0 at ofbus2 (isa)
dma-controller@i00 at ofisa0 not configured
interrupt-controller@i20 at ofisa0 not configured
timer@i40 at ofisa0 not configured
configuration@i15c at ofisa0 not configured
com0 at ofisa0 (serial@i3f8): ns16550a, 1-byte FIFO
com0: console
lpt0 at ofisa0 (parallel@i378)
pckbc0 at ofisa0 (8042@i60)
power@i380 at ofisa0 not configured
ofbus3 at ofisa0 (gpio@i3e0)
eeprom at ofbus3 not configured
ofrtc0 at ofisa0 (rtc@i70): rtc
ofisascr0 at ofisa0 (scr@i24)
scr0 at ofisascr0
com1 at ofisa0 (ir@i2f8): ns16550a, 1-byte FIFO
cs0 at ofisa0 (ethernet@i300): CRUS,CS8900
cs0: cs0: CS8900 rev. F, address 08:00:2b:81:62:5e, media UTP
joy0 at ofisa0 (game@i201): ESST,game
joy0: joystick not connected
midi@i330 at ofisa0 not configured
ess0 at ofisa0 (sound@i220): ESST,es1887-codec
ess0: ESS Technology ES1887 [version 0x688b]
ess0: audio1 interrupting at irq 9
ess0: audio2 interrupting at irq 15
audio0 at ess0: playback, capture, full duplex
audio0: slinear_le:16 2ch 44100Hz, blk 1760 bytes (9.9ms) for playback
audio0: slinear_le:16 2ch 44100Hz, blk 1760 bytes (9.9ms) for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
opl0 at ess0: model OPL3
midi0 at opl0: ESS Yamaha OPL3
wdc0 at ofisa0 (ide@i1f0)
atabus0 at wdc0 channel 0
pci at ofbus2 not configured
ofrom0 at ofbus0 (flash@7000000): 0x7000000-0x707ffff
ofrom1 at ofbus0 (romcard@10000000): 0x10000000-0x10ffffff
ofbus4 at ofbus0 (cpus)
cpu@0 at ofbus4 not configured
ofbus5 at ofbus0 (udp)
nfs at ofbus5 not configured
spl_masks[0]=ffffffff
spl_masks[1]=ffffffff
spl_masks[2]=ffffffff
spl_masks[3]=ffffffff
spl_masks[4]=ffffffff
spl_masks[5]=ffffbf5f
spl_masks[6]=ffff3d5f
spl_masks[7]=ffff3d47
entropy: WARNING: extracting entropy too early
clock: hz=64 stathz = 0 profhz = 0
timecounter: Timecounter "i8253" frequency 1193182 Hz quality 100
timecounter: Timecounter "clockinterrupt" frequency 64 Hz quality 0
aes: BearSSL aes_ct
aes_ccm: self-test passed
chacha: Portable C ChaCha
blake2s: self-test passed
wd0 at atabus0 drive 0
wd0: <TS16GCF133>
wd0: drive supports 1-sector PIO transfers, LBA48 addressing
wd0: 15279 MB, 31045 cyl, 16 head, 63 sec, 512 bytes/sect x 31293360 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/shark/9.99.81/modules
entropy: ready
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.99.81 (GENERIC) #6: Mon Apr 12 15:09:50 CEST 2021
	martin%martins.aprisoft.de@localhost:/usr/src/sys/arch/shark/compile/GENERIC
total memory = 98304 KB
avail memory = 90508 KB
timecounter: Timecounters tick every 15.625 msec
mainbus0 (root)
cpu0 at mainbus0 core 0: SA-110 step S (SA-1 V4 core)
cpu0: DC enabled IC enabled WB enabled LABT
cpu0: 16KB/32B 32-way L1 VIVT Instruction cache
cpu0: 16KB/32B 32-way write-back L1 VIVT Data cache
ofbus0 (root)
ofbus1 at ofbus0 (packages)
client-services at ofbus1 not configured
terminal-emulator at ofbus1 not configured
stringio at ofbus1 not configured
deblocker at ofbus1 not configured
obp-tftp at ofbus1 not configured
ufs-file-system at ofbus1 not configured
fat-file-system at ofbus1 not configured
iso9660-file-system at ofbus1 not configured
disk-label at ofbus1 not configured
dropin-file-system at ofbus1 not configured
sound.wav at ofbus1 not configured
chosen at ofbus0 not configured
openprom at ofbus0 not configured
options at ofbus0 not configured
aliases at ofbus0 not configured
memory@f000000 at ofbus0 not configured
mmu at ofbus0 not configured
ofbus2 at ofbus0 (vlbus)
igsfb0 at ofbus2 (display@it3b0): IGS CyberPro 2010 at 0x06000000
unable to find font Gallant 12x22
igsfb0: 2MB, 1024x768, 8bpp
igsfb0: using 8bpp for X
wsdisplay0 at igsfb0 kbdmux 1
wsmux1: connecting to wsdisplay0
ofisa0 at ofbus2 (isa)
dma-controller@i00 at ofisa0 not configured
interrupt-controller@i20 at ofisa0 not configured
timer@i40 at ofisa0 not configured
configuration@i15c at ofisa0 not configured
com0 at ofisa0 (serial@i3f8): ns16550a, 1-byte FIFO
com0: console
lpt0 at ofisa0 (parallel@i378)
pckbc0 at ofisa0 (8042@i60)
power@i380 at ofisa0 not configured
ofbus3 at ofisa0 (gpio@i3e0)
eeprom at ofbus3 not configured
ofrtc0 at ofisa0 (rtc@i70): rtc
ofisascr0 at ofisa0 (scr@i24)
scr0 at ofisascr0
com1 at ofisa0 (ir@i2f8): ns16550a, 1-byte FIFO
cs0 at ofisa0 (ethernet@i300): CRUS,CS8900
cs0: cs0: CS8900 rev. F, address 08:00:2b:81:65:72, media UTP
joy0 at ofisa0 (game@i201): ESST,game
joy0: joystick not connected
midi@i330 at ofisa0 not configured
ess0 at ofisa0 (sound@i220): ESST,es1887-codec
ess0: ESS Technology ES1887 [version 0x688b]
ess0: audio1 interrupting at irq 9
ess0: audio2 interrupting at irq 15
audio0 at ess0: playback, capture, full duplex
audio0: slinear_le:16 2ch 44100Hz, blk 1760 bytes (9.9ms) for playback
audio0: slinear_le:16 2ch 44100Hz, blk 1760 bytes (9.9ms) for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
opl0 at ess0: model OPL3
midi0 at opl0: ESS Yamaha OPL3
wdc0 at ofisa0 (ide@i1f0)
atabus0 at wdc0 channel 0
pci at ofbus2 not configured
ofrom0 at ofbus0 (flash@7000000): 0x7000000-0x707ffff
ofrom1 at ofbus0 (romcard@10000000): 0x10000000-0x10ffffff
ofbus4 at ofbus0 (cpus)
cpu@0 at ofbus4 not configured
ofbus5 at ofbus0 (udp)
nfs at ofbus5 not configured
spl_masks[0]=ffffffff
spl_masks[1]=ffffffff
spl_masks[2]=ffffffff
spl_masks[3]=ffffffff
spl_masks[4]=ffffffff
spl_masks[5]=ffffbf5f
spl_masks[6]=ffff3d5f
spl_masks[7]=ffff3d47
entropy: WARNING: extracting entropy too early
clock: hz=64 stathz = 0 profhz = 0
timecounter: Timecounter "i8253" frequency 1193182 Hz quality 100
timecounter: Timecounter "clockinterrupt" frequency 64 Hz quality 0
aes: BearSSL aes_ct
aes_ccm: self-test passed
chacha: Portable C ChaCha
blake2s: self-test passed
wd0 at atabus0 drive 0
wd0: <SAMSUNG HM120IC>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/shark/9.99.81/modules
entropy: ready


Home | Main Index | Thread Index | Old Index