From owner-freebsd-current Mon Oct 7 22: 6:35 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD25237B401 for ; Mon, 7 Oct 2002 22:06:32 -0700 (PDT) Received: from northgate.starhub.net.sg (northgate.starhub.net.sg [203.117.1.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5B2943E6A for ; Mon, 7 Oct 2002 22:06:28 -0700 (PDT) (envelope-from twchan@singnet.com.sg) Received: from zaapth-ext (twchan@mcns74.docsis162.scvmaxonline.com.sg [202.156.162.74]) by northgate.starhub.net.sg (8.12.5/8.12.5) with ESMTP id g9856BG8016833; Tue, 8 Oct 2002 13:06:16 +0800 (SST) Date: Tue, 8 Oct 2002 13:06:43 +0800 (SGT) From: Chan Tur Wei X-X-Sender: twchan@zaapth.twnet.org To: "M. Warner Losh" Cc: current@FreeBSD.ORG Subject: Re: dc and PCMCIA still panic In-Reply-To: <20021007.220252.50068329.imp@bsdimp.com> Message-ID: <20021008125918.E67735-100000@zaapth.twnet.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, This is the problem I'm having as well - that of running the Xircom Realport REM56G on NEWCARD. The mapped attribute memory is bogusly all zeroes, and as a result the parsing code simply runs off the end of the mapped memory and thus faulting. Testing for the condition avoids the fault but leaves the card unusable under -newcard. ====================================================================== --- pccard_cis.c Tue Oct 8 13:04:34 2002 +++ pccard_cis.c.new Tue Oct 8 13:04:01 2002 @@ -152,6 +152,11 @@ while (1) { /* get the tuple code */ + if (tuple.ptr >= PCCARD_CIS_SIZE) { + ret = 1; + goto done; + } + tuple.code = pccard_cis_read_1(&tuple, tuple.ptr); /* two special-case tuples */ ====================================================================== Regards -ah-zeep- On Mon, 7 Oct 2002, M. Warner Losh wrote: > Date: Mon, 07 Oct 2002 22:02:52 -0600 (MDT) > From: M. Warner Losh > To: mi@corbulon.video-collage.com > Cc: current@FreeBSD.ORG > Subject: Re: dc and PCMCIA still panic > > In message: <200210080355.g983tpBR018086@corbulon.video-collage.com> > Mikhail Teterin writes: > : > Even though it doesn't make sense, can you turn on the debugging > : > information and run again? I use > : > > : > # Let's debug! > : > hw.cbb.debug=1 > : > hw.pccard.debug=1 > : > hw.pccard.cis_debug=1 > : > hw.cardbus.debug=1 > : > hw.cardbus.cis_debug=1 > : > : Actually, I lied... It is a Xircom RealPort Ethernet 10/100 + Modem 56 > : REM56G -- the xe card. > > Oh, that's different.... This is with my changes to pccard_cis.c? > I've never been able to get my IBM version of this card to work at > all... > > Do you get screen fulls of CIS parsing before the fall? That's what I > see both before and after that change. I think that something strange > is going on with a few cards that the code doesn't handle quite > right. I have maybe 4 of them at the moment. > > Warner > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message