linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] HPET fixes and enhancements
@ 2005-09-28  7:11 Clemens Ladisch
  2005-09-28  7:12 ` [PATCH 1/7] HPET: remove unused variable Clemens Ladisch
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Clemens Ladisch @ 2005-09-28  7:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, Bob Picco, Clemens Ladisch

These patches remove a bunch of warts and quirks from the HPET drivers.


 arch/i386/kernel/time_hpet.c |   20 +++++++++++---------
 arch/x86_64/kernel/time.c    |   20 +++++++++++---------
 drivers/char/hpet.c          |   39 ++++++++++++++++++++++++---------------
 3 files changed, 46 insertions(+), 33 deletions(-)

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: [PATCH 5/7] HPET-RTC: disable interrupt when no longer needed
@ 2005-10-05 20:37 Pallipadi, Venkatesh
  0 siblings, 0 replies; 13+ messages in thread
From: Pallipadi, Venkatesh @ 2005-10-05 20:37 UTC (permalink / raw)
  To: Clemens Ladisch, Andrew Morton; +Cc: linux-kernel, Bob Picco


>-----Original Message-----
>From: aezr4@studcom.urz.uni-halle.de 
>[mailto:aezr4@studcom.urz.uni-halle.de] On Behalf Of Clemens Ladisch
>Sent: Wednesday, September 28, 2005 11:30 PM
>To: Pallipadi, Venkatesh
>Cc: linux-kernel@vger.kernel.org; Bob Picco
>Subject: Re: [PATCH 5/7] HPET-RTC: disable interrupt when no 
>longer needed
>
>Venkatesh Pallipadi wrote:
>> On Wed, Sep 28, 2005 at 09:12:26AM +0200, Clemens Ladisch wrote:
>> > When the emulated RTC interrupt is no longer needed, we 
>better disable
>> > it; otherwise, we get a spurious interrupt whenever the timer has
>> > rolled over and reaches the same comparator value.
>> >
>> > Having a superfluous interrupt every five minutes doesn't 
>hurt much,
>> > but it's bad style anyway.  ;-)
>>
>> Do you really see the interrupt every five minutes once RTC 
>is disabled.
>
>Yes; at least on my Intel chipset.  ;-)
>
>> I had assumed while in one-shot interrupt mode, HPET would 
>automatically unarm
>> after generating the interrupt, so that we won't get 
>interrupts any more.
>
>The spec never mentions this.  What it mentions is that it was
>designed so that it can be implemented in as few gates as possible.
>

Verified in the latest version of the SPEC. It indeed says that
one shot timer can happen more than once when the 32 bit counter 
wraps around. So, this patch is also required. Thanks for all the fixes.

Andrew, Please pick this one as well.

Thanks,
venki

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-10-05 20:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-28  7:11 [PATCH 0/7] HPET fixes and enhancements Clemens Ladisch
2005-09-28  7:12 ` [PATCH 1/7] HPET: remove unused variable Clemens Ladisch
2005-09-28  7:12 ` [PATCH 2/7] HPET: remove superfluous register reads Clemens Ladisch
2005-09-28  7:12 ` [PATCH 3/7] HPET: allow non-power-of-two frequencies Clemens Ladisch
2005-09-28  7:12 ` [PATCH 4/7] HPET: allow shared interrupts Clemens Ladisch
2005-09-28  7:12 ` [PATCH 5/7] HPET-RTC: disable interrupt when no longer needed Clemens Ladisch
2005-09-28 13:03   ` Venkatesh Pallipadi
2005-09-29  6:30     ` Clemens Ladisch
2005-09-28  7:12 ` [PATCH 6/7] HPET-RTC: fix timer config register accesses Clemens Ladisch
2005-09-28 13:06   ` Venkatesh Pallipadi
2005-09-28  7:12 ` [PATCH 7/7] HPET-RTC: cache the comparator register Clemens Ladisch
2005-09-28 15:44 ` [PATCH 0/7] HPET fixes and enhancements Bob Picco
2005-10-05 20:37 [PATCH 5/7] HPET-RTC: disable interrupt when no longer needed Pallipadi, Venkatesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).