From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 16 15:20:09 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AA35916A41F for ; Fri, 16 Feb 2007 15:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A433C13C49D for ; Fri, 16 Feb 2007 15:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1GFK5K2038218 for ; Fri, 16 Feb 2007 15:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1GFK5Og038217; Fri, 16 Feb 2007 15:20:05 GMT (envelope-from gnats) Resent-Date: Fri, 16 Feb 2007 15:20:05 GMT Resent-Message-Id: <200702161520.l1GFK5Og038217@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Greg Ansley Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C141E16A408 for ; Fri, 16 Feb 2007 15:13:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 98F0613C491 for ; Fri, 16 Feb 2007 15:13:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1GFDqPw006018 for ; Fri, 16 Feb 2007 15:13:52 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l1GFDqi5006017; Fri, 16 Feb 2007 15:13:52 GMT (envelope-from nobody) Message-Id: <200702161513.l1GFDqi5006017@www.freebsd.org> Date: Fri, 16 Feb 2007 15:13:52 GMT From: Greg Ansley To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/109232: [sio][patch] ibufsize calculation wrong causing data loss X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 15:20:09 -0000 >Number: 109232 >Category: kern >Synopsis: [sio][patch] ibufsize calculation wrong causing data loss >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 16 15:20:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Greg Ansley >Release: 6.1-RELEASE >Organization: Ansley & Associates, Inc. >Environment: FreeBSD anakin.telecine.com 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #7: Mon Sep 25 13:20:44 EDT 2006 gja@anakin.telecine.com:/usr/src/sys/i386/compile/ANAKIN i386 >Description: sio comwakeup time (sio_timeout) is limited to 200 hz (see siosettimeout()) but calculation for sio ibufsize uses hz which is now >> 200 hz causing insufficiently sized interrupt level sio buffers. This in turn causes lost incoming data and the kernel issues the "interrupt-level buffer overflow" message when receiving long strings of high speed (baud > 19200) data. Probalby has bearing on kern/26261 although I don't know when hz was raised above 200. >How-To-Repeat: Open serial port at > 19200 baud and recieve long (> 128 bytes) of continuous full speed data. >Fix: Index: sio.c sio.c:1929 Change: cp4ticks = speed / 10 / hz * 4; to cp4ticks = speed / 10 / (hz > 200 ? 200 : hz) * 4; >Release-Note: >Audit-Trail: >Unformatted: