freebsd-dev/sys/dev/mpt
Kenneth D. Merry b79dc8a8da Fix an issue that caused the kernel to panic inside CTL when trying
to attach to target capable HBAs that implement the old immediate
notify (XPT_IMMED_NOTIFY) and notify acknowledge (XPT_NOTIFY_ACK)
CCBs.  The new API has been in place since SVN change 196008 in
2009.

The solution is two-fold:  fix CTL to handle the responses from the
HBAs, and convert the HBA drivers in question to use the new API.

These drivers have not been tested with CTL, so how well they will
interoperate with CTL is unknown.

scsi_target.c:	Update the userland target example code to use the
		new immediate notify API.

scsi_ctl.c:	Detect when an immediate notify CCB is returned
		with CAM_REQ_INVALID or CAM_PROVIDE_FAIL status,
		and just free it.

		Fix a duplicate assignment.

aic79xx.c,
aic79xx_osm.c:	Update the aic79xx driver to use the new API.
		Target mode is not enabled on for this driver, so
		the changes will have no practical effect.

aic7xxx.c,
aic7xxx_osm.c:	Update the aic7xxx driver to use the new API.

sbp_targ.c:	Update the firewire target code to work with the
		new API.

mpt_cam.c:	Update the mpt(4) driver to work with the new API.
		Target mode is only enabled for Fibre Channel
		mpt(4) devices.

MFC after:	3 days
2012-06-26 14:51:35 +00:00
..
mpilib Consistently update to the MPI header set version 01.05.20 after r224761. 2012-03-24 16:23:21 +00:00
mpt_cam.c Fix an issue that caused the kernel to panic inside CTL when trying 2012-06-26 14:51:35 +00:00
mpt_cam.h MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
mpt_debug.c - Staticize functions as appropriate and comment out unused ones. 2011-07-29 18:35:10 +00:00
mpt_pci.c Refine r233827; as it turns out, controllers with a device ID of 0x0059 2012-04-04 20:42:45 +00:00
mpt_raid.c - Send the RELSIM_ADJUST_OPENINGS in response to a MPI_EVENT_QUEUE_FULL using 2011-07-29 18:38:31 +00:00
mpt_raid.h - Send the RELSIM_ADJUST_OPENINGS in response to a MPI_EVENT_QUEUE_FULL using 2011-07-29 18:38:31 +00:00
mpt_reg.h Flesh out support for SAS1078 and SAS1078DE (which are said to actually 2012-02-11 12:03:44 +00:00
mpt_user.c - Staticize functions as appropriate and comment out unused ones. 2011-07-29 18:35:10 +00:00
mpt.c Flesh out support for SAS1078 and SAS1078DE (which are said to actually 2012-02-11 12:03:44 +00:00
mpt.h - Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here. 2012-03-24 00:30:17 +00:00