Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2001 11:01:31 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jonathan Chen <jon@FreeBSD.org>
Cc:        mobile@FreeBSD.org, Martin Dieringer <dieringe@zedat.fu-berlin.de>
Subject:   Re: re-insertion panic
Message-ID:  <XFMail.010820110131.jhb@FreeBSD.org>
In-Reply-To: <20010818112512.B20719@enterprise.spock.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 18-Aug-01 Jonathan Chen wrote:
> On Fri, Aug 17, 2001 at 02:50:36PM -0700, John Baldwin wrote:
>> 
>> On 17-Aug-01 Martin Dieringer wrote:
>> > 
>> > 
>> > hi.
>> > after I finally switched on PCIIRQ on my Thinkpad (600x) and thus
>> > made my 3com 575bt card work with a -current
>> > NEWCARD kernel, there is the following problem:
>> > To suspend the laptop I have to take the card out,
>> > on reinsertion following two messages keep on running through the
>> > screen:
>> > 
>> > /usr/src/sys/kern/kern_synch.c:377
>> > sleeping with "xl0" locked from /usr/src/sys/pci/if_xl.c:1246
>> > /usr/src/sys/kern/kern_synch.c:377
>> > sleeping with "pccbb1" locked from /usr/src/sys/dev/pccbb/pccbb.c:643
>> 
>> Ugh, both these locks need to be disabled for the time being.
> 
> I'm not too familiar with the locking architecture on FreeBSD, so this is 
> probably my fault...  I've been meaning to take a look ainto this for some 
> time now, but something more pressing always manages to come up everytime I 
> have some free time...
> 
> Since I don't know too much about the way mutexes are done on freebsd, I 
> would really appreciate it if somebody could hand me a definitive guide 
> on mutex and locking on FreeBSD, or point out what I should be looking at 
> in the source... Or better yet, look through dec/pccbb and tell me what I 
> did wrong and how to fix it...

I have some patches to change how the locking works somewhat.  However, I think
holding the lock across a CARD_DETACH() is the problem in this case (since that
can sleep).  The definitive guide doesn't exist yet.  In theory that's what my
BSDCon paper will sort of be. :-/  Speaking if which, one week until the
abstract is due.  *sigh* :)
 
-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010820110131.jhb>