From owner-freebsd-hackers Thu May 16 21: 5:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id E2EE937B400 for ; Thu, 16 May 2002 21:05:08 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g4H457f43930; Thu, 16 May 2002 22:05:07 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g4H456r32152; Thu, 16 May 2002 22:05:06 -0600 (MDT) (envelope-from imp@village.org) Date: Thu, 16 May 2002 22:04:10 -0600 (MDT) Message-Id: <20020516.220410.09368330.imp@village.org> To: rivers@dignus.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: pccard hang - how to start debugging? From: "M. Warner Losh" In-Reply-To: <200205161243.g4GChAo48345@lakes.dignus.com> References: <200205161243.g4GChAo48345@lakes.dignus.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <200205161243.g4GChAo48345@lakes.dignus.com> Thomas David Rivers 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