From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 7 10:04:51 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 798A616A4CE for ; Wed, 7 Apr 2004 10:04:51 -0700 (PDT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1352243D2F for ; Wed, 7 Apr 2004 10:04:51 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 16824 invoked from network); 7 Apr 2004 17:04:23 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Apr 2004 17:04:23 -0000 Received: from hydrogen.funkthat.com (elopip@localhost.funkthat.com [127.0.0.1])i37H4MOE057035; Wed, 7 Apr 2004 10:04:23 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i37H4MNR057034; Wed, 7 Apr 2004 10:04:22 -0700 (PDT) Date: Wed, 7 Apr 2004 10:04:22 -0700 From: John-Mark Gurney To: othermark Message-ID: <20040407170422.GF567@funkthat.com> Mail-Followup-To: othermark , freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: polling for sio? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2004 17:04:51 -0000 othermark wrote this message on Wed, Apr 07, 2004 at 09:17 -0700: > I'm just looking into DEVICE_POLLING. Would it be difficult to add polling > functionality to uart or sio? My main objective would be to get rid of > silo overflows in the sio device for shared interrupt devices. I would say that more time would be better spent on either lowering your fifo levels (to make the interrupts trigger earlier), 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.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."