Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Nov 2007 11:10:51 -0800
From:      Russell Jackson <raj@csub.edu>
To:        freebsd-current@freebsd.org
Subject:   Re: powerd adaptive mode latching
Message-ID:  <472F6ABB.3040807@csub.edu>
In-Reply-To: <472E9D0B.5080409@csub.edu>
References:  <472E9D0B.5080409@csub.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Russell Jackson wrote:
> Powerd seems to latch at the maximum - 1 cpufreq setting while in 
> adaptive mode. This is 100% reproducible for me. It never un-wedges from 
> this state no matter how long I wait.
> 
> $ powerd -a adaptive -b adaptive -v
> powerd: using sysctl for AC line status
> powerd: using devd for AC line status
> idle time > 90%, decreasing clock speed from 1289 MHz to 966 MHz
> idle time > 90%, decreasing clock speed from 966 MHz to 644 MHz
> idle time > 90%, decreasing clock speed from 644 MHz to 322 MHz
> idle time < 65%, increasing clock speed from 322 MHz to 966 MHz
> idle time > 90%, decreasing clock speed from 966 MHz to 644 MHz
> idle time > 90%, decreasing clock speed from 644 MHz to 322 MHz
> idle time < 65%, increasing clock speed from 322 MHz to 966 MHz
> idle time < 65%, increasing clock speed from 966 MHz to 1611 MHz
> idle time < 65%, increasing clock speed from 1611 MHz to 2255 MHz
> idle time < 65%, increasing clock speed from 2255 MHz to 2579 MHz
> idle time > 90%, decreasing clock speed from 2579 MHz to 2578 MHz
> idle time > 90%, decreasing clock speed from 2579 MHz to 2578 MHz
> idle time > 90%, decreasing clock speed from 2579 MHz to 2578 MHz
> .
> .
> .
> 
> $ sysctl dev.cpu
> dev.cpu.0.%desc: ACPI CPU
> dev.cpu.0.%driver: cpu
> dev.cpu.0.%location: handle=\_PR_.CPU0
> dev.cpu.0.%pnpinfo: _HID=none _UID=0
> dev.cpu.0.%parent: acpi0
> dev.cpu.0.freq: 1289
> dev.cpu.0.freq_levels: 2579/-1 2578/-1 2255/-1 1933/-1 1611/-1 1289/-1 
> 966/-1 644/-1 322/-1
> dev.cpu.0.cx_supported: C1/1 C2/1 C3/85 C4/185
> dev.cpu.0.cx_lowest: C3
> dev.cpu.0.cx_usage: 0.00% 100.00% 0.00% 0.00%
> 
> $ sysctl dev.ichss
> dev.ichss.0.%desc: SpeedStep ICH
> dev.ichss.0.%driver: ichss
> dev.ichss.0.%parent: cpu0
> dev.ichss.0.freq_settings: 2579/-1 2578/-1
> 
> The ichss levels looked odd to me, and trying to set cpufreq=2578 is a NOOP.
> 
> $ sysctl dev.cpu.0.freq=2578
> dev.cpu.0.freq: 2579 -> 2579
> 
> I'm running 7_RELENG from about a week ago. dmesg.boot attached.
> 

I disabled ichss with hint.ichss.0.disabled=1, and the broken freq setting is gone, and
powerd operates without wedging.

So, I guess the real culprit is a broken ichss on my box; however, powerd might want to
check the value of freq after trying to set it instead of getting stuck.

-- 
Russell A. Jackson <raj@csub.edu>
Network Analyst
California State University, Bakersfield

If the meanings of "true" and "false" were switched,
then this sentence would not be false.

[-- Attachment #2 --]
0	*H
010	+0	*H
00Р	Ɋ;0
	*H
010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services1/0-U&CSU, Bakersfield Certificate Authority10	*H
	noc@csub.edu0
071012020640Z
081011020640Z010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services10URussell A. Jackson10	*H
	raj@csub.edu0"0
	*H
0
Ud QZNY;)N0[y)jzǔx`ab"(r=6^ؐ8tNt(AK#,&aʨ"w磭`/շjE6(87ۼ32Q9=!&:ʄߞ05CA[^w%Y$<@&R@b) IQԤOͶ0TOe~_/*.^.s+: Uҏhw?00U008	`HB
+)Certificate issued by https://ca.csub.edu0UqOל0	Q- ;0
U#0B4οR~12wڤ010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services1/0-U&CSU, Bakersfield Certificate Authority10	*H
	noc@csub.edu	Ɋ;0-	`HB https://ca.csub.edu/ca-crl.pem0#	`HBhttps://ca.csub.edu/0
	*H
П>8>\_0w0^
&:̱t`b@Hɸ]80siGj" 1őwB+D9kRzB‡*o	LhVWKo&LO Џ$*#%'m}p7Uِt[ΪI#369;wF0qլV!pT~<--GX	)[{'bjUuY(o00Р	Ɋ;0
	*H
010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services1/0-U&CSU, Bakersfield Certificate Authority10	*H
	noc@csub.edu0
071012020640Z
081011020640Z010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services10URussell A. Jackson10	*H
	raj@csub.edu0"0
	*H
0
Ud QZNY;)N0[y)jzǔx`ab"(r=6^ؐ8tNt(AK#,&aʨ"w磭`/շjE6(87ۼ32Q9=!&:ʄߞ05CA[^w%Y$<@&R@b) IQԤOͶ0TOe~_/*.^.s+: Uҏhw?00U008	`HB
+)Certificate issued by https://ca.csub.edu0UqOל0	Q- ;0
U#0B4οR~12wڤ010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services1/0-U&CSU, Bakersfield Certificate Authority10	*H
	noc@csub.edu	Ɋ;0-	`HB https://ca.csub.edu/ca-crl.pem0#	`HBhttps://ca.csub.edu/0
	*H
П>8>\_0w0^
&:̱t`b@Hɸ]80siGj" 1őwB+D9kRzB‡*o	LhVWKo&LO Џ$*#%'m}p7Uِt[ΪI#369;wF0qլV!pT~<--GX	)[{'bjUuY(o100010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services1/0-U&CSU, Bakersfield Certificate Authority10	*H
	noc@csub.edu	Ɋ;0	+0	*H
	1	*H
0	*H
	1
071105191051Z0#	*H
	1|'@5< ݄y0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+710010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services1/0-U&CSU, Bakersfield Certificate Authority10	*H
	noc@csub.edu	Ɋ;0*H
	1堁010	UUS10U
California10UBakersfield110/U
(California State University, Bakersfield10UNetwork Services1/0-U&CSU, Bakersfield Certificate Authority10	*H
	noc@csub.edu	Ɋ;0
	*H
e533zT/z`,ZlzVU0<07i&1ۧ0r%DX	ڄC=C1\N{~RI
/*W'\3Q'.au':"o<|#o/̕pP_YL6RQ&?M Rfv4+Z}CSv9b^|D{j(rEכ60Cm9~+,KsʫO} E4j q^*Ƨ'

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?472F6ABB.3040807>