mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux@dominikbrodowski.de>
To: Alessandro Suardi <alessandro.suardi@oracle.com>,
	Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	linux-acpi <linux-acpi@intel.com>, Andrew Morton <akpm@osdl.org>,
	Dave Jones <davej@redhat.com>
Subject: Re: 2.6.2-rc2-bk1 oopses on boot (ACPI patch)
Date: Wed, 28 Jan 2004 17:14:27 +0100	[thread overview]
Message-ID: <20040128161427.GB5583@dominikbrodowski.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0401271859140.10794@home.osdl.org> <40172F30.8050602@oracle.com>

[-- Attachment #1: Type: text/plain, Size: 1783 bytes --]

On Wed, Jan 28, 2004 at 04:40:32AM +0100, Alessandro Suardi wrote:
> printk("CPUFREQ DEBUG: [%lu] [%u] [%u]\n", l_p_j_ref, l_p_j_ref_freq, 
> ci->new);
> 
>  as both first and last instruction in adjust_jiffies() turns
>  up the same values, which are 1773568, 1, 0.

The ACPI tables report totally bogus CPU frequencies -- 1 and 0 MHz. I'm
surprised this differs between 2.6.0 and 2.6.x-mm... Len, any idea?


On Tue, Jan 27, 2004 at 07:06:41PM -0800, Linus Torvalds wrote:
> 
> 
> On Wed, 28 Jan 2004, Alessandro Suardi wrote:
> >
> > Already reported, but I'll do so once again, since it looks like
> >   in a short while I won't be able to boot official kernels in my
> >   current config...
> >
> >	http://www.ussg.iu.edu/hypermail/linux/kernel/0312.3/0442.html
> 
> Can you make adjust_jiffies() print out its arguments (it's in 
> drivers/cpufreq/cpufreq.c).
> 
> It looks like cpufreq_scale() gets a divide-by-zero or an overflow on one 
> of
> 
> 	l_p_j_ref, l_p_j_ref_freq, ci->new
> 
> and just printing out those values would be interesting.
> 
> That said, the code is crap anyway.

> It does various divides without 
> actually testing for any sanity at all,

CPUfreq and the CPUfreq timing code _need_ to rely on the CPU frequencies
being reported by the drivers. If they're wrong all timing will be wrong[1]...
Nonetheless, a fix for the acpi driver which aborts on such "zero" MHz
reports has already been sent to Len for reviewal [2].

> and tries to "avoid overflow" by 
> totally bogus methods, instead of just using the 64-bit do_div64().

Agreed, will fix it.

	Dominik

[1] Especially as the pmtmr also uses tsc for the delay() routines...
[2] http://marc.theaimsgroup.com/?l=acpi4linux&m=107421039607335&w=2

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-28 16:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-28  2:15 Alessandro Suardi
2004-01-28  2:42 ` Andrew Morton
2004-01-28  3:10   ` Linus Torvalds
2004-01-28  3:19     ` Alessandro Suardi
2004-01-28  4:37   ` Dmitry Torokhov
2004-01-28 13:37     ` Matt Domsch
2004-01-28 22:32       ` Alessandro Suardi
2004-01-28  3:06 ` Linus Torvalds
2004-01-28  3:40   ` Alessandro Suardi
2004-01-28 16:14     ` Dominik Brodowski [this message]
     [not found] <BF1FE1855350A0479097B3A0D2A80EE0020AE8AD@hdsmsx402.hd.intel.com>
2004-01-29 23:31 ` Len Brown
2004-01-30  0:37   ` Alessandro Suardi

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=20040128161427.GB5583@dominikbrodowski.de \
    --to=linux@dominikbrodowski.de \
    --cc=akpm@osdl.org \
    --cc=alessandro.suardi@oracle.com \
    --cc=davej@redhat.com \
    --cc=linux-acpi@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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®