From owner-freebsd-arm@FreeBSD.ORG Mon Mar 25 17:43:29 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 949E96DD for ; Mon, 25 Mar 2013 17:43:29 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by mx1.freebsd.org (Postfix) with ESMTP id 6DAC06A9 for ; Mon, 25 Mar 2013 17:43:29 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UKBQY-000H2z-Rd; Mon, 25 Mar 2013 17:43:23 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r2PHhHf2009338; Mon, 25 Mar 2013 11:43:17 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX183k9DQi/SiQzz4aHhxaf22 Subject: Re: Preemption on MV78100 (ARMv5TE)? From: Ian Lepore To: MagnusNilsson In-Reply-To: <1364229402306-5798982.post@n5.nabble.com> References: <1364062508310-5798411.post@n5.nabble.com> <1364063575.1157.155.camel@revolution.hippie.lan> <1364150036396-5798701.post@n5.nabble.com> <1364152536.1157.173.camel@revolution.hippie.lan> <1364229402306-5798982.post@n5.nabble.com> Content-Type: text/plain; charset="us-ascii" Date: Mon, 25 Mar 2013 11:43:17 -0600 Message-ID: <1364233397.36972.8.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit 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: Mon, 25 Mar 2013 17:43:29 -0000 On Mon, 2013-03-25 at 09:36 -0700, MagnusNilsson wrote: > > Oh yeah, here's another fix that isn't in 8.2 that's pretty important, > > at least on kirkwood series chips... Enabling cache write-allocate > > causes data corruption. > > Applying that patch made for a proper crash instead of a silent hang (which > I consider a step forward): > "Entropy harvesting: interrupts ethernet point_to_point > vm_fault(0xc4dfc4e4, 0, 2, 0) -> 1 > Fatal kernel mode data abort: 'Translation Fault (P)' > trapframe: 0xd8ea2b64 > FSR=00000017, FAR=00000018, spsr=600000d3 > r0 =000002a0, r1 =00000000, r2 =00000380, r3 =0000001c > r4 =c51115e0, r5 =00000000, r6 =00000000, r7 =00000000 > r8 =cbec9c50, r9 =c0bc5da0, r10=c0b4f908, r11=c0bb1178 > r12=c0bca52c, ssp=d8ea2bb0, slr=c09f25fc, pc =c09f26f0" > > pc is in sleepq_add(), which I assume is reasonable on a system with broken > preemption? Hrm. Yeah, progress but not all good. Preemption shouldn't be broken. I enabled it on one of my atmel-based units here that runs 8.2-plus-some-fixes and it's working fine. I guess I need to get 8.2 running on a marvell chip to see if I can reproduce the preemption problem. That may take a couple days, it's been quite a while since I've run anything but -current on marvell. -- Ian