From: Vojtech Pavlik <vojtech@suse.cz>
To: john stultz <johnstul@us.ibm.com>
Cc: Andi Kleen <ak@suse.de>, lkml <linux-kernel@vger.kernel.org>,
Chris McDermott <lcm@us.ibm.com>
Subject: Re: [RFC][PATCH] x86_64: Fix collision between pmtimer and pit/hpet timekeeping
Date: Thu, 8 Dec 2005 10:34:04 +0100 [thread overview]
Message-ID: <20051208093403.GA7445@midnight> (raw)
In-Reply-To: <1133978430.18188.3.camel@leatherman>
On Wed, Dec 07, 2005 at 10:00:30AM -0800, john stultz wrote:
> On Wed, 2005-12-07 at 18:53 +0100, Andi Kleen wrote:
> > On Tue, Dec 06, 2005 at 09:00:39PM -0800, john stultz wrote:
> > > Hello,
> > > I thought I had caught all the problems when the no-legacy HPET support
> > > landed close to the time that the ACPI PM timer support landed, but
> > > apparently not. :(
> > >
> > > On systems that do not support the HPET legacy functions (basically the
> > > IBM x460, but there could be others), in time_init() we accidentally
> > > fall into a PM timer conditional and set the vxtime_hz value to the PM
> > > timer's frequency. We then use this value with the HPET for timekeeping.
> > >
> > > This patch (which mimics the behavior in time_init_gtod) corrects the
> > > collision.
> > >
> > > Andi, any objections or suggestions for a better way?
> >
> > Ok. I will apply it.
> >
> > But I never quite got why you fall back to the PIT on these systems
> > anyways - if LEGSUP is not set it just means that the HPET interrupt
> > cannot be routed to irq 0, right? It should be quite easy to change
> > the timer code to accept timer interrupts on other irqs.
> >
> > You just need to allocate the other interrupt and possibly coordinate
> > that with the hpet char driver (or rather move the code for that
> > from there to time.c). I think implementing that would be a better
> > solution.
>
> Indeed that does sound like a decent cleanup. I can't promise anything
> in the near future, but its on my list.
>
> Would you then want to move all systems to use the non-legacy HPET
> interrupt?
Yes, that'd be very cool. The problem with doing it is that HPET is
initialized at a very early stage of boot where it isn't at all clear
which APIC pins will be free to take the HPET interrupt(s).
--
Vojtech Pavlik
SuSE Labs, SuSE CR
prev parent reply other threads:[~2005-12-08 9:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 5:00 [RFC][PATCH] x86_64: Fix collision between pmtimer and pit/hpet timekeeping john stultz
2005-12-07 17:53 ` Andi Kleen
2005-12-07 18:00 ` john stultz
2005-12-07 18:29 ` Andi Kleen
2005-12-08 9:34 ` Vojtech Pavlik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051208093403.GA7445@midnight \
--to=vojtech@suse.cz \
--cc=ak@suse.de \
--cc=johnstul@us.ibm.com \
--cc=lcm@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox