From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 7 03:27:23 2005 Return-Path: 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 0CC9C16A4CE for ; Mon, 7 Feb 2005 03:27:23 +0000 (GMT) Received: from ylpvm01.prodigy.net (ylpvm01-ext.prodigy.net [207.115.57.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94F9F43D3F for ; Mon, 7 Feb 2005 03:27:22 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.51] (adsl-64-171-186-189.dsl.snfc21.pacbell.net [64.171.186.189])j173RLvE031803; Sun, 6 Feb 2005 22:27:21 -0500 Message-ID: <4206E017.9020802@root.org> Date: Sun, 06 Feb 2005 19:27:19 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041205) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pawel Worach References: <42068A5C.1030300@root.org> <4206B5A6.20100@telia.com> In-Reply-To: <4206B5A6.20100@telia.com> Content-Type: multipart/mixed; boundary="------------070801020103010809050103" cc: acpi@freebsd.org Subject: Re: HEADSUP: cpufreq import complete, acpi_throttling changed X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 03:27:23 -0000 This is a multi-part message in MIME format. --------------070801020103010809050103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Pawel Worach wrote: > Tried this on my ThinkPad T41, seems to work great except I managed to > produce > this message one time. > > -- Power is plugged in here, freq=1700 > acpi_acad0: Off Line > cpu0: Performance states changed > -- Power unplugged, power_profile adjusted freq to 75 :) > acpi_acad0: On Line > -- Power reconnected, freq stayed at 75 > acpi_perf0: Px transition to 1700 failed > acpi_perf0: set freq failed, err 6 > stray irq7 > stray irq7 > stray irq7 > stray irq7 > too many stray irq 7's: not logging anymore > cpu0: Performance states changed > -- Manually pushed freq back to 1700 without problems I think at 75 Mhz your system just ran out of time while doing the transition. Try the attached patch. If it doesn't fix the problem, try adjusting the 1000s up or down until you get an idea where the problem starts to occur. In general, running a P4-M at 75 Mhz is not going to be too useful. :) -- Nate --------------070801020103010809050103 Content-Type: text/plain; name="px_delay.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="px_delay.diff" Index: acpi_perf.c =================================================================== RCS file: /home/ncvs/src/sys/dev/acpica/acpi_perf.c,v retrieving revision 1.4 diff -u -r1.4 acpi_perf.c --- acpi_perf.c 6 Feb 2005 20:12:28 -0000 1.4 +++ acpi_perf.c 7 Feb 2005 03:25:08 -0000 @@ -414,13 +414,13 @@ /* Try for up to 1 ms to verify the desired state was selected. */ sts_val = sc->px_states[i].sts_val; - for (tries = 0; tries < 100; tries++) { + for (tries = 0; tries < 1000; tries++) { status = PX_GET_REG(sc->perf_status); if (status == sts_val) break; DELAY(10); } - if (tries == 100) { + if (tries == 1000) { device_printf(dev, "Px transition to %d failed\n", sc->px_states[i].core_freq); return (ENXIO); --------------070801020103010809050103--