Port-arm archive

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

Re: Panic at init on arm (Seagate Dockstar) with -current

On Tue, Oct 23, 2012 at 1:52 PM, Nick Hudson <skrll%netbsd.org@localhost> wrote:
> It would appear that the accounting in arm32_kernel_vm_init is still off. Can
> you confirm that you boot cleanly with the attached diff.
> VERBOSE_INIT_ARM output from a failing and working boot will help.

No, it doesn't boot. I tried without VERBOSE_INIT_ARM once because
this affected it before when you gave me a patch, but it didn't change
the result this time.

## Transferring control to NetBSD stage-2 loader (at address 00008000) ...

NetBSD/evbarm (sheevaplug) booting ...
initarm: Configuring system ...
arm32_bootmem_init: memstart=0, memsize=0x8000000, kernelstart=0x8000
arm32_bootmem_init: kernelend=0x493000
arm32_bootmem_init: adding 31597 free pages: [0x493000..0x7ffffff] (VA
arm32_bootmem_init: adding 8 free pages: [0..0x7fff] (VA 0xc0000000)
arm32_kernel_vm_init: 2 L2 pages are needed to map 0x5ab000 kernel bytes
arm32_kernel_vm_init: allocating page tables for vectoradd_pages:
adding pv 0xc04779d0 (pa 0x493000, va 0xc0493000, 1 pages) at tail
 kerneladd_pages: appending pv 0xc0486f70 (0x494000..0x497fff) to
add_pages: appending pv 0xc0477b54 (0x498000..0x498fff) to 0x493000..0x497fff
add_pages: appending pv 0xc0477b68 (0x499000..0x499fff) to 0x493000..0x498fff
 vmadd_pages: appending pv 0xc0477b7c (0x49a000..0x49afff) to 0x493000..0x499fff
add_pages: appending pv 0xc0477b90 (0x49b000..0x49bfff) to 0x493000..0x49afff
add_pages: appending pv 0xc0477ba4 (0x49c000..0x49cfff) to 0x493000..0x49bfff
add_pages: appending pv 0xc0477bb8 (0x49d000..0x49dfff) to 0x493000..0x49cfff
add_pages: appending pv 0xc0477bcc (0x49e000..0x49efff) to 0x493000..0x49dfff
add_pages: appending pv 0xc0477be0 (0x49f000..0x49ffff) to 0x493000..0x49efff
add_pages: appending pv 0xc0477bf4 (0x4a0000..0x4a0fff) to 0x493000..0x49ffff
add_pages: appending pv 0xc0477c08 (0x4a1000..0x4a1fff) to 0x493000..0x4a0fff
add_pages: adding pv 0xc04779bc (pa 0x4a2000, va 0xc04a2000, 1 pages) at tail
add_pages: appending pv 0xc0477e2c (0x4a3000..0x4a3fff) to 0x4a2000..0x4a2fff
add_pages: appending pv 0xc0477e40 (0x4a4000..0x4a4fff) to 0x4a2000..0x4a3fff
add_pages: appending pv 0xc0477e54 (0x4a5000..0x4a5fff) to 0x4a2000..0x4a4fff
add_pages: appending pv 0xc0477df0 (0x4a6000..0x4a7fff) to 0x4a2000..0x4a5fff
add_pages: appending pv 0xc0477e04 (0x4a8000..0x4a9fff) to 0x4a2000..0x4a7fff
add_pages: appending pv 0xc0477a40 (0x4aa000..0x4aafff) to 0x4a2000..0x4a9fff
Creating L1 page table at 0x00494000
arm32_kernel_vm_init: adding L2 pt (VA 0xc0493000, PA 0x493000) for VA
 (vectors)arm32_kernel_vm_init: adding L2 pt (VA 0xc0498000, PA
0x498000) for VA 0xc0000000 (kernel)
arm32_kernel_vm_init: adding L2 pt (VA 0xc0499000, PA 0x499000) for VA
0xc0400000 (kernel)
arm32_kernel_vm_init: adding L2 pt (VA 0xc049a000, PA 0x49a000) for VA
0xc2000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0xc049b000, PA 0x49b000) for VA
0xc2400000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0xc049c000, PA 0x49c000) for VA
0xc2800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0xc049d000, PA 0x49d000) for VA
0xc2c00000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0xc049e000, PA 0x49e000) for VA
0xc3000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0xc049f000, PA 0x49f000) for VA
0xc3400000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0xc04a0000, PA 0x4a0000) for VA
0xc3800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0xc04a1000, PA 0x4a1000) for VA
0xc3c00000 (vm)
Mapping kernel
arm32_kernel_vm_init: adding chunk for kernel text 0x8000..0x382fff
(VA 0xc0008000)
add_pages: adding pv 0xc04779a8 (pa 0x8000, va 0xc0008000, 891 pages)
before pa 0x493000
arm32_kernel_vm_init: adding chunk for kernel data/bss
0x383000..0x492fff (VA 0xc0383000)
add_pages: appending pv 0xc0477a18 (0x383000..0x492fff) to 0x8000..0x382fff
Listing Chunks
arm32_kernel_vm_init: pv 0xc04779a8: chunk VA 0xc0008000..0xc0492fff
(PA 0x8000, prot 3, cache 1)
arm32_kernel_vm_init: pv 0xc04779d0: chunk VA 0xc0493000..0xc04a1fff
(PA 0x493000, prot 3, cache 2)
arm32_kernel_vm_init: pv 0xc04779bc: chunk VA 0xc04a2000..0xc04aafff
(PA 0x4a2000, prot 3, cache 1)

Mapping Chunks
arm32_kernel_vm_init: mapping chunk VA 0xc0008000..0xc0492fff (PA
0x8000, prot 3, cache 1)
pmap_map_chunk: pa=0x8000 va=0xc0008000 size=0x48b000 resid=0x48b000
prot=0x3 cache=1
arm32_kernel_vm_init: mapping chunk VA 0xc0493000..0xc04a1fff (PA
0x493000, prot 3, cache 2)
pmap_map_chunk: pa=0x493000 va=0xc0493000 size=0xf000 resid=0xf000
prot=0x3 cache=2
arm32_kernel_vm_init: mapping last chunk VA 0xc04a2000..0xc04aafff (PA
0x4a2000, prot 3, cache 1)
pmap_map_chunk: pa=0x4a2000 va=0xc04a2000 size=0x9000 resid=0x9000
prot=0x3 cache=1
devmap: f1000000 -> f10fffff @ f1000000
pmap_map_chunk: pa=0xf1000000 va=0xf1000000 size=0x100000
resid=0x100000 prot=0x3 cache=0
                             Physical              Virtual        Num
                       Starting    Ending    Starting    Ending   Pages
               SDRAM: 0x00000000 0x07ffffff 0xc0000000 0xc7ffffff 32768
        text section: 0x00008000 0x00382fff 0xc0008000 0xc0382fff 891
        data section: 0x00390000 0x004772c0 0xc0390000 0xc04772c0 232
         bss section: 0x004772c0 0x0049275c 0xc04772c0 0xc049275c 28
   L1 page directory: 0x00494000 0x00497fff 0xc0494000 0xc0497fff 4
   ABT stack (CPU 0): 0x004a2000 0x004a2fff 0xc04a2000 0xc04a2fff 1
   FIQ stack (CPU 0): 0x004a3000 0x004a3fff 0xc04a3000 0xc04a3fff 1
   IRQ stack (CPU 0): 0x004a4000 0x004a4fff 0xc04a4000 0xc04a4fff 1
   UND stack (CPU 0): 0x004a5000 0x004a5fff 0xc04a5000 0xc04a5fff 1
  IDLE stack (CPU 0): 0x004a6000 0x004a7fff 0xc04a6000 0xc04a7fff 2
           SVC stack: 0x004a8000 0x004a9fff 0xc04a8000 0xc04a9fff 2
      Message Buffer: 0x004aa000 0x004aafff 0xc04aa000 0xc04aafff 1
   Exception Vectors: 0x004ab000 0x004abfff 0xffff0000 0xffff0fff 1
         Free Memory: 0x004ac000 0x07ffffff                       31572
         Free Memory: 0x00000000 0x00007fff                       8
switching to new L1 page table @0x494000...TTBR0=0x494000 OK
nfreeblocks = 2, free_pages = 31580 (0x7b5c)
bootstrap done.
init subsystems: stacks vectors undefined page pmap_physload pmap [
Kernel symbol table missing! ]
Loaded initial symtab at 0xc03b9370, strtab at 0xc03f186c, # entries 14333
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    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 6.99.14 (DOCKSTAR.OCT24_2012) #1: Wed Oct 24 06:04:17 MST 2012
total memory = 128 MB
avail memory = 120 MB
cprng kernel: WARNING insufficient entropy at creation.
mainbus0 (root)
cpu0 at mainbus0 core 0: Sheeva 88SV131 rev 1 (ARM9E-S core)
cpu0: DC enabled IC enabled WB enabled EABT branch prediction enabled
cpu0: 16KB/32B 4-way L1 Instruction cache
cpu0: 16KB/32B 4-way write-back-locking-C L1 Data cache
mvsoc0 at mainbus0: Marvell 88F6281 Rev. A0  Kirkwood
mvsoc0: CPU Clock 1200.000 MHz  SysClock 400.000 MHz  TClock 200.000 MHz
mvsoctmr0 at mvsoc0 unit 0 offset 0x20300-0x203ff: Marvell SoC Timer
mvsocgpp at mvsoc0 unit 0 not configured
mvsocrtc0 at mvsoc0 unit 0 offset 0x10300-0x10317: Marvell SoC Real Time Clock
com0 at mvsoc0 unit 0 offset 0x12000-0x1201f irq 33: ns16550a, working fifo
com0: console
com1 at mvsoc0 unit 1 offset 0x12100-0x1211f irq 34: ns16550a, working fifo
ehci0 at mvsoc0 unit 0 offset 0x50000-0x51fff irq 19: Marvell USB 2.0 Interface
usb0 at ehci0: USB revision 2.0
gtidmac0 at mvsoc0 unit 0 offset 0x60000-0x60fff: Marvell IDMA
Controller/XOR Engine
gtidmac0: XOR Engine 4 channels, intr 5...8
gttwsi0 at mvsoc0 unit 0 offset 0x11000-0x110ff irq 29: Marvell TWSI controller
iic0 at gttwsi0: I2C bus
mvcesa0 at mvsoc0 unit 0 offset 0x30000-0x3ffff irq 22: Marvell
Cryptographic Engines and Security Accelerator
mvgbec0 at mvsoc0 unit 0 offset 0x70000-0x73fff: Marvell Gigabit
Ethernet Controller
mvgbe0 at mvgbec0 port 0 irq 11
mvgbe0: Ethernet address 00:10:75:1a:5e:fe
makphy0 at mvgbe0 phy 0: Marvell 88E1116R Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
mvgbec1 at mvsoc0 unit 1 offset 0x74000-0x77fff: Marvell Gigabit
Ethernet Controller
mvgbe at mvgbec1 port 0 not configured
mvpex at mvsoc0 unit 0 not configured
mvsata at mvsoc0 unit 0 not configured
mvsdio at mvsoc0 unit 0 not configured
uhub0 at usb0: Marvell EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1 at uhub0 port 1: Genesys Logic USB2.0 Hub, class 9/0, rev
2.00/6.03, addr 2
uhub1: single transaction translator
umass0 at uhub1 port 3 configuration 1 interface 0
umass0: PNY Technologies USB 2.0 FD, rev 2.00/81.92, addr 3
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <PNY, USB 2.0 FD, 8192> disk removable
sd0: 7728 MB, 15744 cyl, 16 head, 63 sec, 512 bytes/sect x 15826944 sectors
cprng sysctl: WARNING insufficient entropy at creation.
boot device: <unknown>
root on sd0a dumps on sd0b
WARNING: clock lost 4680 days
WARNING: using filesystem time
warning: no /dev/console
init: copying out path `/sbin/init' 11
data_abort_handler: data_aborts fsr=0x1 far=0x28207697
Fatal kernel mode data abort: 'Alignment Fault 1'
trapframe: 0xc7ef4d10
FSR=00000001, FAR=28207697, spsr=20000013
r0 =00000004, r1 =00000000, r2 =c2076010, r3 =00000000
r4 =28207665, r5 =00000000, r6 =00000000, r7 =28207665
r8 =00000000, r9 =00000000, r10=00000000, r11=c7ef4d98
r12=c2076010, ssp=c7ef4d64, slr=c02abd2c, pc =c02abd90

Stopped in pid 2.1 (sh) at      netbsd:uvm_pagealloc_pgfl+0x94: ldrh    r3, [r4,
db> bt
        scp=0xc02abd0c rlv=0xc02ad090 (netbsd:uvm_pagealloc_strat+0x214)
        rsp=0xc7ef4d9c rfp=0xc7ef4ddc
        r10=0x00000000 r9=0x00000000
        r8=0xc0490d60 r7=0x00000000 r6=0xbfffd000 r5=0xc26218e0
        scp=0xc02ace8c rlv=0xc029d26c (netbsd:uvmfault_promote+0x224)
        rsp=0xc7ef4de0 rfp=0xc7ef4e1c
        r10=0x00000000 r9=0xc7ef4ef0
        r8=0xc26218a0 r7=0xc261fc60 r6=0xc7ef4ef8 r5=0xc26218e0
        scp=0xc029d058 rlv=0xc029e320 (netbsd:uvm_fault_internal+0xa80)
        rsp=0xc7ef4e20 rfp=0xc7ef4f3c
        r10=0x00000000 r9=0x00000000
        r8=0xc261fc60 r7=0x00000000 r6=0xc7ef4f14 r5=0xc261fc60
        scp=0xc029d8b0 rlv=0xc00656f4 (netbsd:data_abort_handler+0x400)
        rsp=0xc7ef4f40 rfp=0xc7ef4fac
        r10=0xbfffd000 r9=0x00000002
        r8=0x0000001f r7=0xc7ef3000 r6=0x00000001 r5=0xc25b1540
        scp=0xc0065304 rlv=0xc0057288 (netbsd:address_exception_entry+0x50)
        rsp=0xc7ef4fb0 rfp=0xbfffdb00
        r10=0x201a511c r9=0x00031100
        r8=0x2020f400 r7=0x00000010 r6=0x00000019 r5=0x000023fc


Home | Main Index | Thread Index | Old Index