From owner-freebsd-current Tue Nov 30 14:54:35 1999 Delivered-To: freebsd-current@freebsd.org Received: from tinker.exit.com (exit-gw.power.net [207.151.46.196]) by hub.freebsd.org (Postfix) with ESMTP id 244CE14C86; Tue, 30 Nov 1999 14:54:32 -0800 (PST) (envelope-from frank@exit.com) Received: from realtime.exit.com (realtime.exit.com [206.223.0.5]) by tinker.exit.com (8.9.3/8.9.3) with ESMTP id OAA33590; Tue, 30 Nov 1999 14:54:29 -0800 (PST) (envelope-from frank@exit.com) Received: (from frank@localhost) by realtime.exit.com (8.9.3/8.9.3) id OAA56273; Tue, 30 Nov 1999 14:54:28 -0800 (PST) (envelope-from frank) From: Frank Mayhar Message-Id: <199911302254.OAA56273@realtime.exit.com> Subject: Re: PCCARD eject freeze (was Re: your mail) In-Reply-To: <19991130173920.A22943@netmonger.net> from Christopher Masto at "Nov 30, 1999 05:39:20 pm" To: chris@netmonger.net (Christopher Masto) Date: Tue, 30 Nov 1999 14:54:28 -0800 (PST) Cc: imp@village.org (Warner Losh), hibma@skylink.it (Nick Hibma), msmith@FreeBSD.ORG (Mike Smith), current@FreeBSD.ORG (FreeBSD CURRENT Mailing List) Reply-To: frank@exit.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Christopher Masto wrote: > On Tue, Nov 30, 1999 at 02:59:10PM -0700, Warner Losh wrote: > > In message <19991130165407.A467@netmonger.net> Christopher Masto writes: > > : I found that the only message printed was "ready to power off". > > > > bingo. looks like we're not deleting the child. Try replacing that > > for loop with something like: > > > > pccarddev = devclass_get_device(pccard_devclass, slt->slot); > > device_get_children(pccarddev, &kids, &nkids) > > for (i = 0; i < nkids; i++) > > device_delete_child(pccarddev, kid[0]); > > > > It isn't quite right, but if it works then I know the right fix. > > Hey, we're getting somewhere. It works, in that it stops the panic. > I get the "ed0: unloaded" message, and the machine doesn't panic, but > there are still some problems. It seems that device_delete_child > is failing (I forgot to print the return code, but it is not zero), I'll bet Warner meant device_delete_child(pccarddev, kid[i]); up there, and not device_delete_child(pccarddev, kid[0]); Did you try that? -- Frank Mayhar frank@exit.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message