From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 22 22:33:52 2008 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 B0D9E1065681; Wed, 22 Oct 2008 22:33:52 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2FF508FC19; Wed, 22 Oct 2008 22:33:52 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m9MMXjQr020559; Wed, 22 Oct 2008 18:33:46 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Wed, 22 Oct 2008 18:13:38 -0400 User-Agent: KMail/1.9.7 References: <1224616985.00027652.1224606603@10.7.7.3> <48FF9925.4090007@FreeBSD.org> <48FF9AFA.3030201@root.org> In-Reply-To: <48FF9AFA.3030201@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810221813.39270.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Wed, 22 Oct 2008 18:33:46 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8470/Wed Oct 22 11:13:42 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Alexander Motin , freebsd-amd64@freebsd.org Subject: Re: Semi-working patch for amd64 suspend/resume 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, 22 Oct 2008 22:33:52 -0000 On Wednesday 22 October 2008 05:28:26 pm Nate Lawson wrote: > Alexander Motin wrote: > > Jung-uk Kim wrote: > >> When you do 'sysctl debug.acpi.suspend_bounce=1' and 'acpiconf -s 3', > >> does it bounce back? If it does not, there are other problems, e.g., > >> device drivers. On my desktop, for example, vga(4) tries to restore > >> previous state while resuming but it hangs system. In fact, I believe > >> ISA-era EGA/VGA save/restore routines do not work for modern graphics > >> cards at all. :-( > > > > Test passed from both console and XOrg. I have integrated i965GM video. > > > > Here is verbose messages from that trip "there and back again": > > > > Oct 23 00:11:55 mavbook acpi: suspend at 20081023 00:11:55 > > > Oct 23 00:12:00 mavbook kernel: vga0: saving 68 bytes of video state > > Oct 23 00:12:00 mavbook kernel: pci0:0:2:0: Transition from D0 to D3 > > Oct 23 00:12:00 mavbook kernel: pci0:0:2:1: Transition from D0 to D3 > > Oct 23 00:12:00 mavbook kernel: pci0:0:26:7: Transition from D0 to D3 > > Oct 23 00:12:00 mavbook kernel: acpi: bad write to port 0x080 (32), val > > 0xbb > > Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D0 to D3 > > Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D0 to D3 > > > Oct 23 00:12:06 mavbook kernel: pci0:0:2:0: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: pci0:0:2:1: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: acpi: bad write to port 0x080 (32), val > > 0xaa > > Oct 23 00:12:06 mavbook kernel: pci0:0:26:7: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D3 to D0 > > That's kind of weird. The above devices were turned off (D3) then back > on again (D0). I'm wondering about that blocked write also. I think they were probably off before due to not having a driver and we turned them back on, noticed there wasn't a driver, and turned them back off again. If so, that should be fixable. -- John Baldwin