diff options
author | Michael Brown | 2017-03-27 17:20:34 +0200 |
---|---|---|
committer | Michael Brown | 2017-03-28 18:12:48 +0200 |
commit | 7cfdd769aac76d605aa31146c69ba518b194bea7 (patch) | |
tree | 7c09e144792833f81297e6dacf0823733a2a399a /src/net/fcp.c | |
parent | [block] Ignore redundant xfer_window_changed() messages (diff) | |
download | ipxe-7cfdd769aac76d605aa31146c69ba518b194bea7.tar.gz ipxe-7cfdd769aac76d605aa31146c69ba518b194bea7.tar.xz ipxe-7cfdd769aac76d605aa31146c69ba518b194bea7.zip |
[block] Describe all SAN devices via ACPI tables
Describe all SAN devices via ACPI tables such as the iBFT. For tables
that can describe only a single device (i.e. the aBFT and sBFT), one
table is installed per device. For multi-device tables (i.e. the
iBFT), all devices are described in a single table.
An underlying SAN device connection may be closed at the time that we
need to construct an ACPI table. We therefore introduce the concept
of an "ACPI descriptor" which enables the SAN boot code to maintain an
opaque pointer to the underlying object, and an "ACPI model" which can
build tables from a list of such descriptors. This separates the
lifecycles of ACPI descriptions from the lifecycles of the block
device interfaces, and allows for construction of the ACPI tables even
if the block device interface has been closed.
For a multipath SAN device, iPXE will wait until sufficient
information is available to describe all devices but will not wait for
all paths to connect successfully. For example: with a multipath
iSCSI boot iPXE will wait until at least one path has become available
and name resolution has completed on all other paths. We do this
since the iBFT has to include IP addresses rather than DNS names. We
will commence booting without waiting for the inactive paths to either
become available or close; this avoids unnecessary boot delays.
Note that the Linux kernel will refuse to accept an iBFT with more
than two NIC or target structures. We therefore describe only the
NICs that are actually required in order to reach the described
targets. Any iBFT with at most two targets is therefore guaranteed to
describe at most two NICs.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/fcp.c')
-rw-r--r-- | src/net/fcp.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/net/fcp.c b/src/net/fcp.c index 930bf7dd..d92cfdcf 100644 --- a/src/net/fcp.c +++ b/src/net/fcp.c @@ -844,25 +844,6 @@ static size_t fcpdev_window ( struct fcp_device *fcpdev ) { } /** - * Describe FCP device in an ACPI table - * - * @v fcpdev FCP device - * @v acpi ACPI table - * @v len Length of ACPI table - * @ret rc Return status code - */ -static int fcpdev_acpi_describe ( struct fcp_device *fcpdev, - struct acpi_description_header *acpi, - size_t len ) { - - DBGC ( fcpdev, "FCP %p cannot yet describe device in an ACPI table\n", - fcpdev ); - ( void ) acpi; - ( void ) len; - return 0; -} - -/** * Describe FCP device using EDD * * @v fcpdev FCP device @@ -917,7 +898,6 @@ static struct interface_operation fcpdev_scsi_op[] = { INTF_OP ( scsi_command, struct fcp_device *, fcpdev_scsi_command ), INTF_OP ( xfer_window, struct fcp_device *, fcpdev_window ), INTF_OP ( intf_close, struct fcp_device *, fcpdev_close ), - INTF_OP ( acpi_describe, struct fcp_device *, fcpdev_acpi_describe ), INTF_OP ( edd_describe, struct fcp_device *, fcpdev_edd_describe ), INTF_OP ( identify_device, struct fcp_device *, fcpdev_identify_device ), |