#
1a0657b7 |
| 21-Oct-2006 |
dlg <dlg@openbsd.org> |
rework the bus scanning code by splitting it out into separate functions for walking the bus and targets, and probing the luns. this removes the need to use magic numbers to wildcard each of these, w
rework the bus scanning code by splitting it out into separate functions for walking the bus and targets, and probing the luns. this removes the need to use magic numbers to wildcard each of these, which in turn makes the code a lot easier to read. as a bonus we get some more space to work in (80 chars isnt that much somtimes).
note that this code wont probe high luns if lun 0 doesnt exist.
ok krw@
show more ...
|
#
6ea239e2 |
| 22-Sep-2006 |
dlg <dlg@openbsd.org> |
add support for hotplugging devices on sas controllers. this is disabled for now until we deal more appropriately with events generated by other variants of mpi controllers.
|
#
d2b66ea7 |
| 21-Sep-2006 |
dlg <dlg@openbsd.org> |
code for acking event notifications that require acks.
|
#
fe964053 |
| 21-Sep-2006 |
dlg <dlg@openbsd.org> |
deref the right rcb by using i as the index, not 1 all the time.
|
#
053747d8 |
| 21-Sep-2006 |
dlg <dlg@openbsd.org> |
start cleaning up the completion path for event notifications.
|
#
cfe718ff |
| 21-Sep-2006 |
dlg <dlg@openbsd.org> |
add a debug flag type thing for event handling
|
#
f61a0bda |
| 21-Sep-2006 |
dlg <dlg@openbsd.org> |
wrap the hardware replies up in a structure called mpi_rcb which is similair to the one used for requests. take the reply bits out of the ccb, but point it at the rcb instead.
this lets us defer pro
wrap the hardware replies up in a structure called mpi_rcb which is similair to the one used for requests. take the reply bits out of the ccb, but point it at the rcb instead.
this lets us defer processing of the reply some time after we reuse or free the ccb.
show more ...
|
#
5a59804f |
| 21-Sep-2006 |
dlg <dlg@openbsd.org> |
factor the common code out of mpi_intr and mpi_complete. they were basically identical apart from the conditions they looped on.
|
#
e62a2b32 |
| 18-Sep-2006 |
dlg <dlg@openbsd.org> |
macros and types for event notifications from the hardware.
|
#
2c1ae51f |
| 18-Sep-2006 |
pedro <pedro@openbsd.org> |
There's no need to walk the list of devices to find the SCSI bus we should attach to, since config_found() already returns a pointer to it. Pointed out by Quentin Garnier, okay dlg@.
|
#
a785be13 |
| 16-Sep-2006 |
dlg <dlg@openbsd.org> |
rework the handling of the errors coming off the hardware at the bottom of mpi_scsi_cmd_done. this makes it more appropriate for our midlayer.
ok beck@ deraadt@
|
#
e2946204 |
| 24-Aug-2006 |
dlg <dlg@openbsd.org> |
dont print debug output when the scsi completion path returns with something other than SCSI_OK. for example, SCSI_SENSE is returned when the device has sense data. this code was left in to help debu
dont print debug output when the scsi completion path returns with something other than SCSI_OK. for example, SCSI_SENSE is returned when the device has sense data. this code was left in to help debug problems in the field, but noones had any problems with mpi apart from it being too chatty when a device returns sense data...
show more ...
|
#
acba447f |
| 03-Aug-2006 |
dlg <dlg@openbsd.org> |
always call scsi_done at splbio. issue found by pedro@ while here protect submission of the scsi command with splbio as well.
|
#
6608091e |
| 15-Jul-2006 |
dlg <dlg@openbsd.org> |
set the tags on the scsi command according to what the midlayer says they should be.
|
#
bd8dca97 |
| 15-Jul-2006 |
dlg <dlg@openbsd.org> |
have a go at configuring spi variants to only talk to the devices at the lowest possible speeds during inquiry and attach. some devices, like tapes and enclosures, dont like being probed at high spee
have a go at configuring spi variants to only talk to the devices at the lowest possible speeds during inquiry and attach. some devices, like tapes and enclosures, dont like being probed at high speeds and can attach as weird things. this seems to help those devices.
show more ...
|
#
92032822 |
| 09-Jul-2006 |
dlg <dlg@openbsd.org> |
spacing
|
#
c30d90ac |
| 09-Jul-2006 |
dlg <dlg@openbsd.org> |
enabling interrupts doesnt deserve an XXX. i think we want to do that.
|
#
55afb5af |
| 09-Jul-2006 |
dlg <dlg@openbsd.org> |
implement firmware upload. this frees up memory on some controllers so they can do more io at a time. tested on the onboard controllers of a dell 2850 (which can do it) and a pci controller on my hom
implement firmware upload. this frees up memory on some controllers so they can do more io at a time. tested on the onboard controllers of a dell 2850 (which can do it) and a pci controller on my home box (which doesnt). this was the last feature mpt had that mpi was behind on.
show more ...
|
#
19472b82 |
| 06-Jul-2006 |
dlg <dlg@openbsd.org> |
fix debugging stuff
|
#
3bacd417 |
| 06-Jul-2006 |
dlg <dlg@openbsd.org> |
after walking the attached devices and running ppr against them, then fetch the ioc page 3 for a list of all the physical disks behind any configured volumes and run ppr against them too.
raid volum
after walking the attached devices and running ppr against them, then fetch the ioc page 3 for a list of all the physical disks behind any configured volumes and run ppr against them too.
raid volumes on scsi mpi is fast now.
show more ...
|
#
8177d4f6 |
| 06-Jul-2006 |
dlg <dlg@openbsd.org> |
do not stash pages 2 and 3 (the volume and physdisk pages respectively) of the ioc config in the softc. instead, we only walk page 2 when we get the raid config and mark each disks scsi_link structur
do not stash pages 2 and 3 (the volume and physdisk pages respectively) of the ioc config in the softc. instead, we only walk page 2 when we get the raid config and mark each disks scsi_link structure with the SDEV_LOGICAL flag when we find volumes. while there we mark this instance of the driver as being capable of doing raid so later on we can conditionally hook up bio.
when we walk the devices attached to mpi to do ppr, we now skip the logical disks.
show more ...
|
#
f67ab8bd |
| 06-Jul-2006 |
dlg <dlg@openbsd.org> |
stash a pointer to the scsibus attached to us so we dont have to walk the device tree all the time.
|
#
1ddc3a09 |
| 05-Jul-2006 |
dlg <dlg@openbsd.org> |
check if the requests for the config pages were completed successful, rather than just completed.
|
#
5553659e |
| 30-Jun-2006 |
kettenis <kettenis@openbsd.org> |
Unbreak the tree; cast the result of sizeof() to u_int32_t before passing it to htole32(). "go for it" miod@
|
#
af11c632 |
| 30-Jun-2006 |
dlg <dlg@openbsd.org> |
tabs, not spaces
|