From owner-freebsd-acpi@FreeBSD.ORG Fri Jul 15 07:33:18 2005 Return-Path: X-Original-To: acpi@FreeBSD.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3304C16A41C for ; Fri, 15 Jul 2005 07:33:18 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C14343D45 for ; Fri, 15 Jul 2005 07:33:16 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:B5PEB5ikdETqagMOZj/KzdII3FKEIXY63LewNi4ngfj4RdPObKTt59ScM7J+ghjp@localhost [IPv6:::1]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.3/8.13.3) with ESMTP/inet6 id j6F7X95B011535 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 15 Jul 2005 16:33:09 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 15 Jul 2005 16:33:09 +0900 Message-ID: From: Hajimu UMEMOTO To: acpi@FreeBSD.org In-Reply-To: References: <42CB0369.1000701@root.org> <42CC7E67.50401@root.org> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 5.4-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0 (ameno.mahoroba.org [IPv6:::1]); Fri, 15 Jul 2005 16:33:10 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on ameno.mahoroba.org Cc: Subject: Re: passive cooling and cpufreq X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 07:33:18 -0000 Hi, >>>>> On Thu, 07 Jul 2005 18:45:56 +0900 >>>>> Hajimu UMEMOTO said: ume> I made my new patch: ume> http://www.imasy.or.jp/~ume/FreeBSD/passive-cooling-20050707.diff I reworked and put my new patch: http://www.imasy.or.jp/~ume/FreeBSD/passive-cooling-20050713.diff ume> It doesn't modify kern_cpu.c. Instead, I added some code into ume> powerd(8) to don't try to update frequency when ume> hw.acpi.thermal.tz0.passive_active is on. It is not mandatory. So, I nuked the code around it. I did following changes from my previous patch: - It seems ACPI spec says a threshold is _PSV. So, _PSV is just used as a threshold, and hw.acpi.thermal.tz0.passive_threshold was nuked. - Since we don't need to expose _TC1, _TC2 and _TSP, I nuked related sysctl MIBs. - When cooling down is succeed and a temperature becomes low than a threshold, a freq was restored immediately in my previous patch. Now, a freq is restored by degrees as ACPI Spec Figure 12-2 Temperature and CPU Performance Versus Time. - Now, passive cooling is enabled by default but tz0 only. If there is no objection, I'll commit it into HEAD. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/