* Asus K8V Deluxe VIA SATA RAID power management problem
@ 2005-11-14 21:18 Phillip Susi
[not found] ` <200511171753.21041.luming.yu@intel.com>
0 siblings, 1 reply; 3+ messages in thread
From: Phillip Susi @ 2005-11-14 21:18 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I have noticed that when I suspend my system, on resume the via_sata
driver complains about an unexpected status of 0x80 in register 0xE000,
then seems to fail the first IO request to the disk, then times out, and
then seems to recover. Usually this causes the resume script to fail to
execute, as the failed IO seems to fill the buffer cache with zeros
instead of retrying the operation, and the kernel fails to execute a
binary that starts with zeros. I have noticed that if I manually echo
mem > /sys/power/state, when the system resumes and no IO is performed
for a few seconds, these errors do not happen.
This leads me to believe that the sata controller simply needs a bit of
time after the resume to completely reset before it can be accessed.
The question is, where does this delay belong? From reading the ACPI
specifications, it looks like it is up to the driver to call _GTF to get
the state of the controller before suspending, and then to restore that
state after resume. Does the via_sata driver call some code to do this,
and should the delay be after restoring the registers? Or is there an
ASL routine in the DSDT that is called when restoring that I should add
a delay to?
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Asus K8V Deluxe VIA SATA RAID power management problem
[not found] ` <200511171753.21041.luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2005-11-17 21:43 ` Phillip Susi
0 siblings, 0 replies; 3+ messages in thread
From: Phillip Susi @ 2005-11-17 21:43 UTC (permalink / raw)
To: Yu, Luming, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I have determined that after the resume, the controller requires an
extended period of time before it is ready for use. The errors I was
getting were due to the driver waiting for the busy bit in the status
register to clear, and it did not before the wait timed out. I worked
around the problem by extending the timeout by a factor of 100, but this
does not seem like an appropriate fix.
Is there maybe a method in the DSDT that is called during resume where I
could make it wait for the controller to be ready?
Yu, Luming wrote:
> On Tuesday 15 November 2005 05:18, Phillip Susi wrote:
>> I have noticed that when I suspend my system, on resume the via_sata
>> driver complains about an unexpected status of 0x80 in register 0xE000,
> What does 0x80 mean? What is register 0xE000 for?
> I think you need to figure them out from spec.
>
> Thanks,
> Luming
>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Asus K8V Deluxe VIA SATA RAID power management problem
@ 2005-11-22 9:03 Yu, Luming
0 siblings, 0 replies; 3+ messages in thread
From: Yu, Luming @ 2005-11-22 9:03 UTC (permalink / raw)
To: Phillip Susi, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
>I have determined that after the resume, the controller requires an
>extended period of time before it is ready for use. The errors I was
>getting were due to the driver waiting for the busy bit in the status
>register to clear, and it did not before the wait timed out. I worked
>around the problem by extending the timeout by a factor of
>100, but this
>does not seem like an appropriate fix.
Not sure why. Does Spec explain the meanings of the status bits?
Could you try patch at http://bugzilla.kernel.org/show_bug.cgi?id=2039.
Aslo there is a successful story about solving ide issue with invoking
IDE related AML methods: http://bugzilla.kernel.org/show_bug.cgi?id=5604
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id\x16845&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-22 9:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 21:18 Asus K8V Deluxe VIA SATA RAID power management problem Phillip Susi
[not found] ` <200511171753.21041.luming.yu@intel.com>
[not found] ` <200511171753.21041.luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2005-11-17 21:43 ` Phillip Susi
-- strict thread matches above, loose matches on Subject: below --
2005-11-22 9:03 Yu, Luming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox