From owner-freebsd-mobile@FreeBSD.ORG Fri Jul 4 14:45:52 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE08337B401 for ; Fri, 4 Jul 2003 14:45:52 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0CA944008 for ; Fri, 4 Jul 2003 14:45:51 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.9/8.12.5) with ESMTP id h64Lje5e021013; Fri, 4 Jul 2003 15:45:40 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.9/8.12.5/Submit) id h64Ljdlg021012; Fri, 4 Jul 2003 15:45:39 -0600 (MDT) (envelope-from ken) Date: Fri, 4 Jul 2003 15:45:39 -0600 From: "Kenneth D. Merry" To: "M. Warner Losh" Message-ID: <20030704154539.A20962@panzer.kdm.org> References: <20030702074635.A9697@panzer.kdm.org> <20030702.161506.118972599.imp@bsdimp.com> <20030702182620.A12382@panzer.kdm.org> <20030702.185340.121218360.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030702.185340.121218360.imp@bsdimp.com>; from imp@bsdimp.com on Wed, Jul 02, 2003 at 06:53:40PM -0600 cc: mobile@freebsd.org Subject: Re: cardbus network problem with -current X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 21:45:53 -0000 On Wed, Jul 02, 2003 at 18:53:40 -0600, M. Warner Losh wrote: > In message: <20030702182620.A12382@panzer.kdm.org> > "Kenneth D. Merry" writes: > : On Wed, Jul 02, 2003 at 16:15:06 -0600, M. Warner Losh wrote: > : > In message: <20030702074635.A9697@panzer.kdm.org> > : > "Kenneth D. Merry" writes: > : > : On Wed, Jul 02, 2003 at 01:48:21 -0600, M. Warner Losh wrote: > : > : > Does this also happen if you boot off the battery? When booting off > : > : > the battery, your CPU is running slower (if the 8500 is like my 8000), > : > : > and maybe this is a timing problem. > : > : > : > : The same thing happens when I boot off the battery. > : > > : > I suppose the same thing happens if you boot w/o the card in the > : > socket, and do one of the following: > : > > : > 1) insert the card after the machine is on, but before the kernel is > : > loaded. > : > : Yep, fails the same way. > : > : > 2) after cbb has probed, but before we get to the point of mounting > : > root. > : > : Fails the same way. > : > : > 3) Some point after init starts. > : > : It fails the same way. I have to pop it out and re-insert it. > > So even if you wait until the machine is completely up, you have to > insert it twice before it will work? Yes. > : > And does it happen when you reboot the machine with the card in place? > : > Eg, is this a cold boot only problem, warm boot problem, or both? > : > : It doesn't matter whether it's a cold or a warm boot, or whether the card > : was functional or not on the last boot, every time I reboot it doesn't work. > : > : Once I re-insert it, it works fine. > > OK. That's good to know. Sounds like a "first time always fails" > problem... Yeah. > Oh, one last thing. Could you try the following experiment. Don't > build cardbus into your kernel. Omit cbb, cardbus and pccard. Make > sure you install the modules, however. Also, set the loader for > automatic module loading for these three modules. Then you can do: > > 1) insert card > 2) boot > 3) reinsert card Probed both times. > 4) kldunload cbb (or cardbus in second experiment) > 5) kldload cbb ditto Card probed here when I unloaded and reloaded cbb, but did not probe here when I unloaded and reloaded cardbus. > 6) reinsert card Card probed here both times. > If it is a 'the bios puts the hardware in a funny state' problem, then > the card should attach at #5 instead of #6. I think this is a pci > cardbus bridge driver problem of some sort and this would help me sort > it out. I know it is a little bit of a pain, but it may suggest a > patch.. It attached at #5 when I loaded the cbb module, but not the cardbus module. Ken -- Kenneth Merry ken@kdm.org