Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 1999 17:07:35 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        dfr@nlsystems.com
Cc:        alpha@freebsd.org
Subject:   small fix for irq mappig probelm
Message-ID:  <14354.8792.767477.900314@grasshopper.cs.duke.edu>

next in thread | raw e-mail | index | archive | help

Doug,

When using a kernel built after your recent changes to pci.c, alpha
PCI devices with intline==0 fail to map their interrupt.  This
typically happens with the on-board tulip in a miata:

de0: <Digital 21143 Fast Ethernet> irq 0 at device 3.0 on pci0
pci_map_int: can't allocate interrupt


The appended patch fixes it, but I am unsure it is correct.  Can you
approve it?

Thanks,

Drew
------------------------------------------------------------------------------
Andrew Gallatin, Sr Systems Programmer	http://www.cs.duke.edu/~gallatin
Duke University				Email: gallatin@cs.duke.edu
Department of Computer Science		Phone: (919) 660-6590


Index: sys/pci/pci.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/pci.c,v
retrieving revision 1.123
diff -u -r1.123 pci.c
--- pci.c       1999/10/17 06:48:47     1.123
+++ pci.c       1999/10/23 20:56:52
@@ -1045,7 +1045,7 @@
                               (unsigned int) base, ln2size);
                }
        }
-       if (cfg->intline)
+       if (cfg->intpin)
                resource_list_add(rl, SYS_RES_IRQ, 0,
                                  cfg->intline, cfg->intline, 1);
 }



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14354.8792.767477.900314>