From owner-freebsd-mobile@FreeBSD.ORG Mon Nov 15 07:27:20 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 71C9316A4CE; Mon, 15 Nov 2004 07:27:20 +0000 (GMT) Received: from tts.orel.ru (tts.orel.ru [213.59.64.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45F0943D54; Mon, 15 Nov 2004 07:27:19 +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 iAF7RFU4002737; Mon, 15 Nov 2004 10:27:16 +0300 Message-ID: <41985A4E.7050406@orel.ru> Date: Mon, 15 Nov 2004 10:27:10 +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: Gleb Smirnoff References: <41904661.nail8S61G6SLH@mail.com> <20041109075144.GB41761@cell.sick.ru> <4191F77C.1090606@orel.ru> <20041110111615.GB54769@cell.sick.ru> In-Reply-To: <20041110111615.GB54769@cell.sick.ru> 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, 15 Nov 2004 07:27:20 -0000 Gleb Smirnoff wrote: > On Wed, Nov 10, 2004 at 02:11:56PM +0300, Andrew Belashov wrote: > A> >1) Merge revision 1.233 of ata-all.c to your 5.3-RELEASE ata-all.c > A> > A> This revision helped me two weeks ago. Now, suspending worked correctly, > A> but resume does not work. Kernel panics by kernel stack overflow. > A> I do't have full back trace, but manualy reconstructed: > > To fix resume you need ata-all.patch. I've sent it to list recently. After resolving problem with kernel stack overflow, I have applied ata-all.patch. It really solves a problem! However, problems of a similar nature arise if USB CardBus inserted. System freeze when resumed and sleep in "usbdly". From sources: ---[sys/dev/usb/usb_subr.c]--------- /* Delay for a certain number of ms */ void usb_delay_ms(usbd_bus_handle bus, u_int ms) { /* Wait at least two clock ticks so we know the time has passed. */ if (bus->use_polling || cold) delay((ms+1) * 1000); else tsleep(&ms, PRIBIO, "usbdly", (ms*hz+999)/1000 + 1); } ---[sys/dev/usb/usb_subr.c]---------