From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: "Brown, Len" <len.brown@intel.com>
Cc: "WYSOCKI, RAFAL" <rafael.j.wysocki@intel.com>,
Arne Bockholdt <linux-kernel@bockholdt.com>,
Jiang Liu <jiang.liu@linux.intel.com>,
"x86@kernel.org" <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Regression in intel_idle on Avaton/Rangely Mohon Peak board
Date: Wed, 2 Apr 2014 16:31:31 -0400 [thread overview]
Message-ID: <20140402203130.GA22525@windriver.com> (raw)
In-Reply-To: <533C6C90.3000708@windriver.com>
[Re: Regression in intel_idle on Avaton/Rangely Mohon Peak board] On 02/04/2014 (Wed 16:01) Paul Gortmaker wrote:
> On 14-04-01 05:59 PM, Brown, Len wrote:
> >> I've got an eval board with a 1.7GHz Avaton/C2000 that hangs at boot
> >> shortly after the idle driver registration -- typically 1/2 dozen
> >> dmesg lines later, around rtc init, or net stack init.
> >
> > Paul,
> > Please boot the failing board with "intel_idle.max_cstate=0"
> > to disable intel_idle entirely, and then show the C-states
> > exported by acpi_idle, that predumably, are stable on both boards:
> >
> > dmesg | grep idle
> > grep . /sys/devices/system/cpu/cpu0/cpuidle/*/*
> >
> > Then go back and boot with "intel_idle.max_cstate=N"
> > where N is incremented by 1 until when the system fails
> > and note the largest N that still works.
>
> The dying board works for N=1, fails for N=2.
>
> root@localhost:/sys/devices/system/cpu/cpuidle# grep . *
> current_driver:intel_idle
> current_governor_ro:menu
> root@localhost:/sys/devices/system/cpu/cpuidle# dmesg|grep idle
> [ 0.000000] Command line: BOOT_IMAGE=/boot/bzImage-current console=tty0 noinitrd root=/dev/sda4 rw ip=dhcp selinux=0 enforcing=0 intel_idle.max_cstate=1
> [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/bzImage-current console=tty0 noinitrd root=/dev/sda4 rw ip=dhcp selinux=0 enforcing=0 intel_idle.max_cstate=1
> [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
> [ 0.217203] cpuidle: using governor ladder
> [ 0.217309] cpuidle: using governor menu
> [ 0.840598] intel_idle: MWAIT substates: 0x33000020
> [ 0.840662] intel_idle: v0.4 model 0x4D
> [ 0.840668] intel_idle: lapic_timer_reliable_states 0x2
> [ 0.840673] intel_idle: max_cstate 1 reached
> root@localhost:/sys/devices/system/cpu/cpuidle#
...and the working board differs in reliable states, and it never
prints out max_cstate reached either. Here are the data sets for
no boot arg, and N=1 and N=2 from the working board with newer bios:
---------------- no bootarg ---------------------
root@localhost:/sys/devices/system/cpu/cpuidle# dmesg|grep idle
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.220217] cpuidle: using governor ladder
[ 0.220323] cpuidle: using governor menu
[ 0.877519] intel_idle: MWAIT substates: 0x33000020
[ 0.877524] intel_idle: v0.4 model 0x4D
[ 0.877528] intel_idle: lapic_timer_reliable_states 0xffffffff
root@localhost:/sys/devices/system/cpu/cpuidle# grep . *
current_driver:intel_idle
current_governor_ro:menu
root@localhost:/sys/devices/system/cpu/cpuidle#
--------------- N=1 ----------------
root@localhost:/sys/devices/system/cpu/cpuidle# dmesg|grep idle
[ 0.000000] Command line: BOOT_IMAGE=/boot/bzImage-current console=tty0 noinitrd root=/dev/sda4 rw ip=dhcp selinux=0 enforcing=0 intel_idle.max_cstate=1
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/bzImage-current console=tty0 noinitrd root=/dev/sda4 rw ip=dhcp selinux=0 enforcing=0 intel_idle.max_cstate=1
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.220169] cpuidle: using governor ladder
[ 0.220276] cpuidle: using governor menu
[ 0.786569] intel_idle: MWAIT substates: 0x33000020
[ 0.786574] intel_idle: v0.4 model 0x4D
[ 0.786578] intel_idle: lapic_timer_reliable_states 0xffffffff
[ 0.786582] intel_idle: max_cstate 1 reached
root@localhost:/sys/devices/system/cpu/cpuidle# grep . *
current_driver:intel_idle
current_governor_ro:menu
root@localhost:/sys/devices/system/cpu/cpuidle#
--------------- N=2 ----------------
root@localhost:~# cd /sys/devices/system/cpu/cpuidle/
root@localhost:/sys/devices/system/cpu/cpuidle# dmesg|grep idle
[ 0.000000] Command line: BOOT_IMAGE=/boot/bzImage-current console=tty0 noinitrd root=/dev/sda4 rw ip=dhcp selinux=0 enforcing=0 intel_idle.max_cstate=2
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/bzImage-current console=tty0 noinitrd root=/dev/sda4 rw ip=dhcp selinux=0 enforcing=0 intel_idle.max_cstate=2
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.220415] cpuidle: using governor ladder
[ 0.220524] cpuidle: using governor menu
[ 0.877641] intel_idle: MWAIT substates: 0x33000020
[ 0.877646] intel_idle: v0.4 model 0x4D
[ 0.877649] intel_idle: lapic_timer_reliable_states 0xffffffff
root@localhost:/sys/devices/system/cpu/cpuidle# grep . *
current_driver:intel_idle
current_governor_ro:menu
root@localhost:/sys/devices/system/cpu/cpuidle#
Paul.
--
>
> Another interesting data point -- the dying board doesn't die if
> I boot 3.14's x86-64 defconfig. Nothing immediately jumps out at
> me in the dying .config ; there are a few tweaks in there like
> RCU_NOCB etc. that I'll have to weed out with a pseudo .config
> bisect I guess....
>
> I'll go get the N=1 and N=2 data for the working board next.
>
> Paul.
> --
>
> >
> >> The interesting part is that a nearly identical board, but with
> >> different (newer/faster) CPU and newer BIOS doesn't have the hang.
> >
> > Possibly an electrical bug in the earlier board.
> > Maybe they worked around it by disabling a C-state in ACPI
> > and didn't test upstream Linux?
> >
> > I'd be interested in the acpi_idle output above for both the
> > new and old boards to see if they are exporting different states
> > on the two boards.
> >
> > dmidecode isn't useful in this case. The CPUID in /proc/cpuinfo
> > may be useful if the problem turns out to be associated with
> > some stepping.
> >
> > thanks,
> > -Len
> >
next prev parent reply other threads:[~2014-04-02 20:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-01 18:16 Regression in intel_idle on Avaton/Rangely Mohon Peak board Paul Gortmaker
2014-04-01 21:59 ` Brown, Len
2014-04-01 23:46 ` Paul Gortmaker
2014-04-02 21:50 ` Brown, Len
2014-04-02 20:01 ` Paul Gortmaker
2014-04-02 20:31 ` Paul Gortmaker [this message]
2014-04-02 21:58 ` Brown, Len
2014-04-02 23:30 ` Paul Gortmaker
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=20140402203130.GA22525@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=jiang.liu@linux.intel.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@bockholdt.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=x86@kernel.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