From owner-freebsd-arm@FreeBSD.ORG Thu Sep 26 12:31:46 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 450D03AA; Thu, 26 Sep 2013 12:31:46 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from lakerest.net (lakerest.net [70.155.160.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B8C5726CA; Thu, 26 Sep 2013 12:31:45 +0000 (UTC) Received: from [10.61.38.164] ([38.122.72.170]) (authenticated bits=0) by lakerest.net (8.14.4/8.14.3) with ESMTP id r8QCVacI041733 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 26 Sep 2013 08:31:37 -0400 (EDT) (envelope-from rrs@lakerest.net) Subject: Re: FreeBSD 9.2 ARM dma bug Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Randall Stewart In-Reply-To: <8B549CBC-A933-460B-8EB7-DD6019757492@freebsd.org> Date: Thu, 26 Sep 2013 08:31:36 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <85242180-A39F-49BB-B726-752D2F8F9B1F@lakerest.net> References: <7BA67ED8-2F3C-4B9F-8816-2D294A973CAF@freebsd.org> <8B549CBC-A933-460B-8EB7-DD6019757492@freebsd.org> To: Fabien Thomas X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2013 12:31:46 -0000 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, >=20 > 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? >=20 > I've found that r251874 seems to introduce the problem. >=20 > Fabien >=20 >=20 > Failed boot (the error message is about number of segment but in fact = the dma subsystem return EFBIG): >=20 > 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@refbench:/home/fabient/obj/arm.arm/data/usr/home/fabient/fabient-f= reebsd/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 =3D 536870912 (512 MB) > avail memory =3D 516317184 (492 MB) > SOC: Marvell 88F6281 rev A1, TClock 200MHz > simplebus0: on fdtbus0 > ic0: mem = 0xf1020200-0xf102023b on simplebus0 > timer0: mem 0xf1020300-0xf102032f irq 1 on = simplebus0 > Event timer "CPUTimer0" frequency 200000000 Hz quality 1000 > Timecounter "CPUTimer1" frequency 200000000 Hz quality 1000 > gpio0: mem 0xf1010100-0xf101011f = irq 35,36,37,38,39,40,41 on simplebus0 > device_attach: gpio0 attach returned 6 > gpio0: on simplebus0 > simplebus0: no default resources for rid =3D 0, type =3D 3 > gpio0: could not allocate resources > device_attach: gpio0 attach returned 6 > rtc0: mem 0xf1010300-0xf1010307 on simplebus0 > twsi0: mem = 0xf1011000-0xf101101f irq 43 on simplebus0 > iicbus0: on twsi0 > iic0: on iicbus0 > iicbus0: at addr 0 > mge0: 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]! >=20 > db> bt > Tracing pid 0 tid 100000 td 0xc0cab420 > kdb_enter() at kdb_enter+0x14 > scp=3D0xc0a0cebc rlv=3D0xc09dc73c (panic+0x128) > rsp=3D0xc0f32b2c rfp=3D0xc0f32b40 > r5=3D0xc0cba8cc r4=3D0x00000100 > panic() at panic+0x18 > scp=3D0xc09dc62c rlv=3D0xc0bc7914 ($d) > rsp=3D0xc0f32b54 rfp=3D0xc0f32b60 > mge_get_dma_addr() at mge_get_dma_addr+0x18 > scp=3D0xc0bc7908 rlv=3D0xc0a094ec (bus_dmamap_load+0x100) > rsp=3D0xc0f32b64 rfp=3D0xc0f32bc4 > bus_dmamap_load() at bus_dmamap_load+0x10 > scp=3D0xc0a093fc rlv=3D0xc0bc8fe8 (mge_alloc_desc_dma+0x7c) > rsp=3D0xc0f32bc8 rfp=3D0xc0f32c24 > r10=3D0x00000100 r9=3D0x00001000 > r8=3D0x00000000 r7=3D0x00000000 r6=3D0xc3853000 r5=3D0x000000ff > r4=3D0xc38544cc > mge_alloc_desc_dma() at mge_alloc_desc_dma+0x10 > scp=3D0xc0bc8f7c rlv=3D0xc0bc9528 (mge_attach+0x284) > rsp=3D0xc0f32c28 rfp=3D0xc0f32cac > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >=20 ------------------------------ Randall Stewart 803-317-4952 (cell)