Edgerouter Lite octeon bsd.mp from May-09 snapshots crashes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Edgerouter Lite octeon bsd.mp from May-09 snapshots crashes

Janne Johansson-4
The bsd.rd and bsd.sp kernel works, but the mp kernel gives me crashes
on every boot. dmesg from May-9 bsd.sp at the bottom.

reading bsd.mp
...........................


5494759 bytes read
argv[2]: coremask=0x3
argv[3]: rootdev=/dev/sd0
ELF file is 64 bit
Allocating memory for ELF segment: addr: 0xffffffff81000000 (adjusted
to: 0x1000000), size 0x5450f0
Allocated memory for ELF segment: addr: 0xffffffff81000000, size 0x5450f0
Processing PHDR 0
  Loading 4b71f8 bytes at ffffffff81000000
  Clearing 8def8 bytes at ffffffff814b71f8
## Loading Linux kernel with entry point: 0xffffffff81000000 ...
Bootloader: Done loading app on coremask: 0x3
bootmem desc 0x24108 version 3.0
avail phys mem 0x00000000001004e0 - 0x0000000000fffda0
avail phys mem 0x00000000015450f0 - 0x0000000008100000
avail phys mem 0x0000000008100010 - 0x000000000fffdc00
avail phys mem 0x0000000410000000 - 0x000000041ff00000
Total DRAM Size 0x0000000020000000
mem_layout[0] page 0x0000000000000041 -> 0x00000000000003FF
mem_layout[1] page 0x0000000000000552 -> 0x0000000000002040
mem_layout[2] page 0x0000000000002041 -> 0x0000000000003FFF
mem_layout[3] page 0x0000000000104000 -> 0x0000000000107FC0
boot_desc->argv[0] = bootoctlinux
boot_desc->argv[1] = $loadaddr
boot_desc->argv[2] = coremask=0x3
boot_desc->argv[3] = rootdev=/dev/sd0
Initial setup done, switching console.
boot_desc->desc_ver:7
boot_desc->desc_size:400
boot_desc->stack_top:0
boot_desc->heap_start:0
boot_desc->heap_end:0
boot_desc->argc:4
boot_desc->flags:0x5
boot_desc->core_mask:0x3
boot_desc->dram_size:512
boot_desc->phy_mem_desc_addr:0
boot_desc->debugger_flag_addr:0xa44
boot_desc->eclock:500000000
boot_desc->boot_info_addr:0x100210
boot_info->ver_major:1
boot_info->ver_minor:2
boot_info->stack_top:0
boot_info->heap_start:0
boot_info->heap_end:0
boot_info->boot_desc_addr:0
boot_info->exception_base_addr:0x1000
boot_info->stack_size:0
boot_info->flags:0x5
boot_info->core_mask:0x3
boot_info->dram_size:512
boot_info->phys_mem_desc_addr:0x24108
boot_info->debugger_flags_addr:0
boot_info->eclock:500000000
boot_info->dclock:266000000
boot_info->board_type:20002
boot_info->board_rev_major:2
boot_info->board_rev_minor:14
boot_info->mac_addr_count:3
boot_info->cf_common_addr:0
boot_info->cf_attr_addr:0
boot_info->led_display_addr:0
boot_info->dfaclock:0
boot_info->config_flags:0x8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2017 OpenBSD. All rights reserved.
https://www.OpenBSD.org

OpenBSD 6.1-current (GENERIC.MP) #0: Tue May  9 20:08:19 UTC 2017
    visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC.MP
real mem = 536870912 (512MB)
avail mem = 524156928 (499MB)
mainbus0 at root
cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
cpu0: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way
cpu1 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
cpu1: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way
clock0 at mainbus0: int 5
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
cn30xxsmi0 at simplebus0
dwctwo0 at iobus0 base 0x1180068000000 irq 56
usb0 at dwctwo0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev
2.00/1.00 addr 1
octrng0 at iobus0 base 0x1400000000000 irq 0
cn30xxgmx0 at iobus0 base 0x1180008000000
cnmac0 at cn30xxgmx0: RGMII, address dc:9f:db:28:59:1d
atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
cnmac1 at cn30xxgmx0: RGMII, address dc:9f:db:28:59:1e
atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
cnmac2 at cn30xxgmx0: RGMII, address dc:9f:db:28:59:1f
atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2
uar: ns16550a, 64 byte fifo
com0: console
com1 at uartbus0 base 0x1180000000c00 irq 35: ns16550a, 64 byte fifo
/dev/ksyms: Symbol table not valid.
umass0 at uhub0 port 1 configuration 1 interface 0 "SanDisk Ultra" rev
2.10/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SanDisk, Ultra, 1.00> SCSI4 0/direct
removable serial.07815581471103115165
sd0: 14832MB, 512 bytes/sector, 30375936 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
boot device: sd0
root on sd0a (d858802c4b7bb750.a) swap on sd0b dump on sd0b
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!
cpu1 launched
Automatic boot in progress: starting file system checks.
/dev/sd0a (d858802c4b7bb750.a): file system is clean; not checking
/dev/sd0l (d858802c4b7bb750.l): file system is clean; not checking
/dev/sd0d (d858802c4b7bb750.d): file system is clean; not checking
/dev/sd0f (d858802c4b7bb750.f): file system is clean; not checking
/dev/sd0g (d858802c4b7bb750.g): file system is clean; not checking
/dev/sd0h (d858802c4b7bb750.h): file system is clean; not checking
/dev/sd0k (d858802c4b7bb750.k): file system is clean; not checking
/dev/sd0j (d858802c4b7bb750.j): file system is clean; not checking
/dev/sd0e (d858802c4b7bb750.e): file system is clean; not checking
setting tty flags
pf enabled
ddb.panic: 1 -> 1
starting network
DHCPREQUEST on cnmac0 to 255.255.255.255
DHCPACK from 192.168.1.1 (a4:b1:e9:7d:df:6e)
bound to 192.168.1.69 -- renewal in 1800 seconds.
reordering libraries:panic: pool_do_get: dwc2qtd free list modified:
page 0x9800000000d90000; item addr 0x9800000000d90000; offset 0x0=0xadbeef
Stopped at      0xffffffff812e755c:     jr      ra
0xffffffff812e7560:      nop
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
0xffffffff812e7558 (5f917ce0ab32bbff,9001070000000208,208,0)  ra
0xffffffff810f
aeb8 sp 0x980000000ffeb7f8, sz 0
0xffffffff810fad60 (5f917ce0ab32bbff,9001070000000208,208,0)  ra 0x0 sp
0x98000
0000ffeb7f8, sz 0
User-level: pid 85811
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb{0}>

ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 39100  120489  52731      0  3    0x102005  biowait       sh
 52731  377552  58532      0  3    0x100089  pause         sh
 15584  308450      1     77  3    0x100090  poll          dhclient
 20682   20584      1      0  3        0x80  poll          dhclient
 58532  267804      1      0  3    0x10008b  pause         sh
 60316   32540      0      0  7  0x40014200                idle1
 89846   98211      0      0  3     0x14200  pgzero        zerothread
 54934   80617      0      0  3     0x14200  aiodoned      aiodoned
 24510  104862      0      0  3     0x14200  syncer        update
 63554   80352      0      0  3     0x14200  cleaner       cleaner
    96  502413      0      0  3     0x14200  reaper        reaper
 37500  448338      0      0  3     0x14200  pgdaemon      pagedaemon
 82127  510636      0      0  3     0x14200  bored         crynlk
 53511   24894      0      0  3     0x14200  bored         crypto
 24128   16021      0      0  3     0x14200  pftm          pfpurge
  3674  439709      0      0  3     0x14200  usbtsk        usbtask
 31325  327095      0      0  3     0x14200  usbatsk       usbatsk
 29050   24153      0      0  3     0x14200  bored         dwc2
 50219  384395      0      0  3     0x14200  bored         softnet
 19195   96958      0      0  3     0x14200  bored         systqmp
 55302  127320      0      0  3     0x14200  bored         systq
  1968  312730      0      0  3  0x40014200  bored         softclock
*85811  361694      0      0  7  0x40014200                idle0
 12847  435652      0      0  3     0x14200  bored         sbar
     1  423043      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> trace
0xffffffff812e7558 (5f917ce0ab32bbff,9001070000000208,208,0)  ra
0xffffffff810f
aeb8 sp 0x980000000ffeb7f8, sz 0
0xffffffff810fad60 (5f917ce0ab32bbff,9001070000000208,208,0)  ra 0x0 sp
0x98000
0000ffeb7f8, sz 0
User-level: pid 85811
ddb{0}> mach ddbcpu 1
Stopped at      0xffffffff812e755c:     jr      ra
0xffffffff812e7560:      nop
0xffffffff812e7558 (4,1,688,1)  ra 0xffffffff812e7b70 sp
0x980000000ffa7b58, sz
 0
0xffffffff812e7b68 (4,1,688,1)  ra 0x0 sp 0x980000000ffa7b58, sz 0
User-level: pid 60316
ddb{1}> trace
0xffffffff812e7558 (4,1,688,1)  ra 0xffffffff812e7b70 sp
0x980000000ffa7b58, sz
 0
0xffffffff812e7b68 (4,1,688,1)  ra 0x0 sp 0x980000000ffa7b58, sz 0
User-level: pid 60316
ddb{1}>

bsd.sp DMESG:

# dmesg
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2017 OpenBSD. All rights reserved.
https://www.OpenBSD.org

OpenBSD 6.1-current (GENERIC) #0: Tue May  9 19:56:58 UTC 2017
    visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC
real mem = 536870912 (512MB)
avail mem = 524222464 (499MB)
mainbus0 at root
cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
cpu0: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way
clock0 at mainbus0: int 5
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
cn30xxsmi0 at simplebus0
dwctwo0 at iobus0 base 0x1180068000000 irq 56
usb0 at dwctwo0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev
2.00/1.00 addr 1
octrng0 at iobus0 base 0x1400000000000 irq 0
cn30xxgmx0 at iobus0 base 0x1180008000000
cnmac0 at cn30xxgmx0: RGMII, address dc:9f:db:28:59:1d
atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
cnmac1 at cn30xxgmx0: RGMII, address dc:9f:db:28:59:1e
atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
cnmac2 at cn30xxgmx0: RGMII, address dc:9f:db:28:59:1f
atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2
uartbus0 at mainbus0
com0 at uartbus0 base 0x1180000000800 irq 34: ns16550a, 64 byte fifo
com0: console
com1 at uartbus0 base 0x1180000000c00 irq 35: ns16550a, 64 byte fifo
/dev/ksyms: Symbol table not valid.
umass0 at uhub0 port 1 configuration 1 interface 0 "SanDisk Ultra" rev
2.10/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SanDisk, Ultra, 1.00> SCSI4 0/direct
removable serial.07815581471103115165
sd0: 14832MB, 512 bytes/sector, 30375936 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
boot device: sd0
root on sd0a (d858802c4b7bb750.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!



--
-"Any girl with sense love those dead presidents"
Quireboys - Debbie



signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Edgerouter Lite octeon bsd.mp from May-09 snapshots crashes

Mark Kettenis
> From: Janne Johansson <[hidden email]>
> Date: Thu, 11 May 2017 20:59:23 +0200
>
> The bsd.rd and bsd.sp kernel works, but the mp kernel gives me crashes
> on every boot. dmesg from May-9 bsd.sp at the bottom.

Probably fixed by my changes to sys/mbuf.h.

Reply | Threaded
Open this post in threaded view
|

Re: Edgerouter Lite octeon bsd.mp from May-09 snapshots crashes

Janne Johansson-4


On 2017-05-12 10:34, Mark Kettenis wrote:
>> From: Janne Johansson <[hidden email]>
>> Date: Thu, 11 May 2017 20:59:23 +0200
>>
>> The bsd.rd and bsd.sp kernel works, but the mp kernel gives me crashes
>> on every boot. dmesg from May-9 bsd.sp at the bottom.
>
> Probably fixed by my changes to sys/mbuf.h.

Ok, will try to compile me a new bsd.mp unless a new snap appears before
it's done.

--
-"Any girl with sense love those dead presidents"
Quireboys - Debbie



signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Edgerouter Lite octeon bsd.mp from May-09 snapshots crashes

Janne Johansson-4
In reply to this post by Mark Kettenis
On 2017-05-12 10:34, Mark Kettenis wrote:
>> The bsd.rd and bsd.sp kernel works, but the mp kernel gives me crashes
>> on every boot. dmesg from May-9 bsd.sp at the bottom.
>
> Probably fixed by my changes to sys/mbuf.h.

Yes, for the record, newer MP kernel didn't show this behaviour and has
several days of uptime now.

--
-"Any girl with sense love those dead presidents"
Quireboys - Debbie



signature.asc (859 bytes) Download Attachment