linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2]ACPI support for SATA/PATA
@ 2006-07-26  7:35 zhao, forrest
  2006-07-26 15:14 ` Mark Lord
  2006-08-08 19:14 ` Randy.Dunlap
  0 siblings, 2 replies; 6+ messages in thread
From: zhao, forrest @ 2006-07-26  7:35 UTC (permalink / raw)
  To: jgarzik, rdunlap, htejun; +Cc: linux-ide

Hello, all

In ACPI spec 3.0, section 9.9 defines 4 objects for PATA/SATA:

_GTF is for both PATA and SATA, which is used to return ATA task file
needed to re-init the drive;
_SDD is SATA-only object, which is used to inform the platform of the
type of device attached to a port;
_GTM and _STM are PATA-only objects, which are used to get/set PATA
timing information(i.e. PIO and DMA speed).

In this patch set, 
ata_acpi_exec_tfs() is for getting ATA task file from _GTF and executing
them for a given drive;
ata_acpi_push_id() is for setting _SDD.


NOTE: this patch doesn't include the support for _GTM and _STM because
libata defines ->set_piomode(), ->set_dmamode() callbacks for LLDD,
which do the same work as _GTM and _STM. So I think it's not necessary
to provide redundant functionality by _GTM and _STM.

Randy,
I'll add your sign-off line after you review the patch.

Thanks,
Forrest


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2]ACPI support for SATA/PATA
  2006-07-26  7:35 [PATCH 0/2]ACPI support for SATA/PATA zhao, forrest
@ 2006-07-26 15:14 ` Mark Lord
  2006-07-27  1:44   ` zhao, forrest
  2006-08-08 19:14 ` Randy.Dunlap
  1 sibling, 1 reply; 6+ messages in thread
From: Mark Lord @ 2006-07-26 15:14 UTC (permalink / raw)
  To: zhao, forrest; +Cc: jgarzik, rdunlap, htejun, linux-ide

zhao, forrest wrote:
> Hello, all
> 
> In ACPI spec 3.0, section 9.9 defines 4 objects for PATA/SATA:
> 
> _GTF is for both PATA and SATA, which is used to return ATA task file
> needed to re-init the drive;
> _SDD is SATA-only object, which is used to inform the platform of the
> type of device attached to a port;
> _GTM and _STM are PATA-only objects, which are used to get/set PATA
> timing information(i.e. PIO and DMA speed).

It seems to be quite common for ICH*M notebooks to use the SATA ports
to attach PATA drives with PATA->SATA bridge chips in the middle.

In this case, one would expect the _GTM and _STM objects to be necessary,
even though Linux thinks it's a SATA situation.

Do the patches take this into account?

Cheers

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2]ACPI support for SATA/PATA
  2006-07-26 15:14 ` Mark Lord
@ 2006-07-27  1:44   ` zhao, forrest
  2006-07-27 18:03     ` Mark Lord
  2006-08-08 17:52     ` Randy.Dunlap
  0 siblings, 2 replies; 6+ messages in thread
From: zhao, forrest @ 2006-07-27  1:44 UTC (permalink / raw)
  To: Mark Lord; +Cc: jgarzik, rdunlap, htejun, linux-ide

On Wed, 2006-07-26 at 11:14 -0400, Mark Lord wrote:
> zhao, forrest wrote:
> > Hello, all
> > 
> > In ACPI spec 3.0, section 9.9 defines 4 objects for PATA/SATA:
> > 
> > _GTF is for both PATA and SATA, which is used to return ATA task file
> > needed to re-init the drive;
> > _SDD is SATA-only object, which is used to inform the platform of the
> > type of device attached to a port;
> > _GTM and _STM are PATA-only objects, which are used to get/set PATA
> > timing information(i.e. PIO and DMA speed).
> 
> It seems to be quite common for ICH*M notebooks to use the SATA ports
> to attach PATA drives with PATA->SATA bridge chips in the middle.
> 
> In this case, one would expect the _GTM and _STM objects to be necessary,
> even though Linux thinks it's a SATA situation.
> 

Hi Mark,

I re-read the section 9.9 of ACPI spec 3.0, but didn't find any
description about how to deal with "PATA->SATA bridge". Is this version
of APCI spec outdated?
Would you please point me to spec(or document), which has the
description of how to deal with "PATA->SATA bridge"?

Thanks,
Forrest

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2]ACPI support for SATA/PATA
  2006-07-27  1:44   ` zhao, forrest
@ 2006-07-27 18:03     ` Mark Lord
  2006-08-08 17:52     ` Randy.Dunlap
  1 sibling, 0 replies; 6+ messages in thread
From: Mark Lord @ 2006-07-27 18:03 UTC (permalink / raw)
  To: zhao, forrest; +Cc: jgarzik, rdunlap, htejun, linux-ide

zhao, forrest wrote:
> On Wed, 2006-07-26 at 11:14 -0400, Mark Lord wrote:
>> zhao, forrest wrote:
>>> Hello, all
>>>
>>> In ACPI spec 3.0, section 9.9 defines 4 objects for PATA/SATA:
>>>
>>> _GTF is for both PATA and SATA, which is used to return ATA task file
>>> needed to re-init the drive;
>>> _SDD is SATA-only object, which is used to inform the platform of the
>>> type of device attached to a port;
>>> _GTM and _STM are PATA-only objects, which are used to get/set PATA
>>> timing information(i.e. PIO and DMA speed).
>> It seems to be quite common for ICH*M notebooks to use the SATA ports
>> to attach PATA drives with PATA->SATA bridge chips in the middle.
>>
>> In this case, one would expect the _GTM and _STM objects to be necessary,
>> even though Linux thinks it's a SATA situation.
>>
> 
> Hi Mark,
> 
> I re-read the section 9.9 of ACPI spec 3.0, but didn't find any
> description about how to deal with "PATA->SATA bridge". Is this version
> of APCI spec outdated?
> Would you please point me to spec(or document), which has the
> description of how to deal with "PATA->SATA bridge"?

I don't have any documents, just machines that implement it.

Cheers

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2]ACPI support for SATA/PATA
  2006-07-27  1:44   ` zhao, forrest
  2006-07-27 18:03     ` Mark Lord
@ 2006-08-08 17:52     ` Randy.Dunlap
  1 sibling, 0 replies; 6+ messages in thread
From: Randy.Dunlap @ 2006-08-08 17:52 UTC (permalink / raw)
  To: zhao, forrest; +Cc: Mark Lord, jgarzik, htejun, linux-ide

On Thu, 27 Jul 2006 09:44:57 +0800 zhao, forrest wrote:

> On Wed, 2006-07-26 at 11:14 -0400, Mark Lord wrote:
> > zhao, forrest wrote:
> > > Hello, all
> > > 
> > > In ACPI spec 3.0, section 9.9 defines 4 objects for PATA/SATA:
> > > 
> > > _GTF is for both PATA and SATA, which is used to return ATA task file
> > > needed to re-init the drive;
> > > _SDD is SATA-only object, which is used to inform the platform of the
> > > type of device attached to a port;
> > > _GTM and _STM are PATA-only objects, which are used to get/set PATA
> > > timing information(i.e. PIO and DMA speed).
> > 
> > It seems to be quite common for ICH*M notebooks to use the SATA ports
> > to attach PATA drives with PATA->SATA bridge chips in the middle.
> > 
> > In this case, one would expect the _GTM and _STM objects to be necessary,
> > even though Linux thinks it's a SATA situation.
> > 
> 
> Hi Mark,
> 
> I re-read the section 9.9 of ACPI spec 3.0, but didn't find any
> description about how to deal with "PATA->SATA bridge". Is this version
> of APCI spec outdated?
> Would you please point me to spec(or document), which has the
> description of how to deal with "PATA->SATA bridge"?

(I would have said SATA->PATA bridge. :)

No docs.  When I was at Intel, I asked the (MPG) BIOS people about
this.  Their reply was something like (IIRC), "You do whatever ACPI
commands that the host side thinks it is talking to."
In other words, use SATA commands here.
However, I had added some code to attempt to handle this,
although Jens and Alan (and maybe Jeff) all told me that it was
incorrect:  I attempted to use some flag (e.g., <legacy_mode>,
but I'm not sure which name exactly) to determine the full
configuration, but that idea was nack-ed.

Probably the best thing to do is ask them or some other
(Intel) BIOS people what they think about it and what their
recommendation is.

---
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2]ACPI support for SATA/PATA
  2006-07-26  7:35 [PATCH 0/2]ACPI support for SATA/PATA zhao, forrest
  2006-07-26 15:14 ` Mark Lord
@ 2006-08-08 19:14 ` Randy.Dunlap
  1 sibling, 0 replies; 6+ messages in thread
From: Randy.Dunlap @ 2006-08-08 19:14 UTC (permalink / raw)
  To: zhao, forrest; +Cc: jgarzik, htejun, linux-ide

On Wed, 26 Jul 2006 15:35:45 +0800 zhao, forrest wrote:

> Hello, all
> 
> In ACPI spec 3.0, section 9.9 defines 4 objects for PATA/SATA:
> 
> _GTF is for both PATA and SATA, which is used to return ATA task file
> needed to re-init the drive;
> _SDD is SATA-only object, which is used to inform the platform of the
> type of device attached to a port;
> _GTM and _STM are PATA-only objects, which are used to get/set PATA
> timing information(i.e. PIO and DMA speed).
> 
> In this patch set, 
> ata_acpi_exec_tfs() is for getting ATA task file from _GTF and executing
> them for a given drive;
> ata_acpi_push_id() is for setting _SDD.
> 
> 
> NOTE: this patch doesn't include the support for _GTM and _STM because
> libata defines ->set_piomode(), ->set_dmamode() callbacks for LLDD,
> which do the same work as _GTM and _STM. So I think it's not necessary
> to provide redundant functionality by _GTM and _STM.

Do LLDDs use set_piomode() and set_dmamode() to save those modes
before suspend and restore them on resume?

Thanks,
---
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-08 19:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-26  7:35 [PATCH 0/2]ACPI support for SATA/PATA zhao, forrest
2006-07-26 15:14 ` Mark Lord
2006-07-27  1:44   ` zhao, forrest
2006-07-27 18:03     ` Mark Lord
2006-08-08 17:52     ` Randy.Dunlap
2006-08-08 19:14 ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).