From owner-freebsd-mobile@FreeBSD.ORG Mon Jan 24 06:30:35 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 1E18C16A4CE for ; Mon, 24 Jan 2005 06:30:35 +0000 (GMT) Received: from tts.orel.ru (tts.orel.ru [213.59.64.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03FA243D1D for ; Mon, 24 Jan 2005 06:30:34 +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 j0O6URhf009869; Mon, 24 Jan 2005 09:30:28 +0300 Message-ID: <41F495FE.6000907@orel.ru> Date: Mon, 24 Jan 2005 09:30:22 +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: "M. Warner Losh" References: <41EF6101.7010008@acm.org> <41EF6C84.5050608@orel.ru> <41F02CE1.5090207@acm.org> <20050123.195438.61400112.imp@bsdimp.com> In-Reply-To: <20050123.195438.61400112.imp@bsdimp.com> X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 24 Jan 2005 06:30:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Warner! M. Warner Losh wrote: | In message: <41F02CE1.5090207@acm.org> | Dave Walton writes: | : Andrew Belashov wrote: | : > Dave Walton wrote: | : > | : >> 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. | : >> | : > | : > Try attached patch as workaround. | : | : A good effort! That is precisely the error I saw. Hopefully, that | : removed call to pci_pir_biosroute() doesn't do anything important. | : | : Unfortunately, this had no effect at all on the panic. Please see my | : next reply to Gleb Smirnoff for details on the panic. Perhaps it will | : mean something to you. | | Chances are the right fix is to try the route, but ignore errors... I agree. But my old notebook recursively goes in cycles by calling bios32(PCIBIOS_ROUTE_INTERRUPT) after resume. As result: kernel stack overflow, double panic. BIOS update is not available. No known problems in Windows 2000 Pro. After removing call to pci_pir_biosroute(), suspend/resume works completely on my notebook... | I've found problems like this in the pci code in the past and worked | around it this way (becaues it breaks some machines if you don't even | try). Best Regards, Andrew Belashov. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFB9JX6wF8YpH80o/IRAs7wAJ4us56fnaoJigOLRaVGKxSjpxNHvQCcCEXS 3rdhDupIkdaYnxqLqm+t/LE= =+0ye -----END PGP SIGNATURE-----