From owner-freebsd-current@FreeBSD.ORG Thu Dec 11 23:31:33 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA23616A4CE for ; Thu, 11 Dec 2003 23:31:33 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92F9643D32 for ; Thu, 11 Dec 2003 23:31:30 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: from spider.deepcore.dk (localhost [127.0.0.1]) by spider.deepcore.dk (8.12.10/8.12.10) with ESMTP id hBC7UGtx048086; Fri, 12 Dec 2003 08:30:16 +0100 (CET) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.10/8.12.10/Submit) id hBC7UG44048085; Fri, 12 Dec 2003 08:30:16 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200312120730.hBC7UG44048085@spider.deepcore.dk> In-Reply-To: To: jesse@wingnet.net Date: Fri, 12 Dec 2003 08:30:16 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 X-mail-scanned: by DeepCore Virus & Spam killer v1.3 cc: freebsd-current@FreeBSD.ORG Subject: Re: Tracking down ata0 reset hang X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 07:31:33 -0000 It seems Jesse Guardiani wrote: > Nate Lawson wrote: > > > I have a laptop that suspends and resumes fine. Soeren's patch to > > properly reset the hardware after the ATAng import fixed the problem where > > resuming would hang in ata0 reset with the hard drive light on. > > > > Sometime in the last month or two, the ATA reset phase of resume has begun > > hanging again with the drive light on and I can't break to the debugger. > > The interesting data point is that if I suspend/resume in single user > > mode, it works fine, including the reset. But in multi-user mode, it > > hangs. I'm trying to disable various services to see if any of them > > triggers the hang. > > > > Has anyone else seen this regression? I cant suspend/resume at all on my ASUS, it locks up somwhere long before it gets to ATA. However it worked on my old Dell until about a month ago when it ended its lifetime. > I know you've already replied to one of my previous emails on this subject, > but I thought I'd chime in with my info here just in case this thread actually > catches Soren's attention. :) I've been yelling about this regression as loud > as I dare without potentially annoying any developers capable of fixing it. > I even opened a PR (misc/59876). > > Here are two of my most recent emails about it: > >   http://article.gmane.org/gmane.os.freebsd.current/35631 > > http://article.gmane.org/gmane.os.freebsd.current/35660 > > My laptop is an IBM Thinkpad A30p. Here's my boot -v dmesg.boot: > > http://www.wingnet.net/~jesse/freebsd-5.2-rc1.dmesg.boot > > Also, I've noticed, like you, that I can suspend and resume fine as long as > apmd isn't running and the kernel doesn't try to "cleanly" reset the ATA channels. > > I think it's an ATAng thing because my `acpiconf -s 3` worked in 5.1-RELEASE, > but now it too is busted in 5.2-BETA and 5.2-RC1. > > And finally, I even went so far as to update my: > > /usr/src/sys/dev/ata/ata-lowlevel.c > > To version 1.25 (5.2-RC1 ships with v1.24) from CVS and recompile my kernel, > but I still hang in the exact same way on resume. I dont think this is an ATA issue, I think the new acpi/interrupt code is not setting up things as they should on resume. That said I'm interested in getting this to work as well, but so far I dont even make it to ATA during resume... -Søren .. but it works under windows!!