From: Tony Lindgren <tony@atomide.com>
To: Bernard Blackham <b-lkml@blackham.com.au>
Cc: Christian Hesse <mail@earthworm.de>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Dynamic tick for x86 version 050602-2
Date: Thu, 9 Jun 2005 21:05:13 -0700 [thread overview]
Message-ID: <20050610040513.GB18103@atomide.com> (raw)
In-Reply-To: <20050605040627.GA28376@ucc.gu.uwa.edu.au>
* Bernard Blackham <b-lkml@blackham.com.au> [050604 21:07]:
> On Thu, Jun 02, 2005 at 10:03:18PM +0200, Christian Hesse wrote:
> > > > > Please let me know of any issues with the patch. I'll continue to do
> > > > > more clean-up on it, but I think the basic functionality is done.
>
> If CONFIG_NO_IDLE_HZ and CONFIG_X86_UP_APIC is set, but
> CONFIG_DYN_TICK_USE_APIC is *not* set, there's still one case where
> reprogram_apic_timer was still being called. This was causing my system
> to seize for around a second or so when doing some things (most notably
> probing for devices on boot, and when suspending/resuming PCI devices).
> Attached patch fixes those hangs for me.
Thanks, I've added it to the patch I'll post shortly.
> However, "using APIC" is still reported as 1 in sysfs. This is cosmetic,
> but still incorrect :)
Urhg, yes it still needs some cleaning up...
> > - using software suspend 2.1.8.10 I can suspend the system, but it
> > hangs while resuming
>
> When software suspend resumes, it suspends (more correctly, "freezes")
> all devices, copies the old kernel over the top of itself with
> interrupts off (which includes the value of xtime from suspend-time),
> and then resumes all devices. The resuming all devices bit includes
> calling timer_resume in arch/i386/kernel/time.c which winds xtime
> forwards by the amount of time we were asleep for (according to the CMOS
> clock). I think this may be one source of confusion to the dyntick code.
>
> Turning on dyn_tick_dbg and some extra printk's shows that it hangs
> inside this loop in dyn_tick_timer_interrupt:
>
> while (now - last_tick >= NS_TICK_LEN) {
> last_tick += NS_TICK_LEN;
> [... call do_timer_interrupt and stuff ... ]
> }
>
> I haven't pinned it down yet, but I'm curious if perhaps now <
> last_tick, in which case the loop will take until the end of the
> universe to terminate (well, nearly). There's reference in timer_tsc.c
> to APM doing magic to ensure monotonic_clock is infact monotonic when
> suspending to disk (as the TSC counter itself will get reset to zero on
> boot), but I'm not sure what this magic is, or if the magic is done if
> we're not using APM.
Again, it suspend and resume worked fine on my laptop. No APIC timer on it
though.
Tony
next prev parent reply other threads:[~2005-06-10 4:06 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-02 1:36 [PATCH] Dynamic tick for x86 version 050602-1 Tony Lindgren
2005-06-02 1:54 ` Zwane Mwaikambo
2005-06-02 2:09 ` Tony Lindgren
2005-06-02 8:30 ` Christian Hesse
2005-06-02 17:42 ` [PATCH] Dynamic tick for x86 version 050602-2 Tony Lindgren
2005-06-02 20:03 ` Christian Hesse
2005-06-02 20:32 ` Tony Lindgren
2005-06-03 6:08 ` Christian Hesse
2005-06-03 17:39 ` Tony Lindgren
2005-06-04 12:51 ` Christian Hesse
2005-06-10 4:03 ` Tony Lindgren
2005-06-05 4:06 ` Bernard Blackham
2005-06-10 4:05 ` Tony Lindgren [this message]
2005-06-03 22:37 ` Pavel Machek
2005-06-03 22:47 ` Pavel Machek
2005-06-10 4:17 ` Tony Lindgren
2005-06-10 9:15 ` Pavel Machek
2005-06-10 15:17 ` Tony Lindgren
2005-06-10 22:15 ` [PATCH] Dynamic tick for x86 version 050610-1 Tony Lindgren
2005-06-18 3:34 ` hugang
2005-06-18 6:30 ` Benjamin Herrenschmidt
2005-06-21 1:28 ` Tony Lindgren
2005-06-21 1:49 ` Benjamin Herrenschmidt
2005-06-21 2:21 ` Tony Lindgren
2005-07-19 6:51 ` hugang
2005-07-19 13:51 ` Benjamin Herrenschmidt
2005-07-25 10:11 ` Tony Lindgren
2005-06-11 17:59 ` [PATCH] Dynamic tick for x86 version 050602-2 Kyle Moffett
2005-06-07 20:36 ` [PATCH] Dynamic tick for x86 version 050602-1 Jonathan Corbet
2005-06-10 4:18 ` Tony Lindgren
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=20050610040513.GB18103@atomide.com \
--to=tony@atomide.com \
--cc=b-lkml@blackham.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@earthworm.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