Re: [ACPI] Re: RFC: ACPI/scsi/libata integration and hotswap

From: Matthew Garrett
Date: Thu Dec 08 2005 - 09:42:56 EST


On Thu, Dec 08, 2005 at 02:30:57PM +0000, Alan Cox wrote:

> SCSI/libata can go easily from ata channel to pci device to device. The
> rest of the logic belongs outside of scsi/libata.

ACPI methods belong to SATA/PATA targets, not PCI devices. The
notification you get is something of the form

\SB.PCI.IDE0.SEC.MASTER

on sensible devices, and

\SB.C043.C438.C222.C223

on anything from HP[1]. Somehow, you have to get from there to a
specific SCSI host and target. By far the easiest way of doing that is
to register them at device add time, which needs a small amount of
cooperation from the SCSI or libata layers. And to register the
notifications in the first place, you need to know the ACPI handles.

[1] Thanks, HP
--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/