2000-05-24 23:48:15 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2000 Michael Smith
|
|
|
|
.\" Copyright (c) 2000 BSDi
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission
|
2001-07-14 19:41:16 +00:00
|
|
|
.\"
|
2000-05-24 23:48:15 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2004-08-15 17:40:06 +00:00
|
|
|
.Dd August 15, 2004
|
2000-05-24 23:48:15 +00:00
|
|
|
.Dt TWE 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm twe
|
2005-02-27 13:15:51 +00:00
|
|
|
.Nd 3ware 5000/6000/7000/8000 series PATA/SATA RAID adapter driver
|
2000-05-24 23:48:15 +00:00
|
|
|
.Sh SYNOPSIS
|
2006-05-20 09:39:28 +00:00
|
|
|
To compile this driver into the kernel,
|
|
|
|
place the following lines in your
|
|
|
|
kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
.Cd "device pci"
|
|
|
|
.Cd "device twe"
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Alternatively, to load the driver as a
|
|
|
|
module at boot time, place the following line in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
twe_load="YES"
|
|
|
|
.Ed
|
2000-05-24 23:48:15 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2004-08-15 17:40:06 +00:00
|
|
|
driver provides support for AMCC's 3ware 5000/6000/7000/8000 series
|
2005-02-27 13:15:51 +00:00
|
|
|
PATA/SATA RAID adapters.
|
2005-04-20 10:41:09 +00:00
|
|
|
These adapters were formerly known as
|
2004-08-15 17:40:06 +00:00
|
|
|
.Dq 3ware Escalade .
|
2004-07-04 14:17:41 +00:00
|
|
|
.Pp
|
2004-08-15 17:40:06 +00:00
|
|
|
These devices support 2, 4, 8, or 12 ATA disk drives
|
2004-07-04 14:17:41 +00:00
|
|
|
and provide RAID0 (striping) and RAID1 (mirroring) functionality.
|
|
|
|
.Sh HARDWARE
|
|
|
|
The
|
|
|
|
.Nm
|
2005-02-27 13:15:51 +00:00
|
|
|
driver supports the following PATA/SATA RAID
|
2003-07-16 05:49:40 +00:00
|
|
|
controllers:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2004-08-15 17:40:06 +00:00
|
|
|
AMCC's 3ware 5000 series
|
2003-07-16 05:49:40 +00:00
|
|
|
.It
|
2004-08-15 17:40:06 +00:00
|
|
|
AMCC's 3ware 6000 series
|
2003-07-16 05:49:40 +00:00
|
|
|
.It
|
2004-08-15 17:40:06 +00:00
|
|
|
AMCC's 3ware 7000-2
|
2003-07-16 05:49:40 +00:00
|
|
|
.It
|
2004-08-15 17:40:06 +00:00
|
|
|
AMCC's 3ware 7006-2
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 7500-4LP
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 7500-8
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 7500-12
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 7506-4LP
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 7506-8
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 7506-12
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8006-2LP
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8500-4LP
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8500-8
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8500-12
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8506-4LP
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8506-8
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8506-8MI
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8506-12
|
|
|
|
.It
|
|
|
|
AMCC's 3ware 8506-12MI
|
2003-07-16 05:49:40 +00:00
|
|
|
.El
|
2000-05-24 23:48:15 +00:00
|
|
|
.Sh DIAGNOSTICS
|
2000-06-22 08:32:54 +00:00
|
|
|
.Ss Controller initialisation phase
|
2000-05-24 23:48:15 +00:00
|
|
|
.Bl -diag
|
|
|
|
.It twe%d: microcontroller not ready
|
|
|
|
.Pp
|
2000-06-22 08:32:54 +00:00
|
|
|
The controller's onboard CPU is not reporting that it is ready;
|
|
|
|
this may be due to either a board or system failure.
|
|
|
|
Initialisation has failed.
|
2000-05-24 23:48:15 +00:00
|
|
|
.It twe%d: no attention interrupt
|
|
|
|
.It twe%d: can't drain AEN queue
|
|
|
|
.It twe%d: reset not reported
|
|
|
|
.It twe%d: controller errors detected
|
|
|
|
.It twe%d: can't drain response queue
|
|
|
|
.It twe%d: reset %d failed, trying again
|
|
|
|
.Pp
|
2000-06-22 08:32:54 +00:00
|
|
|
The controller is not responding correctly to
|
|
|
|
the driver's attempts to reset and initialise it.
|
|
|
|
This process is retried several times.
|
2000-05-24 23:48:15 +00:00
|
|
|
.It twe%d: can't initialise controller, giving up
|
|
|
|
.Pp
|
|
|
|
Several attempts to reset and initialise the controller have failed;
|
2000-06-22 08:32:54 +00:00
|
|
|
initialisation has failed
|
|
|
|
and the driver will not attach to this controller.
|
2000-12-29 09:18:45 +00:00
|
|
|
.El
|
2000-06-22 08:32:54 +00:00
|
|
|
.Ss Driver initialisation/shutdown phase
|
2000-05-24 23:48:15 +00:00
|
|
|
.Bl -diag
|
|
|
|
.It twe%d: register window not available
|
|
|
|
.It twe%d: can't allocate register window
|
|
|
|
.It twe%d: can't allocate parent DMA tag
|
|
|
|
.It twe%d: can't allocate interrupt
|
|
|
|
.It twe%d: can't set up interrupt
|
|
|
|
.It twe%d: can't establish configuration hook
|
|
|
|
.Pp
|
|
|
|
A resource allocation error occurred while initialising the driver;
|
2000-06-22 08:32:54 +00:00
|
|
|
initialisation has failed
|
|
|
|
and the driver will not attach to this controller.
|
2000-05-24 23:48:15 +00:00
|
|
|
.It twe%d: can't detect attached units
|
|
|
|
.Pp
|
|
|
|
Fetching the list of attached units failed; initialisation has failed.
|
|
|
|
.It twe%d: error fetching capacity for unit %d
|
2000-10-29 13:31:24 +00:00
|
|
|
.It twe%d: error fetching state for unit %d
|
|
|
|
.It twe%d: error fetching descriptor size for unit %d
|
|
|
|
.It twe%d: error fetching descriptor for unit %d
|
2000-05-24 23:48:15 +00:00
|
|
|
.It twe%d: device_add_child failed
|
|
|
|
.It twe%d: bus_generic_attach returned %d
|
|
|
|
.Pp
|
2005-05-12 16:18:58 +00:00
|
|
|
Creation of the disk devices failed, either due to communication
|
2000-10-29 13:31:24 +00:00
|
|
|
problems with the adapter or due to resource shortage;
|
2000-06-22 08:32:54 +00:00
|
|
|
attachment of one or more units may have been aborted.
|
2000-12-29 09:18:45 +00:00
|
|
|
.El
|
2000-10-29 13:31:24 +00:00
|
|
|
.Ss Operational phase
|
|
|
|
.Bl -diag
|
|
|
|
.It twe%d: command completed - %s
|
|
|
|
.El
|
2000-05-24 23:48:15 +00:00
|
|
|
.Pp
|
2000-10-29 13:31:24 +00:00
|
|
|
A command was reported completed with a warning by the controller.
|
|
|
|
The warning may be one of:
|
|
|
|
.Bl -diag
|
|
|
|
.It redundant/inconsequential request ignored
|
|
|
|
.It failed to write zeroes to LBA 0
|
|
|
|
.It failed to profile TwinStor zones
|
|
|
|
.El
|
|
|
|
.Bl -diag
|
|
|
|
.It twe%d: command failed - %s
|
|
|
|
.El
|
2000-05-24 23:48:15 +00:00
|
|
|
.Pp
|
2000-10-29 13:31:24 +00:00
|
|
|
A command was reported as failed by the controller.
|
|
|
|
The failure message may be one of:
|
|
|
|
.Bl -diag
|
|
|
|
.It aborted due to system command or reconfiguration
|
|
|
|
.It aborted
|
|
|
|
.It access error
|
|
|
|
.It access violation
|
|
|
|
.It device failure
|
|
|
|
.It controller error
|
|
|
|
.It timed out
|
|
|
|
.It invalid unit number
|
|
|
|
.It unit not available
|
|
|
|
.It undefined opcode
|
|
|
|
.It request incompatible with unit
|
|
|
|
.It invalid request
|
|
|
|
.It firmware error, reset requested
|
2000-05-24 23:48:15 +00:00
|
|
|
.Pp
|
2000-10-29 13:31:24 +00:00
|
|
|
The command will be returned to the operating system after a
|
|
|
|
fatal error.
|
|
|
|
.El
|
|
|
|
.Bl -diag
|
|
|
|
.It twe%d: command failed submission - controller wedged
|
|
|
|
.Pp
|
|
|
|
A command could not be delivered to the controller because
|
|
|
|
the controller is unresponsive.
|
|
|
|
.It twe%d: AEN: <%s>
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The controller has reported a change in status using an AEN
|
2000-10-29 13:37:13 +00:00
|
|
|
(Asynchronous Event Notification).
|
|
|
|
The following AENs may be reported:
|
2000-10-29 13:31:24 +00:00
|
|
|
.Bl -diag
|
|
|
|
.It queue empty
|
|
|
|
.It soft reset
|
|
|
|
.It degraded mirror
|
|
|
|
.It controller error
|
|
|
|
.It rebuild fail
|
|
|
|
.It rebuild done
|
|
|
|
.It incomplete unit
|
|
|
|
.It initialisation done
|
|
|
|
.It unclean shutdown detected
|
|
|
|
.It drive timeout
|
|
|
|
.It drive error
|
|
|
|
.It rebuild started
|
|
|
|
.It aen queue full
|
|
|
|
.Pp
|
|
|
|
AENs are also queued internally for use by management tools.
|
|
|
|
.El
|
|
|
|
.Bl -diag
|
2000-05-24 23:48:15 +00:00
|
|
|
.It twe%d: error polling for signalled AENs
|
|
|
|
.Pp
|
2000-06-22 08:32:54 +00:00
|
|
|
The controller has reported
|
|
|
|
that one or more status messages are ready for the driver,
|
|
|
|
but attempting to fetch one of these has returned an error.
|
2000-05-24 23:48:15 +00:00
|
|
|
.It twe%d: AEN queue overflow, lost AEN <%s>
|
|
|
|
.Pp
|
2000-06-22 08:32:54 +00:00
|
|
|
A status message was retrieved from the controller,
|
|
|
|
but there is no more room to queue it in the driver.
|
2000-10-29 13:31:24 +00:00
|
|
|
The message is lost (but will be printed to the console).
|
2000-05-24 23:48:15 +00:00
|
|
|
.It twe%d: missing expected status bits %s
|
|
|
|
.It twe%d: unexpected status bits %s
|
|
|
|
.Pp
|
2000-06-22 08:32:54 +00:00
|
|
|
A check of the controller's status bits
|
|
|
|
indicates an unexpected condition.
|
2000-10-29 13:31:24 +00:00
|
|
|
.It twe%d: host interrupt
|
|
|
|
.Pp
|
|
|
|
The controller has signalled a host interrupt.
|
|
|
|
This serves an unknown purpose and is ignored.
|
|
|
|
.It twe%d: command interrupt
|
|
|
|
.Pp
|
|
|
|
The controller has signalled a command interrupt.
|
|
|
|
This is not used, and will be disabled.
|
|
|
|
.It twe%d: controller reset in progress...
|
2000-05-24 23:48:15 +00:00
|
|
|
.Pp
|
2000-10-29 13:31:24 +00:00
|
|
|
The controller is being reset by the driver.
|
|
|
|
Typically this is done when the driver has determined that the
|
|
|
|
controller is in an unrecoverable state.
|
|
|
|
.It twe%d: can't reset controller, giving up
|
|
|
|
.Pp
|
|
|
|
The driver has given up on resetting the controller.
|
|
|
|
No further I/O will be handled.
|
|
|
|
.It controller reset done, %d commands restarted
|
|
|
|
.Pp
|
2000-10-29 13:33:57 +00:00
|
|
|
The controller was successfully reset,
|
2000-10-29 13:31:24 +00:00
|
|
|
and outstanding commands were restarted.
|
2000-12-29 09:18:45 +00:00
|
|
|
.El
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh AUTHORS
|
2005-08-06 13:05:45 +00:00
|
|
|
.An -nosplit
|
2005-01-21 08:36:40 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2005-08-06 13:05:45 +00:00
|
|
|
driver and manual page were written by
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Michael Smith Aq Mt msmith@FreeBSD.org .
|
2005-08-06 13:05:45 +00:00
|
|
|
.Pp
|
|
|
|
Extensive work done on the driver by
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Vinod Kashyap Aq Mt vkashyap@FreeBSD.org
|
2005-08-06 13:05:45 +00:00
|
|
|
and
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Paul Saab Aq Mt ps@FreeBSD.org .
|
2000-10-29 13:31:24 +00:00
|
|
|
.Sh BUGS
|
2000-06-22 08:32:54 +00:00
|
|
|
The controller cannot handle I/O transfers
|
|
|
|
that are not aligned to a 512-byte boundary.
|
|
|
|
In order to support raw device access from user-space,
|
|
|
|
the driver will perform alignment fixup on non-aligned data.
|
|
|
|
This process is inefficient,
|
|
|
|
and thus in order to obtain best performance
|
|
|
|
user-space applications accessing the device
|
|
|
|
should do so with aligned buffers.
|