mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: "Thomas Gleixner" <tglx@linutronix.de>
Cc: <mingo@elte.hu>, <hirofumi@mail.parknet.co.jp>,
	<linux-kernel@vger.kernel.org>, <hpa@zytor.com>
Subject: Re: hpet_disable() call sites
Date: Tue, 27 Mar 2012 14:16:14 +0100	[thread overview]
Message-ID: <4F71D9BE020000780007B268@nat28.tlf.novell.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1203271457460.2542@ionos>

>>> 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


  reply	other threads:[~2012-03-27 13:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27  8:19 Jan Beulich
2012-03-27 12:58 ` Thomas Gleixner
2012-03-27 13:16   ` Jan Beulich [this message]
2012-03-27 13:54     ` Thomas Gleixner

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=4F71D9BE020000780007B268@nat28.tlf.novell.com \
    --to=jbeulich@suse.com \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®