From owner-freebsd-alpha Fri Jun 7 3:10:10 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 6AF8437B405; Fri, 7 Jun 2002 03:09:55 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g57A9gHc058815 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 7 Jun 2002 12:09:45 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g57A9nSA088629 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 7 Jun 2002 12:09:49 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g57A9mD2088626; Fri, 7 Jun 2002 12:09:48 +0200 (CEST)?g (envelope-from ticso) Date: Fri, 7 Jun 2002 12:09:47 +0200 From: Bernd Walter To: "M. Warner Losh" Cc: gallatin@cs.duke.edu, des@ofug.org, alpha@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: alpha can't map interrupt Message-ID: <20020607100947.GE66505@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <15616.3530.526275.555196@grasshopper.cs.duke.edu> <20020606.203133.49601620.imp@village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020606.203133.49601620.imp@village.org> User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Jun 06, 2002 at 08:31:33PM -0600, M. Warner Losh wrote: > In message: <15616.3530.526275.555196@grasshopper.cs.duke.edu> > Andrew Gallatin writes: > : > : > : Warner -- a pci interupt line of 0 is valid. Please back out your > : "PCI_INTERRUPT_VALID" changes in pci.c, or change that macro > : to allow a value of 0. > > An interrupt line of 0 is *NOT* valid. However, the check for zero OK - it's fixed for now, but what is wrong with zero? Many alphas differentiate between ISA and PCI intlines. PCI intlines are startet counting with 0. [52]cicely9> devinfo -r cia0 pcib0 pci0 sym0 PCI Mapped Interrupts: 0x2 I/O memory: 0x82030000-0x82030fff 0x82031200-0x820312ff sym1 PCI Mapped Interrupts: 0x0 I/O memory: 0x82031100-0x820311ff sym2 PCI Mapped Interrupts: 0x1 I/O memory: 0x82031000-0x820310ff isab0 isa0 atkbdc0 fdc0 ISA Interrupt request lines: 6 ISA DMA request lines: 2 I/O ports: 0x3f0-0x3f5 0x3f7 fd0 mcclock0 I/O ports: 0x70-0x71 ppc0 sc0 sio0 ISA Interrupt request lines: 4 I/O ports: 0x3f8-0x3ff sio1 vga0 xl0 PCI Mapped Interrupts: 0x3 I/O ports: 0x10300-0x1037f miibus0 xlphy0 atapci0 ata0 I/O ports: 0x1f0-0x1f7 0x3f6 0x10380-0x10387 ata1 I/O ports: 0x170-0x177 0x376 0x10388-0x1038f > should only be on the i386 port. Where did I have it? Oh, I see now. > I didn't change the PCI_INTERRUPT_VALID to include zero, I just > changed some code to use it. It was used in pcib. > > But I'll make sure that it works on alpha. Is that something that you > can test for me if I come up with a fix for? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message