aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp
Commit message (Collapse)AuthorAgeFilesLines
* MFC: preparation for DAC support. 10160 support. F/W redefines. KeepingMatt Jacob2002-10-111-14/+26
| | | | | | | up with mainline code. Notes: svn path=/stable/4/; revision=104929
* MFC: DAC related, ZIO defines.Matt Jacob2002-10-111-0/+7
| | | | Notes: svn path=/stable/4/; revision=104928
* MFC: 10160 support. Bus space restriction changes.Matt Jacob2002-10-111-13/+50
| | | | Notes: svn path=/stable/4/; revision=104927
* MFC: FLEX fix. Convergence to -current.Matt Jacob2002-10-111-29/+32
| | | | Notes: svn path=/stable/4/; revision=104926
* MFC:Fix buglet in A64 CTIO3 structure copy.Matt Jacob2002-10-111-1/+1
| | | | Notes: svn path=/stable/4/; revision=104922
* MFC: removal of useless variable. Addition of corrected isp_async actionsMatt Jacob2002-10-111-1/+12
| | | | | | | for ISP_FW_CRASH_DUMP case. Notes: svn path=/stable/4/; revision=104921
* MFC: lose STRNCAT over the side. Beginnings of DAC support. Removal ofMatt Jacob2002-10-111-2/+6
| | | | | | | duplicate include. Notes: svn path=/stable/4/; revision=104920
* MFC: 10160 support. Initial DAC support. Lose STRNCAT over the side.Matt Jacob2002-10-111-63/+133
| | | | | | | 23XX ZIO support. Keep up with off-freebsd code changes. Notes: svn path=/stable/4/; revision=104919
* MFC: bring us up to date with fixed target mode.Matt Jacob2002-07-292-23/+13
| | | | Notes: svn path=/stable/4/; revision=100856
* MFC: bring us up to snuff with main development- new ISP_CFG_XXX definesMatt Jacob2002-07-291-4/+11
| | | | | | | and a couple new ISPASYNC defines. Notes: svn path=/stable/4/; revision=100855
* MFC: add HEARTBEAT commands and FC4_FC_SVC define.Matt Jacob2002-07-291-0/+4
| | | | Notes: svn path=/stable/4/; revision=100854
* MFC (1.82):Matt Jacob2002-07-291-239/+74
| | | | | | | | | | | | | | | Set all 23XX cards as 'touched' (we have trouble, unpredictably, about running ABOUT FIRMWARE with some that were started by BIOS downloads). Redo CTIO2 dma mapping- use continuation segments instead of multiple CTIO2s. Thanks to Veritas for sponsoring this work (in a different context). RELENG_4 only: preserve unit numbering for 'disabled' HBAs by returning success in attachment (but not connecting the dots to CAM). Notes: svn path=/stable/4/; revision=100853
* MFC (1.7-1.8): add get/set param, ISP_FC_GETHINFO ioctlsMatt Jacob2002-07-291-0/+52
| | | | Notes: svn path=/stable/4/; revision=100852
* MFC 1.26:Matt Jacob2002-07-291-1/+1
| | | | | | | | Go back to *not* fully evaluating loop/fabric state if our role is ISP_ROLE_NONE. Notes: svn path=/stable/4/; revision=100851
* MFC (1.62-1.67, as appropriate)Matt Jacob2002-07-291-22/+46
| | | | | | | | | | | | | Clean up some internal target mode stuff plus internal flags. Up MAXISPREQUEST to be 1024 for FC && ULTRA2 or better cards (up fromn 256) Use real bus_dmamap_sync stuff instead of platform foobs. Complain if somebody reuses FC scratch area unexpectedly. Notes: svn path=/stable/4/; revision=100850
* MFC (1.79-1.80, all as sensible):Matt Jacob2002-07-291-152/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for ISP_FC_GETHINFO, which returns current connection topology, speed, loopid, WWPN/WWNN, etc., plus other ioctls. Coalesece all the freeze simq for loopdown into a isp_freeze_loopdown inline. Beef up target mode. Add isp_handle_platform_notify_scsi and isp_handle_platform_notify_fc platform handlers to handle immediate notifies (isp_handle_platform_notify_scsi is still stubbed out). In implementation of isp_handle_platform_notify_fc, for IN_ABORT_TASK, peel off a pending XPT_IMMED_NOTIFY and call xpt_done on it and hope that somebody upstream is listening. Make sure on final CTIO2s that we set residual correctly. These are absolutely crucial. Make sure we set relative offset for each CTIO2 based upon bytes we've already xferred. This is what the private adjunct datat to the original ATIO is. Note state of command so we can figure out where to find it if we get an ABORT from the firmware. Make sure we *always* set CAM_TAG_ACTION_VALID for ATIO2s. Make sure we keep track of the original lun. Notes: svn path=/stable/4/; revision=100849
* MFC (1.94, 1.95):Matt Jacob2002-07-291-73/+129
| | | | | | | | | | | | Remove the 'bogus registrant' hack for fabric searches. If we've overrrides marked, don't set some default values from reading NVRAM. Switch to using USEC_DELAY rather than USEC_SLEEP at isp_reset time. If the HBA is already 'touched', still set maxluns. Fix some bugs in the non-HANDLE_LOOPSTATE_IN_OUTER_LAYERS vase. Clean up some target mode stuff. Notes: svn path=/stable/4/; revision=100848
* MFC:Matt Jacob2002-05-021-6/+23
| | | | | | | | | | | | | | If we get a DATA UNDERRUN error from QLogic FC cards, but the RQCS_RU bit is not set in the scsi completion status, or if the residual is clearly nonsense, then this was a command that suffered the loss of one or more FC frames in the middle of the exchange. Set HBA_BOTCH and hope it will get retried. It's the only thing we can do. Approved by: re@freebsd.org Notes: svn path=/stable/4/; revision=95907
* MFC: new way of getting stuff from fabric name servers; slight cleanup ofMatt Jacob2002-04-167-293/+882
| | | | | | | dma stuff; increase size of FC scratch area. Notes: svn path=/stable/4/; revision=94882
* MFC:Matt Jacob2002-03-214-23/+54
| | | | | | | | | | | | | | | | | | | | | Limit fabric search to a default 256 entries. This will all go away soon because it's just getting harder and harder to find switches that correctly implement the GET ALL NEXT subcommands for the SNS protocol. Latch up result out pointer and set a busy flag when we're looking at the response queue. This allows for a cleaner way to make sure we don't get multiple CPUs trying to read the same response queue entries. Change how isp_handle_other_response returns values (clarity). Make PORT UNAVAILABLE the same as PORT LOGOUT (force a LIP). Do some formatting changes. Notes: svn path=/stable/4/; revision=92912
* Move isp_pci.c to dev/isp in RELENG_4 branch.Matt Jacob2002-02-221-136/+102
| | | | Notes: svn path=/stable/4/; revision=91088
* MFC: Separation of 2300/2312 support. Enabling of RIO for FC && LVD cards.Matt Jacob2002-02-2210-91/+869
| | | | | | | | | Implementation of f/w crash dumps. Fixing problems with port logouts. Snagging 'lost command' cases for 1080 cards. Mailbox continuations to reduce sleep/wakeup load (and make for fast boots) Notes: svn path=/stable/4/; revision=91076
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2002-02-221-0/+2062
| | | | Notes: svn path=/stable/4/; revision=91044
* MFC: Add missing move of relative offset for CTIO2 updates.Matt Jacob2002-01-121-0/+1
| | | | | | | Approved by: re@freebsd.org Notes: svn path=/stable/4/; revision=89291
* MFC: Major restructuring for swizzling to the request queue and unswizzling fromMatt Jacob2001-12-148-424/+1407
| | | | | | | | | | 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. Notes: svn path=/stable/4/; revision=87851
* MFC 1.81: Set QFULL scsi status if we get RQCS_QUEUE_FULL.Matt Jacob2001-10-291-8/+25
| | | | Notes: svn path=/stable/4/; revision=85702
* MFC: Protect against deranged fabric nameservers that spit out 10000 identicalMatt Jacob2001-10-201-3/+16
| | | | | | | port numbers. Notes: svn path=/stable/4/; revision=85253
* MFC: various things, mostly the most recent 2300 support.Matt Jacob2001-10-089-606/+992
| | | | Notes: svn path=/stable/4/; revision=84657
* MFC 1.69- handle ISPASYNC_UNHANDLED_RESPONSE.Matt Jacob2001-08-161-1/+2
| | | | | | | Approved by: re@freebsd.org Notes: svn path=/stable/4/; revision=81801
* MFC 1.71: Oops- don't set 'goal' twice when you mean to set 'nvrm' as well.Matt Jacob2001-08-021-1/+1
| | | | | | | This breaks bogus NVRAM boards. Notes: svn path=/stable/4/; revision=81027
* MFC SCSI device flag changes; Roll core minorMatt Jacob2001-07-301-10/+14
| | | | Notes: svn path=/stable/4/; revision=80587
* roll platform minorMatt Jacob2001-07-301-1/+1
| | | | Notes: svn path=/stable/4/; revision=80586
* MFC:Matt Jacob2001-07-301-86/+65
| | | | | | | | | | SCSI device flag changes Fix for 28992- (mixed results- wilko still sees the problem, fix works for me) Notes: svn path=/stable/4/; revision=80585
* MFC:Matt Jacob2001-07-301-162/+154
| | | | | | | | changes to SCSI device flag settings scanning local loop addresses for FL port topologies Notes: svn path=/stable/4/; revision=80584
* Not Quite MFC (-current has ithreads):Matt Jacob2001-07-081-7/+18
| | | | | | | | Be more cautions about saying intsok (which is a misnomer- it really should 'tsleep okay'). Notes: svn path=/stable/4/; revision=79421
* fix munged header lineMatt Jacob2001-07-071-1/+1
| | | | Notes: svn path=/stable/4/; revision=79407
* Ooops- don't forget to pull isp_ioctl.h back into RELENG_4 branch.Matt Jacob2001-07-041-1/+1
| | | | Notes: svn path=/stable/4/; revision=79244
* Massive MFC- probably breaking lots of rules to do this, but limitedMatt Jacob2001-07-049-967/+1252
| | | | | | | | | | | | | | | | | | | | time, etc., etc... Basic gist of changes: Beginnings of 2300 support. Addition of a /dev entry and ioctl entry point for the HBA (sort of meaningless in RELENG_4- it's really only useful in DEVFS for -current- but you *could* make the entries by hand (not worth really asking for a reserved major as this is edge case debugging stuff for me mostly). Implementation of kthread for Fibre Channel loop cleanup. Lots of buglet fixes. Ansification. Lots of target mode cleanup. Notes: svn path=/stable/4/; revision=79243
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-06-011-0/+76
| | | | Notes: svn path=/stable/4/; revision=77591
* MFC: Role core minor. Handles are 16, not 32 bits. Add the ISPCTL_RUN_MBOXCMDMatt Jacob2001-03-041-3/+11
| | | | | | | | isp_control functio. Add the ISPASYNC_UNHANDLED_RESPONSE response async event code. Notes: svn path=/stable/4/; revision=73549
* MFC: The flag ICBOPT_BOTH_WWNS is more descriptive than ICBOPT_USE_PORTNAME.Matt Jacob2001-03-041-1/+1
| | | | Notes: svn path=/stable/4/; revision=73547
* MFC: Update copyright. Accomodate changes to Qlogic parallel SCSI targetMatt Jacob2001-03-041-9/+13
| | | | | | | | | | | mode spec (half of what had been a 32 bit 'driver reserved' value is now a 16 bit handle that is used to correllate CTIOs with a specific ATIO- we have to make sure we pass it on thru. Propagate back proper at2_entry format (instead of one derived from an at_entry). Handles are 16, not 32 bits. Notes: svn path=/stable/4/; revision=73546
* MFC: rev copyright. propage Asmodai's spelling correction. HandlesMatt Jacob2001-03-041-3/+4
| | | | | | | are 16 not 32 bits now. Notes: svn path=/stable/4/; revision=73545
* MFC: handles are 16 not 32 bits now.Matt Jacob2001-03-041-14/+14
| | | | Notes: svn path=/stable/4/; revision=73544
* Roll platform minor.Matt Jacob2001-03-041-9/+9
| | | | | | | | MFC: Remove name/unit from softc- replace with device_t from probe. Store default WWWs for both port && node. Notes: svn path=/stable/4/; revision=73543
* MFC: Remove usage of isp->isp_name/isp->isp_unit (use isp->isp_dev). RemoveMatt Jacob2001-03-041-55/+81
| | | | | | | | | | | stray newline in foormat string. Note the we don't support 2nd channel on 12160/1280 cards in target mode yet. Clean up target mode so that it more or less works again. Remove nearly all printfs and use device_printf or isp_prt. Handles are 16- not 32 bits now. We can now cope with at least the latest Qlogic 1040 Target Mode f/w (12160/1X80 not working yet). Notes: svn path=/stable/4/; revision=73542
* MFC: Update Copyright. Change handles from 32 to 16 bits. Catch aMatt Jacob2001-03-041-28/+70
| | | | | | | | longstanding bug about making sure that we're using both WWNs (port and node). Add ISPCTL_RUN_MBOXCMD isp_control function. Notes: svn path=/stable/4/; revision=73541
* MFC: Fix isp_print_qentry to print all four lines- it's been broken for months.Matt Jacob2001-03-021-2/+3
| | | | Notes: svn path=/stable/4/; revision=73312
* MFC: removal of ISP2100_FABRIC. Insertion of extra loop states. MoreMatt Jacob2001-02-121-18/+85
| | | | | | | MFC: isp_control functions && defines && explanations. Ditto isp_control. Notes: svn path=/stable/4/; revision=72385
* MFC: FC-AL position map structure.Matt Jacob2001-02-121-0/+16
| | | | Notes: svn path=/stable/4/; revision=72384