Re: cardbus panic: end address is not aligned

From: John Baldwin <jhb_at_freebsd.org>
Date: Thu, 7 Jul 2011 17:20:50 -0400
On Sunday, July 03, 2011 1:39:18 am Doug Barton wrote:
> I have 2 ath-based pc-card adapters. If I put either one of them in the 
> slot while the system is up, or if I try booting with them in the slot, 
> I get an instant panic. The cards previously worked in -current, and 
> continue to work in 8-stable and windows xp. I don't have any other 
> pc-cards to compare with. Full core.txt.0 file is in my home directory 
> on freefall.
> 
> This problem persists on r223732 but happened to me for the first time a 
> week or 2 ago (haven't had time to report it previously, apologies). It 
> likely originated a while before though, I don't use these cards very 
> often.
> 
> panic: end address is not aligned
> 
> #1  0xffffffff80426a8a in kern_reboot (howto=260)
>      at /home/svn/head/sys/kern/kern_shutdown.c:430
> #2  0xffffffff80426521 in panic (fmt=Variable "fmt" is not available.
> )
>      at /home/svn/head/sys/kern/kern_shutdown.c:604
> #3  0xffffffff8032c648 in pcib_grow_window (sc=0xfffffe0002603400,
>      w=0xfffffe0002603498, type=3, start=0, end=4294967295, count=65536, 
> flags=Variable "flags" is not available.

The line is here:

	KASSERT((w->limit & ((1ul << w->step) - 1)) == (1ul << w->step) - 1,
	    ("end address is not aligned"));

Can you run kgdb and do 'frame 3' and 'p/x *w'?

Also, can you boot your machine, then do 'sysctl debug.bootverbose=1', insert 
the card and record the messages in dmesg when it does?  (You can likely get 
those out of kgdb.)

-- 
John Baldwin
Received on Thu Jul 07 2011 - 19:26:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:15 UTC