From: Con Kolivas <kernel@kolivas.org>
To: tglx@linutronix.de
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, john stultz <johnstul@us.ibm.com>
Subject: Re: 2.6.21-rc2-mm2
Date: Wed, 7 Mar 2007 00:24:51 +1100 [thread overview]
Message-ID: <200703070024.51273.kernel@kolivas.org> (raw)
In-Reply-To: <1173185537.24738.323.camel@localhost.localdomain>
On Tuesday 06 March 2007 23:52, Thomas Gleixner wrote:
> On Tue, 2007-03-06 at 22:58 +1100, Con Kolivas wrote:
> > (tglx cc'ed as he may know something about this - sorry if it's
> > inappropriate)
>
> John cc'ed as well :)
Thanks.
> > [<ffffffff8018401c>] do_timer+0x301/0x419
> > ---
> >
> > list *do_timer+0x301
> > 0xffffffff8018401c is in do_timer
> > (/home/con/kernel/linux-2.6.21-rc2-mm2/include/linux/clocksource.h:186).
> > 181 u64 tmp;
> > 182
> > 183 /* XXX - All of this could use a whole lot of
> > optimization */ 184 tmp = length_nsec;
> > 185 tmp <<= c->shift;
> > 186 tmp += c->mult/2;
> > 187 do_div(tmp, c->mult);
> > 188
> > 189 c->cycle_interval = (cycle_t)tmp;
> > 190 if (c->cycle_interval == 0)
>
> That's extremly strange. This is inside of
> clocksource_calculate_interval() in:
>
> static void change_clocksource(void)
> {
> struct clocksource *new;
> cycle_t now;
> u64 nsec;
>
> new = clocksource_get_next();
>
> if (clock == new)
> return;
>
> now = clocksource_read(new);
> nsec = __get_nsec_offset();
> timespec_add_ns(&xtime, nsec);
>
> clock = new;
> clock->cycle_last = now;
>
> clock->error = 0;
> clock->xtime_nsec = 0;
> clocksource_calculate_interval(clock, NTP_INTERVAL_LENGTH);
>
> tick_clock_notify();
>
> printk(KERN_INFO "Time: %s clocksource has been installed.\n",
> clock->name);
> }
>
> So clock seems to be NULL, but was accessed before
> clocksource_calculate_interval() as well.
It seems to be specifically tripping at c->mult after reading c->shift if I'm
reading it correctly.
Note again, this is qemu, not real hardware and it will likely be giving very
unrealistic values for timer calibrations.
--
-ck
next prev parent reply other threads:[~2007-03-06 13:25 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 8:44 2.6.21-rc2-mm2 Andrew Morton
2007-03-06 9:06 ` 2.6.21-rc2-mm2 J.A. Magallón
2007-03-06 9:15 ` 2.6.21-rc2-mm2 Andrew Morton
2007-03-06 9:38 ` 2.6.21-rc2-mm2 J.A. Magallón
2007-03-06 9:42 ` 2.6.21-rc2-mm2 Andrew Morton
2007-03-06 9:44 ` 2.6.21-rc2-mm2 J.A. Magallón
2007-03-06 11:14 ` 2.6.21-rc2-mm2 Jens Axboe
2007-03-06 10:27 ` 2.6.21-rc2-mm2 KAMEZAWA Hiroyuki
2007-03-06 11:09 ` 2.6.21-rc2-mm2 Andrew Morton
2007-03-06 11:35 ` 2.6.21-rc2-mm2 KAMEZAWA Hiroyuki
2007-03-07 6:23 ` [BUGFIX][PATCH] fix NULL pointer in ia64/irq_chip-mask/unmask function KAMEZAWA Hiroyuki
2007-03-07 6:57 ` Andrew Morton
2007-03-07 7:32 ` KAMEZAWA Hiroyuki
2007-03-08 8:41 ` 2.6.21-rc2-mm2 Magnus Damm
2007-03-06 11:58 ` 2.6.21-rc2-mm2 Con Kolivas
2007-03-06 12:52 ` 2.6.21-rc2-mm2 Thomas Gleixner
2007-03-06 13:24 ` Con Kolivas [this message]
2007-03-06 14:47 ` 2.6.21-rc2-mm2 Thomas Gleixner
2007-03-06 20:19 ` 2.6.21-rc2-mm2 Con Kolivas
2007-03-06 15:46 ` 2.6.21-rc2-mm2 J.A. Magallón
2007-03-07 6:24 ` 2.6.21-rc2-mm2 Jean Delvare
2007-03-07 8:39 ` 2.6.21-rc2-mm2 Sébastien Dugué
2007-03-07 8:49 ` 2.6.21-rc2-mm2 Andrew Morton
2007-03-07 9:30 ` 2.6.21-rc2-mm2 Sébastien Dugué
2007-03-07 19:46 ` 2.6.21-rc2-mm2 Luiz Fernando N. Capitulino
2007-03-07 19:52 ` 2.6.21-rc2-mm2 Andrew Morton
2007-03-08 7:20 ` 2.6.21-rc2-mm2 Mike Galbraith
2007-03-07 22:12 ` 2.6.21-rc2-mm2 hang Dave Hansen
2007-03-07 22:46 ` Andrew Morton
[not found] ` <20070307221628.GD26473@linux-os.sc.intel.com>
2007-03-07 23:07 ` Dave Hansen
2007-03-07 23:16 ` Andrew Morton
2007-03-08 15:07 ` Michal Piotrowski
2007-03-08 1:07 ` Siddha, Suresh B
2007-03-07 22:41 ` [RFC: -mm patch] #if 0 mmc_deselect_cards() Adrian Bunk
2007-03-08 5:47 ` Pierre Ossman
2007-03-19 9:21 ` [-mm patch] remove mmc_deselect_cards() Adrian Bunk
2007-03-08 6:31 ` MMC: Fix typo in mmc highspeed Kyungmin Park
2007-03-07 22:41 ` 2.6.21-rc2-mm2: drivers/net/wireless/libertas/debugfs.c addr bogosity Adrian Bunk
2007-03-07 23:00 ` Andrew Morton
2007-03-08 8:02 ` Adrian Bunk
2007-03-09 2:11 ` Tony Breeds
2007-03-09 14:19 ` John W. Linville
2007-03-09 17:14 ` Randy Dunlap
2007-03-12 3:43 ` Tony Breeds
2007-03-08 0:03 ` e1000 oops on boot [Re: 2.6.21-rc2-mm2] J.A. Magallón
2007-03-08 0:23 ` Andrew Morton
2007-03-08 0:28 ` Randy Dunlap
2007-03-08 0:35 ` Kok, Auke
-- strict thread matches above, loose matches on Subject: below --
2007-03-06 16:08 2.6.21-rc2-mm2 Nicolas Mailhot
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=200703070024.51273.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@linux-foundation.org \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--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