From nobody@FreeBSD.org  Sun Oct 28 15:53:25 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 788D416A420
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Oct 2007 15:53:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6713B13C4B8
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Oct 2007 15:53:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9SFqocY069939
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Oct 2007 15:52:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9SFqoOZ069938;
	Sun, 28 Oct 2007 15:52:50 GMT
	(envelope-from nobody)
Message-Id: <200710281552.l9SFqoOZ069938@www.freebsd.org>
Date: Sun, 28 Oct 2007 15:52:50 GMT
From: "Arno J. Klaassen" <arno@heho.snv.jussieu.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dev.cpu.0.freq not showing up any longer on amd64 notebook
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117607
>Category:       kern
>Synopsis:       [cpufreq] [amd64] dev.cpu.0.freq not showing up any longer on amd64 notebook [regression]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 28 16:00:01 UTC 2007
>Closed-Date:    Wed Apr 20 19:26:20 UTC 2011
>Last-Modified:  Wed Apr 20 19:26:20 UTC 2011
>Originator:     Arno J. Klaassen
>Release:        amd64 -6stable
>Organization:
SCITO SA
>Environment:
FreeBSD demo 6.2-STABLE FreeBSD 6.2-STABLE #7: Thu Sep 20 12:57:15 CEST 2007     toor@demo:/files/amd64/obj/files/bsd/src6/sys/D470K  amd64
>Description:

When using cpufreq, dev.cpu.0.freq does not show up any longer on boot.

No difference if I use cpufreq as module or include in kernel.

Same behaviour when booting a 7-stable kernel cross-build on 6-stable.

It used to work for years on same hardware and problem showed up sometime
during the summer   
>How-To-Repeat:

>Fix:

(when used as module) : kldunload cpufreq and then kldload again.
After a couple of trials dev.cpu.0.freq shows up and powerd will work OK
from then on.



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Sat Nov 13 18:46:25 UTC 2010 
State-Changed-Why:  
Does this issue still exist under a recent 7.x or 8.x release? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117607 
State-Changed-From-To: feedback->open 
State-Changed-By: arundel 
State-Changed-When: Sat Feb 19 14:06:09 UTC 2011 
State-Changed-Why:  
I can still reproduce this issue in a very recent HEAD (9.0): 

otaku% 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.temperature: 34,0C 
dev.cpu.0.freq_levels: 1800/-1 1575/-1 1350/-1 1125/-1 900/-1 675/-1 450/-1 225/-1 
dev.cpu.0.cx_supported: C1/0 
dev.cpu.0.cx_lowest: C1 
dev.cpu.0.cx_usage: 100.00% last 470us 
dev.cpu.1.%desc: ACPI CPU 
dev.cpu.1.%driver: cpu 
dev.cpu.1.%location: handle=_PR_.CPU1 
dev.cpu.1.%pnpinfo: _HID=none _UID=0 
dev.cpu.1.%parent: acpi0 
dev.cpu.1.temperature: 35,0C 
dev.cpu.1.cx_supported: C1/0 
dev.cpu.1.cx_lowest: C1 
dev.cpu.1.cx_usage: 100.00% last 1033us 

...dev.cpu.%d.freq is *missing*. During reboot/shutdown i get a warning that 
dev.cpu.0.freq is not available (i think issued by powerd). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117607 

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@freebsd.org,
 arno@heho.snv.jussieu.fr
Cc:  
Subject: Re: kern/117607: [cpufreq] [amd64] dev.cpu.0.freq not showing up any longer on amd64 notebook [regression]
Date: Sat, 19 Feb 2011 15:19:25 +0000

 > sysctl -d dev.cpu.0.freq
 dev.cpu.0.freq: Current CPU frequency
 
 It appears it's just the string handler that's broken/missing; the sysctl 
 itself is still there.
 
 -- 
 Bruce Cran
State-Changed-From-To: open->closed 
State-Changed-By: arundel 
State-Changed-When: Wed Apr 20 19:25:17 UTC 2011 
State-Changed-Why:  
I checked and this issue no longer exists under 7.4-STABLE, 8.2-STABLE and HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117607 
>Unformatted:
