From: Thomas Gleixner <tglx@linutronix.de>
To: Vladimir Davydov <vdavydov@parallels.com>
Cc: "Venkatesh Pallipadi (Venki)" <venki@google.com>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Paul Gortmaker <paul.gortmaker@windriver.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arch: x86: init hpet event_handler to noop
Date: Mon, 7 May 2012 22:26:34 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.02.1205072150590.6271@ionos> (raw)
In-Reply-To: <1335283031-12942-1-git-send-email-vdavydov@parallels.com>
On Tue, 24 Apr 2012, Vladimir Davydov wrote:
> If hpet is enabled by hpet_late_init() - this usually occurs on systems
> with buggy BIOS, which does not report about hpet presence through ACPI,
> hpet_clockevent's event_handler can be left uninitialized by
> clockevents_register_device() because of hpet_clockevent low rating (by
> the time hpet_late_init() is called, high prio apic timers have already
> been setup). The event_handler is then initialized a bit later by the
> clocksource_done_booting() procedure.
>
This explanation is worse than an oracle and aside of that, it's
patently wrong.
How the hell is clocksource_done_booting() related to the HPET
clockevent mechanism?
> Normally, timer interrupts should not be delivered between these two
> calls, but if e.g. the kernel is booted using kexec, there might be some
> pending interrupts from the previous kernel's context, which can lead to
> a NULL pointer dereference in timer_interrupt().
How is kexec related to this?
And how should pending interrupts be not handled by the always first
initialized PIT ?
> Avoid this by initializing hpet's event_handler to noop in its definition.
"Avoid" is the correct term: You're avoiding to track down the root
cause of the problem.
This is fairy tale mode. I really love fairy tales, just not in the
context of kernel code.
Please provide proper proof why this can happen instead of some
handwavy explanations.
Thanks,
tglx
next prev parent reply other threads:[~2012-05-07 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 15:57 Vladimir Davydov
2012-05-07 20:26 ` Thomas Gleixner [this message]
2012-05-14 10:43 ` Vladimir Davydov
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=alpine.LFD.2.02.1205072150590.6271@ionos \
--to=tglx@linutronix.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paul.gortmaker@windriver.com \
--cc=vdavydov@parallels.com \
--cc=venki@google.com \
--cc=x86@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
all inboxes | Powered by JetHome®