From owner-freebsd-acpi@FreeBSD.ORG Sun Oct 10 19:29:46 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86B17106564A for ; Sun, 10 Oct 2010 19:29:46 +0000 (UTC) (envelope-from kuba.g4@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1CF1F8FC16 for ; Sun, 10 Oct 2010 19:29:45 +0000 (UTC) Received: by wwb13 with SMTP id 13so83664wwb.31 for ; Sun, 10 Oct 2010 12:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=5xgE6wA21v/hDx7BXuhD/JABHnr3IUizMOfVuA3SuaQ=; b=EjOa1tQZF2ADV1Y3fuuscXxK+6PonsDLnM/MG9FM+2qC4WIYErbqfMkJWKQ4OzXu+C vg/pH9xAe9GsJGIvx13Hsx2mpSvNrqELxuZdjFYae9vUNZhAdUa+aOfG3+MrO6oUaacT 74QZUZPDAsE+SA7z2a2wfrW7Gqm82C1W9ANDo= 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 :content-type; b=rPlNqh0+v4e1/nRxtUHyNb3DbbAOVjbBL/Rqz/fh9J6LC0La0kCR4k+TJiw544xv8a VQnexU4TAHrgSJ3bg5u/GS0UTgsmBGCb9kY5MMDKuUmsomr7DeGN+t0VSnZ3Pda+nu0W 6wIzfs9l1vJ1E9j8jfg5S4Ur1T8oPsRkgHeuM= MIME-Version: 1.0 Received: by 10.216.157.72 with SMTP id n50mr2921654wek.4.1286738982637; Sun, 10 Oct 2010 12:29:42 -0700 (PDT) Received: by 10.216.184.207 with HTTP; Sun, 10 Oct 2010 12:29:42 -0700 (PDT) In-Reply-To: <4CADF96D.8040908@freebsd.org> References: <4CADF96D.8040908@freebsd.org> Date: Sun, 10 Oct 2010 19:29:42 +0000 Message-ID: From: kuba guzik To: Andriy Gapon , freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: acpi_ec: request for review and testing 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: Sun, 10 Oct 2010 19:29:46 -0000 2010/10/7 Andriy Gapon : > > Here's a patch for acpi_ec that is developed in cooperation with David Naylor who > also did all the testing: > http://people.freebsd.org/~avg/acpi_ec.2.patch > > The patch quite aggressively changes a few things and tries to make logic more > robust with respect to EC behavior. > > I ask everybody, who is able to help, to test the patch, please. > I am interested in all kinds of reports. > If your EC "misbehaves", then there is a chance that the patch will fix that. > If your EC works fine, then make sure that I don't break it with the patch. > > Short description of the changes: > - attempt to retry some commands for which it is possible (read, query) > - always make a short sleep before checking EC status in polled mode > - periodically poll EC status in interrupt mode > - change logic for detecting broken interrupt delivery and falling back to polled mode > - check that EC is ready for input before starting a new command, wait if necessary > > Big thanks in advance. I think you should remeber my problem with acpi and battery, well this patch has solved it :) If you want some additional config files just write which one, becouse as you know i'm new user. Thanks a lot! kuba From owner-freebsd-acpi@FreeBSD.ORG Sun Oct 10 20:04:48 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC4F6106566C for ; Sun, 10 Oct 2010 20:04:48 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 178518FC12 for ; Sun, 10 Oct 2010 20:04:47 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id XAA11194; Sun, 10 Oct 2010 23:04:45 +0300 (EEST) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P528S-000Hsz-TE; Sun, 10 Oct 2010 23:04:44 +0300 Message-ID: <4CB21C59.704@freebsd.org> Date: Sun, 10 Oct 2010 23:04:41 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: kuba guzik References: <4CADF96D.8040908@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_ec: request for review and testing 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: Sun, 10 Oct 2010 20:04:48 -0000 on 10/10/2010 22:29 kuba guzik said the following: > I think you should remeber my problem with acpi and battery, well this > patch has solved it :) > If you want some additional config files just write which one, becouse > as you know i'm new user. Thank you very much for testing! Glad that it helped. I'll start planning for a commit and MFC. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Mon Oct 11 03:18:38 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3776E1065670 for ; Mon, 11 Oct 2010 03:18:38 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id AE7AB8FC1D for ; Mon, 11 Oct 2010 03:18:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id o9B3IYCH021532; Mon, 11 Oct 2010 14:18:35 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 11 Oct 2010 14:18:34 +1100 (EST) From: Ian Smith To: Andriy Gapon In-Reply-To: <4CB21C59.704@freebsd.org> Message-ID: <20101011140319.Q2036@sola.nimnet.asn.au> References: <4CADF96D.8040908@freebsd.org> <4CB21C59.704@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_ec: request for review and testing 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: Mon, 11 Oct 2010 03:18:38 -0000 On Sun, 10 Oct 2010, Andriy Gapon wrote: > on 10/10/2010 22:29 kuba guzik said the following: > > I think you should remeber my problem with acpi and battery, well this > > patch has solved it :) > > If you want some additional config files just write which one, becouse > > as you know i'm new user. > > Thank you very much for testing! > Glad that it helped. > I'll start planning for a commit and MFC. I had a go, but the patch doesn't (fully) apply to 8-STABLE. I notice there's been other work done to acpi_ec in the 5 months since the last MFC, and I thought it unlikely that the version in HEAD to which your patch applies could be brought in stand-alone. I'll certainly check that there's no regression on my Thinkpad T23 when it is MFC'd. cheers, Ian From owner-freebsd-acpi@FreeBSD.ORG Mon Oct 11 11:06:49 2010 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 071761065673 for ; Mon, 11 Oct 2010 11:06:49 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CE9B78FC1A for ; Mon, 11 Oct 2010 11:06:48 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9BB6m9w037464 for ; Mon, 11 Oct 2010 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9BB6mcp037462 for freebsd-acpi@FreeBSD.org; Mon, 11 Oct 2010 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Oct 2010 11:06:48 GMT Message-Id: <201010111106.o9BB6mcp037462@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org 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: Mon, 11 Oct 2010 11:06:49 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/150517 acpi [acpi] acpi_ec does not work properly on Lenovo S10[e] o i386/146715 acpi [acpi] Suspend works, resume not on a HP Probook 4510s o kern/145306 acpi [acpi]: Can't change brightness on HP ProBook 4510s o amd64/144551 acpi [acpi] ACPI issues on SuperMicro X7SPA-H o i386/144045 acpi [acpi] [panic] kernel trap with acpi enabled o i386/143798 acpi [acpi] shutdown problem with SiS K7S5A o kern/143420 acpi [acpi] ACPI issues with Toshiba o kern/142263 acpi [acpi] ACPI regression on Asus K8N7-E deluxe motherboa o kern/142009 acpi [acpi] [panic] Panic in AcpiNsGetAttachedObject o amd64/140751 acpi [acpi] BIOS resource allocation and FreeBSD ACPI in TO o kern/139088 acpi [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error o amd64/138210 acpi [acpi] acer aspire 5536 ACPI problems (S3, brightness, o bin/137053 acpi [hang] FreeBSD 8.0 BETA2Compaq Mini 700 locks on boot o kern/137042 acpi [acpi] hp laptop's lcd not wakes up after suspend to r o i386/136008 acpi [acpi] Dell Vostro 1310 will not shutdown (Requires us o bin/135349 acpi [patch] teach acpidump(8) to disassemble arbitrary mem o kern/135070 acpi [acpi] [patch] BIOS resource allocation and FreeBSD AC o kern/132602 acpi [acpi] ACPI Problem with Intel SS4200: System does not o kern/130683 acpi [ACPI] shutdown hangs after syncing disks - ACPI race? o i386/129953 acpi [acpi] ACPI timeout (CDROM) with Shuttle X27D o kern/129618 acpi [acpi] Problem with ACPI on HP Pavilion DV2899 laptop o kern/129563 acpi [acpi] sleep broken on IBM/Lenovo T61 in amd64 mode p kern/128634 acpi [patch] fix acpi_asus(4) in asus a6f laptop o kern/124744 acpi [acpi] [patch] incorrect _BST result validation for To o kern/124412 acpi [acpi] power off error on Toshiba M40 laptop o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin o amd64/121439 acpi [boot] Installation of FreeBSD 7.0 fails: ACPI problem o kern/121102 acpi [acpi_fujitsu] [patch] update acpi_fujitsu for the P80 o kern/120515 acpi [acpi] [patch] acpi_alloc_wakeup_handler: can't alloc o kern/119356 acpi [acpi]: i386 ACPI wakeup not work due resource exhaust o kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H o kern/118973 acpi [acpi]: Kernel panic with acpi boot o kern/116939 acpi [acpi] PCI-to-PCI misconfigured for bus three and can o i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a o kern/114165 acpi [acpi] Dell C810 - ACPI problem s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/108954 acpi [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx o kern/108695 acpi [acpi]: Fatal trap 9: general protection fault when in o kern/108488 acpi [acpi] ACPI-1304: *** Error: Method execution failed o kern/108017 acpi [acpi]: Acer Aspire 5600 o kern/106924 acpi [acpi] ACPI resume returns g_vfs_done() errors and ker o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI s i386/91748 acpi acpi problem on Acer TravelMare 4652LMi (nvidia panic, s kern/91038 acpi [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Am s kern/90243 acpi Laptop fan doesn't turn off (ACPI enabled) (Packard Be o i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys o kern/73823 acpi [request] acpi / power-on by timer support o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/69750 acpi Boot without ACPI failed on ASUS L5 o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 57 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Oct 11 11:45:14 2010 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 209DE1065673; Mon, 11 Oct 2010 11:45:14 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EAD238FC0A; Mon, 11 Oct 2010 11:45:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9BBjD5H082625; Mon, 11 Oct 2010 11:45:13 GMT (envelope-from avg@freefall.freebsd.org) Received: (from avg@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9BBjD1M082621; Mon, 11 Oct 2010 11:45:13 GMT (envelope-from avg) Date: Mon, 11 Oct 2010 11:45:13 GMT Message-Id: <201010111145.o9BBjD1M082621@freefall.freebsd.org> To: avg@FreeBSD.org, freebsd-acpi@FreeBSD.org, avg@FreeBSD.org From: avg@FreeBSD.org Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) 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: Mon, 11 Oct 2010 11:45:14 -0000 Synopsis: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Responsible-Changed-From-To: freebsd-acpi->avg Responsible-Changed-By: avg Responsible-Changed-When: Mon Oct 11 11:44:50 UTC 2010 Responsible-Changed-Why: It seems that I am working on this. http://www.freebsd.org/cgi/query-pr.cgi?pr=150517 From owner-freebsd-acpi@FreeBSD.ORG Mon Oct 11 17:00:18 2010 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75B1B1065670 for ; Mon, 11 Oct 2010 17:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0C28FC08 for ; Mon, 11 Oct 2010 17:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9BH0Hgb005892 for ; Mon, 11 Oct 2010 17:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9BH0H77005872; Mon, 11 Oct 2010 17:00:17 GMT (envelope-from gnats) Date: Mon, 11 Oct 2010 17:00:17 GMT Message-Id: <201010111700.o9BH0H77005872@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/142009: [acpi] [panic] Panic in AcpiNsGetAttachedObject X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2010 17:00:18 -0000 The following reply was made to PR kern/142009; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, swhetzel@gmail.com Cc: Subject: Re: kern/142009: [acpi] [panic] Panic in AcpiNsGetAttachedObject Date: Mon, 11 Oct 2010 19:59:32 +0300 Scot, do you have anything new on this bug? Can you reproduce the problems with 8.1 or better yet stable/8? BTW, I see 3 separate problems: 1. the crash 2. attachment of acpi_ec (errors related to it) 3. attachment and functionality of acpi_hp Thank you. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Mon Oct 11 23:03:16 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDFC0106564A for ; Mon, 11 Oct 2010 23:03:16 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3EA048FC16 for ; Mon, 11 Oct 2010 23:03:15 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id CAA04071; Tue, 12 Oct 2010 02:03:04 +0300 (EEST) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P5ROZ-000LOL-Kh; Tue, 12 Oct 2010 02:03:03 +0300 Message-ID: <4CB397A7.9040404@freebsd.org> Date: Tue, 12 Oct 2010 02:03:03 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Ian Smith References: <4CADF96D.8040908@freebsd.org> <4CB21C59.704@freebsd.org> <20101011140319.Q2036@sola.nimnet.asn.au> In-Reply-To: <20101011140319.Q2036@sola.nimnet.asn.au> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_ec: request for review and testing 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: Mon, 11 Oct 2010 23:03:17 -0000 on 11/10/2010 06:18 Ian Smith said the following: > On Sun, 10 Oct 2010, Andriy Gapon wrote: > > on 10/10/2010 22:29 kuba guzik said the following: > > > I think you should remeber my problem with acpi and battery, well this > > > patch has solved it :) > > > If you want some additional config files just write which one, becouse > > > as you know i'm new user. > > > > Thank you very much for testing! > > Glad that it helped. > > I'll start planning for a commit and MFC. > > I had a go, but the patch doesn't (fully) apply to 8-STABLE. I notice > there's been other work done to acpi_ec in the 5 months since the last > MFC, and I thought it unlikely that the version in HEAD to which your > patch applies could be brought in stand-alone. I'll certainly check > that there's no regression on my Thinkpad T23 when it is MFC'd. I've just done couple of MFCs to stable/8 and the patch should now apply cleanly. I will appreciate your testing. Thanks! -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 12 10:37:49 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72245106566C for ; Tue, 12 Oct 2010 10:37:49 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 027428FC17 for ; Tue, 12 Oct 2010 10:37:48 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=iBCGAMPDYtSF9sDXX85uHY3wcnYctfVT8vFpe3qPflY= c=1 sm=1 a=kj9zAlcOel0A:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=ks1a3Wzon0cA350giucA:9 a=4aW_8exqxtDFGkoAvLMA:7 a=Tap9KS3IwLpDZlGeLHQ3pypoPtYA:4 a=CjuIK1q_8ugA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 34029584 for freebsd-acpi@freebsd.org; Tue, 12 Oct 2010 12:07:47 +0200 From: Hans Petter Selasky To: freebsd-acpi@freebsd.org Date: Tue, 12 Oct 2010 12:09:06 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201010121209.06397.hselasky@c2i.net> Subject: MacBookPro 5,1 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: Tue, 12 Oct 2010 10:37:49 -0000 Hi, My MacBookPro 5,1 does not boot using -current because memory inside the ACPI kernel module is used after free. The following patch temporily mitigates the problem: /usr/src/sys/dev/acpica/Osd/OsdMemory.c void AcpiOsFree(void *Memory) { + if (cold == 0) free(Memory, M_ACPICA); } Is there any way to debug this from user-land? --HPS From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 12 11:15:32 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A24E106564A for ; Tue, 12 Oct 2010 11:15:32 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E2F318FC16 for ; Tue, 12 Oct 2010 11:15:31 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA16397; Tue, 12 Oct 2010 14:15:27 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P5cpL-000OOz-4I; Tue, 12 Oct 2010 14:15:27 +0300 Message-ID: <4CB4434E.7020006@icyb.net.ua> Date: Tue, 12 Oct 2010 14:15:26 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Hans Petter Selasky References: <201010121209.06397.hselasky@c2i.net> In-Reply-To: <201010121209.06397.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: MacBookPro 5,1 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: Tue, 12 Oct 2010 11:15:32 -0000 on 12/10/2010 13:09 Hans Petter Selasky said the following: > Hi, > > My MacBookPro 5,1 does not boot using -current because memory inside the ACPI > kernel module is used after free. > > The following patch temporily mitigates the problem: > > /usr/src/sys/dev/acpica/Osd/OsdMemory.c > > void > AcpiOsFree(void *Memory) > { > + if (cold == 0) > free(Memory, M_ACPICA); > } > > Is there any way to debug this from user-land? I think that the best way is to get a backtrace at least or better a crashdump. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 12 11:30:40 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 032021065673 for ; Tue, 12 Oct 2010 11:30:40 +0000 (UTC) (envelope-from nicolas.alcouffe@orange.fr) Received: from smtp.smtpout.orange.fr (smtp02.smtpout.orange.fr [80.12.242.124]) by mx1.freebsd.org (Postfix) with ESMTP id 7BD0B8FC1D for ; Tue, 12 Oct 2010 11:30:38 +0000 (UTC) Received: from [192.168.2.100] ([92.129.218.35]) by mwinf5d04 with ME id Hn0a1f0070mQpbQ03n0a1C; Tue, 12 Oct 2010 13:00:35 +0200 Message-ID: <4CB43F57.40400@orange.fr> Date: Tue, 12 Oct 2010 12:58:31 +0200 From: Nicolas User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; fr-FR; rv:1.9.1.9) Gecko/20100610 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-acpi@freebsd.org, avg@freebsd.org References: AANLkTikfbRJ_i_8YZnbBhCE4qM-Ef7oNb_YQi7z5iCik@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 12 Oct 2010 11:59:57 +0000 Cc: Subject: acpi_ec: request for review and testing 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: Tue, 12 Oct 2010 11:30:40 -0000 Hi Andriy, After several months of problems with acpi_ec under FreeBSD 9-Current with my "HP Pavilion dv7", I tested your patch and it works perfectly !!! Thank you, Nicolas. From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 12 12:23:50 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 440D4106566C for ; Tue, 12 Oct 2010 12:23:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id C199D8FC0A for ; Tue, 12 Oct 2010 12:23:49 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=omSrwDgyMf70S47Fr5SNr0rQzcmIOo0IafWlB/wSLLo= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=L3-LKqUTu85Bp-fqrlIA:9 a=DIyvSZju_F0ai9M7E6QA:7 a=brzhfBi_wfs2kDf5ZUs3lnF0ipQA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 34667626; Tue, 12 Oct 2010 14:23:47 +0200 From: Hans Petter Selasky To: Andriy Gapon Date: Tue, 12 Oct 2010 14:25:07 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201010121209.06397.hselasky@c2i.net> <4CB4434E.7020006@icyb.net.ua> In-Reply-To: <4CB4434E.7020006@icyb.net.ua> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010121425.07279.hselasky@c2i.net> Cc: freebsd-acpi@freebsd.org Subject: Re: MacBookPro 5,1 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: Tue, 12 Oct 2010 12:23:50 -0000 On Tuesday 12 October 2010 13:15:26 Andriy Gapon wrote: > on 12/10/2010 13:09 Hans Petter Selasky said the following: > > Hi, > > > > My MacBookPro 5,1 does not boot using -current because memory inside the > > ACPI kernel module is used after free. > > > > The following patch temporily mitigates the problem: > > > > /usr/src/sys/dev/acpica/Osd/OsdMemory.c > > > > void > > AcpiOsFree(void *Memory) > > { > > + if (cold == 0) > > > > free(Memory, M_ACPICA); > > > > } > > > > Is there any way to debug this from user-land? > > I think that the best way is to get a backtrace at least or better a > crashdump. The crashdump is not helpful. It crashes at init time, while the actual free happens very early during boot. --HPS From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 12 20:43:54 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C351106567A for ; Tue, 12 Oct 2010 20:43:54 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5357E8FC1A for ; Tue, 12 Oct 2010 20:43:52 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id XAA25736; Tue, 12 Oct 2010 23:43:48 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P5lhL-000PAZ-Nc; Tue, 12 Oct 2010 23:43:47 +0300 Message-ID: <4CB4C882.6050006@icyb.net.ua> Date: Tue, 12 Oct 2010 23:43:46 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Hans Petter Selasky References: <201010121209.06397.hselasky@c2i.net> <4CB4434E.7020006@icyb.net.ua> <201010121425.07279.hselasky@c2i.net> In-Reply-To: <201010121425.07279.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: MacBookPro 5,1 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: Tue, 12 Oct 2010 20:43:54 -0000 on 12/10/2010 15:25 Hans Petter Selasky said the following: > On Tuesday 12 October 2010 13:15:26 Andriy Gapon wrote: >> on 12/10/2010 13:09 Hans Petter Selasky said the following: >>> Hi, >>> >>> My MacBookPro 5,1 does not boot using -current because memory inside the >>> ACPI kernel module is used after free. >>> >>> The following patch temporily mitigates the problem: >>> >>> /usr/src/sys/dev/acpica/Osd/OsdMemory.c >>> >>> void >>> AcpiOsFree(void *Memory) >>> { >>> + if (cold == 0) >>> >>> free(Memory, M_ACPICA); >>> >>> } >>> >>> Is there any way to debug this from user-land? >> >> I think that the best way is to get a backtrace at least or better a >> crashdump. > > The crashdump is not helpful. It crashes at init time, while the actual free > happens very early during boot. Still a backtrace would be useful, I think. Or track all calls to AcpiOsFree, e.g. using DTrace or stack(9) or etc. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 13 13:13:40 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF5E6106566C for ; Wed, 13 Oct 2010 13:13:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 518078FC14 for ; Wed, 13 Oct 2010 13:13:39 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=yevn+QCjI6xy199BDvBOOiO14qYvyLq62he9tTtU3M8= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=WJ_ZKJNk5Y1xWUdV9vkA:9 a=wqg3F_27W-vzPpoU1VsA:7 a=7wV1Z1MjVwzmTQVY4vFih47dqQIA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 34498301; Wed, 13 Oct 2010 15:13:38 +0200 From: Hans Petter Selasky To: Andriy Gapon Date: Wed, 13 Oct 2010 15:14:57 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201010121209.06397.hselasky@c2i.net> <201010121425.07279.hselasky@c2i.net> <4CB4C882.6050006@icyb.net.ua> In-Reply-To: <4CB4C882.6050006@icyb.net.ua> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010131514.57188.hselasky@c2i.net> Cc: freebsd-acpi@freebsd.org Subject: Re: MacBookPro 5,1 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: Wed, 13 Oct 2010 13:13:40 -0000 On Tuesday 12 October 2010 22:43:46 Andriy Gapon wrote: > on 12/10/2010 15:25 Hans Petter Selasky said the following: > > On Tuesday 12 October 2010 13:15:26 Andriy Gapon wrote: > >> on 12/10/2010 13:09 Hans Petter Selasky said the following: > >>> Hi, > >>> > >>> My MacBookPro 5,1 does not boot using -current because memory inside > >>> the ACPI kernel module is used after free. > >>> > >>> The following patch temporily mitigates the problem: > >>> > >>> /usr/src/sys/dev/acpica/Osd/OsdMemory.c > >>> > >>> void > >>> AcpiOsFree(void *Memory) > >>> { > >>> + if (cold == 0) > >>> > >>> free(Memory, M_ACPICA); > >>> > >>> } > >>> > >>> Is there any way to debug this from user-land? > >> > >> I think that the best way is to get a backtrace at least or better a > >> crashdump. > > > > The crashdump is not helpful. It crashes at init time, while the actual > > free happens very early during boot. > > Still a backtrace would be useful, I think. > Or track all calls to AcpiOsFree, e.g. using DTrace or stack(9) or etc. Do you have any hints how a shall configure DTrace to trace AcpiOsFree() ? --HPS From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 13 16:08:14 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2E9C106566C for ; Wed, 13 Oct 2010 16:08:14 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id DDC478FC08 for ; Wed, 13 Oct 2010 16:08:13 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA14044; Wed, 13 Oct 2010 19:08:09 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CB5D969.5030108@icyb.net.ua> Date: Wed, 13 Oct 2010 19:08:09 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Hans Petter Selasky References: <201010121209.06397.hselasky@c2i.net> <201010121425.07279.hselasky@c2i.net> <4CB4C882.6050006@icyb.net.ua> <201010131514.57188.hselasky@c2i.net> In-Reply-To: <201010131514.57188.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: MacBookPro 5,1 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: Wed, 13 Oct 2010 16:08:14 -0000 on 13/10/2010 16:14 Hans Petter Selasky said the following: > On Tuesday 12 October 2010 22:43:46 Andriy Gapon wrote: >> on 12/10/2010 15:25 Hans Petter Selasky said the following: >>> On Tuesday 12 October 2010 13:15:26 Andriy Gapon wrote: >>>> on 12/10/2010 13:09 Hans Petter Selasky said the following: >>>>> Hi, >>>>> >>>>> My MacBookPro 5,1 does not boot using -current because memory inside >>>>> the ACPI kernel module is used after free. >>>>> >>>>> The following patch temporily mitigates the problem: >>>>> >>>>> /usr/src/sys/dev/acpica/Osd/OsdMemory.c >>>>> >>>>> void >>>>> AcpiOsFree(void *Memory) >>>>> { >>>>> + if (cold == 0) >>>>> >>>>> free(Memory, M_ACPICA); >>>>> >>>>> } >>>>> >>>>> Is there any way to debug this from user-land? >>>> >>>> I think that the best way is to get a backtrace at least or better a >>>> crashdump. >>> >>> The crashdump is not helpful. It crashes at init time, while the actual >>> free happens very early during boot. >> >> Still a backtrace would be useful, I think. So no backtrace yet? :-) >> Or track all calls to AcpiOsFree, e.g. using DTrace or stack(9) or etc. > > Do you have any hints how a shall configure DTrace to trace AcpiOsFree() ? You set up DTrace using general procedure: http://wiki.freebsd.org/DTrace The you can write a little DTrace script to trace calls to AcpiOsFree (and perhaps/probably AcpiOsAllocate) using fbt provider: http://wikis.sun.com/display/DTrace/fbt+Provider Sorry, EBUSY to write a complete script right now. You might find DTrace function stack() and aggregations useful. Things are bit trickier if the crash happens before you have a chance to do anything in userland. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 13 16:54:56 2010 Return-Path: Delivered-To: acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A73DD106566B for ; Wed, 13 Oct 2010 16:54:56 +0000 (UTC) (envelope-from robert.moore@intel.com) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx1.freebsd.org (Postfix) with ESMTP id 8080D8FC1B for ; Wed, 13 Oct 2010 16:54:56 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 13 Oct 2010 09:54:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.57,326,1283756400"; d="scan'208";a="563577341" Received: from orsmsx603.amr.corp.intel.com ([10.22.226.49]) by orsmga002.jf.intel.com with ESMTP; 13 Oct 2010 09:54:55 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.226.10) by orsmsx603.amr.corp.intel.com (10.22.226.49) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 13 Oct 2010 09:54:55 -0700 Received: from orsmsx503.amr.corp.intel.com ([10.22.226.47]) by orsmsx605.amr.corp.intel.com ([10.22.226.10]) with mapi; Wed, 13 Oct 2010 09:54:54 -0700 From: "Moore, Robert" To: "Moore, Robert" Date: Wed, 13 Oct 2010 09:54:53 -0700 Thread-Topic: ACPICA version 20101013 released Thread-Index: Actq91tMXAcDOKZuR4y3yNqqZf4UxA== Message-ID: <4911F71203A09E4D9981D27F9D830858BBE58E68@orsmsx503.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 13 Oct 2010 17:28:30 +0000 Cc: Subject: ACPICA version 20101013 released 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: Wed, 13 Oct 2010 16:54:56 -0000 13 October 2010. Summary of changes for version 20101013: This release is available at www.acpica.org/downloads 1) ACPI CA Core Subsystem: Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, no= w clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via HwClea= rAcpiStatus. Original change from Colin King. ACPICA BZ 880. Changed the type of the predefined namespace object _TZ from ThermalZone to= Device. This was found to be confusing to the host software that processes= the various thermal zones, since _TZ is not really a ThermalZone. However,= a Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Ru= i Zhang. Added Windows Vista SP2 to the list of supported _OSI strings. The actual s= tring is "Windows 2006 SP2". Eliminated duplicate code in AcpiUtExecute* functions. Now that the nsrepai= r code automatically repairs _HID-related strings, this type of code is no = longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. Example Code and Data Size: These are the sizes for the OS-independent acpi= ca.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug = version of the code includes the debug output trace mechanism and has a muc= h larger code and data size. Previous Release: Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total Debug Version: 166.3K Code, 52.1K Data, 218.4K Total Current Release: Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented additional compile-time validation for _HID strings. The = non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length = of the string must be exactly seven or eight characters. For both _HID and = _CID strings, all characters must be alphanumeric. ACPICA BZ 874. iASL: Allow certain "null" resource descriptors. Some BIOS code creates des= criptors that are mostly or all zeros, with the expectation that they will = be filled in at runtime. iASL now allows this as long as there is a "resour= ce tag" (name) associated with the descriptor, which gives the ASL a handle= needed to modify the descriptor. ACPICA BZ 873. Added single-thread support to the generic Unix application OSL. Primarily = for iASL support, this change removes the use of semaphores in the single-t= hreaded ACPICA tools/applications - increasing performance. The _MULTI_THRE= ADED option was replaced by the (reverse) ACPI_SINGLE_THREADED option. ACPI= CA BZ 879. AcpiExec: several fixes for the 64-bit version. Adds XSDT support and suppo= rt for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. iASL: Moved all compiler messages to a new file, aslmessages.h. From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 13 23:58:10 2010 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 4BC7F1065670; Wed, 13 Oct 2010 23:58:10 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-acpi@FreeBSD.org Date: Wed, 13 Oct 2010 19:57:59 -0400 User-Agent: KMail/1.6.2 References: <201010121209.06397.hselasky@c2i.net> In-Reply-To: <201010121209.06397.hselasky@c2i.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010131958.02252.jkim@FreeBSD.org> Cc: Subject: Re: MacBookPro 5,1 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: Wed, 13 Oct 2010 23:58:10 -0000 On Tuesday 12 October 2010 06:09 am, Hans Petter Selasky wrote: > Hi, > > My MacBookPro 5,1 does not boot using -current because memory > inside the ACPI kernel module is used after free. > > The following patch temporily mitigates the problem: > > /usr/src/sys/dev/acpica/Osd/OsdMemory.c > > void > AcpiOsFree(void *Memory) > { > + if (cold == 0) > free(Memory, M_ACPICA); > } > > Is there any way to debug this from user-land? acpidb(8). However, it is quite broken ATM. :-( Alternatively, you may use acpiexec from ACPICA: fetch http://www.acpica.org/download/acpica-unix-20101013.tar.gz tar xpf acpica-unix-20101013.tar.gz cd acpica-unix-20101013/tools/acpiexec gmake ./acpiexec Actually you need to extract ACPI tables from your BIOS (or UEFI in your case) to use with acpiexec. acpidump(8) gives you what you want BUT you cannot use it with acpiexec directly. You need to dump/extract tables using Linux pmtools: fetch http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtools-20100825.tar.bz2 fetch http://people.freebsd.org/~jkim/pmtools-20100825.diff tar xpf pmtools-20100825.tar.bz2 cd pmtools patch < ../pmtools-20100825.diff gmake sudo acpidump/acpidump -o ACPI.dat acpixtract/acpixtract -a ACPI.dat Note the pmtools patch is really a hack but it should work. ;-) Good luck, Jung-uk Kim * PS: If anyone has enough free time, please fix acpidb. From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 15 17:01:54 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA6EA106566B; Fri, 15 Oct 2010 17:01:54 +0000 (UTC) (envelope-from kuba.g4@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 17F138FC08; Fri, 15 Oct 2010 17:01:53 +0000 (UTC) Received: by fxm12 with SMTP id 12so759166fxm.13 for ; Fri, 15 Oct 2010 10:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=2cvTE3ERVDyIbZ58KssgRqqEWRv0JfnUlJa3Mnu33gQ=; b=tP5WoVxwfNS/pzMTLN16a0j2apHeCShpSMWt0lAmLhJzaBNuWLvvpjEPiMXvboehWD 5W80U4WMAoUQKgM9N1s3xu0hoJX1BrobV6STF+szv1fzua2Dsp2TP8Y3qnLyLxMEgYo2 OeGmm8cMuakyqj4rVJp1IvXO6HwHxlY8g6mtU= 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 :content-type; b=CGF7BgPJWKfH15PWkLaFCD7PwMeHWzPJnNwBdcWUgd5HMq5m4ZgApcl4KFRu9z0UBk 7juS3K5xdN9M+BrzUWsbieY9lqd5LMjtrYXnfql6dyH12M6AGT4o2x3Pe5gNnBKR8m/h 2joK/fRwHkO3+0zWn/rjpLla1qgIC6pWmuRjo= MIME-Version: 1.0 Received: by 10.216.240.198 with SMTP id e48mr1887747wer.0.1287162108442; Fri, 15 Oct 2010 10:01:48 -0700 (PDT) Received: by 10.216.184.207 with HTTP; Fri, 15 Oct 2010 10:01:48 -0700 (PDT) In-Reply-To: <4CB43F57.40400@orange.fr> References: <4CB43F57.40400@orange.fr> Date: Fri, 15 Oct 2010 19:01:48 +0200 Message-ID: From: kuba guzik To: Nicolas , freebsd-acpi@freebsd.org, Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: acpi_ec: request for review and testing 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 Oct 2010 17:01:54 -0000 > After several months of problems with acpi_ec under FreeBSD 9-Current with > my "HP Pavilion dv7", I tested your patch and it works perfectly !!! > Hi Nicolas, What dv7 model do you have?. I'm curious if you have problems with changing lcd brightness on your laptop. I can't change it with acpi_hp (or acpi_video) module loaded :( Kuba From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 15 21:49:22 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEBD61065672 for ; Fri, 15 Oct 2010 21:49:22 +0000 (UTC) (envelope-from nicolas.alcouffe@orange.fr) Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr [80.12.242.126]) by mx1.freebsd.org (Postfix) with ESMTP id 45E578FC13 for ; Fri, 15 Oct 2010 21:49:21 +0000 (UTC) Received: from [192.168.2.100] ([92.129.218.35]) by mwinf5d08 with ME id K9pK1f0090mQpbQ039pLMJ; Fri, 15 Oct 2010 23:49:20 +0200 Message-ID: <4CB8CBE4.70800@orange.fr> Date: Fri, 15 Oct 2010 23:47:16 +0200 From: Nicolas User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; fr-FR; rv:1.9.1.9) Gecko/20100610 Thunderbird/3.0.4 MIME-Version: 1.0 To: kuba guzik , freebsd-acpi@freebsd.org, avg@freebsd.org References: <4CB43F57.40400@orange.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: acpi_ec: request for review and testing 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 Oct 2010 21:49:22 -0000 Hi Kuba, I can't tell you more on my computer, there nothing more than "HP dv7". I can't change brightness too, there is an acpi message: "can't evaluate \\_SB_.PCI0.PVGA.EVGA.LCD_._BQC - AE_NOT_FOUND" I will try to load acpi_hp tomorrow, last time i loaded it, it crash with acpi_wmi error. Before applaying the patch my cpu fan running all the time and now not, have you ever had this problem ? Which version of FreeBSD are you using ? See you, Nicolas. PS: sorry for bad english ! > Hi Nicolas, > What dv7 model do you have?. I'm curious if you have problems with > changing lcd brightness on your laptop. I can't change it with acpi_hp > (or acpi_video) module loaded :( > > > Kuba >