linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ath9k AR9287 freeze linux system
@ 2012-08-28  9:38 Luís Díaz González
  2012-08-28 13:38 ` Mohammed Shafi
  0 siblings, 1 reply; 6+ messages in thread
From: Luís Díaz González @ 2012-08-28  9:38 UTC (permalink / raw)
  To: linux-wireless

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ath9k AR9287 freeze linux system
  2012-08-28  9:38 ath9k AR9287 freeze linux system Luís Díaz González
@ 2012-08-28 13:38 ` Mohammed Shafi
  2012-08-28 13:45   ` Luís Díaz González
  0 siblings, 1 reply; 6+ messages in thread
From: Mohammed Shafi @ 2012-08-28 13:38 UTC (permalink / raw)
  To: Luís Díaz González; +Cc: linux-wireless

Hi,

On Tue, Aug 28, 2012 at 3:08 PM, Luís Díaz González
<luis.hlodwig@gmail.com> wrote:
> 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  ?


>
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
thanks,
shafi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ath9k AR9287 freeze linux system
  2012-08-28 13:38 ` Mohammed Shafi
@ 2012-08-28 13:45   ` Luís Díaz González
  2012-08-28 13:58     ` Mohammed Shafi
  0 siblings, 1 reply; 6+ messages in thread
From: Luís Díaz González @ 2012-08-28 13:45 UTC (permalink / raw)
  To: Mohammed Shafi; +Cc: linux-wireless

El mar, 28-08-2012 a las 19:08 +0530, Mohammed Shafi escribió:
> Hi,
> 
> On Tue, Aug 28, 2012 at 3:08 PM, Luís Díaz González
> <luis.hlodwig@gmail.com> wrote:
> > 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  ?

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

> 
> 
> >
> > 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 majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ath9k AR9287 freeze linux system
  2012-08-28 13:45   ` Luís Díaz González
@ 2012-08-28 13:58     ` Mohammed Shafi
  2012-08-28 15:01       ` Luís Díaz González
  0 siblings, 1 reply; 6+ messages in thread
From: Mohammed Shafi @ 2012-08-28 13:58 UTC (permalink / raw)
  To: Luís Díaz González; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 1647 bytes --]

On Tue, Aug 28, 2012 at 7:15 PM, Luís Díaz González
<luis.hlodwig@gmail.com> wrote:
> El mar, 28-08-2012 a las 19:08 +0530, Mohammed Shafi escribió:
>> Hi,
>>
>> On Tue, Aug 28, 2012 at 3:08 PM, Luís Díaz González
>> <luis.hlodwig@gmail.com> wrote:
>> > 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  ?
>
> 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



>
>>
>>
>> >
>> > 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 majordomo@vger.kernel.org
>> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
>>
>
>



-- 
thanks,
shafi

[-- Attachment #2: 0001-ath9k-Fix-a-crash-in-2-WIRE-btcoex-chipsets.patch --]
[-- Type: application/octet-stream, Size: 3108 bytes --]

From 97244a05cab3bf7cc90db29cdef0fdf6a9a34f3e Mon Sep 17 00:00:00 2001
From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
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 <rmanohar@qca.qualcomm.com>
Cc: Bala Shanmugam <bkamatch@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/gpio.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index bacdb8f..9f83f71 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -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)
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: ath9k AR9287 freeze linux system
  2012-08-28 13:58     ` Mohammed Shafi
@ 2012-08-28 15:01       ` Luís Díaz González
  2012-08-29  5:00         ` Mohammed Shafi
  0 siblings, 1 reply; 6+ messages in thread
From: Luís Díaz González @ 2012-08-28 15:01 UTC (permalink / raw)
  To: Mohammed Shafi; +Cc: linux-wireless

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

luis


El mar, 28-08-2012 a las 19:28 +0530, Mohammed Shafi escribió:
> On Tue, Aug 28, 2012 at 7:15 PM, Luís Díaz González
> <luis.hlodwig@gmail.com> wrote:
> > El mar, 28-08-2012 a las 19:08 +0530, Mohammed Shafi escribió:
> >> Hi,
> >>
> >> On Tue, Aug 28, 2012 at 3:08 PM, Luís Díaz González
> >> <luis.hlodwig@gmail.com> wrote:
> >> > 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  ?
> >
> > 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
> 
> 
> 
> >
> >>
> >>
> >> >
> >> > 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 majordomo@vger.kernel.org
> >> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >>
> >>
> >>
> >
> >
> 
> 
> 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ath9k AR9287 freeze linux system
  2012-08-28 15:01       ` Luís Díaz González
@ 2012-08-29  5:00         ` Mohammed Shafi
  0 siblings, 0 replies; 6+ messages in thread
From: Mohammed Shafi @ 2012-08-29  5:00 UTC (permalink / raw)
  To: Luís Díaz González; +Cc: linux-wireless

Hi Luis,

On Tue, Aug 28, 2012 at 8:31 PM, Luís Díaz González
<luis.hlodwig@gmail.com> wrote:
> 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.

>
> luis
>
>
> El mar, 28-08-2012 a las 19:28 +0530, Mohammed Shafi escribió:
>> On Tue, Aug 28, 2012 at 7:15 PM, Luís Díaz González
>> <luis.hlodwig@gmail.com> wrote:
>> > El mar, 28-08-2012 a las 19:08 +0530, Mohammed Shafi escribió:
>> >> Hi,
>> >>
>> >> On Tue, Aug 28, 2012 at 3:08 PM, Luís Díaz González
>> >> <luis.hlodwig@gmail.com> wrote:
>> >> > 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  ?
>> >
>> > 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
>>
>>
>>
>> >
>> >>
>> >>
>> >> >
>> >> > 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 majordomo@vger.kernel.org
>> >> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>
>



-- 
thanks,
shafi

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-29  5:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-28  9:38 ath9k AR9287 freeze linux system Luís Díaz González
2012-08-28 13:38 ` Mohammed Shafi
2012-08-28 13:45   ` Luís Díaz González
2012-08-28 13:58     ` Mohammed Shafi
2012-08-28 15:01       ` Luís Díaz González
2012-08-29  5:00         ` Mohammed Shafi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).