Subject: Re: problems with KZPCM-DA card
To: Rumi Szabolcs <rumi_ml@rtfm.hu>
From: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
List: port-alpha
Date: 06/28/2004 11:37:50
On Thu, 24 Jun 2004, Rumi Szabolcs wrote:

> I'm having problems with a DEC KZPCM-DA (dual siop + tlp) card,
> it hangs at SCSI device detection. Please take a look at
> PR #26031 I have filed right now (details included in there).
>
> Michael L. Hitch has just pointed out that his PR #25831
> might cover the same problem. He has also made some assumptions
> about the possible causes in there.
>
> A fix for this problem would be appreciated as this keeps me
> from testing netbsd-2-0 on that SMP alpha machine.

  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);


--
Michael L. Hitch			mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University	Bozeman, MT	USA