1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/dev
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
..
aac Return -10 from the PCI probe to allow room for an updated driver to 2000-10-28 10:46:30 +00:00
acpi Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
acpica If acpica driver is loaded using kldload(8), warn and just ignore. 2000-10-31 11:54:10 +00:00
advansys Remove unneeded <stddef.h> #includes. 2000-10-29 16:57:42 +00:00
agp Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
aha Make a few more mallocs use M_ZERO. 2000-10-29 16:29:05 +00:00
ahb Add the use of M_ZERO to some malloc calls. 2000-10-29 15:47:16 +00:00
aic Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
aic7xxx aic7xxx.c: 2000-10-31 18:43:29 +00:00
amd Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
amr Return -10 from the PCI probe to allow room for an updated driver to 2000-10-28 10:46:30 +00:00
an Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
ar Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
asr Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
ata Try a bit harder to test for ATA/ATAPI HW to probe, this is to avoid 2000-10-30 20:45:24 +00:00
atkbdc Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
awi Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
bktr Fix typo in comments 2000-10-31 14:30:29 +00:00
buslogic Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
cardbus Initial commit of NEWCARD cardbus side (that actually compiles and works) 2000-10-18 03:37:21 +00:00
ccd Avoid the modules madness I inadvertently introduced by making the 2000-09-02 19:17:34 +00:00
cs Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
cy Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
dc Call dc_apply_fixup() in dc_setcfg() for the MII case. 2000-10-31 00:06:39 +00:00
de Convert the de driver into a loadable module. Still missing is an 2000-10-31 01:25:10 +00:00
dec Add missing $FreeBSD$ 2000-05-01 19:54:26 +00:00
dgb Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
dpt Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
ed Network modules are all "if_foo" not "foo". Avoid the confusing spew that 2000-10-15 20:23:27 +00:00
eisa Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
en Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
ep Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
ex Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
fb Disabled EGA/VGA 1bpp/4bpp modes support. This is not real fix, but this comes 2000-10-31 07:58:34 +00:00
fdc Untangle some resource matching loops that were getting on my nerves 2000-10-15 08:50:45 +00:00
fe Moved prototypes of isa_alloc_resourcev() and isa_load_resourcev() to 2000-10-22 16:48:08 +00:00
fxp Make usual 1-line cardbus support modification. 2000-10-22 06:41:46 +00:00
hea Add back some #include <sys/systm.h> which were needed when <sys/ktr.h> 2000-10-30 20:37:01 +00:00
hfa Add back some #include <sys/systm.h> which were needed when <sys/ktr.h> 2000-10-30 20:37:01 +00:00
ic Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
ichsmb Driver for the Intel 82801AA (ICH) SMBus controller and compatibles. 2000-10-06 00:09:46 +00:00
ida Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
ie Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
iicbus Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
isp I'm dropping the MAINTAINER request and see what happens. If it becomes 2000-10-31 05:55:54 +00:00
ispfw some copyright cleanups 2000-09-21 20:16:04 +00:00
joy
kbd Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
lmc Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
lnc Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
mc146818 Add missing $FreeBSD$ 2000-05-01 19:54:26 +00:00
mca Set the RF_SHAREABLE flage when we allocate an IRQ. 2000-03-13 11:43:53 +00:00
mcd Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
md Avoid the modules madness I inadvertently introduced by making the 2000-09-02 19:17:34 +00:00
mii Catch up to moving headers: 2000-10-20 07:58:15 +00:00
mlx Return -10 from the PCI probe to allow room for an updated driver to 2000-10-28 10:46:30 +00:00
mly Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
mse Initiate deorbit burn sequence for <machine/mouse.h>. 2000-10-09 08:08:36 +00:00
musycc Many and sundry changes. Still alpha quality. 2000-08-29 12:32:01 +00:00
ncv Change flags of ncv and nsp driver. Both were conflicted with the flags 2000-10-29 06:54:32 +00:00
nsp Change flags of ncv and nsp driver. Both were conflicted with the flags 2000-10-29 06:54:32 +00:00
null During a verbose boot, call the null device 'null' rather than 'null0' to 2000-10-06 00:46:29 +00:00
ofw "Ok, my loader's now up to putting up a prompt. It probes disks partially 2000-10-16 10:46:22 +00:00
pccard Make a few more mallocs use M_ZERO. 2000-10-29 16:29:05 +00:00
pccbb Cleanup allocation of resources for 16-bits. We now do the right 2000-10-22 04:37:57 +00:00
pcf Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
pci fix warning compile error about unused variable 2000-10-29 10:07:43 +00:00
pcic Remove some silly debug writes and code that we don't need 2000-10-18 02:22:39 +00:00
pdq Remove unneeded <stddef.h> #includes. 2000-10-29 16:57:42 +00:00
ppbus Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
ppc Add support for the PC87303 chipset (found on Miata alphas) and add 2000-07-20 09:28:07 +00:00
random Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
ray Add attribute memory setup warnings 2000-07-11 21:31:59 +00:00
rc Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
rp Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
scd Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
sf Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
si Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
sio - Overhaul the software interrupt code to use interrupt threads for each 2000-10-25 05:19:40 +00:00
sk Add a missing SK_UNLOCK() to sk_attach_xmac(). 2000-10-25 23:36:45 +00:00
smbus Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
sn Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
snc Remove unused #includes. 2000-10-31 08:22:26 +00:00
snp Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
sound add commented-out dependancies on the new sb8 and sb16 drivers 2000-10-28 19:35:54 +00:00
speaker Add PnP probe methods to some common AT hardware drivers. In each case, 2000-06-23 07:44:33 +00:00
sr Mass update of isa drivers using compatability shims to use 2000-05-28 13:40:48 +00:00
stg Remove unnecessary printf(). 2000-10-29 06:03:47 +00:00
streams Cleanup after repo copy of sys/svr4 to sys/compat/svr4. 2000-09-01 08:47:14 +00:00
sym Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
syscons Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
tdfx Added some handling code to work with SLI configs, and removed some unused 2000-10-10 03:51:54 +00:00
ti (Introduce something sitting in my repo for 3 weeks now...) 2000-10-21 00:13:35 +00:00
twe Add PCI device ID for an upcoming revision of the product. 2000-10-27 05:58:45 +00:00
tx Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
usb remove an unused function (and a warning) 2000-10-30 10:58:02 +00:00
vinum Get rid of the last traces of ACTUALLY_LKM_NOT_KERNEL 2000-10-23 08:35:41 +00:00
vn Call make_dev() with the correct minor number. 2000-09-26 19:09:44 +00:00
vr Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
vx Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
wds Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
wi Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
wl Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
xe Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00