From owner-freebsd-hackers Thu Nov 13 10:17:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA04346 for hackers-outgoing; Thu, 13 Nov 1997 10:17:08 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from out1.ibm.net (out1.ibm.net [165.87.194.252]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA04329 for ; Thu, 13 Nov 1997 10:17:03 -0800 (PST) (envelope-from mouth@ibm.net) Received: from slip129-37-53-98.ca.us.ibm.net (slip129-37-53-98.ca.us.ibm.net [129.37.53.98]) by out1.ibm.net (8.8.5/8.6.9) with SMTP id SAA83994; Thu, 13 Nov 1997 18:16:53 GMT From: mouth@ibm.net (John Kelly) To: Bruce Evans Cc: hackers@FreeBSD.ORG Subject: Re: Status of 650 UART support Date: Thu, 13 Nov 1997 19:18:08 GMT Message-ID: <346d4ceb.8671504@smtp-gw01.ny.us.ibm.net> References: <199711130935.UAA06342@godzilla.zeta.org.au> In-Reply-To: <199711130935.UAA06342@godzilla.zeta.org.au> X-Mailer: Forte Agent 1.01/16.397 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id KAA04330 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 13 Nov 1997 20:35:53 +1100, Bruce Evans wrote: >>Why can't we handle large bursts of input? > >Buffer sizes are finite. Can't we use malloc to create elastic buffers on the fly? Is that a no-no in the kernel? >Multiply some of these numbers by 4 for 64-bit fifos and you have >seriously high (normal worst case) latencies. (My definition of ``high'' >is anything that would stop an 8250 from working at 115200 bps - 87 >usec :-). I will reduce this when faster speeds become common.) Why not start from scratch and develop siov2.c which uses elastic buffers, 650 polled vs. interrupt mode switching, yada, yada, yada. Sio.c could still be the default while siov2.c could be selected on a port by port basis with a kernel config flag. Now if someone foolhardy enough to undertake such a project would step forward (don't look in my direction, I know better). ;-) John