From owner-freebsd-current@FreeBSD.ORG Sat Dec 27 12:50:13 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 0808E16A4D0 for ; Sat, 27 Dec 2003 12:50:13 -0800 (PST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id E089143D58 for ; Sat, 27 Dec 2003 12:50:07 -0800 (PST) (envelope-from dhee@myrealbox.com) Received: from dhee [24.99.34.159] by myrealbox.com with NetMail ModWeb Module; Sat, 27 Dec 2003 15:50:07 -0500 From: "Dheeraj" To: imp@bsdimp.com Date: Sat, 27 Dec 2003 15:50:07 -0500 X-Mailer: NetMail ModWeb Module X-Sender: dhee MIME-Version: 1.0 Message-ID: <1072558207.78a8a760dhee@myrealbox.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cc: freebsd-current@freebsd.org Subject: Re: Re: Serial driver problems with 5.2-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dhee@myrealbox.com 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 20:50:13 -0000 Hello Warner. This is what i get on the console before it hangs. =3D=3D sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio4: <3Com MegaHertz 3CCFEM556B> at port 0x120-0x127 irq 11 function 1 con= fig 3 9 on pccard1 sio4: type 16550A with a buggy IIR_TXRDY implementation sio4: unable to activate interrupt in fast mode - using normal mode sio4 : spouting nonsense -- disabled.=20 =3D=3D Is it possible that somehow the IRQ supposed for the ep0 is somehow getting= into the sio4 handler ? dheeraj PS: The machine still hangs because it still gets into that offending while= loop. -----Original Message----- From: "M. Warner Losh" To: dhee@myrealbox.com Date: Sat, 27 Dec 2003 10:04:17 -0700 (MST) Subject: Re: Serial driver problems with 5.2-current In message: <1072530641.b36949c0dhee@myrealbox.com> "Dheeraj" writes: : Hello Warner. :=20 : 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 infini= te 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