From owner-freebsd-stable@FreeBSD.ORG Mon Apr 25 21:51:12 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7C65106564A for ; Mon, 25 Apr 2011 21:51:12 +0000 (UTC) (envelope-from bsd.gaijin@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8CDA68FC18 for ; Mon, 25 Apr 2011 21:51:12 +0000 (UTC) Received: by iwn33 with SMTP id 33so50846iwn.13 for ; Mon, 25 Apr 2011 14:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xoq/8pIbNKcBoTKJjV993YPL8Xf6wyA6C7WQUR/Kscc=; b=T0Qt2C9j1aWH+OTlB7P6Vv+/rVEKAh/xMVUwgFrfa8PhF94Dc08YU1W3pLkTrnO/Tu OsDVAAKWixusXaaqK5hkqGLRxTT5dSMjrYISDXOGT4s8EeTin8C8suiUtho92a++H6uC q+1WB/W3gHfrjkwrcnhhA2nbpy+0CkEWv9b+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=blJg94rzo0YDXsq6A+zm52WWJCgIrcxTRnzJ0c21rdPS7sxyXUJYMjKWp5pC+FdHQW mI0LQ0MBtojGCJ6W3uZx7SWj5hf0kas+9fPXY1GMT2WqywUQiBajTOe92rPlEZEfs3uL YFzZD3TndJ261jgRLnHxep155N0Qf+Q7IbNbw= MIME-Version: 1.0 Received: by 10.42.19.136 with SMTP id c8mr5598791icb.290.1303768272012; Mon, 25 Apr 2011 14:51:12 -0700 (PDT) Received: by 10.42.225.200 with HTTP; Mon, 25 Apr 2011 14:51:11 -0700 (PDT) In-Reply-To: <4DB5751B.2050903@chillt.de> References: <4DB5751B.2050903@chillt.de> Date: Mon, 25 Apr 2011 17:51:11 -0400 Message-ID: From: Alexandre Kovalenko To: Bartosz Fabianowski Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: System extremely slow under light load X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2011 21:51:12 -0000 On Mon, Apr 25, 2011 at 9:20 AM, Bartosz Fabianowski wr= ote: >> >> I am not sure tz0 is the real thermal zone, especially given values >> of _tc1, _tc2 and _tsp. Temperature value (3001) =A0looks suspicious as >> well. > > I agree. tz0 looks entirely bogus. There is no second fan to control for = it and I have no idea what it is supposed to be monitoring. > >> Can you, by any chance, put your ASL someplace accessible and provide >> a description of what you have done to fix the temperature >> reporting. > > Certainly. I have uploaded the files at [1] through [5]. > > The DSDT source returned by acpidump -d is at [1]. I modified this so tha= t it can be compiled back into AML without errors or warnings. This modifie= d source is at [2]. It contains no functional changes. The thermal zones ar= e still broken. A variant with fixed tz1 is at [3]. > > For convenience, I have also uploaded diffs between these source files. [= 4] is the diff required to make the source compile (difference between [1] = and [2]). [5] is the actual change I made to fix tz1 (difference between [2= ] and [3]). As you can see, all I did was to remove a bogus function that e= nds up always returning 0=B0C. > >> As the side note: I have seen and do own pieces of equipment that >> use thermal zones to initiate critical shutdown for various and >> unrelated reasons. > > In my case, the thermal zone and its various tripping points do correspon= d to the actual system fan. It is just that the BIOS enforces power managem= ent itself, ignoring ACPI - except for critical shutdown which appears to b= e triggered by ACPI only. Did you try to set OS override to any of the values, recognized by your BIOS, with most interesting being=A0 "Windows 2001 SP2", "Windows 2006" and "Windows 2009". There is no obvious impact on the thermal part per se, but at least some of values seem to change the timer configuration. You can change your OS name by setting hw.acpi.osname=3D in /boot/loader.conf (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html)= . Additionally, could you, by any chance, replace _TMP method in TZ01 with the snippet below and let me know what the result is: =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Method (_TMP, 0, Serialized) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 { =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 If (LEqual (\_SB.PCI0.LPCB.EC= 0.EIDL, 0xDD)) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 { =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Return (0x0BB8) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 If (LAnd (DTSE, ETMD)) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 { =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 If (LGreater (\_S= B.PCI0.LPCB.EC0.DTS2, \_SB.PCI0.LPCB.EC0.DTS1)) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 { =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Store= (\_SB.PCI0.LPCB.EC0.DTS2, Local0) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Else =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 {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add (0x0A= AC, Multiply (Local0, 0x0A))) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Return (0x0BB8) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } I assume, since you have already modified your ASL, you do realize all of the pitfalls of this activity, including but not limited to turning your laptop into molten blob of plastic ;) > > - Bartosz > > [1] http://www.fabianowski.de/dsdt/decompiled.asl > [2] http://www.fabianowski.de/dsdt/compilable.asl > [3] http://www.fabianowski.de/dsdt/fixed.asl > [4] http://www.fabianowski.de/dsdt/decompile_compilable.diff > [5] http://www.fabianowski.de/dsdt/compilable_fixed.diff > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" Alexandre "Sunny" Kovalenko.