NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: kernel lockup on 6.0 beta2 on cardbus insertion on Dell Inspiron 9100 laptop



In dev/cardbus/cardbus.c

bus_space_read_region_1(...) [the second occurrence with bar_tag as first
arg]

seems to silently crash the kernel on card insertion (a debug printf before
prints and one after never does).

I printed and examined the args to bus_space_read_region_1(...) as best I
could and they seemed reasonable (compared to an entirely different, but
non-crashing card) EXCEPT for the

MIN(bar_size - MIN(bar_size, cis_ptr), len)

which was 2048 for this crashing card and 512 for another random
non-crashing card.

On a random thought, I replaced the line:

MIN(bar_size - MIN(bar_size, cis_ptr), len));

with

512);

and, when the card is inserted, no more crash !!!

Even get a dmesg.  There are two cards Belkin Pre-N and Netgear WPNT511 that
are affected, and here is the dmesg for each:

Airgo, AG100 Wireless Lan Adapter,  (manufacturer 0x144f, product 0x710)
vendor 0x17cb product 0x0002 (ethernet network, revision 0x01) at cardbus0
function 0 not configured

Airgo, AG100 Wireless Lan Adapter,  (manufacturer 0x144f, product 0x710)
vendor 0x17cb product 0x0001 (ethernet network, revision 0x01) at cardbus0
function 0 not configured



Next???

Thanks,

John Refling




In article <BLU0-SMTP22439CD2013650F1FB3C727AD0C0%phx.gbl@localhost>,
John Refling  <mpweadh%hotmail.com@localhost> wrote:
>
>This is on a Dell Inspiron 9100 laptop which has cardbus problems already.
>
>I have compiled the CARDBUS kernel which makes a lot more cardbus cards
>work, those that used to cause a "panic: no cardbus on cardslot0".
>
>Even with that kernel, plugging in a Netgear wpnt511 or a Belkin Pre-N card
>causes a total silent lockup (no panic message or anything) which never
>recovers.
>
>Please let me know how to help debug this?
>
>John Refling
>
>Possibly related:
> 
>http://mail-index.netbsd.org/netbsd-help/2005/02/09/0006.html
>
> 
>http://mail-index.netbsd.org/port-i386/2012/06/03/msg002818.html

Can you add some printfs to see if the sc->sc_16_softc is set for that
card? Perhaps the controller sends the wrong event out...

christos





Home | Main Index | Thread Index | Old Index