From owner-freebsd-current@FreeBSD.ORG Wed Jun 20 14:08:45 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 195A816A41F for ; Wed, 20 Jun 2007 14:08:45 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: from sellinet.net (galileo.sellinet.net [82.199.192.2]) by mx1.freebsd.org (Postfix) with SMTP id 65DCE13C45B for ; Wed, 20 Jun 2007 14:08:43 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: (qmail 4158 invoked by uid 1009); 20 Jun 2007 17:08:43 +0300 Received: from nike_d@cytexbg.com by galileo by uid 1002 with qmail-scanner-1.22 (spamassassin: 3.0.3. Clear:RC:1(82.199.197.152):. Processed in 0.062378 secs); 20 Jun 2007 14:08:43 -0000 Received: from unknown (HELO ndenev.totalterror.net) (82.199.197.152) by galileo.sellinet.net with SMTP; 20 Jun 2007 17:08:42 +0300 Received: (qmail 52665 invoked from network); 20 Jun 2007 17:08:42 +0300 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by ndenev.totalterror.net with SMTP; 20 Jun 2007 17:08:42 +0300 Message-ID: <467934EA.10606@cytexbg.com> Date: Wed, 20 Jun 2007 17:08:42 +0300 From: Niki Denev User-Agent: Thunderbird 1.5.0.10 (X11/20070326) MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <466913F0.2060200@cytexbg.com> <200706191331.50323.hselasky@c2i.net> <4677CBEC.4080208@cytexbg.com> <200706191540.02882.hselasky@c2i.net> In-Reply-To: <200706191540.02882.hselasky@c2i.net> X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: panic when removing pccard X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 14:08:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans Petter Selasky wrote: > On Tuesday 19 June 2007 14:28, Niki Denev wrote: >> Hans Petter Selasky wrote: >>> On Tuesday 19 June 2007 13:25, Niki Denev wrote: >>>> Hans Petter Selasky wrote: >>>>> On Tuesday 19 June 2007 11:06, Niki Denev wrote: >>>>>> Hans Petter Selasky wrote: >>>>>>> On Friday 08 June 2007 10:31, Niki Denev wrote: >>>>>>>> -----BEGIN PGP SIGNED MESSAGE----- >>>>>>>> Hash: SHA1 >>>>>>>> >>>>>>>> I experience the following panic on a few days old -current : >>>>>>>> >>>>>>>> If i insert and then remove a pcmcia card using the ubsa module >>>>>>>> (Vodafone Mobile Connect, which actually is Huawei E630 UMTS/HSDPA >>>>>>>> modem) the machine panics, because i think the order of removal of >>>>>>>> the devices by the kernel is not correct. I'm not sure because i >>>>>>>> don't have -STABLE machine with pcmcia now, but i think this problem >>>>>>>> does not exist there. >>>>>>>> >>>>>>>> Here is what happens when card is inserted : >>>>>>> Hi! >>>>>>> >>>>>>> If you want to be able to remove the card you need to install the new >>>>>>> USB stack. The old USB stack is completely broken when it comes to >>>>>>> this point! >>>>>>> >>>>>>> --HPS >>>>>>> >>>>>>> http://www.turbocat.net/~hselasky/usb4bsd >>>>>>> >>>>>>> Install the SVN version. >>>>>>> _______________________________________________ > >> I did make S=../src package the first time, but then for some reason i >> was trying without defining the S variable. >> Making it properly this time i went further, but still the build failed >> in if_rum with error if_rum.c:1118 too few arguments to function >> 'ieee80211_input' and several warnings about nested extern declarations >> and implicit declarations of the ieee80211 functions. >> I'll try disconnecting if_rum from the build to see if will help. >> > > Just create an empty "/sys/dev/usb/if_rum.c" rum file. > > rm -f "/sys/dev/usb/if_rum.c" > touch "/sys/dev/usb/if_rum.c" > > Then try to compile again. > > --HPS After i disabled if_ural and if_rum and fixed a minor thing in umass.c (added the missing argument to one cam/xpt function which api apparently changed in -current) the new stack compiled without problems, and now the card works perfectly and don't have more usb related panics :) Thanks! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGeTTqHNAJ/fLbfrkRAnR6AJ4r+NoB/DBPH/ac8HidwdA4ktw8FACaA/4x YuhrWgdRQGL94QdZFHRi8Ug= =Out4 -----END PGP SIGNATURE-----