From dwmalone@maths.tcd.ie  Sat Mar 29 17:43:44 2008
Return-Path: <dwmalone@maths.tcd.ie>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B91711065673
	for <bug-followup@FreeBSD.org>; Sat, 29 Mar 2008 17:43:44 +0000 (UTC)
	(envelope-from dwmalone@maths.tcd.ie)
Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b])
	by mx1.freebsd.org (Postfix) with SMTP id 24E7D8FC17
	for <bug-followup@FreeBSD.org>; Sat, 29 Mar 2008 17:43:43 +0000 (UTC)
	(envelope-from dwmalone@maths.tcd.ie)
Received: from walton.maths.tcd.ie  ([134.226.81.10] helo=walton.maths.tcd.ie)
          by salmon.maths.tcd.ie with SMTP id <aa10293@salmon>;
          29 Mar 2008 17:43:42 +0000 (GMT)
Received: from localhost  ([127.0.0.1] helo=maths.tcd.ie)
          by walton.maths.tcd.ie with SMTP id <aa88460@walton>;
          29 Mar 2008 17:43:39 +0000 (GMT)
Message-Id: <200803291743.aa88460@walton.maths.tcd.ie>
Date: Sat, 29 Mar 2008 17:43:39 +0000
From: David Malone <dwmalone@maths.tcd.ie>
To: bug-followup@FreeBSD.org, dbmoler@yahoo.com
Subject: Re: powernow0 attach returned 6

>Number:         122241
>Category:       i386
>Synopsis:       Re: powernow0 attach returned 6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 29 17:50:01 UTC 2008
>Closed-Date:    Sat Mar 29 19:15:28 UTC 2008
>Last-Modified:  Sat Mar 29 19:15:28 UTC 2008
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 I see the same thing on a machine that reports a similar BIOS:
 
 	ACPI APIC Table: <VIAK8  AWRDACPI>
 
 I made the patch below to the driver to see what was going on.
 When I do this, it says:
 
 	cpu0: <ACPI CPU> on acpi0
 	powernow0: <Cool`n'Quiet K8> on cpu0
 	powernow0: STATUS: 0x20200101010
 	powernow0: STATUS: maxfid: 0x10
 	powernow0: STATUS: maxvid: 0x00
 	sig 0
 	after pn_decode_pst rv = 19
 	device_attach: powernow0 attach returned 6
 
 This suggests that the driver has failed to find the tables it needs
 in either the BIOS or ACPI. When I check, there is no _PSS entry
 in my ACPI tables, so the acpi_perf driver never attaches. I would
 guess that this is the real problem.
 
 	David.
 
 Index: powernow.c
 ===================================================================
 RCS file: /cvs/FreeBSD-CVS/src/sys/i386/cpufreq/powernow.c,v
 retrieving revision 1.4
 diff -u -r1.4 powernow.c
 --- powernow.c	23 Jan 2007 19:20:30 -0000	1.4
 +++ powernow.c	27 Jan 2007 17:42:17 -0000
 @@ -673,7 +673,7 @@
  		return (ENODEV);
  	}
  
 -	if (bootverbose) {
 +	if (1 || bootverbose) {
  			return (ENODEV);
 @@ -704,7 +706,7 @@
  			sc->irt = PN8_PSB_TO_IRT(psb->res1),
  			sc->mvs = PN8_PSB_TO_MVS(psb->res1),
  			sc->low = PN8_PSB_TO_BATT(psb->res1);
 -			if (bootverbose) {
 +			if (1 || bootverbose) {
  				device_printf(dev, "PSB: VST: %d\n",
  				    psb->settlingtime);
  				device_printf(dev, "PSB: RVO %x IRT %d "
 @@ -968,10 +970,12 @@
  	child = device_find_child(device_get_parent(dev), "acpi_perf", -1);
  	if (child) {
  		rv = pn_decode_acpi(dev, child);
 +		printf("if (child) rv = %d\n", rv);
  		if (rv)
  			rv = pn_decode_pst(dev);
  	} else
  		rv = pn_decode_pst(dev);
 +	printf("after pn_decode_pst rv = %d\n", rv);
  
  	if (rv != 0)
  		return (ENXIO);
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Sat Mar 29 19:14:14 UTC 2008 
State-Changed-Why:  
Misfiled followup to i386/106850, content migrated 


Responsible-Changed-From-To: gnats-admin->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Sat Mar 29 19:14:14 UTC 2008 
Responsible-Changed-Why:  


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