From nobody@FreeBSD.org  Wed Nov 17 00:13:28 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 62E19106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Nov 2010 00:13:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 36E028FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Nov 2010 00:13:28 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id oAH0DS8j085643
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Nov 2010 00:13:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id oAH0DRNr085642;
	Wed, 17 Nov 2010 00:13:27 GMT
	(envelope-from nobody)
Message-Id: <201011170013.oAH0DRNr085642@www.freebsd.org>
Date: Wed, 17 Nov 2010 00:13:27 GMT
From: Ben Cadieux <ben.cadieux@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Serial I/O hangs in FreeBSD 8.x
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152310
>Category:       kern
>Synopsis:       [uart] [hang] Serial I/O hangs in FreeBSD 8.x
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 17 00:20:09 UTC 2010
>Closed-Date:    
>Last-Modified:  Sun Feb 13 05:00:18 UTC 2011
>Originator:     Ben Cadieux
>Release:        8.1-STABLE
>Organization:
>Environment:
FreeBSD underworld.example.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Oct 13 15:42:29 PDT 2010     sol@underworld.example.com:/usr/obj/usr/src/sys/UNDERWORLD  amd64
>Description:
I have HylaFax running in a jail, sending faxouts on /dev/cuau0 - after sending several faxes (~20 - 30), modem communication simply hangs.

I can terminate all faxing processes, reset the modem and attempt to re-initialize it without any luck.  It does not respond at all until I reboot the server.

I found pr kern/140947 which is a very similar report and have verified that I am using puc/uart updated beyond this point.

murgo% pstat -t
      LINE   INQ  CAN  LIN  LOW  OUTQ  USE  LOW   COL  SESS  PGID STATE
  sysmouse     0    0    0    0     0    0    0     0     0     0 -
     ttyu0     0    0    0    0     0    0    0 99999     0     0 IC
     ttyu1     0    0    0    0     0    0    0    13     0     0 IC
     ttyu2     0    0    0    0     0    0    0    11     0     0 IC
     ttyv0  1920    0    0  192  1984    0  199  1712 49247 49247 Oicl
     ttyv1  1920    0    0  192  1984    0  199    19 49245 49245 Oil
     ttyv2  1920    0    0  192  1984    0  199     7 49244 49244 Oil
     ttyv3  1920    0    0  192  1984    0  199     7  2228  2228 Oil
     ttyv4  1920    0    0  192  1984    0  199     7  2229  2229 Oil
     ttyv5  1920    0    0  192  1984    0  199     7  2230  2230 Oil
     ttyv6  1920    0    0  192  1984    0  199     7  2231  2231 Oil
     ttyv7  1920    0    0  192  1984    0  199     7  2232  2232 Oil
     ttyv8     0    0    0    0     0    0    0     0     0     0 -
     ttyv9     0    0    0    0     0    0    0     0     0     0 -
     ttyva     0    0    0    0     0    0    0     0     0     0 -
     ttyvb     0    0    0    0     0    0    0     0     0     0 -
     ttyvc     0    0    0    0     0    0    0     0     0     0 -
     ttyvd     0    0    0    0     0    0    0     0     0     0 -
     ttyve     0    0    0    0     0    0    0     0     0     0 -
     ttyvf     0    0    0    0     0    0    0     0     0     0 -
     pts/1     0    0    0    0     0    0    0    12 57369     0 G
     pts/0     0    0    0    0     0    0    0     0 78315     0 G
     pts/2  1920    0    0  192  1984    0  199     7 45529 45534 Oi
    
murgo% dmesg | grep uart   
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
uart1: [FILTER]
uart2: <16550 or compatible> port 0x3e8-0x3ef irq 5 on acpi0
uart2: [FILTER]
>How-To-Repeat:
Using cuau0 for an hour or so seems to repeat the problem for me.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->open 
State-Changed-By: linimon 
State-Changed-When: Sat Nov 20 08:42:11 UTC 2010 
State-Changed-Why:  
cosmetic change. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152310 

From: Ben Cadieux <ben.cadieux@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/152310: [uart] [hang] Serial I/O hangs in FreeBSD 8.x
Date: Sat, 20 Nov 2010 09:28:44 -0800

 If uart is not compiled into the kernel, I can also kldunload/kldload
 uart to reset the column position and send another 20~ faxes.

From: Ben Cadieux <ben.cadieux@gmail.com>
To: bug-followup@FreeBSD.org, ben.cadieux@gmail.com
Cc:  
Subject: Re: kern/152310: [uart] [hang] Serial I/O hangs in FreeBSD 8.x
Date: Wed, 1 Dec 2010 14:39:25 -0800

 I should clarify that I don't actually use puc, only uart.  I simply
 wanted to indicate that the fixes applied to the other PR were already
 applied in the source tree before my kernel/world were built and do
 not apply to this problem.

From: Stacy Millions <stacy@Millions.Ca>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/152310: [uart] [hang] Serial I/O hangs in FreeBSD 8.x
Date: Sat, 12 Feb 2011 21:43:02 -0700

 I have a similar problem with ntpd talking to an Oncore GPS. It will run 
 for a few hours or a few days, but then the serial port will freeze up. 
 Only a reboot will reset things. This hardware combination worked fine 
 for years running 6.x, it was only after I upgraded to 8.1 that I had 
 this problem.
 
 I have just built a kernel without the uart driver in the hopes that 
 unloading and loading the module will allow me to reset things without 
 rebooting.
 
 uname:
 FreeBSD oak.millions.ca 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Thu 
 Dec  2 11:50:22 MST 2010 
 root@buildhost.millions.ca:/usr/obj/usr/src/sys/GENERIC  amd64
 
 dmesg:
 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
 uart0: [FILTER]
 
 
 -stacy
>Unformatted:
