Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2003 08:10:41 -0500
From:      "Dheeraj" <dhee@myrealbox.com>
To:        imp@bsdimp.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: Re: Serial driver problems with 5.2-current
Message-ID:  <1072530641.b36949c0dhee@myrealbox.com>

next in thread | raw e-mail | index | archive | help
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)=20
{

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 al=
so point to some more details if i were able to see the 'printfs' properl=
y, right now i can see the scrreen scroll so fast that i can't make anyth=
ing 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)

dheeraj

PS: Of course I am clueless about how to go about it but i hope you can pro=
bably make some sense out of it.
I do not understand why an interrupt routine is called even though i have n=
o serial devices connected to it

-----Original Message-----
From: "M. Warner Losh" <imp@bsdimp.com>
To: dhee@myrealbox.com
Date: Fri, 26 Dec 2003 22:12:41 -0700 (MST)
Subject: Re: Serial driver problems with 5.2-current

In message: <1072413406.b4920de0dhee@myrealbox.com>
            "Dheeraj" <dhee@myrealbox.com> writes:
: db> break siointr
: db> c
: Breakpoint at    siointr:   pushl  %ebp
: db> trace
: siointr(c28e9800,2,fd,c27c6580,4) at siointr
: pccard_intr(c284cb00,4,685f676e,1,c27bbd80) at pccard_intr+0x48
: cbb_intr(c27a9800,1,5f676e09,2e696368,c10f9c80) at cbb_intr+0x158
: ithread_loop(c10f5800,cd963d48,20,3,5f676e08) at ithread_loop+0x178
: fork_exit(c04d94e0,c10f5800,cd963d48) at fork_exit+0x6c
: fork_trampoline() at fork_trampoline+0x8
: --- trap 0x1, eip =3D 0, esp =3D 0xcd963d7c, ebp =3D 0 ---
: db> c
: and then it hangs.=20
: I just ran out of ideas there after.=20
: I can probably try somemore stupidity of mine early tommorow.

Hmmm, can you break into the debugger after it hangs?  This is
smelling like an interrupt problem a little, or a pci bus hang
although I usually have only seen those with experimental/development
pci hardware, or pci hardware that was a little too reliant on the
host to not do bad things (or such bad things were too wasy for my
driver to do).

Warner





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1072530641.b36949c0dhee>