Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
e63442b6 |
| 16-Jun-2002 |
Matt Jacob <mjacob@FreeBSD.org> |
Change isp_target_async to a function returning an integer.
Roll most immediate notifies into something the platform has to handle.
|
#
75c1e828 |
| 04-Feb-2002 |
Matt Jacob <mjacob@FreeBSD.org> |
+ A variety of 23XX changes: disable MWI on 2300
based on function code, set an 'isp_port' for the 2312- it's a separate instance, but the NVRAM is shared, and the second port's NVRAM is at offs
+ A variety of 23XX changes: disable MWI on 2300
based on function code, set an 'isp_port' for the 2312- it's a separate instance, but the NVRAM is shared, and the second port's NVRAM is at offset 256.
+ Enable RIO operation for LVD SCSI cards. This makes a *big* difference as even under reasonable load we get batched completions of about 30 commands at a time on, say, an ISP1080.
+ Do 'continuation' mailbox commands- this allows us to specify a work area within the softc and 'continue' repeated mailbox commands. This is more or less on an ad hoc basis and is currently only used for firmware loading (which f/w now loads substantially faster becuase the calling thread is only woken when all the f/w words are loaded- not for each one of the 40000 f/w words that gets loaded).
+ If we're about to return from isp_intr with a 'bogus interrupt' indication, and we're not a 23XX card, check to see whether the semaphore register is currently *2* (not *1* as it should be) and whether there's an async completion sitting in outgoing mailbox0. This seems to capture cases of lost fast posting and RIO interrupts that the 12160 && 1080 have been known to pump out under extreme load (extreme, as in > 250 active commands).
+ FC_SCRATCH_ACQUIRE/FC_SCRATCH_RELEASE macros.
+ Endian correct swizzle/unswizzle of an ATIO2 that has a WWPN in it.
MFC after: 1 week
show more ...
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
4fd13c1b |
| 11-Dec-2001 |
Matt Jacob <mjacob@FreeBSD.org> |
Major restructuring for swizzling to the request queue and unswizzling from the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline
Major restructuring for swizzling to the request queue and unswizzling from the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline.h. Each platform is responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32} macros.
The reason this needs to be done is that we need to have a single set of functions that will work correctly on multiple architectures for both little and big endian machines. It also needs to work correctly in the case that we have the request or response queues in memory that has to be treated specially (e.g., have ddi_dma_sync called on it for Solaris after we update it or before we read from it). It also has to handle the SBus cards (for platforms that have them) which, while on a Big Endian machine, do *not* require *most* of the request/response queue entry fields to be swizzled or unswizzled.
One thing that falls out of this is that we no longer build requests in the request queue itself. Instead, we build the request locally (e.g., on the stack) and then as part of the swizzling operation, copy it to the request queue entry we've allocated. I thought long and hard about whether this was too expensive a change to make as it in a lot of cases requires an extra copy. On balance, the flexbility is worth it. With any luck, the entry that we build locally stays in a processor writeback cache (after all, it's only 64 bytes) so that the cost of actually flushing it to the memory area that is the shared queue with the PCI device is not all that expensive. We may examine this again and try to get clever in the future to try and avoid copies.
Another change that falls out of this is that MEMORYBARRIER should be taken a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the entry being added. But there had been many other places this had been missing. It's now very important that it be done.
Additional changes:
Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry, the iptr value that gets returned is the value we intend to eventually plug into the ISP registers as the entry *one past* the last one we've written- *not* the current entry we're updating. All along we've been calling sync functions on the wrong index value. Argh. The 'fix' here is to rename all 'iptr' variables as 'nxti' to remember that this is the 'next' pointer- not the current pointer.
Devote a single bit to mboxbsy- and set aside bits for output mbox registers that we need to pick up- we can have at least one command which does not have any defined output registers (MBOX_EXECUTE_FIRMWARE).
MFC after: 2 weeks
show more ...
|
#
23ac1fce |
| 04-Sep-2001 |
Matt Jacob <mjacob@FreeBSD.org> |
Note for ATIOs returned because of BDRs or Bus Resets for which bus this applies to. Do more bus # foo things.
Acknowledge Immediate Notifies right away prior to throwing events upstream (where the
Note for ATIOs returned because of BDRs or Bus Resets for which bus this applies to. Do more bus # foo things.
Acknowledge Immediate Notifies right away prior to throwing events upstream (where they're currently being ignored, *groan*)
Capture ASYNC_LIP_F8 as with ASYNC_LIP_OCCURRED. Don't percolate them upstream as if they were BUS RESETS- they're not.
show more ...
|
#
d82b6503 |
| 03-Sep-2001 |
Matt Jacob <mjacob@FreeBSD.org> |
Because we now store SCCLUN capabilities in firmware attributes, get rid of the silly test of isp_maxluns > 16 and use the attibutes directly.
MFC after: 4 weeks
|
#
5d571944 |
| 28-May-2001 |
Matt Jacob <mjacob@FreeBSD.org> |
Spring MegaChange #1.
----
Make a device for each ISP- really usable only with devfs and add an ioctl entry point (this can be used to (re)set debug levels, reset the HBA, rescan the fabric, issue
Spring MegaChange #1.
----
Make a device for each ISP- really usable only with devfs and add an ioctl entry point (this can be used to (re)set debug levels, reset the HBA, rescan the fabric, issue lips, etc).
----
Add in a kernel thread for Fibre Channel cards. The purpose of this thread is to be woken up to clean up after Fibre Channel events block things. Basically, any FC event that casts doubt on the location or identify of FC devices blocks the queues. When, and if, we get the PORT DATABASE CHANGED or NAME SERVER DATABASE CHANGED async event, we activate the kthread which will then, in full thread context, re-evaluate the local loop and/or the fabric. When it's satisfied that things are stable, it can then release the blocked queues and let commands flow again.
The prior mechanism was a lazy evaluation. That is, the next command to come down the pipe after change events would pay the full price for re-evaluation. And if this was done off of a softcall, it really could hang up the system.
These changes brings the FreeBSD port more in line with the Solaris, Linux and NetBSD ports. It also, more importantly, gets us being more proactive about topology changes which could then be reflected upwards to CAM so that the periph driver can be informed sooner rather than later when things arrive or depart.
---
Add in the (correct) usage of locking macros- we now have lock transition macros which allow us to transition from holding the CAM lock (Giant) and grabbing the softc lock and vice versa. Switch over to having this HBA do real locking. Some folks claim this won't be a win. They're right. But you have to start somewhere, and this will begin to teach us how to DTRT for HBAs, etc.
--
Start putting in prototype 2300 support. Add back in LIP and Loop Reset as async events that each platform will handle. Add in another int_bogus instrumentation point.
Do some more substantial target mode cleanups.
MFC after: 8 weeks
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
b25bcef8 |
| 04-Apr-2001 |
Matt Jacob <mjacob@FreeBSD.org> |
Perform some more Ansification. Remove and then replace the isp_putback_atio function- we did it a bit cleaner. We only use this if a CTIO completes with !CT_OK state. We now have managed to get away
Perform some more Ansification. Remove and then replace the isp_putback_atio function- we did it a bit cleaner. We only use this if a CTIO completes with !CT_OK state. We now have managed to get away without having to poke around and trying to find the original ATIO- the csio we're using has the tag_id and lun values with it which is mostly what we need when we do the putback.
Make sure we correctly propagate AT_TQAE->CT_TQAE for tags. Make sure we call ISP_DMAFREE only if we had DATA to move.
show more ...
|
#
b0bd9b71 |
| 14-Mar-2001 |
Matt Jacob <mjacob@FreeBSD.org> |
Clean up usage- ct_reserved is really ct_syshandle now.
|
#
5f5aafe1 |
| 02-Mar-2001 |
Matt Jacob <mjacob@FreeBSD.org> |
Switch to using 16 bit handles instead of 32 bit handles. This is a pretty invasive change, but there are three good reasons to do this:
1. We'll never have > 16 bits of handle. 2. We can (eventuall
Switch to using 16 bit handles instead of 32 bit handles. This is a pretty invasive change, but there are three good reasons to do this:
1. We'll never have > 16 bits of handle. 2. We can (eventually) enable the RIO (Reduced Interrupt Operation) bits which return multiple completing 16 bit handles in mailbox registers. 3. The !)$*)$*~)@$*~)$* Qlogic target mode for parallel SCSI spec changed such that at_reserved (which was 32 bits) was split into two pieces- and one of which was a 16 bit handle id that functions like the at_rxid for Fibre Channel (a tag for the f/w to correlate CTIOs with a particular command). Since we had to muck with that and this changed the whole handler architecture, we might as well...
Propagate new at_handle on through int ct_fwhandle. Follow implications of changing to 16 bit handles.
These above changes at least get Qlogic 1040 cards working in target mode again. 1080/12160 cards don't work yet.
In isp.c: Prepare for doing all loop management in outer layers.
show more ...
|
#
f09deb69 |
| 06-Feb-2001 |
Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> |
Fix typo: wierd -> weird.
There is no such thing as wierd in the english language.
|
Revision tags: release/4.2.0, release/4.1.1_cvs |
|
#
aa57fd6f |
| 21-Sep-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
some copyright cleanups
|
#
b6b6ad2f |
| 28-Aug-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
various fixes
|
#
10549c05 |
| 01-Aug-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
Remove isp_tdebug. Change all PRINTF macros to the now common isp_prt logging function.
|
Revision tags: release/4.1.0 |
|
#
d37162ca |
| 18-Jul-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
If debugging set, zero out an incoming response entry when we're done reading it (makes checking things easier). Before calling isp_notify_ack make sure we're at RUNSTATE- elsewise we can be respondi
If debugging set, zero out an incoming response entry when we're done reading it (makes checking things easier). Before calling isp_notify_ack make sure we're at RUNSTATE- elsewise we can be responding to LIPs or SCSI bus resets before we've finished some of the wiring.
show more ...
|
Revision tags: release/3.5.0_cvs |
|
#
2133e16f |
| 18-Jun-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
Remove all ISP2100_SCCLUN define based code and replace it with runtime comparisons against the tag isp_maxluns- if > 16, we're SCCLUN based.
On initial regular SCSI startup, disable auto-disconnect.
|
#
9dae8807 |
| 21-Apr-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
Some minor tweaklets.
|
Revision tags: release/4.0.0_cvs |
|
#
14a37293 |
| 15-Feb-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
Correctly identify which bus of dual bus SCSI adapters some target mode commands (enable/disable/modify lun && immediate notify) we're talking about.
Approved: jkh
|
#
af4d0149 |
| 11-Feb-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
Correct a minor typo in error message.
Approved: jkh@freebsd.org
|
#
0c02c31b |
| 15-Jan-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
cleanup- it was not MI code as it should have been
|
#
79e2d3b5 |
| 04-Jan-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
set default target mode debug to 0
|
#
ea49c6e4 |
| 04-Jan-2000 |
Matt Jacob <mjacob@FreeBSD.org> |
These are platform independent functions for target mode support. This is just a first pass at this and is likely to change a bit over the next month.
|