Subject: port-macppc/14233: Enable power-saving mode for 604ev
To: None <gnats-bugs@gnats.netbsd.org>
From: None <offe@localnet.sh>
List: netbsd-bugs
Date: 10/12/2001 05:33:14
>Number:         14233
>Category:       port-macppc
>Synopsis:       Enable power-saving mode for 604ev
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 05:31:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Olof Johansson
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
	PowerComputing PowerWave 604e/180, 64MB DRAM
System: NetBSD macppc 1.5.2 NetBSD 1.5.2 (POWERMAC) #0: Thu Oct 11 18:06:14 PDT 2001 root@macppc:/usr/src/sys/arch/macppc/compile/POWERMAC macppc


>Description:
	Power-save mode is never enabled for machines with the 604ev processor,
	even though it seems to work and lowers the temperature of the air
	leaving the machine noticable.

	A diff is provided below for enablement of it.
>How-To-Repeat:
	Use thermometer to measure temperature of air leaving box with idle
	machine. Patch, build, reboot, repeat measurements.
>Fix:
	Diff below.

*** sys/arch/macppc/macppc/cpu.c	Fri Oct 12 05:24:21 2001
--- sys/arch/macppc/macppc/cpu.c.orig	Fri Oct 12 05:24:12 2001
***************
*** 71,76 ****
--- 71,77 ----
  #define MPC603e		6
  #define MPC603ev	7
  #define MPC750		8
+ #define MPC604ev	9
  #define MPC7400		12
  
  #define HID0_DOZE	0x00800000
***************
*** 91,96 ****
--- 92,98 ----
  	case MPC603e:
  	case MPC603ev:
  	case MPC750:
+ 	case MPC604ev:
  	case MPC7400:
  		/* Select DOZE power-saving mode. */
  		__asm __volatile ("mfspr %0,1008" : "=r"(hid0));
>Release-Note:
>Audit-Trail:
>Unformatted: