From: Thomas Gleixner <tglx@linutronix.de>
To: Feng Tang <feng.tang@intel.com>
Cc: "mingo@elte.hu" <mingo@elte.hu>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] tick: add check for the existence of broadcast clock event device
Date: Sat, 6 Jun 2009 14:54:49 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.0906061450220.3419@localhost.localdomain> (raw)
In-Reply-To: <20090606204736.00700bd0@feng-desktop>
Feng,
On Sat, 6 Jun 2009, Feng Tang wrote:
> > If your percpu devices are always on (not affected by C3 stop) then
> > you never dereference bc. So why do we need an extra check for !bc ?
>
> Hi tglx,
> Thanks for the explanation. But we really ran into the NULL pointer
> case, in our platform, there are 2 X86 CPUs which have lapic, also
> it has 2 external timers which are pretty similar with HPET timers,
> those 2 external timers will be used as per-cpu timers (higher
> rating than lapic timer). In system's power cycle of suspend and
> resume, disable_nontboot_cpus will be called before goto suspend
> state,and enable_nonboot_cpus will be called for the resume process,
> so lapic timer of cpu1 will be first registered as per-cpu timer,
> and our external timer will be registered later after get a
> CPU_ONLINE notifier (similar with HPET), right in this time slot
> that lapic is the per-cpu timer, when system get the
> CLOCK_EVT_BROADCAST_ENTER/EXIT msg, tick_do_broadcast_on_off() is
> called and hit the NULL pointer case.
Ok, I can understand now why we need it. I'll apply your patch and add
some more info into the commit msg so we do not look at it in a year
and scratch our heads. :)
> Our external timer driver is very similar with HPET dirver, why HPET
> doesn't see such an issue? becuase HPET has enough number of timers,
> and it use "hpet0" as the bc device, while our platform doesn't have
> a extra one to act as bc.
Correct.
Thanks,
tglx
next prev parent reply other threads:[~2009-06-06 12:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 3:27 [PATCH] tick: add check for the existence of broadcast clock event device Feng Tang
2009-06-06 9:24 ` Thomas Gleixner
2009-06-06 12:47 ` Feng Tang
2009-06-06 12:54 ` Thomas Gleixner [this message]
2009-06-06 16:18 ` Thomas Gleixner
2009-06-08 1:57 ` Feng Tang
2009-06-08 5:43 ` Thomas Gleixner
2009-06-08 6:12 ` Feng Tang
2009-06-08 6:33 ` Thomas Gleixner
2009-06-08 6:47 ` Feng Tang
2009-06-08 7:00 ` Thomas Gleixner
2009-06-08 7:47 ` Tang, Feng
2009-06-08 13:41 ` Thomas Gleixner
2009-06-09 0:21 ` Pan, Jacob jun
2009-06-09 8:18 ` Thomas Gleixner
2009-06-09 12:49 ` Pan, Jacob jun
2009-06-09 16:53 ` 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=alpine.LFD.2.00.0906061450220.3419@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=feng.tang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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