public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: ykzhao <yakui.zhao@intel.com>
Cc: mingo@elte.hu, linux-kernel@vger.kernel.org,
	nanhai.zou@intel.com, venkatesh.pallipadi@intel.com
Subject: Re: [regression]: soft lockup in dmesg after suspend/resume
Date: Thu, 21 Jan 2010 07:18:05 -0800	[thread overview]
Message-ID: <20100121151805.GA12489@kroah.com> (raw)
In-Reply-To: <1262583410.4633.98.camel@localhost.localdomain>

On Mon, Jan 04, 2010 at 01:36:50PM +0800, ykzhao wrote:
> Hi,
>    My box can work well before suspend/resume. But it will complain the
> following warning message after suspend/resume. 
>    >[1266874868.022103] Enabling non-boot CPUs ...
> [1266874868.022198] BUG: soft lockup - CPU#0 stuck for 0s! [kthreadd:2]
> 
>     At the same time after I add the boot option of "printk.time=1", I
> find that the log time is changed spontaneously from 76 to 1266874868.
>     > [   76.475266] CPU3 is down
> [   76.475312] Extended CMOS year: 2000
> [1266874868.020631] x86 PAT enabled: cpu 0, old 0x7040600070406, new
> 0x7010600070106
> [1266874868.021779] Back to C!
> [1266874868.022003] CPU0: Thermal LVT vector (0xfa) already installed
> [1266874868.022060] Extended CMOS year: 2000
> 
>     More detailed info can be found in the attached file of
> dmesg_after_origin.
> 
>    After I look at the source code, I find that on this box the TSC runs
> at constant rate with P/T states and does not stop in deep C-states. And
> then the sched_clock_stable is set to 1. In such case the TSC time is
> used directly in the function of sched_clock_cpu. 
>    
>    Then I do another test on this box, in which the clock_stable flag is
> saved/restored in course of suspend/resume(I add this by using per-cpu
> structure). When entering the suspended state, the clock_stable will be
> cleared. And when the system is resumed, the clock_stable will be set
> again. But unfortunately the soft lockup still exists. The file of
> dmesg_after_test2 is the dmesg log after I save/restore the clock_stable
> flag in course of suspend/resume.
> 
>    How about clearing the sched_clock_stable flag even when TSC doesn't
> stop in deep C-state?  From my test it seems that the TSC value is
> unknown after doing suspend/resume. 

I'm seeing this as well (Ingo, sorry for not searching more in the
archives before sending my other message.)

Any ideas on what I can do here?

Yes, the clock changes a bunch on resume, that's natural, we should
be able to handle this properly, right?

thanks,

greg k-h

  parent reply	other threads:[~2010-01-21 15:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-04  5:36 [regression]: soft lockup in dmesg after suspend/resume ykzhao
2010-01-06  6:12 ` Zou, Nanhai
2010-01-06  6:34   ` ykzhao
2010-01-06  7:43 ` Pavel Machek
2010-01-21 15:18 ` Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-03-11  2:22 Chase Douglas

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=20100121151805.GA12489@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nanhai.zou@intel.com \
    --cc=venkatesh.pallipadi@intel.com \
    --cc=yakui.zhao@intel.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