Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261840AbVBDUKh (ORCPT ); Fri, 4 Feb 2005 15:10:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266083AbVBDUF5 (ORCPT ); Fri, 4 Feb 2005 15:05:57 -0500 Received: from twilight.ucw.cz ([81.30.235.3]:15032 "EHLO suse.cz") by vger.kernel.org with ESMTP id S266690AbVBDUDl (ORCPT ); Fri, 4 Feb 2005 15:03:41 -0500 Date: Fri, 4 Feb 2005 21:03:59 +0100 From: Vojtech Pavlik To: Andi Kleen Cc: "Pallipadi, Venkatesh" , john stultz , lkml , keith maanthey , Max Asbock , Chris McDermott Subject: Re: i386 HPET code Message-ID: <20050204200359.GA5569@ucw.cz> References: <88056F38E9E48644A0F562A38C64FB6003EA715C@scsmsx403.amr.corp.intel.com> <20050203213026.GF3181@wotan.suse.de> <20050204200238.GA5510@ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050204200238.GA5510@ucw.cz> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 34 On Fri, Feb 04, 2005 at 09:02:38PM +0100, Vojtech Pavlik wrote: > On Thu, Feb 03, 2005 at 10:30:26PM +0100, Andi Kleen wrote: > > On Thu, Feb 03, 2005 at 06:28:27AM -0800, Pallipadi, Venkatesh wrote: > > > > > > Hi John, Andrew, > > > > > > > > > Can you check whether only the following change makes the problem go > > > away. If yes, then it looks like a hardware issue. > > > > > > > hpet_writel(hpet_tick, HPET_T0_CMP); > > > >+ hpet_writel(hpet_tick, HPET_T0_CMP); /* AK: why twice? */ > > > > > > Ask Vojtech (cced), he wrote the x86-64 HPET code. > > It took me a while to remember, but: > > The first write after writing TN_SETVAL to the config register sets the > counter value, the second write sets the threshold. > > When you only do the first write you never set the threshold and > interrupts won't be generated properly. That means it's not a bug, but a (documented) feature. -- Vojtech Pavlik SuSE Labs, SuSE CR - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/