From owner-freebsd-acpi@FreeBSD.ORG Sun Feb 26 22:00:25 2012 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 ECC58106566C for ; Sun, 26 Feb 2012 22:00:24 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0958FC12 for ; Sun, 26 Feb 2012 22:00:24 +0000 (UTC) Received: (qmail 22471 invoked from network); 26 Feb 2012 16:33:43 -0500 Received: from c-76-119-101-151.hsd1.ma.comcast.net (HELO ?192.168.1.6?) (76.119.101.151) by mail.atlantawebhost.com with SMTP; 26 Feb 2012 16:33:42 -0500 Message-ID: <4F4AA530.4030606@shadowsun.net> Date: Sun, 26 Feb 2012 16:33:36 -0500 From: Eric McCorkle User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.1) Gecko/20120215 Thunderbird/10.0.1 MIME-Version: 1.0 To: freebsd-acpi@FreeBSD.org X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC7CDEC818CD110CE184C3295" Cc: Subject: Suspend/resume on Macbooks: partial diagnosis 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, 26 Feb 2012 22:00:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC7CDEC818CD110CE184C3295 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable A while ago, I tried to diagnose the reason why suspend/resume doesn't work on my macbook (9.0-STABLE, 13' unibody macbook pro, 5,5, I think).=20 I got a partial answer, but then got busy and never finished. The recent KDE update apparently triggers a suspend, so I had incentive to look at it again, and also to report my previous findings, in case someone else has information or can fix it. Here's what I have: The USB system sometimes fails to come back up, but this seems to be a more general issue not specific to the hardware. The firewire system would also sometimes trigger a kernel panic, but that was almost a year ago on 9-CURRENT, and firewire was causing other issues, so I disabled it and haven't used it since. The VGA system fails to come back up, reporting "vga0: failed to reload state". I traced this error using extra logging messages to the BIOS POST call, at which point the x86emu system emulates the bios. From looking at the error message, disassembly of the BIOS code, and the memory map I am almost certain I know why. I'd meant to confirm it 100%, but I got busy. The root problem seems to be bad BIOS code that accesses the stack one word above the region allocated by the BIOS memory map (the map allocates 0x1000-0x1fff, the code dereferences 0x2000, or something similar). This is *technically* an error, but it does not cause a problem during boot, because there is always good memory at that address. The BIOS emulation system, however, seems to only allocate the regions described by the memory map, and thus treats it as an error (as a strictly-conforming BIOS implementation would). A quick-and-dirty fix might be to add an extra page above the stack region. I'm not sure what a more "legitimate" fix might be, since it's the BIOS code and not FreeBSD that's causing the problem. I'll probably take a closer look in the near future. Hope this helps someone. --------------enigC7CDEC818CD110CE184C3295 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQIcBAEBAgAGBQJPSqUwAAoJENSCzbQ+koZ7PzAP/37fw/HoP/1YSFd5qovUqGNc WKJOPPk8JLxoKUn210PEk4BMHTakzv/39SSp7qWc88lifHmEJ0J/2b0GdefGaHHh qXkkFcdIk8imnmKjhCFRKX7HUojHO2ZmqEJYg1y5Qvr6CWsfyaKq0iis6Cd81Fd1 8j+aZXJvbiVg3Gkl/Vy1XMcdgogOC0nri234xQ/Vi54T87PRkocCcNh8p7ZipUP5 5kt9MKTWJX2xm93GqQ951FMDnUJo0E7Liq4IQXULK0t/F2YPfhu4ww7PPPzbCWDw 9bZgegH4kgpFMWcOQh89p1XhU+OksFwYBd1Ec+isnLO+QUwR5QUwo6cZ53jcq5Uv tTaZ7K7XCwtlABaKMcBLLHbu9YyJ8NRH/l+PJjZCmAinQvwyoYh3vt0gdPVfUh1h UuqV1JNJzOdtN6uAyiYRySRr0kPMxB/o1RaUvD2v5BFx/2oCz4f9zS0qs2FMfubo L6PbCByojFWO8eDS6TPP4L5D9mbrpmj7PDCwwpzUNywVysbF/xmErQP5PyQo19Gc 5eC1tvhPqRZMgKcrhdmQZvwKp4W4PslIUwvoUpYTpxZGSxLeD/EHMT+zk3vHNvnE zZOKuDsI8s4zoV2ynbCJxm8EICD8ZA4kAIiO9hOEQPkoUpAWFqYzhWGJyK0eBrPk I64p/cFq15hKNHVqOO/s =BxYH -----END PGP SIGNATURE----- --------------enigC7CDEC818CD110CE184C3295-- From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 27 11:07:21 2012 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 7582F1065689 for ; Mon, 27 Feb 2012 11:07:21 +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 37F228FC19 for ; Mon, 27 Feb 2012 11:07:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1RB7KhA090101 for ; Mon, 27 Feb 2012 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1RB7JPY090098 for freebsd-acpi@FreeBSD.org; Mon, 27 Feb 2012 11:07:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Feb 2012 11:07:19 GMT Message-Id: <201202271107.q1RB7JPY090098@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, 27 Feb 2012 11:07:21 -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/164329 acpi [acpi] hw.acpi.thermal.tz0.temperature shows strange v o kern/163268 acpi [acpi_hp] fix driver detach in absence of CMI o kern/162859 acpi [acpi] ACPI battery/acline monitoring partialy working o kern/161715 acpi [acpi] Dell E6520 doesn't resume after ACPI suspend o kern/161713 acpi [acpi] Suspend on Dell E6520 o kern/160838 acpi [acpi] ACPI Battery Monitor Non-Functional o kern/160419 acpi [acpi_thermal] acpi_thermal kernel thread high CPU usa o kern/158689 acpi [acpi] value of sysctl hw.acpi.thermal.polling_rate ne o kern/154955 acpi [acpi] Keyboard or ACPI doesn't work on Lenovo S10-3 o kern/152438 acpi [acpi]: patch to acpi_asus(4) to add extra sysctls for o kern/152098 acpi [acpi] Lenovo T61p does not resume 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 f 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/142009 acpi [acpi] [panic] Panic in AcpiNsGetAttachedObject o kern/139088 acpi [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error o amd64/138210 acpi [acpi] acer aspire 5536 ACPI problems (S3, brightness, f kern/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/132602 acpi [acpi] ACPI Problem with Intel SS4200: System does not f kern/130683 acpi [ACPI] shutdown hangs after syncing disks - ACPI race? f i386/129953 acpi [acpi] ACPI timeout (CDROM) with Shuttle X27D p kern/128634 acpi [patch] fix acpi_asus(4) in asus a6f laptop o bin/126162 acpi [acpi] ACPI autoload failed : loading required module o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot a i386/122887 acpi [panic] [atkbdc] 7.0-RELEASE on IBM HS20 panics immed o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin f kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H f kern/115947 acpi [hang] Dell poweredge 860 hangs when stressed and ACPI f i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f f 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/91594 acpi [acpi] FreeBSD > 5.4 w/ACPI fails to detect Intel Pro/ f i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o kern/73823 acpi [request] acpi / power-on by timer support o kern/56024 acpi ACPI suspend drains battery while in S3 41 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 27 15:31:17 2012 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 AAAF61065676; Mon, 27 Feb 2012 15:31:17 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8273F8FC15; Mon, 27 Feb 2012 15:31:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1RFVHEj044345; Mon, 27 Feb 2012 15:31:17 GMT (envelope-from jh@freefall.freebsd.org) Received: (from jh@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1RFVHao044335; Mon, 27 Feb 2012 15:31:17 GMT (envelope-from jh) Date: Mon, 27 Feb 2012 15:31:17 GMT Message-Id: <201202271531.q1RFVHao044335@freefall.freebsd.org> To: ger.rrgllc@gmail.com, jh@FreeBSD.org, freebsd-acpi@FreeBSD.org From: jh@FreeBSD.org Cc: Subject: Re: kern/106924: [acpi] ACPI resume returns g_vfs_done() errors and kernel panic 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, 27 Feb 2012 15:31:17 -0000 Synopsis: [acpi] ACPI resume returns g_vfs_done() errors and kernel panic State-Changed-From-To: feedback->closed State-Changed-By: jh State-Changed-When: Mon Feb 27 15:31:16 UTC 2012 State-Changed-Why: Feedback timeout. http://www.freebsd.org/cgi/query-pr.cgi?pr=106924 From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 27 15:31:38 2012 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 C300F1065670; Mon, 27 Feb 2012 15:31:38 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB7B8FC0C; Mon, 27 Feb 2012 15:31:38 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1RFVcMI046064; Mon, 27 Feb 2012 15:31:38 GMT (envelope-from jh@freefall.freebsd.org) Received: (from jh@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1RFVcIS046055; Mon, 27 Feb 2012 15:31:38 GMT (envelope-from jh) Date: Mon, 27 Feb 2012 15:31:38 GMT Message-Id: <201202271531.q1RFVcIS046055@freefall.freebsd.org> To: james_a_peltier@yahoo.ca, jh@FreeBSD.org, freebsd-acpi@FreeBSD.org From: jh@FreeBSD.org Cc: Subject: Re: i386/83018: [install] Installer will not boot on Asus P4S8X BIOS 1005 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, 27 Feb 2012 15:31:38 -0000 Synopsis: [install] Installer will not boot on Asus P4S8X BIOS 1005 State-Changed-From-To: feedback->closed State-Changed-By: jh State-Changed-When: Mon Feb 27 15:31:37 UTC 2012 State-Changed-Why: Feedback timeout. http://www.freebsd.org/cgi/query-pr.cgi?pr=83018 From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 27 18:04:22 2012 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 79DE3106566C; Mon, 27 Feb 2012 18:04:21 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-acpi@FreeBSD.org Date: Mon, 27 Feb 2012 13:03:50 -0500 User-Agent: KMail/1.6.2 References: <4F4AA530.4030606@shadowsun.net> In-Reply-To: <4F4AA530.4030606@shadowsun.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202271304.09523.jkim@FreeBSD.org> Cc: Subject: Re: Suspend/resume on Macbooks: partial diagnosis 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, 27 Feb 2012 18:04:22 -0000 On Sunday 26 February 2012 04:33 pm, Eric McCorkle wrote: > A while ago, I tried to diagnose the reason why suspend/resume > doesn't work on my macbook (9.0-STABLE, 13' unibody macbook pro, > 5,5, I think). I got a partial answer, but then got busy and never > finished. The recent KDE update apparently triggers a suspend, so > I had incentive to look at it again, and also to report my previous > findings, in case someone else has information or can fix it. Can you please show us more detail, e.g., "devinfo -rv", "pciconf -lv", verbose dmesg, etc? > Here's what I have: > > The USB system sometimes fails to come back up, but this seems to > be a more general issue not specific to the hardware. The firewire > system would also sometimes trigger a kernel panic, but that was > almost a year ago on 9-CURRENT, and firewire was causing other > issues, so I disabled it and haven't used it since. These are very common issues, unfortunately. :-( > The VGA system fails to come back up, reporting "vga0: failed to > reload state". I traced this error using extra logging messages to > the BIOS POST call, at which point the x86emu system emulates the > bios. From looking at the error message, disassembly of the BIOS > code, and the memory map I am almost certain I know why. I'd meant > to confirm it 100%, but I got busy. Actually, the error message has nothing to do with BIOS POST call. Do you have NVIDIA GPU on it? > The root problem seems to be bad BIOS code that accesses the stack > one word above the region allocated by the BIOS memory map (the map > allocates 0x1000-0x1fff, the code dereferences 0x2000, or something > similar). This is *technically* an error, but it does not cause a > problem during boot, because there is always good memory at that > address. The BIOS emulation system, however, seems to only > allocate the regions described by the memory map, and thus treats > it as an error (as a strictly-conforming BIOS implementation > would). > > A quick-and-dirty fix might be to add an extra page above the stack > region. I'm not sure what a more "legitimate" fix might be, since > it's the BIOS code and not FreeBSD that's causing the problem. > I'll probably take a closer look in the near future. x86bios virtualizes real-mode memory and invalid memory access immedidately halts the emulator. In other words, it shouldn't happen. ;-) Jung-uk Kim From owner-freebsd-acpi@FreeBSD.ORG Sat Mar 3 23:27:13 2012 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 10B8E106564A for ; Sat, 3 Mar 2012 23:27:13 +0000 (UTC) (envelope-from midgoon@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 797FC8FC12 for ; Sat, 3 Mar 2012 23:27:12 +0000 (UTC) Received: by lagv3 with SMTP id v3so4704168lag.13 for ; Sat, 03 Mar 2012 15:27:11 -0800 (PST) Received-SPF: pass (google.com: domain of midgoon@gmail.com designates 10.152.114.74 as permitted sender) client-ip=10.152.114.74; Authentication-Results: mr.google.com; spf=pass (google.com: domain of midgoon@gmail.com designates 10.152.114.74 as permitted sender) smtp.mail=midgoon@gmail.com; dkim=pass header.i=midgoon@gmail.com Received: from mr.google.com ([10.152.114.74]) by 10.152.114.74 with SMTP id je10mr13372394lab.40.1330817231187 (num_hops = 1); Sat, 03 Mar 2012 15:27:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=C+Ewp41rC+lJeO6E76vy4dLrP9OrsudI2dc0jz+/zMU=; b=Jc5AM2p9grnycym1W4RGpqscQQUgpzGzMKaE5iFvx4iVx93G7EccmNaHiwyPvzE4j5 tyDDDRsurwGMvTBdJju5ahoCd0IZ2jm/XA6LYESQ7xLSnpCtW3wC5LUd888MEimIHXjL 8r+iXSeb8hT7Zc+WEWIOjpQW2oWeQMIElbD0vk8VvhuGGVyBfzMIvWGgzIdGfEyMgvmQ yYManBDFNOlftcgFmOAS0mZ+xwFt5iQ82wjIsT4dnznxB907hwzt+1FL0Bj3jNF/dPei jgGeUcNp5omRB1oppiQ7fRgWUeF+trh09M1KmW4vXq65Tth6Pwf682/ORB9zR4NhMNFC CV0A== Received: by 10.152.114.74 with SMTP id je10mr10966256lab.40.1330815488279; Sat, 03 Mar 2012 14:58:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.6.170 with HTTP; Sat, 3 Mar 2012 14:57:28 -0800 (PST) From: =?UTF-8?Q?=C3=81lvaro_Castillo?= Date: Sat, 3 Mar 2012 22:57:28 +0000 Message-ID: To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: How get update info about FreeBSD ACPI project? 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: Sat, 03 Mar 2012 23:27:13 -0000 On FreeBSD ACPI Proyect web page is very out-date, (without changes since 2006 if you see the code). How get info update about these sections fixed, ended, new sections...et? Thanks --=20 =C3=81lvaro Castillo http://fedoraproject.org/wiki/User:Netsys Linux user #547784