cfi causes vm_fault on IXP435

Alex Vinogradovs avinogradovs at
Thu Feb 5 10:58:09 PST 2009

stack trace :

Tracing pid 0 tid 100000 td 0xc04d1db0
db_trace_thread() at db_trace_thread+0xc
scp=0xc0402730 rlv=0xc0214cf8 (db_command_init+0x4d8)
        rsp=0xc00fb950 rfp=0xc00fb970
        r10=0x00000001 r9=0xc04d7ed4
        r8=0xc04cf7d8 r7=0xc04cefac r6=0x00000010 r5=0x00000000
db_command_init() at db_command_init+0x454
scp=0xc0214c74 rlv=0xc021449c (db_skip_to_eol+0x390)
        rsp=0xc00fb974 rfp=0xc00fba18
        r6=0x00000002 r5=0x00000000
db_skip_to_eol() at db_skip_to_eol+0x1d0
scp=0xc02142dc rlv=0xc02146b8 (db_command_loop+0x50)
        rsp=0xc00fba1c rfp=0xc00fba2c
        r10=0x00000000 r8=0x000000f5
        r7=0xc00fbc40 r6=0xc04d7ecc r5=0x000000c0 r4=0xc04cefa8
db_command_loop() at db_command_loop+0xc
scp=0xc0214674 rlv=0xc02168dc (X_db_sym_numargs+0xa0)
        rsp=0xc00fba30 rfp=0xc00fbb4c
X_db_sym_numargs() at X_db_sym_numargs+0x14
scp=0xc0216850 rlv=0xc02d7518 (kdb_trap+0xb0)
        rsp=0xc00fbb50 rfp=0xc00fbb78
kdb_trap() at kdb_trap+0xc
scp=0xc02d7474 rlv=0xc0412ed4 (badaddr_read+0x1f4)
        rsp=0xc00fbb7c rfp=0xc00fbb98
        r10=0xc00fbc40 r9=0xc00fbef8
        r8=0x00000002 r7=0xc04d1db0 r6=0xfd0000aa r5=0x000000f5
badaddr_read() at badaddr_read+0xe8
scp=0xc0412dc8 rlv=0xc0413844 (data_abort_handler+0x498)
        rsp=0xc00fbb9c rfp=0xc00fbc3c
        r6=0x00000000 r5=0xfd000000
data_abort_handler() at data_abort_handler+0xc
scp=0xc04133b8 rlv=0xc04041c4 (address_exception_entry+0x50)
        rsp=0xc00fbc40 rfp=0xc00fbc98
        r10=0xc119b2bc r9=0xc04aa9a4
        r8=0x00000001 r7=0xc1145580 r6=0xc119b280 r5=0xffff1004
cfi_read() at cfi_read+0x8c
scp=0xc0221a1c rlv=0xc0221ac8 (cfi_read_qry+0x28)
        rsp=0xc00fbc9c rfp=0xc00fbcb0
cfi_read_qry() at cfi_read_qry+0xc
scp=0xc0221aac rlv=0xc0221e20 (cfi_probe+0xdc)
        rsp=0xc00fbcb4 rfp=0xc00fbd2c
        r5=0xc1146600 r4=0x00000001
cfi_probe() at cfi_probe+0xc
scp=0xc0221d50 rlv=0xc02d1fa4 (device_probe_child+0xf8)
        rsp=0xc00fbd30 rfp=0xc00fbd68
        r7=0xc1145580 r6=0xc04aa7e4
        r5=0xc119b280 r4=0xc112b1b0
device_probe_child() at device_probe_child+0xc
scp=0xc02d1eb8 rlv=0xc02d2274 (device_probe+0x4c)
        rsp=0xc00fbd6c rfp=0xc00fbd84
        r10=0xc063dc84 r9=0x69054040
        r8=0x00000002 r7=0xc1145580 r6=0xc04aa7e4 r5=0xc1145500
device_probe() at device_probe+0x10
scp=0xc02d2238 rlv=0xc02d2390 (device_probe_and_attach+0x30)
        rsp=0xc00fbd88 rfp=0xc00fbd98
        r6=0xc04aa7e4 r5=0xc1145500
device_probe_and_attach() at device_probe_and_attach+0x10
scp=0xc02d2370 rlv=0xc02d24ac (bus_generic_attach+0x20)
        rsp=0xc00fbd9c rfp=0xc00fbdac
bus_generic_attach() at bus_generic_attach+0xc
scp=0xc02d2498 rlv=0xc0417250 (arm_unmask_irq+0x790)
        rsp=0xc00fbdb0 rfp=0xc00fbe00
arm_unmask_irq() at arm_unmask_irq+0x49c
scp=0xc0416f5c rlv=0xc02d1440 (device_attach+0x6c)
        rsp=0xc00fbe04 rfp=0xc00fbe44
        r10=0xc046a158 r9=0xc0450040
        r8=0x00000000 r7=0xc1145580 r6=0xc11455cc r5=0xc02cfb1c
device_attach() at device_attach+0xc
scp=0xc02d13e0 rlv=0xc02d24ac (bus_generic_attach+0x20)
        rsp=0xc00fbe48 rfp=0xc00fbe58
        r10=0xc046a158 r9=0xc0450040
        r8=0x00000000 r7=0xc1145780 r6=0xc11457cc r5=0xc02cfb1c
bus_generic_attach() at bus_generic_attach+0xc
scp=0xc02d2498 rlv=0xc0407304 (minidumpsys+0xb68)
        rsp=0xc00fbe5c rfp=0xc00fbe6c
minidumpsys() at minidumpsys+0xb58
scp=0xc04072f4 rlv=0xc02d1440 (device_attach+0x6c)
        rsp=0xc00fbe70 rfp=0xc00fbeb0
device_attach() at device_attach+0xc
scp=0xc02d13e0 rlv=0xc02d23e8 (root_bus_configure+0x28)
        rsp=0xc00fbeb4 rfp=0xc00fbec4
        r10=0xc04d24b8 r9=0x00000009
        r8=0x00000001 r7=0xc04d24bc r6=0x03800000 r5=0xc04d24c0
root_bus_configure() at root_bus_configure+0xc
scp=0xc02d23cc rlv=0xc0275ca0 (mi_startup+0xd0)
        rsp=0xc00fbec8 rfp=0xc00fbef4
mi_startup() at mi_startup+0xc
scp=0xc0275bdc rlv=0xc020023c (btext+0x13c)
        rsp=0xc00fbef8 rfp=0x00000000
        r10=0x0000000a r8=0x00000000
        r7=0x00200198 r6=0x00000006 r5=0x002001a4 r4=0x0020027c

Alex Vinogradovs wrote:
> Guys,
> I've enabled cfi driver, specifying 0x50000000 as the address in hints 
> (like for AVILA board),
> and that causes vm_fault.
> Here is what redboot reports about flash :
> FLASH: 0x50000000 - 0x50800000, 128 blocks of 0x00010000 bytes each.
> and here are the messages :
> subsystem 3800000
>   xdr_sizeof(0)... done.
>   taskqueue_start_threads(0)... done.
>   taskqueue_create(0)... done.
>   taskqueue_create(0)... done.
>   module_register_init(0xc04a20a8)... done.
>   module_register_init(0xc04a5b50)... done.
>   knlist_init(0)... done.
>   taskqueue_create_fast(0)... done.
>   xdr_sizeof(0)... ixp0: <Intel IXP4XX> on motherboard
> ixpclk0: <IXP4XX Timer> on ixp0
> ixpiic0: <IXP4XX GPIO-Based I2C Interface> on ixp0
> iicbb0: <I2C bit-banging driver> on ixpiic0
> iicbus0: <Philips I2C bus> on iicbb0 master-only
> iic0: <I2C generic I/O> on iicbus0
> iicbus0: <unknown card> at addr 0x5a
> ad74180: <Analog Devices AD7418 ADC> at addr 0x50 on iicbus0
> ds16720: <Dallas Semiconductor DS1672 RTC> at addr 0xd0 on iicbus0
> ixpwdog0: <IXP4XX Watchdog Timer> on ixp0
> uart0: <Non-standard ns8250 class UART with FIFOs> on ixp0
> uart0: [FILTER]
> uart0: console (115200,n,8,1)
> ixpqmgr0: <IXP4XX Q-Manager> on ixp0
> ixpqmgr0: [ITHREAD]
> ixpqmgr0: [ITHREAD]
> npe0: <IXP NPE-C> on ixp0
> npe0: [ITHREAD]
> npe0: MAC at 0xc800a000
> npe0: MII at 0xc800a000
> npe0: load fw image IXP425.NPE-C Func 0x5 Rev 2.1
> miibus0: <MII bus> on npe0
> ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
> ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> npe0: Ethernet address: 00:03:47:df:32:a8
> vm_fault(0xc0781000, fd000000, 2, 0) -> 1
> Fatal kernel mode data abort: 'Translation Fault (S)'
> trapframe: 0xc00fbc40
> FSR=000000f5, FAR=fd0000aa, spsr=600000d3
> r0 =00000000, r1 =fd000000, r2 =000000aa, r3 =00000098
> r4 =00000010, r5 =c1146600, r6 =c119b280, r7 =c1145580
> r8 =00000001, r9 =c04aa9a4, r10=c119b2bc, r11=c00fbc98
> r12=c04c0c0c, ssp=c00fbc8c, slr=c0221a9c, pc =c03fe5fc
> [thread pid 0 tid 100000 ]
> Stopped at      generic_armv4_bs_w_2:   strh    r3, [r1, r2]
> db>
> _______________________________________________
> freebsd-arm at mailing list
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at"

More information about the freebsd-arm mailing list