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 article <BLU0-SMTP124636762717DF54AE9F4CADF30%phx.gbl@localhost>,
John Refling  <mpweadh%hotmail.com@localhost> wrote:
>
>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 !!!

What's len, bar_size, and cis_ptr?

christos



Home | Main Index | Thread Index | Old Index