From owner-freebsd-current@FreeBSD.ORG Sat Oct 4 20:05:21 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1F2410656A5 for ; Sat, 4 Oct 2008 20:05:21 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mx1.freebsd.org (Postfix) with ESMTP id A6D1E8FC13 for ; Sat, 4 Oct 2008 20:05:21 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id 06E7D183582 for ; Sat, 4 Oct 2008 22:05:20 +0200 (CEST) Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id E85B511410C for ; Sat, 4 Oct 2008 22:05:19 +0200 (CEST) Received: from lorvorc.mips.inka.de (dslb-088-067-119-222.pools.arcor-ip.net [88.67.119.222]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id 7B99C13FD7 for ; Sat, 4 Oct 2008 22:05:19 +0200 (CEST) Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.3/8.14.3) with ESMTP id m94K5IXX078348 for ; Sat, 4 Oct 2008 22:05:18 +0200 (CEST) (envelope-from mailnull@lorvorc.mips.inka.de) Received: (from mailnull@localhost) by lorvorc.mips.inka.de (8.14.3/8.14.3/Submit) id m94K5IZ7078347 for freebsd-current@freebsd.org; Sat, 4 Oct 2008 22:05:18 +0200 (CEST) (envelope-from mailnull) From: naddy@mips.inka.de (Christian Weisgerber) Date: Sat, 4 Oct 2008 20:05:18 +0000 (UTC) Message-ID: References: <20081004162526.GE16837@hoeg.nl> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-current@freebsd.org X-Virus-Scanned: ClamAV 0.93.3/8374/Sat Oct 4 19:41:34 2008 on mail-in-11.arcor-online.net X-Virus-Status: Clean Subject: Re: Jump in serial line latency? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2008 20:05:22 -0000 Ed Schouten wrote: > > It looks like something has added a lot of latency to characters > > coming in the serial port. I have no idea when this happened. > > Do you have time/interest to pinpoint the cause of the problem? It looks like the problem crept in with the sio(4) to uart(4) switch. More specifically, it's the Rx FIFO setting of the 16550 UART. After adding 0x100 to hint.uart.0.flags and rebooting, I can confirm that the ~800 ms offset is gone. I seem to remember that sio(4) automatically set the FIFO threshold to 1 for low bit rates. uart(4) is not so clever. -- Christian "naddy" Weisgerber naddy@mips.inka.de