From: Keir Fraser Subject: Re: [timer/ticks related] dom0 hang during boot on large 1TB system Date: Tue, 22 Dec 2009 07:35:10 +0000 Message-ID: References: <20091221154003.36966498@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20091221154003.36966498@mantra.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mukesh Rathor Cc: Kurt Hackel , Dan Magenheimer , "Xen-devel@lists.xensource.com" , Jeremy Fitzhardinge List-Id: xen-devel@lists.xenproject.org On 21/12/2009 23:40, "Mukesh Rathor" wrote: > Actually, INITIAL_JIFFIES appears to be buggy on 64bit linux: > > #define INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ)) > > The casting to uint makes it still 0xfffedb08 instead of > 0xfffffffffffedb08 which is what the intention is, that jiffies should > wrap in few minutes. So, if they fix it in linux in future, my > patch will still have the same problem. Actually the cast to unsigned int is deliberate. They want jiffies to wrap 32 bits soon after boot, but it should pretty much never wrap 64 bits. -- Keir