From owner-freebsd-arm@FreeBSD.ORG Wed Apr 17 16:38:26 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2E8A1230 for ; Wed, 17 Apr 2013 16:38:26 +0000 (UTC) (envelope-from yaakovozer@yahoo.de) Received: from nm22-vm5.bullet.mail.ird.yahoo.com (nm22-vm5.bullet.mail.ird.yahoo.com [212.82.109.224]) by mx1.freebsd.org (Postfix) with SMTP id 50B8D3E7 for ; Wed, 17 Apr 2013 16:38:24 +0000 (UTC) Received: from [77.238.189.231] by nm22.bullet.mail.ird.yahoo.com with NNFMP; 17 Apr 2013 16:38:18 -0000 Received: from [212.82.98.120] by tm12.bullet.mail.ird.yahoo.com with NNFMP; 17 Apr 2013 16:38:17 -0000 Received: from [127.0.0.1] by omp1057.mail.ir2.yahoo.com with NNFMP; 17 Apr 2013 16:38:17 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 776120.98074.bm@omp1057.mail.ir2.yahoo.com Received: (qmail 15808 invoked by uid 60001); 17 Apr 2013 16:38:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1366216697; bh=p2Cd19o8+HPNiHOSXhYWa3DTB/MpDFcwXStcT/Yypx8=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=PFHtaFXkFHXjbEcE33Qw2MeLueyJxBmOvODcsaW6XJsLYvpWT+K0mjt2rsbNDHi09N+5lari933/Ixs5rT7EFEE7QhGAMq7BCiDiSMw7XulFoDViDgRBWpISwZjm4GA9XDMUXrfYbnnda7WtlrP0C/sYnTw6ipGtMiRcIrcUku8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=ts14dbewTP8Rja2/F6nhoVvtnlzI40RmuRS3ow66A5tgwxtfa90G0VSgKdKwrEfz9EHyHHqjywWvRY99enVp9Jd9U3LPsq+oGg3w8FAuajO+0asU3HbqXIV8QG/5qUL77WmrDSaP4WCwmSItDBnHAISHVz/V3yYOzLjrmcyIsFM=; X-YMail-OSG: XuCAHAMVM1kQpZ_coS4aewQMsRI.qf3JbcZObOLrV37EH2B BBRQCA.lgYoz.Sf7jjXtr3a4sRhVMvmWrS8yeV7lKymXf_Ab1RiIHzgcrzkT GhGTeqN.Az8RugsXnwssRVn3_sXwvj0V0uhPd7gstduECykDqbQK14XXN4ba DWDHpqZ0jKuDfrwnC0JoRRXNfA8cUT0D9Du_1sB09cos5H2RqKsui10XA1BV 3aLe7uN5YRCjx1PRWbj27LWotBeCSOd6OHWiI88xU3CjpdSSkyNNKsKffwHL qP3dOoNomR0AMcZbDXqoHG.KyZnfAZCnEsOSDfEHB4d0ARs.41b1fZx_66Pw CYJCo2vret.139aUZoZa3_0nng9hQQAR2xIkK0p3OYcVC3rW1R73Pqifk_aY pinq8H96sdcYoWQu_oyZ7OT104b3YQAQHNCXd5v_hCMlpKGOA3ZArXP.wRVo HaJFmIUH6Z0EYO2Aa0z75p5jhmExoUXmrcwzh Received: from [109.250.81.48] by web172705.mail.ir2.yahoo.com via HTTP; Wed, 17 Apr 2013 17:38:17 BST X-Rocket-MIMEInfo: 002.001, SGksCmhvdyBhYm91dCBzdXBwb3J0IFpGUyBieSBjdWJpZWJvYXJkIHdpdGggMUdiIG9mIFJBTT8KSXMgaXQgcG9zc2libGUgdG8gY3JlYXRlIGFueSBaRlMgcG9vbCBvbiBhIHNhdGEgSEQgPwpUaGFua3MuATABAQEB X-Mailer: YahooMailWebService/0.8.140.532 Message-ID: <1366216697.6005.YahooMailMobile@web172705.mail.ir2.yahoo.com> Date: Wed, 17 Apr 2013 17:38:17 +0100 (BST) From: Yan Ozer Subject: zfs cubieboard To: freebsd-arm@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Wed, 17 Apr 2013 16:38:26 -0000 Hi,=0Ahow about support ZFS by cubieboard with 1Gb of RAM?=0AIs it possible= to create any ZFS pool on a sata HD ?=0AThanks. From owner-freebsd-arm@FreeBSD.ORG Wed Apr 17 22:45:14 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 788A96C0 for ; Wed, 17 Apr 2013 22:45:14 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by mx1.freebsd.org (Postfix) with ESMTP id 135C1B51 for ; Wed, 17 Apr 2013 22:45:13 +0000 (UTC) Received: by mail-ee0-f50.google.com with SMTP id e53so1011603eek.37 for ; Wed, 17 Apr 2013 15:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=Xcv9DwX7qwErYBw101orIc6bIk2InyKsYudlYImAwko=; b=QEo6KUKgbdTdfNiOwIHtVzaZvM8mrw2H15NhWnGYxQHmEBwoAuzX1MrdzRdcaTjv0c 1kJPvyfw9/EAVIeVKjvS+q1IxOvBpQcQOrdEWOWS8hHsyAg+A9Xx2lDebcDcuOcUkqja jjHsIsCUoAAK0INiPWpGpz7smtK3FbtRwGilm1qlBU12qrJTNdSeCLgFtZYNGqC98yIU XRN79Oh2PtYOaURkq4k5o9C6neAhNuGI95JcvDc67FvDSgUVCZ1MMeWQzxV5nW1nU6cz e1HWHdmS3wnM5jEzC0phbh6XXbiVm/fqMvrKYmpdxNHtg8GnN0Gt2W4ySfd/63+sTOzs sQRA== X-Received: by 10.14.5.137 with SMTP id 9mr22886434eel.30.1366238707054; Wed, 17 Apr 2013 15:45:07 -0700 (PDT) Received: from ?IPv6:2001:470:72bb::12c? ([2001:470:72bb::12c]) by mx.google.com with ESMTPS id s47sm11811951eeg.8.2013.04.17.15.45.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Apr 2013 15:45:05 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: __rw_wlock_hard panic on 1st malloc From: Damjan Marion In-Reply-To: <9A3C042F-3765-4791-AB51-63EA82488743@bsdimp.com> Date: Thu, 18 Apr 2013 00:45:03 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <8550022A-E05B-4CEA-B899-3D81DDCC9B57@gmail.com> References: <8DE83B01-4508-41C5-B2BD-95A72D0AD963@bsdimp.com> <92C60946-8FFB-46A1-9400-9E0F7B11FC23@gmail.com> <9A3C042F-3765-4791-AB51-63EA82488743@bsdimp.com> To: Warner Losh X-Mailer: Apple Mail (2.1503) 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: Wed, 17 Apr 2013 22:45:14 -0000 yes, thanks for the hint. After moving back to gcc everything works = fine. Damjan On Apr 17, 2013, at 5:37 PM, Warner Losh wrote: > I don't think it is, at least not with clang compiled code. Ian was = saying on IRC that he saw this and went back to gcc and life was good. >=20 > Warner >=20 > On Apr 16, 2013, at 5:44 PM, Damjan Marion wrote: >=20 >>=20 >> When I apply your patch I'm getting the same error but this time in = busdma_init(). >> Again it is 1st malloc() inside busdma_bufalloc_create(). >>=20 >> Can anybody confirm that latest HEAD is working on other Cortex-A = CPUs? >>=20 >> Damjan >>=20 >> On Apr 17, 2013, at 12:43 AM, Warner Losh wrote: >>=20 >>> The problem here is a double fault. The first fault is in = init_dynamic_kenv when we try to read the kernel environment. The second = fault happens because we don't wind up in the debugger (I think due to = reading the stack goes awry). >>>=20 >>> I've fixed the first problem in r249570. >>>=20 >>> Not sure what's going on beyond that, since after fixing that I hit = a similar issue in stack_copy() but without a traceback, it is kinda = hard. >>>=20 >>> This is on my MarsBoard with an allwinner tech's A10 CPU. >>>=20 >>> Warner >>>=20 >>>=20 >>> On Apr 14, 2013, at 12:51 PM, Damjan Marion wrote: >>>=20 >>>>=20 >>>> I doubt. init_dynamic_kenv() is called by sysinit as part of = standard sysinit sequence and=20 >>>> it is called after kmeminit(). >>>>=20 >>>> There is no my custom code except standard parts of initarm = initialisation. >>>>=20 >>>> Damjan >>>>=20 >>>> On Apr 14, 2013, at 7:19 PM, Warner Losh wrote: >>>>=20 >>>>> Maybe you are calling malloc before these locks are initialized? >>>>>=20 >>>>> Warner >>>>>=20 >>>>> On Apr 14, 2013, at 5:03 AM, Damjan Marion wrote: >>>>>=20 >>>>>>=20 >>>>>> Hi, >>>>>>=20 >>>>>> I'm playing a bit with i.MX6 based board (wandboard) and I have = serial console working but >>>>>> now it panics in init_dynamic_kenv() with the following error: >>>>>>=20 >>>>>> panic: __rw_wlock_hard: recursing but non-recursive rw pmap pv = global @ /usr/src/sys/arm/arm/pmap-v6.c:1187 >>>>>>=20 >>>>>> It looks like this is the 1st place where malloc() is called, an = malloc returns valid VA >>>>>> but 1st attempt to access that address produces panic above. >>>>>>=20 >>>>>> Any idea what can be the reason for this or any other hint? >>>>>>=20 >>>>>> Thanks, >>>>>>=20 >>>>>> Damjan >>>>>> _______________________________________________ >>>>>> 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 >>>>=20 >>>=20 >>=20 >=20