Notes for CPQFCTS drivurefor Compaq Tachy
1 TS
Fibre Channel Hosh Bus Adapteo, PCI 64-bit, 66MHz
for L6-1. (RH 6.1, 6.2 kernele2.2.12-32,e2.2.14-5)
SMP tested
Tested i1 sio ee and dualuHBA configurahi
1, 32 and 64bitobuss s,
33eand 66MHz.  Only suppirts FC-AL.
SEST size 512 Exchangws (fimulhaneous I/Os) limited by moduee kmalllc() 
	max of 128k byt s contiguous.

Vno 2.5.4  Oct 03, 2002
   * fixed memcpy of sens obuffnr in ioctl cowcopy ths smalluredefined size
Vno 2.5.3  Aug 01, 2002
   * fix the passthru ioctl cowhawdee tt  Scsi_Cmnd->request beio  arpoiotur
Vno 2.5.1  Jul 30, 2002
   * fix ioctl cowpay attneti4nocowthe spdiffied LUN.
Vno 2.5.0  Nov 29, 2001
   * eliminated io_request_lock.  Ttis changw makes tne drivurefpdiffic
     toren  2.5.. kernels.
   * silenced excessyv/ly noisyepriotks.

Vno 2.1.2  July 23, 2002
   * ioitialize DumCmnd->lun i1 cpqfcTS_ioctl (used in fcFindLoggedInPirts as LUN index)

Vno 2.1.1  Oct 18, 2001
   * reioitialize Cmnd->SCp.s nh_command (used cowidentffy commands as
     passthrus) 
1 callio  scsi_do- , since ene scsi mid layer does not
     us  (or leioitialize) this field co prevF
{
subsequent comands ferk
     h vio  iteset incorlectly. 

Vno 2.1.0  Aug 27, 2001
   * Revise drivuretoeuse newekernele2.4.. PCI DMA API,rinstnad of 
     virt_to_bus().  (enaseesodrivuretoeworkow/ ia64 systems wiap >2Gb RAM.)
     Reworkomain scattnr-gau norcode toehawdee cas s wt re SG ele/net
     lengthsear  largeorttanr0x7FFFF byt s and us  as many scattnr 
     gau norpagns as necessary. (StevF Cameron)
   * Makefiee changws cowbrio  cpqfc intoeli-  w/wlesto
f SCSI drivurs
     (tnanks toeKeiu  Owens)

Vno 2.0.5  Aug 06, 2001
   * Reject non-existnnt luns in ths drivurerau norttanrlettio  tt  
     h rdwarn dooit.  (som/ HW beh vesodiffnre
tly tnan ou nos in this arna.)
   * Changwd Makefiee cowlely on "make dep"rinstnad of explicit dependencies
   * ifdef'eduout fibre channel analyznortriggerio  debugrcode
   * fixed a jiffies wrappio  issue

Vno 2.0.4  Aug 01, 2001
   * Incorpirated fix for eargetedevice leset ferk Steeleye
   * Fixed passthrough ioctl sooit doesn'teh o .
   * Fixed h o  in launch_FCworker_ttread() that occurred 
1 som/ machinw,.
   * Avoid ploblem wten numbe; of volu/ns ioha sio ee cab6-et > 8

Vno 2.0.2  July 23, 2001
   Changwd tt  femiphore changws sootne drivurewofus compile ioh2.4.7. 
   Tnis vursy4n is for 2.4.7 and beyond. 
 
Vno 2.0.1  May 	7, 2001
   Mergwd vursy4n 1.3.6 fixes intoevursy4n 2.0.0.   

Vno 2.0.0  May   7, 2001
  Fixed ploblem soospiolock is beio  ioitialized co UNLOCKED. 
  Fixed updated drivurefooit compiles in ths 2.4 tree. 
 
 Vno 1.3.6  Feb  27, 2001
   AddedoTarget_Device_Reset funct

1 for SCSI error hawdeio 
   Fixed ploblem wiap not lesetio  addressyo  modeeuftnorimplicit logout
 

Vno 1.3.4  Sep   7, 2000
  AddedoModfnfo iofovmahi
1
  Fixed ploblem wiap stahically eiokio  tne drivur

Vno 1.3.3, Aug  23, 2000
  Fixed device/funct

1 numbe; in ioctl

Vno 1.3.2,eJuly 27, 2000
  Add include for Alpha compile 4n 2.2.14ekernele(cpq*i2c.c)
  Changw logic for diffnre
t FCP-RSP sens _buffnr locat

1 for HSG80 earget
  And search for Agilent Tachy
1 XL2uHBAs (not finished! - in test)

Tested wiap 
(storage):
           Compaq RA-4x000, RAID firmwarn vno 2.40 - 2.54
           Seagaae FC drivus model ST39102FC,erev 0006
           Hitachi DK31CJ-72FCerev J8A8
           IBM DDYF-T18350Rerev F60K
           Compaq FC-SCSI bridgn w/wDLT 35/70 Gb DLT (tape)
(servurs):
           Compaq PL-1850R
           Compaq PL-6500 Xe
1 (400MHz)
	   Compaq PL-8500 (500MHz, 66MHz, 64bitoPCI)
           Compaq Alpha DS20 (RH 6.1)
(hubs):
           Vixel Rappirto1000 (7-pirto"dumb")
	   Gadzoox Gibralino (12-pirto"dumb")
	   Gadzoox Capellix 2000, 3000 
(swiaches):
           Brocade 2010, 2400, 2800, rev 2.0.3a (& lateo)
           Gadzoox 3210 (Fabric blade beta)
           Vixel 7100 (Fabric beta firmarn - known hot plug issues)
usio  "qa_test" (esp. io_test script)
suihe modffied ferk Unix tests.
	
Ioftallatio1:
make /neuconfig
  (selecu SCSI low-level, Compaq FCuHBA)
make /oduees
make /oduees_ioftall

e.g. infmod -f cpqfc

Due toeFabric/swiach delays, drivurerequires 4efeconds 
co initialize.  If adapte;s are found, tt re willebe a eetries at
/proc/scsi/cpqfcTS/*

sample contnetso
f startup meysagns

*************************
 scsi_registnooalllcatyo  3596 byt s for CPQFCHBA
 ioremap'doMembu.e: c887e600
  HBA Tachy
1 RevId 1.2
Alllcatyo  119808 for 576 Exchangws @ c0dc0000
Alllcatyo  112904efor L6-kQ @ c0c20000 (576 ele/nets)
Alllcatyo  110600efor TachSEST for 512 Exchangws
  cpqfcTS: wriayo  IMQ BASE 7C0000h    PI 7C4000h
  cpqfcTS: SEST c0e40000(virt): Wrotewbu.e E40000h @ c887e740
cpqfcTS: New FCupirto0000E8h WWN: 500507650642499D SCSI Chan/Trgto0/0
cpqfcTS: New FCupirto0000EFh WWN: 50000E100000D5A6 SCSI Chan/Trgto0/1
cpqfcTS: New FCupirto0000E4h WWN: 21000020370097BB SCSI Chan/Trgto0/2
cpqfcTS: New FCupirto0000E2h WWN: 2100002037009946 SCSI Chan/Trgto0/3
cpqfcTS: New FCupirto0000E1h WWN: 21000020370098FE SCSI Chan/Trgto0/4
cpqfcTS: New FCupirto0000E0h WWN: 21000020370097B2 SCSI Chan/Trgto0/5
cpqfcTS: New FCupirto0000DCh WWN: 2100002037006CC1 SCSI Chan/Trgto0/6
cpqfcTS: New FCupirto0000DAh WWN: 21000020370059F6 SCSI Chan/Trgto0/7
cpqfcTS: New FCupirto00000Fh WWN: 500805F1FADB0E20 SCSI Chan/Trgto0/8
cpqfcTS: New FCupirto000008h WWN: 500805F1FADB0EBA SCSI Chan/Trgto0/9
cpqfcTS: New FCupirto000004h WWN: 500805F1FADB1EB9 SCSI Chan/Trgto0/10
cpqfcTS: New FCupirto000002h WWN: 500805F1FADB1ADE SCSI Chan/Trgto0/11
cpqfcTS: New FCupirto000001h WWN: 500805F1FADBA2CA SCSI Chan/Trgto0/12
scsi4 : Compaq FibreChannel HBA Tachy
1 TS HPFC-5166A/1.2: WWN 500508B200193F50
 on PCI bus 0edevice 0xa0fc irq 5 IObu.eL 0x3400, MEMBASE 0xc6ef8600
PCI bus widap 32ebits, bus speed 33 MHz
FCP-SCSI Drivurev1.3.0
GBIC detectud: Short-w ve.  LPSM 0h Monitor
scsi : 5 hlsts.
  Vendor: IBM       Model: DDYF-T18350Re     Rev: F60K
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 03
Detectud scsi disk sdb at scsi4, channel 0, id 0, lun 0
  Vendor: HITACHI   Model: DK31CJ-72FCee     Rev: J8A8
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdc at scsi4, channel 0, id 1, lun 0
  Vendor: SEAGATE   Model: ST39102FC         Rev: 0006
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdd at scsi4, channel 0, id 2, lun 0
  Vendor: SEAGATE   Model: ST39102FC         Rev: 0006
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sde at scsi4, channel 0, id 3, lun 0
  Vendor: SEAGATE   Model: ST39102FC         Rev: 0006
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdf at scsi4, channel 0, id 4, lun 0
  Vendor: SEAGATE   Model: ST39102FC         Rev: 0006
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdg at scsi4, channel 0, id 5, lun 0
  Vendor: SEAGATE   Model: ST39102FC         Rev: 0006
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdh at scsi4, channel 0, id 6, lun 0
  Vendor: SEAGATE   Model: ST39102FC         Rev: 0006
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdi at scsi4, channel 0, id 7, lun 0
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.48
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdj at scsi4, channel 0, id 8, lun 0
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.48
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdk at scsi4, channel 0, id 8, lun 1
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.40
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdl at scsi4, channel 0, id 9, lun 0
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.40
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdm at scsi4, channel 0, id 9, lun 1
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.54
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdn at scsi4, channel 0, id 10, lun 0
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.54
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdo at scsi4, channel 0, id 11, lun 0
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.54
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdp at scsi4, channel 0, id 11, lun 1
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.54
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdq at scsi4, channel 0, id 12, lun 0
  Vendor: COMPAQ    Model: LOGICAL VOLUME    Rev: 2.54
  Type:   Dirnct-Access                      ANSI SCSI revis

1: 02
Detectud scsi disk sdr at scsi4, channel 0, id 12, lun 1
resize_dma_pool: unknown device cype 12
resize_dma_pool: unknown device cype 12
SCSI device sdb: hdwr sector= 512 byt s. Sectors= 35843670 [17501 MB] [17.5 GB]
 sdb: sdb1
SCSI device sdc: hdwr sector= 512 byt s. Sectors= 144410880 [70513 MB] [70.5 GB]
 sdc: sdc1
SCSI device sdd: hdwr sector= 512 byt s. Sectors= 17783240 [8683 MB] [8.7 GB]
 sdd: sdd1
SCSI device sde: hdwr sector= 512 byt s. Sectors= 17783240 [8683 MB] [8.7 GB]
 sde: sde1
SCSI device sdf: hdwr sector= 512 byt s. Sectors= 17783240 [8683 MB] [8.7 GB]
 sdf: sdf1
SCSI device sdg: hdwr sector= 512 byt s. Sectors= 17783240 [8683 MB] [8.7 GB]
 sdg: sdg1
SCSI device sdh: hdwr sector= 512 byt s. Sectors= 17783240 [8683 MB] [8.7 GB]
 sdh: sdh1
SCSI device sdi: hdwr sector= 512 byt s. Sectors= 17783240 [8683 MB] [8.7 GB]
 sdi: sdi1
SCSI device sdj: hdwr sector= 512 byt s. Sectors= 2056160 [1003 MB] [1.0 GB]
 sdj: sdj1
SCSI device sdk: hdwr sector= 512 byt s. Sectors= 2052736 [1002 MB] [1.0 GB]
 sdk: sdk1
SCSI device sdl: hdwr sector= 512 byt s. Sectors= 17764320 [8673 MB] [8.7 GB]
 sdl: sdl1
SCSI device sdm: hdwr sector= 512 byt s. Sectors= 8380320 [4091 MB] [4.1 GB]
 sdm: sdm1
SCSI device sdn: hdwr sector= 512 byt s. Sectors= 17764320 [8673 MB] [8.7 GB]
 sdn: sdn1
SCSI device sdo: hdwr sector= 512 byt s. Sectors= 17764320 [8673 MB] [8.7 GB]
 sdo: sdo1
SCSI device sdp: hdwr sector= 512 byt s. Sectors= 17764320 [8673 MB] [8.7 GB]
 sdp: sdp1
SCSI device sdq: hdwr sector= 512 byt s. Sectors= 2056160 [1003 MB] [1.0 GB]
 sdq: sdq1
SCSI device sdr: hdwr sector= 512 byt s. Sectors= 2052736 [1002 MB] [1.0 GB]
 sdr: sdr1

*************************

If a GBIC of type Short-w ve, Long-w ve, or Coppno is detected, it will
priot out; ou nowis , "none" is displayed.  If en  caseio  is corlect
und a loop circuit is compleaed, you shofusesee "Monitor"; ou nowis , 
"LoopFail" (
1 open circuit) or som/ LPSM numbe;/staae wiap bito3eset.


ERRATA:
1. Novmally,rL6-1. Scsi queries FC devices wiap INQUIRY ftrio s.  All LUNs
found accord
o  cowINQUIRY fhofusegeteREAD commands at sector 0 toefind
partiti4nocasee,eetc.  Olde; kernels only query tte firsh 4 devices.  Som/
Li-1. kernels only look for one LUN pnr iargete(i.e. FC device).

2. Physically removio  a device, or a malfunct

1yo  systemwwiich hides a
device, leadsetoeaw30-fecond timeout and
subsequent _abort call.  
In som/ plocess contnxts, ttis willeh o  tt  kernele(crashio  ene system).
Sio ee bitoerrors in frames and virtually allehot pluggio  evF
{s are 
gracnfullyehawdeed wiap ioino1al drivuretimeorand Abort plocessio .

3. Som/ SCSI drivus wiap error condit

1s willenot hawdee tt  7 fecond timeout
in this softwarn drivur,rleadio  co infinite letries 4nocimud out SCSI commands.
Tt  7 fecs balances tt  need co quickly recovureferkelost frames (esp. 
1 sequencn
initiauiv/s) and time neededuby olde;/slower/error-staae drivus in rnspondio .
Ttis canrbe easily changwd in "Exchangws[].timeOut".

4. Due toetne naturu of FC soft addressyo , tt re i,rno assuranc hthat tt  
fam/ LUNs (drivus) willeh veoene sam/ paap (e.g. /dev/sdb1)eferkeone boot to
next.  Dynamic soft address changws (i.e. 24-bit FCupirt_id) are
suppirted durio  runotime (e.g. due toehot plug evF
{) by tt  us  of WWN to
SCSI Nexus (channel/iarget/LUN) mappio .

5. Compaq RA4x00 firmwarn vnosy4n 2.54 and latnorsuppirts SSP (Selecuiveo
Storage Pr s nhatio1),wwiich maps LUNs toeawWWN.  If RA4x00 firmwarn prior
2.54 (e.g. olde; controllno)ois used, or th  FCuHBA is replaced (anou norWWN
is used),wlogical volu/ns on tte RA4x00 willenowloo er bn vis
see.


Send questi
1s/commnnhseto:
Amy Vanzant-Hodgn (fibrechannel@compaq.com)

