Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2002 22:04:10 -0600 (MDT)
From:      "M. Warner Losh" <imp@village.org>
To:        rivers@dignus.com
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: pccard hang - how to start debugging?
Message-ID:  <20020516.220410.09368330.imp@village.org>
In-Reply-To: <200205161243.g4GChAo48345@lakes.dignus.com>
References:  <200205161243.g4GChAo48345@lakes.dignus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200205161243.g4GChAo48345@lakes.dignus.com>
            Thomas David Rivers <rivers@dignus.com> writes:
: 
: OK - 
: 
:  pccard (or, more likely, the pcic driver) hangs when I insert
:  my ethernet card into the pcmcia slot on my VAIO F480 (with
:  4.5-RELEASE.)
: 
:  The entire machine is hung up tight.
: 
:  When I remove the card, everything comes "alive" again....
: 
:  This clearly feels like a missed interrupt somewhere...
: 
:  So - how do I start to attack this problem?  I was thinking DDB
:  in the kernel would be the way to go, but if the machine is hung,
:  how do I interrupt it?

Set a breakpoint in pcic_pci_intr before inserting the card.  Try
reading various exca registers by hand to see if reading one of them
fixes things.  Try looking at the pci memory mapped cardbus registers.
Get lots of datasheets.

:  Any thoughts on how to debug this issue would be greatly
:  appreciated.  I'm hoping a little stumbling around, err.... debugging,
:  will shed light on this.

Good luck.  I fought this one for a long time and gave up in the end
and putting the hw.pcic.intr_path in as a work around.

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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