From owner-freebsd-current Tue Jul 30 3: 0:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B27ED37B400 for ; Tue, 30 Jul 2002 03:00:30 -0700 (PDT) Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com [194.25.134.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09A1443E42 for ; Tue, 30 Jul 2002 03:00:30 -0700 (PDT) (envelope-from garyj@jennejohn.org) Received: from fwd10.sul.t-online.de by mailout07.sul.t-online.com with smtp id 17ZTno-0002lY-0A; Tue, 30 Jul 2002 12:00:28 +0200 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.114.249]) by fmrl10.sul.t-online.com with esmtp id 17ZTne-2AH5fcC; Tue, 30 Jul 2002 12:00:18 +0200 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.5/8.11.6) with ESMTP id g6UA01Lt007779; Tue, 30 Jul 2002 12:00:01 +0200 (CEST) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200207301000.g6UA01Lt007779@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: Michael Nottebrock Cc: freebsd-current@freebsd.org Subject: Re: AMD low power hacks Reply-To: Gary Jennejohn In-reply-to: Your message of "Mon, 29 Jul 2002 21:03:48 +0200." <3D459194.70206@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 30 Jul 2002 12:00:01 +0200 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michael Nottebrock writes: > The following is an OpenPGP/MIME signed message > created by Enigmail/Mozilla, following RFC 2440 and RFC 2015 > --------------enig8A086DA17DCB77CC40984CC4 > Content-Type: text/plain; charset=us-ascii; format=flowed > Content-Transfer-Encoding: 7bit > > I've been wondering lately why my AthlonTB runs at a quite high > idle-temperature and I came across this page: > > http://vcool.occludo.net/VC_Theory.html > > Does someone feel like getting something similar into our kernel? > If you have a VIA KT266A chipset then you can do something like this: # turn on HALT bit in register 0x95 of the KT266a -> CPU runs much cooler # NOTE: the register had 0x1c when I checked it echo Enable halt bit in KT266A /usr/sbin/pciconf -w -b pci0:0:0 0x95 0x1e which I have in /etc/rc.local. My Athlon runs about 15 C cooler with this. Bit 1 of register 0x95 controls idling of the CPU. Here's a step-by-step description: Do the following as root: 1) pciconf -l -v this lists all the PCI chipsets found at boot time. I see agp0@pci0:0:0: class=0x060000 card=0x30991106 chip=0x30991106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8366/A Apollo KT266/A,KT333 CPU to PCI Bridge' class = bridge subclass = HOST-PCI So I have a KT266(A) at pci0:0:0 2) pciconf -r -b pci0:0:0 0x95 0x1c Bit 1 isn't set 3) pciconf -w -b pci0:0:0 0x95 0x1e turns on bit 1. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message