From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 9 20:30:09 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 81CFF16A403 for ; Fri, 9 Feb 2007 20:30:09 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 0312813C4A3 for ; Fri, 9 Feb 2007 20:30:08 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 50679 invoked by uid 2001); 9 Feb 2007 20:09:58 -0000 Date: Fri, 9 Feb 2007 14:09:58 -0600 From: "Rick C. Petty" To: Daniel Rudy Message-ID: <20070209200958.GA50431@keira.kiwi-computer.com> References: <45CC2DDF.6040600@pacbell.net> <20070209110522.GF834@turion.vk2pj.dyndns.org> <45CCBCFB.4020402@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45CCBCFB.4020402@pacbell.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: PING: Someone on the core team. (Modem Problem) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2007 20:30:09 -0000 On Fri, Feb 09, 2007 at 10:27:07AM -0800, Daniel Rudy wrote: > > The modem is PCI, and there is no facility in the BIOS to display what > cards are in the system. Furthermore, the irq mapping shows irq 3-15, > irq 17, 18, and 19 do not show on the list. Below is the full dmesg > from the boot: What list and what mapping? Here are the relevant lines in your case: > sis0: port 0xd000-0xd0ff mem 0xeb103000-0xeb103fff irq 19 at device 4.0 on pci0 > sio0: configured irq 19 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: port 0xdc00-0xdcff,0xe000-0xe0ff,0xe400-0xe407 mem 0xeb107000-0xeb1070ff irq 19 at device 11.0 on pci0 > sio0: type 16550A > >> I have no idea WHY it's saying IRQ 19 as IRQ 19 is used by sis0. > > > > Interrupts on the PCI bus can be shared and quite often are. Because PCI interrupts have to be mapped to high numbers so they don't interfere with legacy (ISA, etc.) IRQs. The PCI bus handles its own interrupts, so I wouldn't expect to see irq 3, for example. In fact each PCI slot typically maps to a specific IRQ (via the INT mechanism). > And FreeBSD doesn't support shared interrupts, right? (At least that > used to be the case, not sure about now). If it does allow irq sharing, > then why isn't it working? And if it doesn't support irq sharing, then > why is FreeBSD assigning 2 devices to the same irq to begin with? > Its kinda strange though if that was the case, the other cards wouldn't > work then because they would all be sharing the same irq. The 3 network > interfaces are assigned 17, 18, and 19. sis0 is on the mainboard, sis1 > and sis2 are add-in cards on the pci bus. Not strange at all, FreeBSD does support shared IRQs. However, the sio device does NOT support shared IRQs. There was a patch floating around which enabled IRQ sharing for this device, in fact I used it on a number of systems successfully. I'm not sure why it never made it into the base system. Here's something to try, if you don't want to patch your kernel. Find a PCI slot that doesn't share an IRQ with anything else and throw the modem into that slot. If you have an Asus board, the user's manual lists the PCI interrupts and sharing. If not, use trial-and-error. You could probably make an educated guess by looking at which cards are being mapped to which interrupts. Pick a device which has a solitary (unshared) IRQ and swap with the modem. -- Rick C. Petty