Re: [2.6.26-rc5] iwlwifi 4965 not working - last on 2.6.23

Previous thread: bug? acpi p-state + ondemand keeps dropping max freq by Kok, Auke on Thursday, June 5, 2008 - 6:30 pm. (6 messages)

Next thread: [PATCH -mm 00/14] bootmem rewrite v4 by Johannes Weiner on Thursday, June 5, 2008 - 6:49 pm. (5 messages)
To: <linux-kernel@...>
Date: Thursday, June 5, 2008 - 6:39 pm

Hello,
according to http://www.kernel.org/pub/linux/docs/lkml/reporting-bugs.html
[1.] One line summary of the problem:
[2.6.26-rc5] iwlwifi 4965 not working - last on 2.6.23

[2.] Full description of the problem/report:
linux: gentoo
kernel vanilla-sources-2-6-26-rc5
laptop: Asus S96S
WiFi: intel 4695
WiFi not working.
In the same config, but with gentoo-sources-2.6.23 WiFi working well.

dmesg - 2.6.23
iwl4965: Intel(R) Wireless WiFi Link 4965AGN driver for Linux, 1.2.25ds
iwl4965: Copyright(c) 2003-2007 Intel Corporation
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 21
PCI: Setting latency timer of device 0000:04:00.0 to 64
iwl4965: Detected Intel Wireless WiFi Link 4965AGN
wmaster0: Selected rate control algorithm 'iwl-4965-rs'
...
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 21
PM: Writing back config space on device 0000:04:00.0 at offset 1 (was 100102,
writing 100106)
iwl4965: Tunable channels: 13 802.11bg, 19 802.11a channels
ADDRCONF(NETDEV_UP): wlan0: link is not ready
r8169: eth0: link up
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:06:00:35
wlan0: RX authentication from 00:01:e3:06:00:35 (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:01:e3:06:00:35
wlan0: authentication frame received from 00:01:e3:06:00:35, but not in
authenticate state - ignored
wlan0: RX AssocResp from 00:01:e3:06:00:35 (capab=0x11 status=0 aid=2)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present

dmesg 2.6.26
iwl4965: Intel(R) Wireless WiFi Link 4965AGN driver for Linux, 1.2.26kds
iwl4965: Copyright(c) 2003-2008 Intel Corporation
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:04:00.0 to 64
iwl4965: Detected Intel Wireless WiFi Link 4965AGN
iwl4965: Tunable channels: 13 802.11bg, 19 802.11a channels
phy0: Selected rate control algorithm 'iwl-4965-rs'
ACPI: PCI i...

To: Michał Kudła <michal.kudla@...>
Cc: <linux-kernel@...>, <linux-wireless@...>
Date: Friday, June 6, 2008 - 6:47 am

(cc linux-wireless)

--

To: Andrew Morton <akpm@...>
Cc: Michał Kudła <michal.kudla@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Tuesday, June 10, 2008 - 10:31 pm

Looks like a rfkill related problem. Can you please try this patch?
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1673

Thanks,
-yi

--

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Friday, June 13, 2008 - 1:37 pm

Hi,

laptok ~ # modprobe -rv iwl4965
laptok ~ # modprobe -v iwl4965 debug=0x20002
laptok ~ # dmesg >dmesg-`uname -r`_`date +%F`.txt
laptok iwlwifi # ls -1
dmesg-2.6.23-gentoo-r2_2008-06-13.txt
dmesg-2.6.24.7_2008-06-13.txt
dmesg-2.6.25-gentoo-r4_2008-06-13.txt
dmesg-2.6.26-rc5_2008-06-13.txt

results:
http://michal.kudla.googlepages.com/dmesg-debug0x20002.tar.gz

--

To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Sunday, June 15, 2008 - 9:51 pm

iwl4965: U iwl4965_radio_kill_sw Manual SW RF KILL set to: RADIO OFF
iwl4965: I iwl4965_rx_card_state_notif Card state received: HW:On
SW:Kill
iwl4965: U iwl4965_mac_config leave - radio disabled
iwl4965: Error sending REPLY_TX_PWR_TABLE_CMD: enqueue_hcmd failed: -5
iwl4965: U iwl4965_bg_rf_kill Can not turn radio back on - disabled by
SW switch
iwl4965: Error sending REPLY_WEPKEY: enqueue_hcmd failed: -5

Your radio is disabled by the software rf_kill switch. Please do a

$ echo 0 > /sys/bus/pci/drivers/iwl4965/<dev id>/rfkill\:rfkill0/state

I wonder if you (or some application) did something like a `iwconfig
wlan0 txpower off` so that the radio is disabled. Maybe you can try
`iwconfig wlan0 txpower on`?

Thanks,
-yi

--

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 16, 2008 - 2:21 pm

[Empty message]
To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 16, 2008 - 9:11 pm

mac80211 in those (old) kernels doesn't indicate to switch the SW
rf_kill on with user sets txpower off.

Thanks,
-yi

--

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Sunday, June 22, 2008 - 11:30 pm

Hi,
I installed new version - 2.6.26-rc7.

Still don't work

If my distro (Gentoo) is conflicted, please point to proper distro

My dmesg
http://michal.kudla.googlepages.com/dmesg-2.6.26-rc7_2008-06-23.txt

My console log

Password:
Last login: Mon Jun 23 04:58:21 CEST 2008 on tty1
laptok ~ # modprobe -rv iwl4965
rmmod /lib/modules/2.6.26-rc7/kernel/drivers/net/wireless/iwlwifi/iwl4965.ko
rmmod /lib/modules/2.6.26-rc7/kernel/drivers/net/wireless/iwlwifi/iwlcore.ko
rmmod /lib/modules/2.6.26-rc7/kernel/net/mac80211/mac80211.ko
laptok ~ # modprobe -v iwl4965 debug=3D0x20002
insmod /lib/modules/2.6.26-rc7/kernel/net/mac80211/mac80211.ko
insmod /lib/modules/2.6.26-rc7/kernel/drivers/net/wireless/iwlwifi/iwlcore.=
ko
insmod /lib/modules/2.6.26-rc7/kernel/drivers/net/wireless/iwlwifi/iwl4965.=
ko=20
debug=3D0x20002
laptok ~ # iwconfig wlan0 txpower on
laptok ~ # /etc/init.d/net.wlan0 restart
* Service net.wlan0 starting
SIOCSIFFLAGS: No such device
SIOCSIFFLAGS: No such device
SIOCSIFFLAGS: No such device
Failed to configure wireless for wlan0 =20
[ !! ] * ERROR: net.wlan0 failed to start
laptok ~ # dmesg >dmesg-`uname -r`_`date +%F`.txt
laptok ~ # cat /sys/bus/pci/drivers/iwl4965/0000\:04\:00.0/[TAB key]
antenna ieee80211:phy1/ resource0
broken_parity_status input:input5/ retry_rate
bus/ irq rfkill:rfkill1/
channels local_cpulist rs_window
class local_cpus statistics
config measurement status
device modalias subsystem/
driver/ msi_bus subsystem_device
dump_errors net:wlan0/ subsystem_vendor
dump_events net:wmaster0/ temperature
enable power/ tx_power
filter_flags power_level uevent
flags resource vendor
laptok ~ #=20
cat /sys/bu...

To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 23, 2008 - 1:05 am

Oops, you should echo 1 instead.

Thanks,
-yi

--

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 23, 2008 - 1:32 am

Hi,
With "0" and "1" result the same - failed.

--

To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 23, 2008 - 1:52 am

[Empty message]
To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 23, 2008 - 3:03 pm

Hi,
If I reload kernel module, I get rfkill[n] with new [n].
rfkill0
rfkill1
rfkill2
After reloading I always get 0 int state
/sys/bus/pci/drivers/iwl4965/0000\:04\:00.0/rfkill\:rfkill2/state
0

I attached files form console log and dmesg
console-rfkill-0.txt
dmesg-2.6.26-rc7_2008-06-23-rfkill-0.txt
console-rfkill-1.txt
dmesg-2.6.26-rc7_2008-06-23-rfkill-1.txt

To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 23, 2008 - 10:41 pm

On Mon, 2008-06-23 at 21:03 +0200, Micha

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 23, 2008 - 11:37 pm

Hi,
ok, i pached.
Results (failed) in attached files:
console-rfkill-1.patch.txt
dmesg-2.6.26-rc7_2008-06-24-rfkill-1.patch.txt

To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Monday, June 23, 2008 - 11:51 pm

Looks like the wireless config scripts in your distro did something
(probably txpower off) to disable the SW radio. Can you try the
following commands after wlan0 restart?

$ cat /sys/bus/pci/drivers/iwl4965/0000\:04\:00.0/rfkill\:rfkill1/state
$ echo 1 > /sys/bus/pci/drivers/iwl4965/0000\:04\:00.0/rfkill
\:rfkill1/state
$ ifconfig wlan0 up

Thanks,
-yi

--

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Sunday, July 6, 2008 - 4:44 pm

Hi,
with new build -rc9 iwl4965 still don't work.
I don't know, witch distro I should use to check, that current kernel and my
WiFi is OK.

I returned to good 2.6.24-gentoo-r8

--

To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Sunday, July 6, 2008 - 9:45 pm

don't see any other report on this. Could you please file a bug on
bughost.org so we can track it there?

Thanks,
-yi

--

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Friday, June 27, 2008 - 2:01 pm

Hi,
my WiFi still don't wokrk
Now, I have new kernel 2.6.26-rc8.

Should I patch again this kernel?
Is good patch for rc7 for rc8?

--

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Tuesday, June 24, 2008 - 2:12 am

Hi,
I do
ifconfig wlan0 up

results in files:
console-frkill-1-iwconfig.txt
dmesg-2.6.26-rc7_2008-06-24-rfkill-1-ifconfig.txt
net - script config
net.lo - run script

How to run my wifi?

To: Zhu Yi <yi.zhu@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Wednesday, June 11, 2008 - 3:17 pm

Hi,
Still don't work.
I have tested this patch with and without RFKILL kernel settings
Compressed result files:
config-2.6.26-rc5-no-rfkill.txt
config-2.6.26-rc5-rfkill.txt
dmesg-2.6.26-rc5-no-rfkill.txt
dmesg-2.6.26-rc5-rfkill.txt
are in
http://michal.kudla.googlepages.com/iwlwifi-problem-with-patch-Zhu-Yi.ta...

--

To: Michał Kudła <michal.kudla@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-wireless@...>
Date: Friday, June 13, 2008 - 3:54 am

Can you please load the module with "debug=0x20002" and attached the
dmesg?

Thanks,
-yi

--

To: Andrew Morton <akpm@...>, John W. Linville <linville@...>
Cc: <linux-kernel@...>, <linux-wireless@...>
Date: Friday, June 6, 2008 - 3:37 pm

I checked:
- vanilla-sources-2.6.24.7 (works),
- gentoo-sources-2.6.25-r4 (don't work)

I uploaded files:
.config-2.6.23
.config.2.6.24.7
.config.2.6.25-gentoo-r4
.config-2.6.26
dmesg-2.6.23
dmesg-2.6.24.txt
dmesg-2.6.25.txt
dmesg-2.6.26
http://michal.kudla.googlepages.com/iwlwifi-problem-2.bz2

more infos about 2.6.25 anf iwlwifi:
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1657
http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=218565
--

To: Michał Kudła <michal.kudla@...>
Cc: <linux-kernel@...>, <linux-wireless@...>, John W. Linville <linville@...>
Date: Friday, June 6, 2008 - 6:47 am

[Added some CCs.]

--
"Premature optimization is the root of all evil." - Donald Knuth
--

Previous thread: bug? acpi p-state + ondemand keeps dropping max freq by Kok, Auke on Thursday, June 5, 2008 - 6:30 pm. (6 messages)

Next thread: [PATCH -mm 00/14] bootmem rewrite v4 by Johannes Weiner on Thursday, June 5, 2008 - 6:49 pm. (5 messages)