Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2007 13:32:26 -0400 (EDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Attilio Rao <attilio@freebsd.org>
Cc:        Goran Gajic <ggajic@afrodita.rcub.bg.ac.yu>, freebsd-current@freebsd.org
Subject:   Fixed (was: Re: Kernel hanging after today cvsup at Timecounter "TSC)
Message-ID:  <20070523133052.O28780@fledge.watson.org>
In-Reply-To: <3bbf2fe10705230954pc9d013dpcbe678cd296b4105@mail.gmail.com>
References:  <Pine.LNX.4.64.0705221600300.23596@afrodita.rcub.bg.ac.yu>  <20070522134724.L28780@fledge.watson.org> <20070522202914.GB64542@bunrab.catwhisker.org> <20070523103815.W28780@fledge.watson.org> <3bbf2fe10705230954pc9d013dpcbe678cd296b4105@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, 23 May 2007, Attilio Rao wrote:

>> I've uploaded the actual stack trace with arguments as
>>
>>   http://www.watson.org/~robert/freebsd/20070523-panic.png
>
> Ok, it seems that the new time_lock spinlock is initialized too late, and 
> infact cpu_initclocks() is called before it is initialized.
>
> It is enough to move the mtx_init() just before the cpu_initclocks() in 
> kern_clock.c::initclocks().
>
> Can someone try that and report if it works?
>
> I'm sorry for that, but I (and presumabily other people testing the patch) 
> never got that problems on all machines we used (probabilly beacause this is 
> just triggered when attaching vgaX).

I've made the change, sucessfully booted, and committed the fix as 
kern_clock.c:1.196.  Thanks!

Robert N M Watson
Computer Laboratory
University of Cambridge
5B



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070523133052.O28780>