From owner-freebsd-mobile@FreeBSD.ORG Mon Nov 15 20:18:58 2004 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 D589916A4CE for ; Mon, 15 Nov 2004 20:18:58 +0000 (GMT) Received: from relay.bestcom.ru (relay.bestcom.ru [217.72.144.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0345F43D53 for ; Mon, 15 Nov 2004 20:18:58 +0000 (GMT) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (root@cell.sick.ru [217.72.144.68]) by relay.bestcom.ru (8.13.1/8.12.9) with ESMTP id iAFKIufx087120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 15 Nov 2004 23:18:57 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id iAFKItk7097138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Nov 2004 23:18:56 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id iAFKIsmA097137; Mon, 15 Nov 2004 23:18:55 +0300 (MSK) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@freebsd.org using -f Date: Mon, 15 Nov 2004 23:18:54 +0300 From: Gleb Smirnoff To: Andrew Belashov Message-ID: <20041115201854.GC96804@cell.sick.ru> References: <41904661.nail8S61G6SLH@mail.com> <20041109075144.GB41761@cell.sick.ru> <4191F77C.1090606@orel.ru> <20041110111615.GB54769@cell.sick.ru> <41985A4E.7050406@orel.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <41985A4E.7050406@orel.ru> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20041013, clamav-milter version 0.75l on 127.0.0.1 X-Virus-Status: Clean 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, 15 Nov 2004 20:18:59 -0000 On Mon, Nov 15, 2004 at 10:27:10AM +0300, Andrew Belashov wrote: A> Gleb Smirnoff wrote: A> >On Wed, Nov 10, 2004 at 02:11:56PM +0300, Andrew Belashov wrote: A> >A> >1) Merge revision 1.233 of ata-all.c to your 5.3-RELEASE ata-all.c A> >A> A> >A> This revision helped me two weeks ago. Now, suspending worked correctly, A> >A> but resume does not work. Kernel panics by kernel stack overflow. A> >A> I do't have full back trace, but manualy reconstructed: A> > A> >To fix resume you need ata-all.patch. I've sent it to list recently. A> A> After resolving problem with kernel stack overflow, I have applied A> ata-all.patch. It really solves a problem! A> A> However, problems of a similar nature arise if USB CardBus inserted. A> System freeze when resumed and sleep in "usbdly". From sources: A> A> ---[sys/dev/usb/usb_subr.c]--------- A> /* Delay for a certain number of ms */ A> void A> usb_delay_ms(usbd_bus_handle bus, u_int ms) A> { A> /* Wait at least two clock ticks so we know the time has passed. */ A> if (bus->use_polling || cold) A> delay((ms+1) * 1000); A> else A> tsleep(&ms, PRIBIO, "usbdly", (ms*hz+999)/1000 + 1); A> } A> ---[sys/dev/usb/usb_subr.c]--------- Seems like we need some hardware person to work with this. Short and precise description of the problem is "tsleep() is broken on APM suspend". -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE