From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 19:26:32 2005 Return-Path: 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 3296516A4CF; Fri, 18 Feb 2005 19:26:32 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4A3543D39; Fri, 18 Feb 2005 19:26:31 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id j1IJQUZj020177 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 18 Feb 2005 11:26:31 -0800 Message-ID: <42164162.5090005@root.org> Date: Fri, 18 Feb 2005 11:26:26 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rong-En Fan References: <4213F066.2050708@root.org> <4214119B.2010909@telia.com> <421537E9.8050203@root.org> <20050218075843.GA42365@svm.csie.ntu.edu.tw> In-Reply-To: <20050218075843.GA42365@svm.csie.ntu.edu.tw> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org cc: current@freebsd.org Subject: Re: patch: p4tcc and speedstep cpufreq drivers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 19:26:33 -0000 Rong-En Fan wrote: > On Thu, Feb 17, 2005 at 04:33:45PM -0800, Nate Lawson wrote: > >>Pawel Worach wrote: >> >>>Nate Lawson wrote: >>> >>> >>>>Attached is a patch that I'd like to get tested. After applying it, >>>>rebuild and load the cpufreq.ko module. Be sure you do _not_ have >>>>"options CPU_ENABLE_TCC" in your kernel config or the new driver will >>>>conflict with the old. >>> >>> >>>Hi Nate, >>> >>>This is what I get on a TP T41, do the cpufreq results below look right? >>>Also if I loaded both modules all I got for dev.cpu.0.freq was -1 or >>>1700 and no levels. >>> >>>CPU: Intel(R) Pentium(R) M processor 1700MHz (1698.56-MHz 686-class CPU) >>> Origin = "GenuineIntel" Id = 0x695 Stepping = 5 >>>Features=0xa7e9f9bf >> >>Apologies. I found 2 bugs, one was not calling cpufreq_register() and >>the other was that the code to detect acpi_perf (in ichss and est) was >>incorrect. I've committed fixes for that and have updated the patch. >>Please ues this version and test again. > > > Hi, > > This is an TP X31. > > CPU: Intel(R) Pentium(R) M processor 1400MHz (1398.82-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x695 Stepping = 5 > Features=0xa7e9f9bf LFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE> > > freq_levels looks strange.. and changes... > (only cpufreq is loaded at boot) > > rafan@woodstock|UTF-8 [~] (15:57)$ sysctl dev.cpu > dev.cpu.0.%desc: ACPI CPU (3 Cx states) > dev.cpu.0.%driver: cpu > dev.cpu.0.%location: handle=\_PR_.CPU_ > dev.cpu.0.%pnpinfo: _HID=none _UID=0 > dev.cpu.0.%parent: acpi0 > dev.cpu.0.freq: 1399 > dev.cpu.0.freq_levels: -738340620/0 0/0 0/0 Which cpufreq drivers are detected in dmesg (ichss, est, p4tcc, acpi_perf, acpi_throttle)? -- Nate