From nobody@FreeBSD.org  Tue Dec 15 20:43:00 2009
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 A0FDF1065782
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Dec 2009 20:43:00 +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 912768FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Dec 2009 20:43:00 +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 nBFKh0Y5048455
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Dec 2009 20:43:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nBFKh07R048454;
	Tue, 15 Dec 2009 20:43:00 GMT
	(envelope-from nobody)
Message-Id: <200912152043.nBFKh07R048454@www.freebsd.org>
Date: Tue, 15 Dec 2009 20:43:00 GMT
From: Jonathan Call <lordsith49@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Serial Console failure on Dell servers
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141655
>Category:       kern
>Synopsis:       [sio] [patch] Serial Console failure on Dell servers
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 15 20:50:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Mon Jun  7 17:30:05 UTC 2010
>Originator:     Jonathan Call
>Release:        FreeBSD 7.2
>Organization:
>Environment:
FreeBSD eng20.newthk02.hk.mycompany.net 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #1: Tue Oct 13 03:50:52 UTC 2009     root@master1.mycompany.net:/usr/obj/usr/src/sys/ENG0  i386

FreeBSD eng0.newthk02.hk.mycompany.net 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct 16 17:54:50 UTC 2009     root@eng0.newthk02.hk.mycompany.net:/usr/obj/usr/src/sys/ENG0  amd64
>Description:
Tty/login access on the serial console of Dell models 2950 and R710 stops working immediately after a single login session over the console. Sending a <ctrl-d> seems to temporarily resolve the issue long enough to log in, but the issue will immediately return once the session is ended.



>How-To-Repeat:
Configure a Dell 2950 or R710 with FreeBSD 7.2 for serial console using the Handbook instructions.
Reboot the server.
Log in using the serial console.
Log out.
The serial console will stop responding until you hit <ctrl-d>.
>Fix:
I found this on the Internet and I tried it. It worked in our lab:

*** /usr/src/sys/dev/sio/sio.c  Wed Apr 15 03:14:26 2009
--- sio.c       Tue Dec 15 20:31:48 2009
***************
*** 2077,2086 ****
--- 2077,2087 ----
  
        com = tp->t_sc;
        if (com == NULL || com->gone)
                return;
        mtx_lock_spin(&sio_lock);
+         DELAY(250000);
        if (rw & FWRITE) {
                if (com->hasfifo)
  #ifdef COM_ESP
                    /* XXX avoid h/w bug. */
                    if (!com->esp)



>Release-Note:
>Audit-Trail:

From: Strelkov Alexey <astrelkov@ripn.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/141655: [sio] [patch] Serial Console failure on Dell servers
Date: Thu, 27 May 2010 13:26:30 +0400

 Hi!
 I have situation like this on Dell R410 and Dell R510 servers.
 
 Configure a Dell R410 or R510 with FreeBSD 7.3 for serial console using the Handbook instructions.
 Reboot the server.
 Log in using the serial console.
 Log out.
 The serial console will stop responding.
 But if you try to login "in blind", you will. You could see your login on server, but console will be "blind".
 After resetting getty on ttyd0 by HUP you could login only once. After that situation repeats.
 
 This patch repair situation.
 
 -- 
 ?????? ????? Alexey Strelkov
 
 Autonomous Nonprofit Organization
 "Regional Network Information Center" (RU-CENTER)
 

From: James <james@hicag.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/141655: [sio] [patch] Serial Console failure on Dell servers
Date: Mon, 7 Jun 2010 12:02:49 -0500

 Hi all.  I can confirm adding the delay does indeed address this
 problem on a Dell PowerEdge 1950.  I tested it against FreeBSD 6.4 and
 7.3, works like a charm!  Build-test only against 6.1-6.3 and 7-stable
 also worked.
 
 HTH!
 
 -- 
 James.
>Unformatted:
