Re: 2.6.38-rc7, iwlagn crash

From: Mathias BurÃn
Date: Fri Mar 04 2011 - 22:45:31 EST


On 4 March 2011 22:23, Mathias BurÃn <mathias.buren@xxxxxxxxx> wrote:
> On 4 March 2011 15:17, wwguy <wey-yi.w.guy@xxxxxxxxx> wrote:
>> On Fri, 2011-03-04 at 05:46 -0800, John W. Linville wrote:
>>> Cc'ing Wey-yi and linux-wireless...anyone else having problems with
>>> iwlagn and IBSS?
>>>
>>> On Fri, Mar 04, 2011 at 03:27:22AM +0000, Mathias BurÃn wrote:
>>> > Hi,
>>> >
>>> > (please cc as not subscribed)
>>> >
>>> >
>>> >
>>> > I think the crash happens when the phone attempts to get an IP, at
>>> > least that's what the phone says right after/at the crash. Any ideas?
>>> >
>>> >
>> forwarding to my team to work on it, any additional information you can
>> provide?
>>
>> It is in IBSS mode, do you have any information can shared with us on
>> your phone's model, setup, and ...
>> if you can load the module with debug=0x43fff and provide the dmesg log,
>> it will be very helpful
>>
>> Thanks
>> Wey
>>
>>
>>
>
> Hi,
>
> The phone is a Samsung Galaxy S (with "modded" wpa_supplicant to see
> adhoc networks). I created a new adhoc network in Ubuntu using the
> NetworkManager applet, with SSID "UbuntuAdhoc", band "automatic",
> BSSID (blank) and no security. Under IPV4 settings I set it to "Shared
> to other computers". Unfortunately I get this when trying to load the
> module with debug:
>
> $ sudo modprobe -v iwlagn debug=0x43fff
> insmod /lib/modules/2.6.38-020638rc7-generic/kernel/drivers/net/wireless/iwlwifi/iwlagn.ko
> 11n_disable=1 debug=0x43fff
> FATAL: Error inserting iwlagn
> (/lib/modules/2.6.38-020638rc7-generic/kernel/drivers/net/wireless/iwlwifi/iwlagn.ko):
> Unknown symbol in module, or unknown parameter (see dmesg)
> [ Â447.551540] iwlagn: Unknown parameter `debug'
>
> $ sudo modprobe -v iwlagn
> insmod /lib/modules/2.6.38-020638rc7-generic/kernel/drivers/net/wireless/iwlwifi/iwlagn.ko
> 11n_disable=1
>
>
> [ Â501.570685] iwlagn: Intel(R) Wireless WiFi Link AGN driver for
> Linux, in-tree:
> [ Â501.570688] iwlagn: Copyright(c) 2003-2010 Intel Corporation
> [ Â501.570760] iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
> [ Â501.570772] iwlagn 0000:03:00.0: setting latency timer to 64
> [ Â501.570809] iwlagn 0000:03:00.0: Detected Intel(R) Centrino(R)
> Advanced-N 6200 AGN, REV=0x74
> [ Â501.580698] iwlagn 0000:03:00.0: device EEPROM VER=0x436, CALIB=0x6
> [ Â501.580703] iwlagn 0000:03:00.0: Device SKU: 0Xb
> [ Â501.580739] iwlagn 0000:03:00.0: Tunable channels: 13 802.11bg, 24
> 802.11a channels
> [ Â501.580836] iwlagn 0000:03:00.0: irq 44 for MSI/MSI-X
> [ Â501.583936] iwlagn 0000:03:00.0: loaded firmware version 9.221.4.1
> build 25532
> [ Â501.584236] cfg80211: Ignoring regulatory request Set by core since
> the driver uses its own custom regulatory domain
> [ Â501.584392] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
>
> Here I create the adhoc network in network manager:
>
> [ Â536.509700] ADDRCONF(NETDEV_UP): wlan0: link is not ready
> [ Â536.858139] cfg80211: Found new beacon on frequency: 2472 MHz (Ch 13) on phy0
> [ Â536.947735] cfg80211: Found new beacon on frequency: 5180 MHz (Ch 36) on phy0
> [ Â537.041220] cfg80211: Found new beacon on frequency: 5200 MHz (Ch 40) on phy0
> [ Â537.079114] cfg80211: Found new beacon on frequency: 5220 MHz (Ch 44) on phy0
> [ Â537.175392] cfg80211: Found new beacon on frequency: 5240 MHz (Ch 48) on phy0
> [ Â538.973811] cfg80211: Found new beacon on frequency: 5745 MHz (Ch
> 149) on phy0
> [ Â539.203969] cfg80211: Found new beacon on frequency: 5785 MHz (Ch
> 157) on phy0
> [ Â539.289182] cfg80211: Found new beacon on frequency: 5805 MHz (Ch
> 161) on phy0
> [ Â571.156548] ADDRCONF(NETDEV_UP): wlan0: link is not ready
> [ Â599.156798] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
> [ Â599.161234] wlan0: Trigger new scan to find an IBSS to join
> [ Â604.131831] wlan0: Trigger new scan to find an IBSS to join
> [ Â607.103522] wlan0: Creating new IBSS network, BSSID 42:dd:e6:af:fb:19
> [ Â607.104488] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
> [ Â607.105407] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
> [ Â608.501173] wlan0: Trigger new scan to find an IBSS to join
> [ Â609.190883] wlan0: no IPv6 routers present
> [ Â613.397068] wlan0: Trigger new scan to find an IBSS to join
> [ Â616.303044] wlan0: Creating new IBSS network, BSSID ae:eb:cb:59:18:ec
> [ Â616.313716] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
> [ Â616.314529] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
> [ Â617.681034] wlan0: Trigger new scan to find an IBSS to join
> [ Â622.736806] wlan0: Trigger new scan to find an IBSS to join
> [ Â625.708399] wlan0: Creating new IBSS network, BSSID 46:b6:a0:1b:c4:7f
> [ Â625.761157] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
> [ Â625.762035] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
> [ Â627.438640] iwlagn 0000:03:00.0: Error sending REPLY_RXON_TIMING:
> time out after 500ms.
> [ Â627.438648] iwlagn 0000:03:00.0: Failed to send timing (-110)!
> [ Â627.438651] ------------[ cut here ]------------
> [ Â627.438668] WARNING: at
> /home/kernel-ppa/COD/linux/drivers/net/wireless/iwlwifi/iwl-core.c:1898
> iwl_mac_change_interface+0x12e/0x130 [iwlcore]()
> [ Â627.438672] Hardware name: 4384BB3
> [ Â627.438674] Modules linked in: nf_nat_h323 nf_conntrack_h323
> nf_nat_pptp nf_conntrack_pptp nf_conntrack_proto_gre nf_nat_proto_gre
> nf_nat_tftp nf_conntrack_tftp nf_nat_sip nf_conntrack_sip nf_nat_irc
> nf_nat_ftp iwlagn iwlcore mac80211 cfg80211 xt_limit xt_tcpudp ipt_LOG
> ipt_MASQUERADE xt_DSCP ipt_REJECT nf_conntrack_irc nf_conntrack_ftp
> xt_state binfmt_misc vboxnetadp vboxnetflt vboxdrv microcode
> parport_pc ppdev iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack
> nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables x_tables
> snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_intel snd_hda_codec
> snd_hwdep snd_pcm snd_seq_midi joydev snd_rawmidi hdaps thinkpad_ec
> snd_seq_midi_event arc4 snd_seq snd_timer uvcvideo videodev
> snd_seq_device psmouse v4l2_compat_ioctl32 thinkpad_acpi tpm_tis tpm
> tpm_bios nvram lp serio_raw parport snd soundcore intel_ips
> snd_page_alloc sha256_generic aesni_intel cryptd aes_x86_64
> aes_generic dm_crypt usbhid hid i915 firewire_ohci ahci drm_kms_helper
> e1000e libahci drm sdhci_pci firewire_core sdhci crc_itu_t
> i2c_algo_bit video [last unloaded: cfg80211]
> [ Â627.438764] Pid: 1203, comm: NetworkManager Not tainted
> 2.6.38-020638rc7-generic #201103020909
> [ Â627.438767] Call Trace:
> [ Â627.438778] Â[<ffffffffa0294c7e>] ?
> iwl_mac_change_interface+0x12e/0x130 [iwlcore]
> [ Â627.438787] Â[<ffffffffa0294c7e>] ?
> iwl_mac_change_interface+0x12e/0x130 [iwlcore]
> [ Â627.438796] Â[<ffffffff81065430>] ? warn_slowpath_common+0x90/0xc0
> [ Â627.438801] Â[<ffffffff8106547a>] ? warn_slowpath_null+0x1a/0x20
> [ Â627.438809] Â[<ffffffffa0294c7e>] ?
> iwl_mac_change_interface+0x12e/0x130 [iwlcore]
> [ Â627.438827] Â[<ffffffffa02589ec>] ?
> ieee80211_runtime_change_iftype+0xdc/0x180 [mac80211]
> [ Â627.438840] Â[<ffffffffa0258b85>] ?
> ieee80211_if_change_type+0xf5/0x120 [mac80211]
> [ Â627.438854] Â[<ffffffffa025b95b>] ?
> ieee80211_change_iface+0x3b/0x130 [mac80211]
> [ Â627.438865] Â[<ffffffffa020a898>] ?
> cfg80211_change_iface+0xe8/0x1c0 [cfg80211]
> [ Â627.438877] Â[<ffffffffa02228f6>] ? cfg80211_wext_siwmode+0xa6/0xf0
> [cfg80211]
> [ Â627.438884] Â[<ffffffff8158a4cb>] ? ioctl_standard_call+0x6b/0xf0
> [ Â627.438889] Â[<ffffffff8158a460>] ? ioctl_standard_call+0x0/0xf0
> [ Â627.438893] Â[<ffffffff81589882>] ? wireless_process_ioctl+0x102/0x130
> [ Â627.438898] Â[<ffffffff8158afe0>] ? ioctl_private_call+0x0/0xa0
> [ Â627.438902] Â[<ffffffff8158afe0>] ? ioctl_private_call+0x0/0xa0
> [ Â627.438907] Â[<ffffffff8158a460>] ? ioctl_standard_call+0x0/0xf0
> [ Â627.438911] Â[<ffffffff8158991c>] ? wext_ioctl_dispatch+0x6c/0x90
> [ Â627.438916] Â[<ffffffff81589b66>] ? wext_handle_ioctl+0x46/0x90
> [ Â627.438922] Â[<ffffffff814c687b>] ? dev_ioctl+0x28b/0x2a0
> [ Â627.438927] Â[<ffffffff814ad25f>] ? sock_ioctl+0xbf/0x280
> [ Â627.438933] Â[<ffffffff811704bd>] ? vfs_ioctl+0x1d/0x50
> [ Â627.438937] Â[<ffffffff81170f79>] ? do_vfs_ioctl+0x69/0x1d0
> [ Â627.438940] Â[<ffffffff81171174>] ? sys_ioctl+0x94/0xa0
> [ Â627.438945] Â[<ffffffff8100c002>] ? system_call_fastpath+0x16/0x1b
> [ Â627.438949] ---[ end trace c7a5b9f525294bcc ]---
> [ Â627.552179] wlan0: Trigger new scan to find an IBSS to join
>
> Hm, not much I can do without recompiling the module with debug
> support? Is there a way I can do this without recompiling the kernel?
>
> Kind regards,
> // Mathias
>

I've tried to recompile just the kernel module, but I get various
errors when I try to do so;


root@host:/usr/src/linux-headers-2.6.38-020638rc7# make mrproper && cp
/boot/config-2.6.38-020638rc7-generic .config && yes "" | make
oldconfig && make prepare && make scripts && make menuconfig
CLEAN .tmp_versions
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
CLEAN .config .config.old include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make[1]: *** No rule to make target `kernel/bounds.c', needed by
`kernel/bounds.s'. Stop.
make: *** [prepare0] Error 2

I suppose I need the kernel source, but it's nowhere to be found here
( http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.38-rc7-natty )
so I'm not sure what to do next.

// Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/