Subject: Re: problems with KZPCM-DA card
To: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
From: Rumi Szabolcs <rumi_ml@rtfm.hu>
List: port-alpha
Date: 07/07/2004 05:12:58
On Mon, 28 Jun 2004 11:37:50 -0600 (MDT)
"Michael L. Hitch" <mhitch@lightning.msu.montana.edu> wrote:

>   Can you try out this patch?
> 
> Index: sys/arch/alpha/pci/pci_kn300.c
> ===================================================================
> RCS file: /cvsroot/src/sys/arch/alpha/pci/pci_kn300.c,v
> retrieving revision 1.24
> diff -u -r1.24 pci_kn300.c
> --- sys/arch/alpha/pci/pci_kn300.c      15 May 2002 16:57:42 -0000     1.24
> +++ sys/arch/alpha/pci/pci_kn300.c      28 Jun 2004 17:29:38 -0000
> @@ -154,7 +154,7 @@
>         if (ccp->cc_mid == 5 && device == 1) {
>                 mcpcia_irq = 16;
>         } else if (device >= 2 && device <= 5) {
> -               mcpcia_irq = (device - 2) * 4;
> +               mcpcia_irq = (device - 2) * 4 + buspin - 1;
>         } else {
>                 printf("dec_kn300_intr_map: weird device number %d\n", device);
>                 return(1);

I have finally managed to get hands on a working cross-compile environment,
so here are the results with an INSTALL kernel including the above patch:

-----8<-----------------------------------------------------------

NetBSD 2.0_BETA (INSTALL) #0: Wed Jul  7 06:42:09 CEST 2004
	root@phantom.local:/home/build/src/sys/arch/alpha/compile/obj/INSTALL
DIGITAL Server 7000 Model 7305 6533A 5/533 4MB, 531MHz, s/n PY84800391
8192 byte page size, 2 processors.
total memory = 512 MB
(2064 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 492 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-2
cpu0: Architecture extensions: 1<BWX>
cpu1 at mainbus0: ID 1, 21164A-2
cpu1: processor off-line; multiprocessor support not present in kernel
mcbus0 at mainbus0: 4MB BCache
mcmem0 at mcbus0 mid 1: Memory
mcpcia0 at mcbus0 mid 5: PCI Bridge
mcpcia0: Horse Revision 3, Left Handed Saddle Revision 3, CAP Revision 2
pci0 at mcpcia0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
siop0 at pci0 dev 1 function 0: Symbios Logic 53c810 (fast scsi)
siop0: interrupting at kn300 irq 36
scsibus0 at siop0: 8 targets, 8 luns per target
ppb0 at pci0 dev 2 function 0: vendor 0x1011 product 0x0024 (rev. 0x02)
pci1 at ppb0 bus 2
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
siop1 at pci1 dev 0 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop1: using on-board RAM
siop1: interrupting at kn300 irq 40
scsibus1 at siop1: 16 targets, 8 luns per target
siop2 at pci1 dev 1 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop2: using on-board RAM
siop2: interrupting at kn300 irq 41
scsibus2 at siop2: 16 targets, 8 luns per target
tlp0 at pci1 dev 2 function 0: DECchip 21140A Ethernet, pass 2.2
tlp0: interrupting at kn300 irq 42
tlp0: Ethernet address 00:06:2b:00:0b:ac
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
mcpcia1 at mcbus0 mid 4: PCI Bridge
mcpcia1: Horse Revision 3, Left Handed Saddle Revision 3, CAP Revision 2
pci2 at mcpcia1 bus 0
pci2: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pceb0 at pci2 dev 1 function 0: vendor 0x8086 product 0x0482 (rev. 0x15)
vga0 at pci2 dev 2 function 0: vendor 0x5333 product 0x8811 (rev. 0x54)
wsdisplay0 at vga0 (kbdmux ignored)
eisa0 at pceb0
isa0 at pceb0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux ignored)
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 (mux ignored)
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
md0: internal 4650 KB image area
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
cd0 at scsibus0 target 5 lun 0: <DEC, RRD46   (C) DEC, 1337> cdrom removable
cd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
sd0 at scsibus1 target 0 lun 0: <QUANTUM, VIKING II 4.5SCA, 5520> disk fixed
sd0: 4095 MB, 5899 cyl, 10 head, 142 sec, 512 bytes/sect x 8388315 sectors
sd0: sync (50.00ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
root on md0a dumps on md0b
root file system type: ffs
Terminal type? [vt100]

-----8<--------------------------------------------------------

So, it seems to work, I have also tried to install using the network
interface on the KZPCM-DA and seemed to work seamlessly. I could not
try out the second SCSI channel because there are no devices on it,
but chances are that it would work, too. Thank you for fixing this.

Best regards,

Szabolcs Rumi