Tracking down ata0 reset hang

Jesse Guardiani jesse at wingnet.net
Fri Dec 12 06:39:42 PST 2003


Soren Schmidt wrote:

> 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.

Have you tried detaching any and all peripheral drives before suspending?
In 5.1-RELEASE I had to issue an `atacontrol detach 1` before suspending
or else it would lock up on resume.

Have you tried loading 5.1-RELEASE on the ASUS and seeing if it works then?


[...]

> 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.

Is this code active even with acpi disabled? Like I said, it happens when
using APM or ACPI.


> That said I'm interested
> in getting this to work as well, but so far I dont even make it to ATA
> during resume...

I'd ship you my laptop, but I need it for work. :)


-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net




More information about the freebsd-current mailing list