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
On Thu, Jun 07, 2012 at 03:29:59AM -0700, John Refling wrote:
>
> bar_tag=da525b1c
> bar_size=131072
> len=2048
> bar_memh=db230000
> cis_ptr=da525b20
> tuples=0
It looks to me like the CIS is not inside of the address window, because
cis_ptr > bar_size.
bus_space_read_region_1 probably fails because
MIN(bar_size - MIN(bar_size, cis_ptr), len) == 0, and ISTR that
the behavior of many bus_space(9) routines is undefined if you pass them
a length/count of 0.
Maybe skip the bus_space_read_region_1(), aprint_error(), clean up and
return with error from cardbus_read_tuples() cis_ptr >= bar_size?
Dave
--
David Young
dyoung%pobox.com@localhost Urbana, IL (217) 721-9981
Home |
Main Index |
Thread Index |
Old Index