Regression: __dma_free_remap: trying to free invalid coherent area

Kalle Valo kvalo at qca.qualcomm.com
Thu May 23 09:46:52 EDT 2013


Hi Pontus,

Pontus Fuchs <pontus.fuchs at gmail.com> writes:

> On 2013-05-23 15:02, Kalle Valo wrote:
>> Kalle Valo <kvalo at qca.qualcomm.com> writes:
>>
>>> updated to latest master (commit d10481e4f) and now I see this everytime
>>> when removing wcn36xx.ko:
>>>
>>> <6>[   54.962765] wlan0: RX AssocResp from 00:03:7f:40:82:dd (capab=0x401 status=0 aid=1)
>>> <6>[   54.983030] wlan0: associated
>>> <6>[   54.985045] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
>>> <6>[   59.599236] wlan0: deauthenticating from 00:03:7f:40:82:dd by local choice (reason=3)
>>> <6>[   59.627498] wcn36xx: wcn36xx_config channel switch=1
>>> <6>[   59.628292] wcn36xx: channel switched to: 1, status: 0
>>> <6>[   59.628719] cfg80211: Calling CRDA to update world regulatory domain
>>> <3>[   59.661590] __dma_free_remap: trying to free invalid coherent area: ffde400c
>>> <4>[   59.661864] [<c00143a0>] (unwind_backtrace+0x0/0x11c) from [<c001767c>] (dma_free_coherent+0x88/0x1a8)
>>> <4>[   59.662414] [<c001767c>] (dma_free_coherent+0x88/0x1a8) from [<bf133264>] (wcn36xx_dxe_free_mem_pools+0x2c/0x60 [wcn36xx])
>>> <4>[   59.662871] [<bf133264>] (wcn36xx_dxe_free_mem_pools+0x2c/0x60 [wcn36xx]) from [<bf1324d4>] (wcn36xx_stop+0x54/0x7c [wcn36xx])
>>
>> Reverting the commit below fixes the issue for me. Pontus, do you have
>> any ideas?
>
> Does not happen here.

This might depend on kernel debugging options etc.

> Does it happen if you just insmod, ifconfig up, rmmod?

It happens when I do just this after boot (mako on old CM):

root at android:/ # insmod /sdcard/compat.ko                                      
root at android:/ # insmod /sdcard/cfg80211.ko                                    
root at android:/ # insmod /sdcard/mac80211.ko                                    
root at android:/ # insmod /sdcard/wcn36xx.ko                                     
root at android:/ # ip link set wlan0 up
root at android:/ # ip link set wlan0 down                               
root at android:/ # dmesg | grep invalid
<4>[    2.081062] Alternate GPT is invalid, using primary GPT.
<3>[   58.067541] __dma_free_remap: trying to free invalid coherent area: ffde400c
<3>[   58.080207] __dma_free_remap: trying to free invalid coherent area: ffdb800c
root at android:/ # 

-- 
Kalle Valo



More information about the wcn36xx mailing list