From owner-freebsd-arm@FreeBSD.ORG Fri Dec 28 15:33:32 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4EB7438F; Fri, 28 Dec 2012 15:33:32 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from mail111c7.megamailservers.com (mail111c7.megamailservers.com [69.49.98.211]) by mx1.freebsd.org (Postfix) with ESMTP id BDB2A8FC14; Fri, 28 Dec 2012 15:33:31 +0000 (UTC) X-Authenticated-User: hurds.sasktel.net Received: from stephen.hurd.local (ip70-187-145-241.oc.oc.cox.net [70.187.145.241]) (authenticated bits=0) by mail111c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id qBSFXLY5013938; Fri, 28 Dec 2012 10:33:22 -0500 Message-ID: <50DDBBC0.7070306@sasktel.net> Date: Fri, 28 Dec 2012 07:33:20 -0800 From: Stephen Hurd User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:16.0) Gecko/20121022 Firefox/16.0 SeaMonkey/2.13.1 MIME-Version: 1.0 To: Oleksandr Tymoshenko Subject: Re: svn commit: r244758 - head/sys/arm/broadcom/bcm2835 References: <201212280138.qBS1chFm022181@svn.freebsd.org> In-Reply-To: <201212280138.qBS1chFm022181@svn.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-CSC: 0 X-CHA: v=1.1 cv=2sEl+nYIWn3GVGOYG7vvzr4q0iGv5BXujfxzLqGOH1s= c=1 sm=1 a=sd1-78TbSwQA:10 a=h_uZHXPN_y0A:10 a=YxfxW3ofkq8A:10 a=8nJEP1OIZ-IA:10 a=qWhSLQ/2FgUpSQgLv9E1tw==:17 a=6I5d2MoRAAAA:8 a=GVGP_v-ml0a0xz5ZjDAA:9 a=wPNLvfGTeEIA:10 a=qWhSLQ/2FgUpSQgLv9E1tw==:117 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A020201.50DDBBC3.0028, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 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: Fri, 28 Dec 2012 15:33:32 -0000 Oleksandr Tymoshenko wrote: > Author: gonzo > Date: Fri Dec 28 01:38:43 2012 > New Revision: 244758 > URL: http://svnweb.freebsd.org/changeset/base/244758 > > Log: > Fix event timer on Raspberry Pi > > - Disable interrupt when updating compare value in order to > make this operation atomical > > - Increase minimum period for event timer. Systimer on BCM2835 > is compare timer, so if minimum period is too small it might > be less then fraction of time between "read current value" and > "set compare timer" operations. It means that when timer is armed > actual counter value is more then compare value and it will take > whole cycle (~32sec for 1MHz timer) to fire interrupt. > > Submitted by: Daisuke Aoyama This seems to have fixed the long hang issue I was having... package building ran overnight without the clock losing time or any hangs occuring. Thanks!