From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 7 19:44:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1D4216A4CE for ; Wed, 7 Apr 2004 19:44:55 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A6D643D58 for ; Wed, 7 Apr 2004 19:44:55 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i382itLl099310; Wed, 7 Apr 2004 19:44:55 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) i382itdt020254; Wed, 7 Apr 2004 19:44:55 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.11/8.12.11/Submit) id i382it6m020253; Wed, 7 Apr 2004 19:44:55 -0700 (PDT) (envelope-from marcel) Date: Wed, 7 Apr 2004 19:44:55 -0700 From: Marcel Moolenaar To: othermark Message-ID: <20040408024455.GC20138@dhcp01.pn.xcllnt.net> References: <20040407170422.GF567@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: polling for sio? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 02:44:55 -0000 On Wed, Apr 07, 2004 at 03:36:02PM -0700, othermark wrote: > > , or fix > > sio so that COM_MULTIPORT (for shared interrupts) doesn't poll all > > sio devices, and instead it keeps track of which devices need to be > > polled for each interrupt (and possible use the AST/4 register to > > decide which ports to query).... > > > > uart already has most of this logic, but I haven't written an isa > > attachment for it to make use of the interrupt routing logic.. > > I have a multi-port PCI card under puc and sio that has 4 19200 > connections to it now, and when data is streaming across all of > them at once, I get several silo overflows. Would it be better > to run this under puc + uart? Not really. The problem is that puc(4) iterates over all ports in the same way whether you use uart(4) or sio(4). So, puc(4) is the problem more that sio(4) or uart(4). However, uart(4) has the beginnings of an interface that puc(4) could use to figure out which UART needs attention without actually calling the interrupt routine for each of them. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net