From owner-freebsd-mobile@FreeBSD.ORG Thu Jan 20 08:32:19 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91D3716A4CE for ; Thu, 20 Jan 2005 08:32:19 +0000 (GMT) Received: from tts.orel.ru (tts.orel.ru [213.59.64.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BE2D43D54 for ; Thu, 20 Jan 2005 08:32:18 +0000 (GMT) (envelope-from bel@orel.ru) Received: from orel.ru (pf1.net.orel.ru [213.59.64.75]) by tts.orel.ru (8.13.1/8.13.1/bel) with ESMTP id j0K8WAtk018709; Thu, 20 Jan 2005 11:32:11 +0300 Message-ID: <41EF6C84.5050608@orel.ru> Date: Thu, 20 Jan 2005 11:32:04 +0300 From: Andrew Belashov Organization: ORIS User-Agent: Mozilla/5.0 (X11; U; FreeBSD sparc64; en-US; rv:1.6) Gecko/20040407 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: dwalton@acm.org References: <41EF6101.7010008@acm.org> In-Reply-To: <41EF6101.7010008@acm.org> X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------000100030601060201030704" X-Zombi-Check: on netra2.orel.ru cc: freebsd-mobile@freebsd.org Subject: Re: Trouble with APM suspend in 5.3-R X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 08:32:19 -0000 This is a multi-part message in MIME format. --------------000100030601060201030704 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, Dave! Dave Walton wrote: > On 9 Nov 2004, Gleb Smirnoff wrote: > > > > Please try the following and report whether this helped. > > > > 1) Merge revision 1.233 of ata-all.c to your 5.3-RELEASE ata-all.c > > 2) Apply patch I've sent to this list yesterday (Subject was 'CURRENT > > patchset for Thinkpad'). > > 3) Rebuild your kernel with new ata-all.c > > 4) Reboot and try suspend/resume. > > I've been unable to get APM suspend/resume to work with 5.3-R on my > Thinkpad 770Z. As released, 'apm -z' causes a lockup (it worked fine in > 4.x). Revision 1.233 of ata-all.c fixes that, and 'apm -z' now causes > the system to properly suspend to disk, as it had before. However, when > the system resumes, it spits out three errors regarding pir0, then > panics. This happens with or without your patch applied to ata-all.c. > > Any suggestions? > Any other info I can provide that might be helpful? Try attached patch as workaround. With Best Regards, Andrew Belashov. --------------000100030601060201030704 Content-Type: text/plain; name="pci_pir.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pci_pir.c.diff" --- sys/i386/pci/pci_pir.c.orig Fri Jul 30 19:51:30 2004 +++ sys/i386/pci/pci_pir.c Sun Nov 14 21:47:33 2004 @@ -717,8 +717,12 @@ pir_resume(device_t dev) "Using %d.%d.INT%c to route link %#x to IRQ %d\n", pd.bus, pd.device, pd.pin + 'A', pci_link->pl_id, pci_link->pl_irq); +#if 0 error = pci_pir_biosroute(pd.bus, pd.device, 0, pd.pin, pci_link->pl_irq); +#else + error = 0; +#endif if (error) device_printf(dev, "ROUTE_INTERRUPT on resume for link %#x failed.\n", --------------000100030601060201030704--