From owner-freebsd-stable@FreeBSD.ORG Thu May 25 21:49:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB04416CD6D for ; Thu, 25 May 2006 21:44:15 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF5BF43D64 for ; Thu, 25 May 2006 21:44:08 +0000 (GMT) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FjNcW-0000Vw-7L for freebsd-stable@freebsd.org; Thu, 25 May 2006 23:43:52 +0200 Received: from gw205.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 May 2006 23:43:52 +0200 Received: from atkin901 by gw205.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 May 2006 23:43:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: othermark Date: Thu, 25 May 2006 14:43:43 -0700 Lines: 36 Message-ID: References: <200605131413.17020.doconnor@gsoft.com.au> <20060513123030.GA32024@intserv.int1.b.intern> <200605231923.21263.doconnor@gsoft.com.au> <6.2.3.4.0.20060523095411.11c41c00@64.7.153.2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gw205.f5.com User-Agent: KNode/0.10.2 Sender: news Subject: Re: Odd RS232 problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2006 21:49:16 -0000 Mike Tancsa wrote: > At 05:53 AM 23/05/2006, Daniel O'Connor wrote: >>On Saturday 13 May 2006 22:00, Holger Kipp wrote: >> >> > If you encounter silo overflows, you might need to increase >> > cp4ticks in sio.c, eg >> > - cp4ticks = speed / 10 / hz * 4; >> > + cp4ticks = speed / 10 / hz * 40; >> > and/or you might want to change hz from 1000 back to 100. >> >>OK, I'll try it. > > This fixes the overflows for me as well. I have a number of boxes out > in the field running with this local modification (40 vs 4). Without > it, I have problems running a PCI modem at speeds better than 9600 > without causing overflows. Yes, I had a laptop that exhibited this same problem and this change did fix it. I believe this is described in the following PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/51982 I had tried to work on this patch to provide a bounded sysctl for the multiplier, that way you could just set the hint on boot up in order to fix this problem. With a little trial and error you could find the lowest tick value that works for the interrupt load. One of these days I'll get back to figuring out all the places I need to add code to get that hint to work correctly. -- othermark atkin901 at nospam dot yahoo dot com (!wired)?(coffee++):(wired);