FreeBSD 9.2 ARM dma bug

Randall Stewart rrs at lakerest.net
Thu Sep 26 12:31:46 UTC 2013


Fabien:

Hmm, I am not sure whats different but I have a DreamPlug with
a kirkwood and I have it up now without an issue.

Of course I am using Head not 9.2

You might want to take a look at the changes in
the arm/mv

directory between head and 9.2 and see if there is anything
you can back-port (if you don't want to run head/10.0)

R
On Sep 26, 2013, at 4:39 AM, Fabien Thomas wrote:

> Hi,
> 
> I've been trying to boot a recent FreeBSD 9.2 on kirkwood but it seems that dma code is broken.
> Is there a known problem on this?
> 
> I've found that r251874 seems to introduce the problem.
> 
> Fabien
> 
> 
> Failed boot (the error message is about number of segment but in fact the dma subsystem return EFBIG):
> 
> Copyright (c) 1992-2013 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>       The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 9.1-STABLE #23 r251874+3a840b9-dirty: Wed Sep 11 12:21:33 CEST 2013
>   fabient at refbench:/home/fabient/obj/arm.arm/data/usr/home/fabient/fabient-freebsd/sys/X10 arm
> gcc version 4.2.1 20070831 patched [FreeBSD]
> WARNING: WITNESS option enabled, expect reduced performance.
> WARNING: DIAGNOSTIC option enabled, expect reduced performance.
> CPU: Feroceon 88FR131 rev 1 (Marvell core)
> DC enabled IC enabled WB enabled EABT branch prediction enabled
> 16KB/32B 4-way Instruction cache
> 16KB/32B 4-way write-back-locking-C Data cache
> real memory  = 536870912 (512 MB)
> avail memory = 516317184 (492 MB)
> SOC: Marvell 88F6281 rev A1, TClock 200MHz
> simplebus0: <Flattened device tree simple bus> on fdtbus0
> ic0: <Marvell Integrated Interrupt Controller> mem 0xf1020200-0xf102023b on simplebus0
> timer0: <Marvell CPU Timer> mem 0xf1020300-0xf102032f irq 1 on simplebus0
> Event timer "CPUTimer0" frequency 200000000 Hz quality 1000
> Timecounter "CPUTimer1" frequency 200000000 Hz quality 1000
> gpio0: <Marvell Integrated GPIO Controller> mem 0xf1010100-0xf101011f irq 35,36,37,38,39,40,41 on simplebus0
> device_attach: gpio0 attach returned 6
> gpio0: <Marvell Integrated GPIO Controller> on simplebus0
> simplebus0: no default resources for rid = 0, type = 3
> gpio0: could not allocate resources
> device_attach: gpio0 attach returned 6
> rtc0: <Marvell Integrated RTC> mem 0xf1010300-0xf1010307 on simplebus0
> twsi0: <Marvell Integrated I2C Bus Controller> mem 0xf1011000-0xf101101f irq 43 on simplebus0
> iicbus0: <Philips I2C bus> on twsi0
> iic0: <I2C generic I/O> on iicbus0
> iicbus0: <unknown card> at addr 0
> mge0: <Marvell Gigabit Ethernet controller> mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on simplebus0
> panic: wrong number of segments, should be 1
> KDB: enter: panic
> [ thread pid 0 tid 100000 ]
> Stopped at      $d:     ldrb    r15, [r15, r15, ror r15]!
> 
> db> bt
> Tracing pid 0 tid 100000 td 0xc0cab420
> kdb_enter() at kdb_enter+0x14
> scp=0xc0a0cebc rlv=0xc09dc73c (panic+0x128)
>       rsp=0xc0f32b2c rfp=0xc0f32b40
>       r5=0xc0cba8cc r4=0x00000100
> panic() at panic+0x18
> scp=0xc09dc62c rlv=0xc0bc7914 ($d)
>       rsp=0xc0f32b54 rfp=0xc0f32b60
> mge_get_dma_addr() at mge_get_dma_addr+0x18
> scp=0xc0bc7908 rlv=0xc0a094ec (bus_dmamap_load+0x100)
>       rsp=0xc0f32b64 rfp=0xc0f32bc4
> bus_dmamap_load() at bus_dmamap_load+0x10
> scp=0xc0a093fc rlv=0xc0bc8fe8 (mge_alloc_desc_dma+0x7c)
>       rsp=0xc0f32bc8 rfp=0xc0f32c24
>       r10=0x00000100 r9=0x00001000
>       r8=0x00000000 r7=0x00000000 r6=0xc3853000 r5=0x000000ff
>       r4=0xc38544cc
> mge_alloc_desc_dma() at mge_alloc_desc_dma+0x10
> scp=0xc0bc8f7c rlv=0xc0bc9528 (mge_attach+0x284)
>       rsp=0xc0f32c28 rfp=0xc0f32cac
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> 

------------------------------
Randall Stewart
803-317-4952 (cell)



More information about the freebsd-arm mailing list