freebsd-skq/sys
Justin T. Gibbs dd1290f033 aic7xxx.c:
Filter incoming transfer negotiation requests to ensure they
	never exceed the settings specified by the user.

	In restart sequencer attempt to deal with a bug in the aic7895.
	If a third party reset occurs at just the right time, the
	stack register can lock up.  When restarting the sequencer
	after handling the SCSI reset, poke SEQADDR1 before resting
	the sequencers program counter.

	When something strange happens, dump the card's transaction
	state via ahc_dump_card_state().  This should aid in debugging.

	Handle request sense transactions via the QINFIFO instead of
	attaching them to the waiting queue directly.  The waiting
	queue consumes card SCB resources and, in the pathological case
	of every target on the bus beating our selection attemps and
	issuing a check condition, could have caused us to run out
	of SCBs.  I have never seen this happen, and only early
	cards with 3 or 4 SCBs had any real chance of ever getting
	into this state.

	Add additional sequencer interrupt codes to support firmware
	diagnostics.  The diagnostic code is enabled with the
	AHC_DEBUG_SEQUENCER kernel option.

	Make it possible to switch into and out of target mode on
	the fly.  The card comes up by default as an initiator but
	will switch into target mode as soon as an enable lun operation
	is performed.  As always, target mode behavior is gated
	by the AHC_TMODE_ENABLE kernel option so most users will
	not be affected by this change.

	In ahc_update_target_msg_request(), also issue a new
	request if the ppr_options have changed.

	Never issue a PPR as a target.  It is forbidden by the spec.

	Correct a bug in ahc_parse_msg() that prevented us from
	responding to PPR messages as a target.

	Mark SCBs that are on the untagged queue with a flag instead
	of checking several fields in the SCB to see if the SCB should
	be on the queue.  This makes it easier for things like automatic
	request sense requests to be queued without touching the
	untagged queues even though they are untagged requests.

	When dealing with ignore wide residue messages that occur
	in the middle of a transfer, reset HADDR, not SHADDR for
	non-ultra2 chips.  Although SHADDR is where the firmware
	fetches the ending transfer address for a save data pointers
	request, it is readonly. Setting HADDR has the side effect
	of also updating SHADDR.

	Cleanup the output of ahc_dump_card_state() by nulling out the
	free scb list in the non-paging case.  The free list is only
	used if we must page SCBs.

	Correct the transmission of cdbs > 12 bytes in length.  When
	swapping HSCBs prior to notifing the sequencer of the new
	transaction, the bus address pointer for the cdb must also
	be recalculated to reflect its new location.  We now defer
	the calculation of the cdb address until just before queing
	it to the card.

	When pulling transfer negotiation settings out of scratch
	ram, convert 5MHz/clock doubled settings to 10MHz.

	Add a new function ahc_qinfifo_requeue_tail() for use by
	error recovery actions and auto-request sense operations.
	These operations always occur when the sequencer is paused,
	so we can avoid the extra expense incurred in the normal
	SCB queue method.

	Use the BMOV instruction for all single byte moves on
	controllers that support it.  The bmov instruction is
	twice as fast as an AND with an immediate of 0xFF as
	is used on older controllers.

	Correct a few bugs in ahc_dump_card_state().  If we have
	hardware assisted queue registers, use them to get the
	sequencer's idea of the head of the queue.  When enumerating
	the untagged queue, it helps to use the correct index for
	the queue.

aic7xxx.h:

	Indicate via a feature flag, which controllers can take
	on both the target and the initiator role at the same time.

	Add the AHC_SEQUENCER_DEBUG flag.

	Add the SCB_CDB32_PTR flag used for dealing with cdbs
	with lengths between 13 and 32 bytes.

	Add new prototypes.

aic7xxx.reg:
	Allow the SCSIBUSL register to be written to.  This is
	required to fix a selection timeout problem on the 7892/99.

	Cleanup the sequencer interrupt codes so that all debugging
	codes are grouped at the end of the list.

	Correct the definition of the ULTRA_ENB and DISC_DSB locations
	in scratch ram.  This prevented the driver from properly honoring
	these settings when no serial eeprom was available.

	Remove an unused sequencer flag.

aic7xxx.seq:
	Just before a potential select-out, clear the SCSIBUSL
	register.  Occasionally, during a selection timeout, the
	contents of the register may be presented on the bus,
	causing much confusion.

	Add sequencer diagnostic code to detect software and or
	hardware bugs.  The code attempts to verify most list
	operations so any corruption is caught before it occurs.
	We also track information about why a particular reconnection
	request was rejected.

	Don't clobber the digital REQ/ACK filter setting in SXFRCTL0
	when clearing the channel.

	Fix a target mode bug that would cause us to return busy
	status instead of queue full in respnse to a tagged transaction.

	Cleanup the overrun case.  It turns out that by simply
	butting the chip in bitbucket mode, it will ack any
	bytes until the phase changes.  This drasticaly simplifies
	things.

	Prior to leaving the data phase, make sure that the S/G
	preload queue is empty.

	Remove code to place a request sense request on the waiting
	queue.  This is all handled by the kernel now.

	Change the semantics of "findSCB".  In the past, findSCB
	ensured that a freshly paged in SCB appeared on the disconnected
	list.  The problem with this is that there is no guarantee that
	the paged in SCB is for a disconnected transation.  We now
	defer any list manipulation to the caller who usually discards
	the SCB via the free list.

	Inline some busy target table operations.

	Add a critical section to protect adding an SCB to
	the disconnected list.

aic7xxx_freebsd.c:
	Handle changes in the transfer negotiation setting API
	to filter incoming requests.  No filtering is necessary
	for "goal" requests from the XPT.

	Set the SCB_CDB32_PTR flag when queing a transaction with
	a large cdb.

	In ahc_timeout, only take action if the active SCB is
	the timedout SCB.  This deals with the case of two
	transactions to the same device with different timeout
	values.

	Use ahc_qinfifo_requeu_tail() instead of home grown
	version.

aic7xxx_inline.h:
	Honor SCB_CDB32_PTR when queuing a new request.

aic7xxx_pci.c:
	Use the maximum data fifo threshold for all chips.
2000-10-31 18:43:29 +00:00
..
alpha Remember to decrement interrupt nesting level if leaving early 2000-10-30 04:18:54 +00:00
amd64 Deprecate devsw->d_bmaj entirely. 2000-10-31 10:58:14 +00:00
boot Add entry for umodem 2000-10-30 10:55:03 +00:00
cam 0x03F -> 0x3F for consistancy with the rest of the file. 2000-10-31 18:00:23 +00:00
coda Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
compat Bring cpuinfo closer to what it looks like in Linux 2.2. 2000-10-25 22:38:23 +00:00
compile
conf Add the aic7xxx option AHC_DEBUG_SEQUENCER. This enables some diagnostic 2000-10-31 18:01:15 +00:00
contrib/dev We should include <machine/stdarg.h> not <stdarg.h> 2000-10-28 08:32:43 +00:00
crypto Initial import of AES algorithm code (aka Rijndael) from KAME. 2000-10-30 11:03:32 +00:00
ddb Previous commit changing SYSCTL_HANDLER_ARGS violated KNF. 2000-07-04 11:25:35 +00:00
dev aic7xxx.c: 2000-10-31 18:43:29 +00:00
fs Make malloc use M_ZERO in some more locations. 2000-10-29 16:14:28 +00:00
geom Avoid the modules madness I inadvertently introduced by making the 2000-09-02 19:17:34 +00:00
gnu Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
i4b Remove unused #include statements 2000-10-30 14:49:26 +00:00
i386 Fix typo in comments 2000-10-31 14:30:29 +00:00
ia64 Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
isa Revert two experimental changes which escaped from my devel machine. 2000-10-28 06:55:12 +00:00
isofs/cd9660 Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
kern Deprecate devsw->d_bmaj entirely. 2000-10-31 10:58:14 +00:00
libkern Fix compilation of profiled kernels by including <machine/lock.h> 2000-10-14 08:34:27 +00:00
miscfs Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
modules Disabled EGA/VGA 1bpp/4bpp modes support. This is not real fix, but this comes 2000-10-31 07:58:34 +00:00
msdosfs Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
net Add pfil.9 manpage to build after a repository copy. 2000-10-30 09:16:18 +00:00
netatalk Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
netatm Add back some #include <sys/systm.h> which were needed when <sys/ktr.h> 2000-10-30 20:37:01 +00:00
netgraph Swap the order of two tags in the pppoe PADI and PADS packets 2000-10-31 14:40:23 +00:00
netinet Do not waste a time saving a copy of IP header if we are certainly 2000-10-31 09:13:02 +00:00
netinet6 Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
netipx Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
netkey Revert previous commit after discussion with phk. 2000-10-30 09:13:46 +00:00
netnatm Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
netncp Make malloc use M_ZERO in some more locations. 2000-10-29 16:14:28 +00:00
netns Clean up some loose ends in the network code, including the X.25 and ISO 2000-02-13 03:32:07 +00:00
nfs Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
nfsclient Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
nfsserver Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
ntfs Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
nwfs Make malloc use M_ZERO in some more locations. 2000-10-29 16:14:28 +00:00
pc98 Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
pccard Oops, in previous commit(rev.1.4), I replaced 2000-10-31 03:28:02 +00:00
pci Convert the de driver into a loadable module. Still missing is an 2000-10-31 01:25:10 +00:00
posix4 Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
powerpc - Overhaul the software interrupt code to use interrupt threads for each 2000-10-25 05:19:40 +00:00
rpc
sys Use do { ... } while (0) to wrap the body of mtx_assert(). 2000-10-31 17:20:55 +00:00
tools remove crufty exec stuff, perl is in the base system 2000-06-27 19:09:55 +00:00
ufs Add a missing <sys/systm.h> 2000-10-30 20:37:19 +00:00
vm Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
Makefile I should know better than to touch this without testing a 'make release' 2000-08-24 18:53:09 +00:00