summaryrefslogtreecommitdiff
path: root/sys/dev/ic/isp.c
AgeCommit message (Collapse)Author
2001-04-04Ansify source. Say which channel the initiator ID is for. Renamemjacob
ICBOPT_PORTNAME to ICBOPT_BOTH_WWNS as being more descriptive. Change handles to 16 bits. Add ISPCTL_RUN_MBOXCMD control function.
2001-02-12Remove ISP2100_FABRIC defines- we always handle fabric now. Insertmjacob
isp_getmap helper function (for getting Loop Position map). Make sure we (for our own benefit) mark req_state_flags with RQSF_GOT_SENSE for Fibre Channel if we got sense data- the !*$)!*$)~*$)*$ Qlogic f/w doesn't do so. Add ISPCTL_SCAN_FABRIC, ISPCTL_SCAN_LOOP, ISPCTL_SEND_LIP, and ISPCTL_GET_POSMAP isp_control functions. Correctly send async notifications upstream for changes in the name server, changes in the port database, and f/w crashes. Correctly set topology when we get a ASYNC_PTPMODE event. Quite massively redo how we handle Loop events- we've now added several intermediate states between LOOP_PDB_RCVD and LOOP_READY. This allows us a lot finer control about how we scan fabric, whether we go further than scanning fabric, how we look at the local loop, and whether we merge entries at the level or not. This is the next to last step for moving managing loop state out of the core module entirely (whereupon loop && fabric events will simply freeze the command queue and a thread will run to figure out what's changed and *it* will re-enable the queu). This fine amount of control also gets us closer to having an external policy engine decide which fabric devices we really want to log into. When resetting the Qlogic 2X00 units, reset the FPM (Fibre Protocol Module) and FBM (Fibre Buffer Modules). Also remember to clear the semaphore registers. Tell the RISC processor to not halt on FPM parity errors. Throw out the ISP_CFG_NOINIT silliness and instead go to the use of adapter 'roles' to see whether one completes initialization or not (mostly for Fibre Channel). The ultimate intent, btw, of all of this is to have a warm standby adapter for failover reasons. Because we do roles now, setting of Target Capable Class 3 service parameters in the ICB for the 2x00 cards reflects from role. Also, in isp_start, if we're not supporting an initiator role, we bounce outgoing commands with a Selection Timeout error. Also clean out the TOGGLE_TMODE goop for FC- there is no toggling of target mode like there is for parallel SCSI cards. Do more cleanup with respect to using target ids 0..125 in F-port topologies. Also keep track of things which *were* fabric devices so that when you rescan the fabric you can notify the outer layers when fabric devices go away. Only force a LOGOUT for fabric devices if they're still logged in (i.e., you cat their Port Database entry. Clean up the Get All Next scanning. Finally, use a new tag in the softc to store the opcode for the last mailbox command used so we can report which opcode timed out.
2001-01-09Make some strings constant (from Bill Sommerfeld @ NetBSD). Clean up somemjacob
wwn handling. Do a Register FC4 Type (so that we can work with McData switches). Allow F-port topologies to use the target range 0..125 for logging in fabric devices. We changed ISPASYNC_PDB_CHANGED to ISPASYNC_LOGGED_INOUT and now use ISPASYNC_CHANGE_NOTIFY for both loop && fabric events.
2000-12-06Update isp codebase to current common head- USEC_SLEEP macro added,mjacob
instrumentation for interrupts, specific topology preferences for the 2200. Fix the hole in the OpenBSD port becuause there'd been no maxluns limit from the midlayer and have the command routine bounce commands > the maxluns for a particular controller (in particular, Qlogic FC cards where we can't tell when it hasn't been us that have loaded the F/W whether or not SCCLUN is in effect or not).
2000-10-16Update OpenBSD with respect to Solaris/FreeBSD/NetBSD/Linux versions.mjacob
Major rewrite of a lot of internals- far too many to list. Cleaner locking, more paramaterization, an isp_prt logging function that handles debugging as well as error printouts. We also should no longer hang if there is no Loop for Fibre Channel when booting. The file ispvar.h now contains a list of all platform required macros and explanation as to what they're for. This should make maintenance easier.
2000-07-06Resync with FreeBSD/NetBSD. Salient features are that the mailbox commandmjacob
routines are not necessarily polled now- this should cut down on some of the spurious lost commands that have occurred. Also, we now watchdog each command and make sure that command constipation doesn't occur (which it has been documented to do on the QLA2100 cards).
2000-04-06Get FC connection topology out of f/w during startup. Reset restrictionmjacob
against targets < 129 if we're on a Public Loop- we can have those, yes. Fix all the settings isp_sendmarker all throughout this file to OR in the bus that we are trying to synchronize (e.g., after a bus reset)- this way we don't wipe out pending sendmarker settings that haven't been done yet.
2000-03-05Clean up some error messages so that the channel source is printed. Don'tmjacob
wipe out the whole marker flag when a bus event happens on one channel- just or in the channel that needs to have a marker sent. Correctly mark a PORT CHANGED error with a 'selection timeout'.
2000-02-20Add 12160 (Ultra3) support. Add files and changes for target mode support.mjacob
Do some SNS fabric suppor tchanges. Roll revision levels. Tested on GENERIC i386 && sparc.
2000-01-09Crank up the debug levels for a couple of ISPDEBUG linesmjacob
so that a SCSIDEBUG kernel doesn't completely overrun the console.
1999-12-20Clean up some DUALBUS initialization code. Clean up some checkingmjacob
against f/w revision because we'll now use initiator only mode f/w (if loading f/w) because we get more commands active in this case (and avoid some apparent sloppiness wrt Qlogic's f/w release practices).
1999-12-16Add in cleaner dual bus and dual LVD bus support.mjacob
1999-11-23make a couple more items CFGPRINTF itemsmjacob
1999-11-22Far too many things to note- a complete new revision coming in includingmjacob
FABRIC support...
1999-03-26Annoying little nigglet- apparently *some* Qlogic temporarily ignoremjacob
settings you've just sent them and return random values if you follow the set by a get. This causes problems when you latter run a Tag-enabled command when you've command tagged mode off.
1999-03-25roll internal revision levels and enable 1080 supportmjacob
1999-03-17fix OpenBSD headersmjacob
1999-03-17complete update of ISP driver- includes 2100 FC supportmjacob
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1998-03-24nicer outputTheo de Raadt
1998-03-24add isp driver from netbsd, more munging neededTheo de Raadt