lkml.org 
[lkml]   [2012]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: hpet_disable() call sites
>>> On 27.03.12 at 14:58, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Tue, 27 Mar 2012, Jan Beulich wrote:
>> up kernel has a problem if the HPET is in an unexpected state, in
>> particular preventing "normal" timer interrupts from occurring (which
>> was in particular found to be the case during kdump attempts after
>> Xen was running).
>
> What's Xen doing special with the hpet ?

Just like Linux it may use the legacy routing and fsb delivery bits, and
a (native) kdump kernel subsequently coming up would fail the
timer-connected-to-IOAPIC test if either remained enabled.

>> Is there any reason why hpet_disable() should not also be called
>> from (or some equivalent action be taken, perhaps including clearing
>> certain bits in the individual counters' configuration registers, which
>> are apparently - but perhaps wrongly - implied to be clear in e.g.
>> hpet_set_mode(), in) hpet_enable()?
>
> No, there is no particular reason why we don't clear those registers.

In that case I'll prepare a patch to do so. One related question is
whether use of the HPET should be suppressed when any bit unknown
to the kernel is found set, or whether unknown bits should also be
cleared.

Jan



\
 
 \ /
  Last update: 2012-03-27 15:17    [W:0.041 / U:1.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site