Skip to contentSkip to conversation

ath9k AR9287 freeze linux system

DISCUSSION Luís Díaz González 2 participants 6 messages Aug 28, 2012 – Aug 29, 2012 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

The last two releases compat-wireless (2012-08-26 and 2012-08-27) freeze my linux system.

I'm not a developer, I'm a simple user

Debian Squeeze 2.6.32
wireless card AR9287

thanks,
luis

#1 lore raw

Hi,

Quoted 2 lines · Luís Díaz González

The last two releases compat-wireless (2012-08-26 and 2012-08-27) freeze my linux system.

thanks for reporting.
*Please provide some information/call trace if you can get(you can attach a photograph of the trace :) )
*like what did you do(sending traffic, suspend resume, keep the station idle?) to see the freeze.
*I would try to recreate in my ubuntu 2.6.32.. kernel.
*are you using btcoex in the driver sudo modprobe ath9k btcoex_enable=1 ?

Quoted 15 lines

I'm not a developer, I'm a simple user

Debian Squeeze 2.6.32
wireless card AR9287

thanks,
luis

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
thanks,
shafi
#2 lore raw
Quoted 7 lines · Mohammed Shafi

Hi,

Quoted 2 lines · Luís Díaz González

The last two releases compat-wireless (2012-08-26 and 2012-08-27) freeze my linux system.

Quoted 7 lines

thanks for reporting.
*Please provide some information/call trace if you can get(you can attach a photograph of the trace :) )
*like what did you do(sending traffic, suspend resume, keep the station idle?) to see the freeze.
*I would try to recreate in my ubuntu 2.6.32.. kernel.
*are you using btcoex in the driver sudo modprobe ath9k btcoex_enable=1 ?

Yes, I'm using btcoex, when I disabled it, all works again.

Quoted 20 lines
Quoted 17 lines

I'm not a developer, I'm a simple user

Debian Squeeze 2.6.32
wireless card AR9287

thanks,
luis

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 16 lines · Luís Díaz González
Quoted 7 lines · Mohammed Shafi

Hi,

Quoted 2 lines · Luís Díaz González

The last two releases compat-wireless (2012-08-26 and 2012-08-27) freeze my linux system.

Quoted 7 lines

thanks for reporting.
*Please provide some information/call trace if you can get(you can attach a photograph of the trace :) )
*like what did you do(sending traffic, suspend resume, keep the station idle?) to see the freeze.
*I would try to recreate in my ubuntu 2.6.32.. kernel.
*are you using btcoex in the driver sudo modprobe ath9k btcoex_enable=1 ?

Quoted 1 line

Yes, I'm using btcoex, when I disabled it, all works again.

please try the attached patch sent today,
http://comments.gmane.org/gmane.linux.kernel.wireless.general/96629
you have go to your compat-wireless folder
cd compat-wireless...
then do patch -p1 < /home/myname/fix-bt.patch

assuming the patch is in /home/myname/fix-bt.patch

do
make clean && make && sudo make install

sudo make unload
sudo modprobe -v ath9k btcoex_enable=1

Quoted 23 lines
Quoted 21 lines
Quoted 18 lines

I'm not a developer, I'm a simple user

Debian Squeeze 2.6.32
wireless card AR9287

thanks,
luis

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
thanks,
shafi

From 97244a05cab3bf7cc90db29cdef0fdf6a9a34f3e Mon Sep 17 00:00:00 2001
From: Mohammed Shafi Shajakhan <[email protected]>
Date: Tue, 28 Aug 2012 11:58:04 +0530
Subject: [PATCH] ath9k: Fix a crash in 2 WIRE btcoex chipsets

Generic timers for BTCOEX functionality is applicable only for 3 WIRE BTCOEX (and MCI) chipsets. Hence btcoex->no_stomp_timer is allocated only 3 WIRE btcoex chipsets and in all the other cases its NULL. Make sure we stop the generic timer only if 'btcoex->hw_timer_enabled' is true(only if its up and running)

Fixes the following crash

	[68757.020454] BUG: unable to handle kernel NULL pointer dereference at 0000000c
	[68757.020916] IP: [<f9b055c3>] ath9k_hw_gen_timer_stop+0x13/0x80 [ath9k_hw]
	[68757.021251] *pde = 00000000
	[68757.024384] EIP: 0060:[<f9b055c3>] EFLAGS: 00010082 CPU: 0
	[68757.024384] EIP is at ath9k_hw_gen_timer_stop+0x13/0x80 [ath9k_hw]
	[68757.024384] EAX: d32d0000 EBX: d32d0000 ECX: 00000000 EDX: 00000000
	[68757.024384] ESI: e67c24c0 EDI: 00000296 EBP: e137be2c ESP: e137be20
	[68757.024384]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
	[68757.024384] CR0: 8005003b CR2: 0000000c CR3: 00b99000 CR4: 000407d0
	[68757.024384] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
	[68757.024384] DR6: ffff0ff0 DR7: 00000400
	[68757.024384] Process kworker/u:2 (pid: 8917, ti=e137a000 task=ea7a6860 task.ti=e137a000)
	[68757.024384] Stack:
	[68757.024384]  c06c4676 d32d0000 e67c24c0 e137be38 f81c9590 e67c1ca0 e137be40 f81c95d9
	[68757.024384]  e137be64 f81cd1c5 00000246 00000002 d32d0000 e67c05e0 e67c1ca0 e67c05e0
	[68757.024384]  00000000 e137beac f81cdfa0 e137be84 00000246 00000246 e67c1ca0 e67c1ca0
	[68757.024384] Call Trace:
	[68757.024384]  [<c06c4676>] ? _raw_spin_lock_irqsave+0x86/0xa0
	[68757.024384]  [<f81c9590>] ath9k_gen_timer_stop+0x10/0x40 [ath9k]
	[68757.024384]  [<f81c95d9>] ath9k_btcoex_stop_gen_timer+0x19/0x20 [ath9k]
	[68757.024384]  [<f81cd1c5>] ath9k_ps_restore+0x85/0x110 [ath9k]
	[68757.024384]  [<f81cdfa0>] ath9k_config+0x220/0x520 [ath9k]
	[68757.024384]  [<f81cd47d>] ? ath9k_flush+0x15d/0x1b0 [ath9k]
	[68757.024384]  [<f85c7ca5>] ieee80211_hw_config+0x135/0x2c0 [mac80211]
	[68757.024384]  [<f860e3c8>] ieee80211_dynamic_ps_enable_work+0x198/0x5f0 [mac80211]
Cc Rajkumar Manoharan <[email protected]>
Cc Bala Shanmugam <[email protected]>
---
 drivers/net/wireless/ath/ath9k/gpio.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath9k/gpio.c +2 -1
index bacdb8f..9f83f71 100644
@@ -341,7 +341,8 @@ void ath9k_btcoex_stop_gen_timer(struct ath_softc *sc)
 {
 	struct ath_btcoex *btcoex = &sc->btcoex;
 
-	ath9k_gen_timer_stop(sc->sc_ah, btcoex->no_stomp_timer);
+	if (btcoex->hw_timer_enabled)
+		ath9k_gen_timer_stop(sc->sc_ah, btcoex->no_stomp_timer);
 }
 
 u16 ath9k_btcoex_aggr_limit(struct ath_softc *sc, u32 max_4ms_framelen)
Signature · 1 line
1.7.0.4
#4 lore raw

I tested the patch, great job, thanks a lot. All works great. I think that coexistence between wifi and bluetooth never worked better. :-)

luis

Quoted 62 lines · Mohammed Shafi
Quoted 16 lines · Luís Díaz González
Quoted 7 lines · Mohammed Shafi

Hi,

Quoted 2 lines · Luís Díaz González

The last two releases compat-wireless (2012-08-26 and 2012-08-27) freeze my linux system.

Quoted 7 lines

thanks for reporting.
*Please provide some information/call trace if you can get(you can attach a photograph of the trace :) )
*like what did you do(sending traffic, suspend resume, keep the station idle?) to see the freeze.
*I would try to recreate in my ubuntu 2.6.32.. kernel.
*are you using btcoex in the driver sudo modprobe ath9k btcoex_enable=1 ?

Quoted 1 line

Yes, I'm using btcoex, when I disabled it, all works again.

please try the attached patch sent today,
http://comments.gmane.org/gmane.linux.kernel.wireless.general/96629
you have go to your compat-wireless folder
cd compat-wireless...
then do patch -p1 < /home/myname/fix-bt.patch

assuming the patch is in /home/myname/fix-bt.patch

do
make clean && make && sudo make install

sudo make unload
sudo modprobe -v ath9k btcoex_enable=1

Quoted 23 lines
Quoted 21 lines
Quoted 18 lines

I'm not a developer, I'm a simple user

Debian Squeeze 2.6.32
wireless card AR9287

thanks,
luis

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Hi Luis,

Quoted 3 lines · Luís Díaz González

I tested the patch, great job, thanks a lot. All works great. I think that coexistence between wifi and bluetooth never worked better. :-)

thanks a lot for reporting the issue! we really appreciate your help for reporting issues and testing them.

sure thanks, if you are interested in various BTCOEX stuff, you can try AR9462 which has some enhanced BTCOEX stuff called MCI.

Quoted 69 lines

luis

Quoted 62 lines · Mohammed Shafi
Quoted 16 lines · Luís Díaz González
Quoted 7 lines · Mohammed Shafi

Hi,

Quoted 2 lines · Luís Díaz González

The last two releases compat-wireless (2012-08-26 and 2012-08-27) freeze my linux system.

Quoted 7 lines

thanks for reporting.
*Please provide some information/call trace if you can get(you can attach a photograph of the trace :) )
*like what did you do(sending traffic, suspend resume, keep the station idle?) to see the freeze.
*I would try to recreate in my ubuntu 2.6.32.. kernel.
*are you using btcoex in the driver sudo modprobe ath9k btcoex_enable=1 ?

Quoted 1 line

Yes, I'm using btcoex, when I disabled it, all works again.

please try the attached patch sent today,
http://comments.gmane.org/gmane.linux.kernel.wireless.general/96629
you have go to your compat-wireless folder
cd compat-wireless...
then do patch -p1 < /home/myname/fix-bt.patch

assuming the patch is in /home/myname/fix-bt.patch

do
make clean && make && sudo make install

sudo make unload
sudo modprobe -v ath9k btcoex_enable=1

Quoted 23 lines
Quoted 21 lines
Quoted 18 lines

I'm not a developer, I'm a simple user

Debian Squeeze 2.6.32
wireless card AR9287

thanks,
luis

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
thanks,
shafi