From owner-freebsd-current@FreeBSD.ORG Sat Dec 27 09:04:38 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBA5916A4CE for ; Sat, 27 Dec 2003 09:04:38 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id C068643D46 for ; Sat, 27 Dec 2003 09:04:36 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.10/8.12.9) with ESMTP id hBRH4WAS099108; Sat, 27 Dec 2003 10:04:34 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 27 Dec 2003 10:04:17 -0700 (MST) Message-Id: <20031227.100417.84362606.imp@bsdimp.com> To: dhee@myrealbox.com From: "M. Warner Losh" In-Reply-To: <1072530641.b36949c0dhee@myrealbox.com> References: <1072530641.b36949c0dhee@myrealbox.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sat_Dec_27_10:04:17_2003_143)--" Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: Serial driver problems with 5.2-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 27 Dec 2003 17:04:38 -0000 ----Next_Part(Sat_Dec_27_10:04:17_2003_143)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit In message: <1072530641.b36949c0dhee@myrealbox.com> "Dheeraj" writes: : Hello Warner. : : I got a little further ahead or maybe not. : i just put in a bunch of printf's and noticed that it goes into an infinite loop. in : : srs/sys/dev/sio.c : : siointr1(struct com_s com) : { : : in the 2nd while loop : while(line_status & LSR_RCV_MASK) { : /*break/unattached error bits or real input?*/ : ---- : --- : } : } : so it never comes out of this loop and the machine just hangs. i : could also point to some more details if i were able to see the : 'printfs' properly, right now i can see the scrreen scroll so fast : that i can't make anything out of it. and as i said earlier i cannot : break into the debugger. (i know only two ways of it, ctrl-alt-esc : and sysctl, if there is anything else i can try out i shall try) Very interesting. You are attaching to a uart that potentially isn't there for reasons unknown. Not sure which interrupt is involved (we should make a ddb command show active interrupts). Please try this patch and report back what it says. Warner ----Next_Part(Sat_Dec_27_10:04:17_2003_143)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sio.diff" Index: sio.c =================================================================== RCS file: /cache/ncvs/src/sys/dev/sio/sio.c,v retrieving revision 1.416 diff -u -r1.416 sio.c --- sio.c 17 Nov 2003 07:21:19 -0000 1.416 +++ sio.c 27 Dec 2003 17:02:03 -0000 @@ -35,7 +35,7 @@ */ #include -__FBSDID("$FreeBSD$"); +__FBSDID("$FreeBSD: src/sys/dev/sio/sio.c,v 1.416 2003/11/17 07:21:19 bde Exp $"); #include "opt_comconsole.h" #include "opt_compat.h" @@ -1794,7 +1794,11 @@ } } line_status = inb(com->line_status_port); - + if (line_status == 0xff) { + printf("sio%d: spouting nonsense -- disabled.\n", + com->unit); + com->gone = 1; + } /* input event? (check first to help avoid overruns) */ while (line_status & LSR_RCV_MASK) { /* break/unnattached error bits or real input? */ ----Next_Part(Sat_Dec_27_10:04:17_2003_143)----