mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nikita Danilov <Nikita@Namesys.COM>
To: timothy parkinson <t@timothyparkinson.com>
Cc: akpm@osdl.org, johnstul@us.ibm.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Better "Losing Ticks" Error Message
Date: Mon, 26 Jan 2004 14:10:44 +0300	[thread overview]
Message-ID: <16404.62900.619526.550375@laputa.namesys.com> (raw)
In-Reply-To: <20040124032147.GA177@h00a0cca1a6cf.ne.client2.attbi.com>

timothy parkinson writes:
 > 
 > Andrew,
 > 
 > Seems like a lot of people see the below error message, but aren't quite sure
 > why it happens or how to fix it.  I sure didn't.
 > 
 > Here's my attempt at remedying that - Should apply cleanly against 2.6.1.
 > 
 > Thanks,
 > Timothy
 > 
 > diff -urN linux-2.6.1-orig/arch/i386/kernel/timers/timer_tsc.c linux-2.6.1/arch/i386/kernel/timers/timer_tsc.c
 > --- linux-2.6.1-orig/arch/i386/kernel/timers/timer_tsc.c	2004-01-09 01:59:46.000000000 -0500
 > +++ linux-2.6.1/arch/i386/kernel/timers/timer_tsc.c	2004-01-23 21:16:24.000000000 -0500
 > @@ -232,9 +232,13 @@
 >  		/* sanity check to ensure we're not always losing ticks */
 >  		if (lost_count++ > 100) {
 >  			printk(KERN_WARNING "Losing too many ticks!\n");
 > -			printk(KERN_WARNING "TSC cannot be used as a timesource."
 > -					" (Are you running with SpeedStep?)\n");
 > -			printk(KERN_WARNING "Falling back to a sane timesource.\n");
 > +			printk(KERN_WARNING "TSC cannot be used as a timesource.  ");
 > +			printk(KERN_WARNING "Possible reasons for this are:\n");
 > +			printk(KERN_WARNING "  You're running with Speedstep,\n");
 > +			printk(KERN_WARNING "  You don't have DMA enabled for your hard disk (see hdparm),\n");
 > +			printk(KERN_WARNING "  Incorrect TSC synchronization on an SMP system (see dmesg).\n");

+#ifdef CONFIG_KGDB
+			printk(KERN_WARNING "  You're single-stepping under kgdb (see what you are doing).\n");
+#endif

Modulo that person debugging kernel with kgdb probably understands this
anyway.

 > +			printk(KERN_WARNING "Falling back to a sane timesource now.\n");
 > +

Nikita.

  reply	other threads:[~2004-01-26 11:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-24  3:21 timothy parkinson
2004-01-26 11:10 ` Nikita Danilov [this message]
2004-01-26 18:12 ` Pavel Machek

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=16404.62900.619526.550375@laputa.namesys.com \
    --to=nikita@namesys.com \
    --cc=akpm@osdl.org \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=t@timothyparkinson.com \
    /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®