All of lore.kernel.org
 help / color / mirror / Atom feed
* Question: ath6kl (driver/net/wireless/ath/ath6kl) with debug_mask value
@ 2011-09-07 13:32 Sangwook Lee
  2011-09-08 16:27 ` Kalle Valo
  0 siblings, 1 reply; 5+ messages in thread
From: Sangwook Lee @ 2011-09-07 13:32 UTC (permalink / raw)
  To: linux-wireless

Hi

I am running ath6kl-cleanup git.
If I add debug_mask values with ath6kl.ko as like followings, I get
the success full results,
but without this, "iwlist wlan0 scan" fails.

ath6kl: hw 2.0 fw 3.1.1.149

1) SCAN success with debug values: ( 0xc44,c40,40)
$ insmod ath.ko
$ insmod ath6kl.ko debug_mask=0x40
$ ifconfig wlan0 up
$ iwlist wlan0 scan

2) SCAN failure
$ insmod ath.ko
$ insmod ath6kl.ko
$ ifconfig wlan0 up
$ iwlist wlan0 scan
With this case, there is no coming event "WMI_SCAN_COMPLETE_EVENTID".
After receiving  "ath6kl: WMI_EXTENSION_EVENTID"
iwlist shows error message:
      wlan0     Failed to read scan data : Resource temporarily unavailable


Thanks
Sangwook

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

* Re: Question: ath6kl (driver/net/wireless/ath/ath6kl) with debug_mask value
  2011-09-07 13:32 Question: ath6kl (driver/net/wireless/ath/ath6kl) with debug_mask value Sangwook Lee
@ 2011-09-08 16:27 ` Kalle Valo
  2011-09-09  8:54   ` Sangwook Lee
  0 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2011-09-08 16:27 UTC (permalink / raw)
  To: Sangwook Lee; +Cc: linux-wireless

Hi Sangwook,

On 09/07/2011 04:32 PM, Sangwook Lee wrote:
> I am running ath6kl-cleanup git.

BTW, ath6kl-cleanup.git is not updated anymore. Instead there's now
ath6kl.git which follows wireless-testing. You can find it from
git.kernel.org (when it's up again) or from github.

> If I add debug_mask values with ath6kl.ko as like followings, I get
> the success full results,
> but without this, "iwlist wlan0 scan" fails.
> 
> ath6kl: hw 2.0 fw 3.1.1.149

Hmm, I'm not sure if I have hw 2.0. I try to find one from my "stash" :)

> 1) SCAN success with debug values: ( 0xc44,c40,40)
> $ insmod ath.ko
> $ insmod ath6kl.ko debug_mask=0x40
> $ ifconfig wlan0 up
> $ iwlist wlan0 scan
> 
> 2) SCAN failure
> $ insmod ath.ko
> $ insmod ath6kl.ko
> $ ifconfig wlan0 up
> $ iwlist wlan0 scan
> With this case, there is no coming event "WMI_SCAN_COMPLETE_EVENTID".
> After receiving  "ath6kl: WMI_EXTENSION_EVENTID"
> iwlist shows error message:
>       wlan0     Failed to read scan data : Resource temporarily unavailable

0x40 is ATH6KL_DBG_HTC_RECV. I guess the debug prints slow down the
execution and papers over the bug. At least I can't think of any other
explonation right now.

Before I'm able to find a hw 2.0 device, can you try to debug this more?
When scanning fails can check if ath6kldev_intr_bh_handler() is called
or not? When scanning fails it usually happens because irqs are failing.

Can you share any details about your setup? From linaro.org I assume you
are using an arm board of some sort ;)

Kalle

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

* Re: Question: ath6kl (driver/net/wireless/ath/ath6kl) with debug_mask value
  2011-09-08 16:27 ` Kalle Valo
@ 2011-09-09  8:54   ` Sangwook Lee
       [not found]     ` <CADPsn1Zi20JHmc7EOFCvjDmKWKtHnBCcyxTxWwBK8_vLps_u_w@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Sangwook Lee @ 2011-09-09  8:54 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless

Hi Kalle

On 8 September 2011 17:27, Kalle Valo <kvalo@qca.qualcomm.com> wrote:
> Hi Sangwook,
>
> On 09/07/2011 04:32 PM, Sangwook Lee wrote:
>> I am running ath6kl-cleanup git.
>
> BTW, ath6kl-cleanup.git is not updated anymore. Instead there's now
> ath6kl.git which follows wireless-testing. You can find it from
> git.kernel.org (when it's up again) or from github.
>
Thanks for this info, I will use new git.

>> If I add debug_mask values with ath6kl.ko as like followings, I get
>> the success full results,
>> but without this, "iwlist wlan0 scan" fails.
>>
>> ath6kl: hw 2.0 fw 3.1.1.149
>
> Hmm, I'm not sure if I have hw 2.0. I try to find one from my "stash" :)
>
>> 1) SCAN success with debug values: ( 0xc44,c40,40)
>> $ insmod ath.ko
>> $ insmod ath6kl.ko debug_mask=0x40
>> $ ifconfig wlan0 up
>> $ iwlist wlan0 scan
>>
>> 2) SCAN failure
>> $ insmod ath.ko
>> $ insmod ath6kl.ko
>> $ ifconfig wlan0 up
>> $ iwlist wlan0 scan
>> With this case, there is no coming event "WMI_SCAN_COMPLETE_EVENTID".
>> After receiving  "ath6kl: WMI_EXTENSION_EVENTID"
>> iwlist shows error message:
>>       wlan0     Failed to read scan data : Resource temporarily unavailable
>
> 0x40 is ATH6KL_DBG_HTC_RECV. I guess the debug prints slow down the
> execution and papers over the bug. At least I can't think of any other
> explonation right now.
>
> Before I'm able to find a hw 2.0 device, can you try to debug this more?
> When scanning fails can check if ath6kldev_intr_bh_handler() is called
> or not? When scanning fails it usually happens because irqs are failing.
>
OK, let me debug this point later.

> Can you share any details about your setup? From linaro.org I assume you
> are using an arm board of some sort ;)#
>
Yes, I am using
ARM Cortex A9 (Samsung EXYNOS4),
SDIO Interface
AR6003 Firmware
In details,
 https://wiki.linaro.org/Resources/HowTo/SamsungWlanInOrigen

> Kalle
>

Sangwook

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

* Re: Question: ath6kl (driver/net/wireless/ath/ath6kl) with debug_mask value
       [not found]     ` <CADPsn1Zi20JHmc7EOFCvjDmKWKtHnBCcyxTxWwBK8_vLps_u_w@mail.gmail.com>
@ 2011-10-04 13:22       ` Sangwook Lee
  2011-10-05  9:55         ` Kalle Valo
  0 siblings, 1 reply; 5+ messages in thread
From: Sangwook Lee @ 2011-10-04 13:22 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless

Hi Kalle

I used  git://github.com/kvalo/ath6kl.git for-linville (Sat Oct 1
09:43:09 2011 +0300)
to run AR6003 HW2.0 (hw 2.0 fw 3.1.1.149) in my ARM board.

But I faced booting problem as like the following:
Is there any changes for AR6003 HW2.0 with the latest ath6kl git ?
-----------------------------------------------------------------------
mmc2: queuing unknown CIS tuple 0x01 (3 bytes)
mmc2: queuing unknown CIS tuple 0x1a (5 bytes)
mmc2: queuing unknown CIS tuple 0x1b (8 bytes)
mmc2: queuing unknown CIS tuple 0x14 (0 bytes)
mmc2: queuing unknown CIS tuple 0x80 (1 bytes)
mmc2: queuing unknown CIS tuple 0x81 (1 bytes)
mmc2: queuing unknown CIS tuple 0x82 (1 bytes)
mmc2: new high speed SDIO card at address 0001
ath6kl: target_ver 0x30000384 target_type 0x3 dataset_patch 0x57e884
app_load_addr 0x543180
ath6kl: app_start_override_addr 0x0 board_ext_data_addr 0x57e500
reserved_ram_size 0x1b00
ath6kl: using fw api 1
ath6kl: temporary war to avoid sdio crc error
ath6kl: writing extended board data to 0x57e500 (768 B)
ath6kl: writing board file to 0x541800 (1024 B)
ath6kl: writing otp to 0x543180 (3689 B)
ath6kl: app_start_override_addr 0x0
ath6kl: executing OTP at 0x0
ath6kl: bmi_recv_buf FIFO empty
ath6kl: Unable to read from the device: -22
ath6kl: writing firmware to 0x543180 (100694 B)
ath6kl: bmi communication timeout
ath6kl: Unable to write to the device: -110
ath6kl: Failed to write firmware: -110
ath6kl: Failed to init ath6kl core
ath6kl_sdio: probe of mmc2:0001:1 failed with error -110

--------------------------------------------------------------------------------

Thanks
Sangwook



On 9 September 2011 09:54, Sangwook Lee <sangwook.lee@linaro.org> wrote:
>
> Hi Kalle
>
> On 8 September 2011 17:27, Kalle Valo <kvalo@qca.qualcomm.com> wrote:
> > Hi Sangwook,
> >
> > On 09/07/2011 04:32 PM, Sangwook Lee wrote:
> >> I am running ath6kl-cleanup git.
> >
> > BTW, ath6kl-cleanup.git is not updated anymore. Instead there's now
> > ath6kl.git which follows wireless-testing. You can find it from
> > git.kernel.org (when it's up again) or from github.
> >
> Thanks for this info, I will use new git.
>
> >> If I add debug_mask values with ath6kl.ko as like followings, I get
> >> the success full results,

[snip]

> >> $ insmod ath6kl.ko
> >> $ ifconfig wlan0 up
> >> $ iwlist wlan0 scan
> >> With this case, there is no coming event "WMI_SCAN_COMPLETE_EVENTID".
> >> After receiving  "ath6kl: WMI_EXTENSION_EVENTID"
> >> iwlist shows error message:
> >>       wlan0     Failed to read scan data : Resource temporarily unavailable
> >
[snip]

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

* Re: Question: ath6kl (driver/net/wireless/ath/ath6kl) with debug_mask value
  2011-10-04 13:22       ` Sangwook Lee
@ 2011-10-05  9:55         ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2011-10-05  9:55 UTC (permalink / raw)
  To: Sangwook Lee; +Cc: linux-wireless

On 10/04/2011 04:22 PM, Sangwook Lee wrote:
> Hi Kalle

Hi Sangwook,

> I used  git://github.com/kvalo/ath6kl.git for-linville (Sat Oct 1
> 09:43:09 2011 +0300)
> to run AR6003 HW2.0 (hw 2.0 fw 3.1.1.149) in my ARM board.
> 
> But I faced booting problem as like the following:
> Is there any changes for AR6003 HW2.0 with the latest ath6kl git ?

We don't actively test hw 2.0 anymore, actually I'm not even sure
anymore if I have hw2.0 anywhere. If I find the time and a hw2.0 card,
I'll try to debug this.

Kalle

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

end of thread, other threads:[~2011-10-05  9:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-07 13:32 Question: ath6kl (driver/net/wireless/ath/ath6kl) with debug_mask value Sangwook Lee
2011-09-08 16:27 ` Kalle Valo
2011-09-09  8:54   ` Sangwook Lee
     [not found]     ` <CADPsn1Zi20JHmc7EOFCvjDmKWKtHnBCcyxTxWwBK8_vLps_u_w@mail.gmail.com>
2011-10-04 13:22       ` Sangwook Lee
2011-10-05  9:55         ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.