Subject: Re: KFQSA problem
To: None <port-vax@netbsd.org>
From: Chuck McManis <cmcmanis@mcmanis.com>
List: port-vax
Date: 06/04/2003 10:57:44
Wow, I just went and read this page. Its the best description of the switch 
pack I've seen:
> > >http://www3.sympatico.ca/n.rieck/docs/vax_vms_dssi_notes.html

That one is definitely going into the House of VAX links page.
Switches:
1 2 3 4
- - - -
1 x x x       CSR addresses are read from EEPROM
0 1 0 0       CSR = 17774420 (a.k.a. service #0)
0 1 0 1       CSR = 17774424 (a.k.a. service #1)
0 1 1 0       CSR = 17774430 (a.k.a. service #2)
0 1 1 1       CSR = 17774434 (a.k.a. service #3)
| | | +------ LSB
| | +-------- MSB
| |
0 0 0 0       CSR = 17760444 tape (secondary)
0 0 0 1       CSR = 17774500 tape (primary)
0 0 1 0       CSR = 17760334 disk (secondary)
0 0 1 1       CSR = 17772150 disk (primary)
| | | +------ 1=primary 0=secondary
| | +-------- 1=disk 0=tape
| +---------- 1=fixed 0=floating
+------------ 0=service 1=normal

Allow me to take a moment to explain this.

When the card is in "Service" mode, you can connect to it over the QBUS 
using the DUP protocol (on MV3300, 3400, 3500, 3600, 3900, and 400/xxx 
series) and configure it to represent it self as a number of controllers of 
type DISK and TAPE on the qbus. That allows you to take each disk in the 
string and give it its own virtual controller. The board does not export 
multiple unit numbers so you won't see DUA0, DUA1, etc. You will see a 
number of controllers each with one drive attached as DUAx, DUBx, DUCx, 
DUDx (love that one!), etc. The 'x' is filled in by the node number on the 
selector (so if you've got the '0' selector installed the disk will be DUx0.)

What this implies (and I'll have to try out this evening) is that you can 
set the switches to 0010 and it will show up as your primary disk 
controller (and presumably use only "see" 1 drive) I had one in this mode 
before but couldn't figure it out correctly, this will help. I used such a 
mode to set some parameters on my disks.

The 'normal' mode (S1 set 'on') allows the board to read from its internal 
configuration and be whatever it will be.

On Wednesday 04 June 2003 01:36, M J Dowden wrote:
(you don't mention where the switches are set ...)

> > #### KFQSA installed:
> > >>>sho dev
> >
> > DSSI Node 7 (*)
> >
> > UQSSP Disk Controller 0 (772150)
> > -DUA0 (RF72)
> >
> > UQSSP Disk Controller 1 (760334)
> > -?
> >
> > UQSSP Tape Controller 0 (774500)
> >
> > Ethernet Adapter
> > -ESA0 (08-00-2B-18-B2-7E)
> >

The above implies that S1 is '1' and the board has been configured to act 
as two disk controllers. (presuming that you've got the TQK70 controller in 
there too which is the Tape controller)

> > #### KFQSA removed:
> > >>>sho dev
> >
> > DSSI Node 0 (R2YJ3A)
> > -DIA0 (RF72)
> >
> > DSSI Node 7 (*)
> >
> > UQSSP Disk Controller 0 (772150)
> > -DUA2 (RA81)
> > -DUA3 (RRD40)
> >
> > UQSSP Tape Controller 0 (774500)
> >
> > Ethernet Adapter
> > -ESA0 (08-00-2B-18-B2-7E)
> >

That says that the CMD is also configured to be your primary disk 
controller and it sees two drives.

> > #### KFQSA installed:
> > >>>sho qbus
> >
> > Scan of Qbus I/O Space
> > -200000DC (760334) = 0000 (300) RQDX3/KDA50/RRD50/RQC25/KFQSA-DISK
> > -200000DE (760336) = 0AB0
> > -20001468 (772150) = 0000 (154) RQDX3/KDA50/RRD50/RQC25/KFQSA-DISK
> > -2000146A (772152) = 0AB0
> > -20001550 (772520) = 0000 (224) TSV05
> > -20001552 (772522) = 04C0
> > -20001940 (774500) = 0000 (260) TQK50/TQK70/TU81E/RV20/KFQSA-TAPE
> > -20001942 (774502) = 0B40
> > -20001F40 (777500) = 0020 (004) IPCR
> >
> > Scan of Qbus Memory Space

The CMD and KFQSA are fighting for control of the 772150 CSR, if you really 
only have one drive attached to it, you should be able to set the KFQSA 
switches to 0010 and set it up as the secondary disk controller. 
Alternatively put it into service mode and configure it to be controller 2 
and then you can run it in 'normal' mode as controller 2. (I recommend you 
do this so that you can disable it from saying it is a tape unit if it is 
trying to assert that)

 >      The dip switches on the KFQSA are set like: one TWO three four,
> > that is 0100.

They "should" be 1000 in normal mode.

--Chuck