Re: IDE _GTM/_STM support

Shaohua Li
2005-05-23T02:07:03Z

Hi,
On Sun, 2005-05-22 at 23:50 +0100, Alan Cox wrote:
> On Sul, 2005-05-22 at 23:35, Matthew Garrett wrote:
> > cycle. If I uncomment the taskfile call in the _GTF routine, the machine
> > freezes when it tries to perform the first taskfile write. I'm assuming
> > that an IDE guru needs to take a closer look at what's going on there
> > (it freezes at wait_for_completion in ide_do_drive_cmd).
>
> Its waiting for the I/O to finish. The IDE layer needs the request
> queues to be running so you probably need to defer the taskfile calls.
The ACPI spec the _GTF task should be invoked very early. Eg. before
other commands. Deferring the taskfile call possibly can't meet the
requirement, can it? Sorry, I don't understand Linux IDE. The generic
ide resume routine invokes a 'PM_RESUME' request, could _GTF commands be
invoked before the PM_RESUME request?

Thanks,
Shaohua