Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 1997 13:28:21 -0700 (MST)
From:      Nate Williams <nate@mt.sri.com>
To:        Guido van Rooij <guido@gvr.org>
Cc:        nate@mt.sri.com (Nate Williams), freebsd-mobile@freebsd.org
Subject:   Re: sio: probe test 3 failed
Message-ID:  <199711112028.NAA17750@rocky.mt.sri.com>
In-Reply-To: <199711111953.UAA01182@gvr.gvr.org>
References:  <199711111926.MAA17332@rocky.mt.sri.com> <199711111953.UAA01182@gvr.gvr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Here's the complete logging:
> 
> Nov 11 20:24:30 mouse /kernel: Initializing PC-card drivers: ed ep fe sio
> Nov 11 20:24:30 mouse /kernel: Card inserted, slot 1
> Nov 11 20:24:30 mouse /kernel: Card inserted, slot 0
> Nov 11 20:24:36 mouse /kernel: ep0: utp/bnc[*UTP*] address 00:60:97:8e:e3:ff
> Nov 11 20:24:46 mouse /kernel: sio1: type 16550A
> Nov 11 20:24:46 mouse pccardd[41]: pccardd started

So far so good.

> <press suspend>
> Nov 11 20:40:03 mouse /kernel: ep0: unload
> Nov 11 20:40:03 mouse /kernel: Return IRQ=10
> Nov 11 20:40:03 mouse /kernel: stray irq 10
> Nov 11 20:40:03 mouse /kernel: Card disabled, slot 0

Slot 0 is disabled correctly.

> Nov 11 20:40:03 mouse /kernel: sio1: unload,gone
> Nov 11 20:40:03 mouse /kernel: Return IRQ=11
> Nov 11 20:40:03 mouse /kernel: stray irq 11
> Nov 11 20:40:03 mouse /kernel: Card disabled, slot 1

Slot 1 is disabled correctly.

> <suspended, press resume>
> Nov 11 20:40:09 mouse /kernel: resumed from suspended mode (slept 00:00:08)
> Nov 11 20:40:10 mouse /kernel: Card inserted, slot 1
> Nov 11 20:40:10 mouse /kernel: Card inserted, slot 0

Both slots are 'resumed' correctly.

> Nov 11 20:40:21 mouse /kernel: sio1: probe test 3 failed
> Nov 11 20:40:21 mouse pccardd[41]: driver allocation failed for Nokia Mobile Phones

Still not sure why this happened, but let's go on.  It's not obvious
what 'resource' it can't find when trying to use the card, but I
*suspect* it's the interrupt.

> Nov 11 20:40:31 mouse /kernel: ep0: utp/bnc[*UTP*] address 00:60:97:8e:e3:ff

Slot 0 worked fine (though we don't know what resources it's using.)

> <get rid of nokia card>
> Nov 11 20:41:46 mouse /kernel: Card removed, slot 1
> Nov 11 20:41:46 mouse /kernel: Slot 1, unfielded interrupt (11)
> Nov 11 20:41:46 mouse /kernel: Slot 1, unfielded interrupt (11)
> <insert another modem card>
> Nov 11 20:42:02 mouse /kernel: Card inserted, slot 1
> Nov 11 20:42:08 mouse pccardd[41]: No free configuration for card Intelligent

Hmm, at this point it *appears* that the driver was allocated, but never
de-allocated after failure.  Let me look into that.....

Looks good to me.

> <set machdep.pccard.pcic_resume_reset to 1>

This needs to be done at boot time (or at least before the first
suspend) for it to have any effect.

> <remove new modem card and reinsert the old one; push suspend>
> Nov 11 20:45:34 mouse /kernel: Card removed, slot 1
> Nov 11 20:45:45 mouse /kernel: Card inserted, slot 1
> Nov 11 20:45:48 mouse /kernel: ep0: unload
> Nov 11 20:45:48 mouse /kernel: Return IRQ=10
> Nov 11 20:45:48 mouse /kernel: stray irq 10
> Nov 11 20:45:48 mouse /kernel: Card disabled, slot 0
> Nov 11 20:45:48 mouse /kernel: Card disabled, slot 1

Fine, no cards to disable at slot 0 since the 'inserted' message never
got around to the pccardd daemon long enough for it to have allocated a
driver for the slot.

> <suspended; press resume again>
> Nov 11 20:45:53 mouse /kernel: resumed from suspended mode (slept 00:00:07)
> Nov 11 20:45:54 mouse /kernel: Card inserted, slot 1
> Nov 11 20:45:54 mouse /kernel: Card inserted, slot 0
> Nov 11 20:46:01 mouse /kernel: sio1: probe test 3 failed
> Nov 11 20:46:01 mouse pccardd[41]: driver allocation failed for Nokia Mobile Pho
> nes
> <note that now the network card is ignored!? Let's remove and reinsert it>

I know why this happens.  Basically, I need to *FORCE* the system to
think the card was removed at suspend time, and *FORCE* it to think the
card was inserted at resume time.  Right now I 'fake' it.  Basically,
this is a 'known' bug that I haven't gotten time to fix.  It shouldn't
happen very often in any case.

> Nov 11 20:46:36 mouse /kernel: Card removed, slot 0
> Nov 11 20:46:38 mouse /kernel: Card inserted, slot 0
> <bingo, we have network again>
> Nov 11 20:46:49 mouse /kernel: ep0: utp/bnc[*UTP*] address 00:60:97:8e:e3:ff

Yep, that's not a good solution, but it no longer locks up your machine
like suspend/resume used to do. :) :) :)

[
Well, in your particular case we still have sio lockups, but that's
another story.
]



Nate



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