Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-06 16:05, Guenther Kelleter wrote:
> Instead of the original patch, would you accept an option to only
> choose between STA mode, AP mode w/ latest API fw (default) and AP mode
> with fallback API2 fw (new) for those people who experience crashes with
> latest fw? At least until these issues are finally fixed?
I already removed the STA fw because it has been obsolete for a long
time. I will accept a patch that adds v2 firmware as a fallback until
the current one is fixed. Maybe it would also be worth testing the Ben
Greear's firmware (the candelatech one) to see if that's a suitable
replacement for the old v2 stuff.

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Guenther Kelleter
> -Original Message-
> From: Martin Blumenstingl [mailto:martin.blumensti...@googlemail.com]
> Sent: Monday, July 06, 2015 12:36 PM
> To: Felix Fietkau
> Cc: Guenther Kelleter; openwrt-devel@lists.openwrt.org
> Subject: Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k
> firmwares selectable
> 
> Hi Felix,
> 
> On Mon, Jul 6, 2015 at 12:26 PM, Felix Fietkau  wrote:
> > Instead of adding more options that most people don't know what to do
> > with, please test the current v5 firmware in trunk and provide details
> > about any issues that you find.
> I am not sure which issue Günther is trying to solve, but there ath10k
> firmware crashes for some users: [0] For me the crashes are reproducible even
> with the latest v5 firmware on a QCA9880-BR4A.
> However, older and newer ath10k firmware versions are working fine on a
> QCA9880-2R4E - so it seems that this crash is chip-specific.
> 
> Regards,
> Martin
> 
> 
> [0] https://dev.openwrt.org/ticket/19167


I've tried v5 firmware patch from mailing list. This is the result.

4 fw crashes during boot time:

[   13.18] cfg80211: Calling CRDA to update world regulatory domain
[   13.21] cfg80211: World regulatory domain updated:
[   13.21] cfg80211:  DFS Master region: unset
[   13.22] cfg80211:   (start_freq - end_freq @ bandwidth), 
(max_antenna_gain, max_eirp), (dfs_cac_time)
[   13.23] cfg80211:   (2402000 KHz - 2472000 KHz @ 4 KHz), (N/A, 2000 
mBm), (N/A)
[   13.23] cfg80211:   (2457000 KHz - 2482000 KHz @ 4 KHz), (N/A, 2000 
mBm), (N/A)
[   13.24] cfg80211:   (2474000 KHz - 2494000 KHz @ 2 KHz), (N/A, 2000 
mBm), (N/A)
[   13.25] cfg80211:   (517 KHz - 525 KHz @ 8 KHz), (N/A, 2000 
mBm), (N/A)
[   13.26] cfg80211:   (525 KHz - 533 KHz @ 8 KHz, 16 KHz 
AUTO), (N/A, 2000 mBm), (0 s)
[   13.27] cfg80211:   (549 KHz - 573 KHz @ 16 KHz), (N/A, 2000 
mBm), (0 s)
[   13.28] cfg80211:   (5735000 KHz - 5835000 KHz @ 8 KHz), (N/A, 2000 
mBm), (N/A)
[   13.28] cfg80211:   (5724 KHz - 6372 KHz @ 216 KHz), (N/A, 0 
mBm), (N/A)
[   13.39] PCI: Enabling device :00:00.0 ( -> 0002)
[   13.40] ath10k_pci :00:00.0: pci irq legacy interrupts 0 irq_mode 0 
reset_mode 0
[   13.62] ath10k_pci :00:00.0: Direct firmware load for 
ath10k/cal-pci-:00:00.0.bin failed with error -2
[   13.63] ath10k_pci :00:00.0: Falling back to user helper
[   15.43] ath10k_pci :00:00.0: qca988x hw2.0 (0x4100016c, 0x043222ff) 
fw 10.2.4.70-2 api 5 htt 2.1 wmi 5 cal file max_sta 128
[   15.44] ath10k_pci :00:00.0: debug 0 debugfs 1 tracing 0 dfs 1 
testmode 1
[   15.56] cfg80211: Calling CRDA for country: AW
[   15.56] cfg80211: Regulatory domain changed to country: AW
[   15.57] cfg80211:  DFS Master region: ETSI
[   15.57] cfg80211:   (start_freq - end_freq @ bandwidth), 
(max_antenna_gain, max_eirp), (dfs_cac_time)
[   15.58] cfg80211:   (2402000 KHz - 2482000 KHz @ 4 KHz), (N/A, 2000 
mBm), (N/A)
[   15.59] cfg80211:   (517 KHz - 525 KHz @ 8 KHz, 16 KHz 
AUTO), (N/A, 2000 mBm), (N/A)
[   15.60] cfg80211:   (525 KHz - 533 KHz @ 8 KHz, 16 KHz 
AUTO), (N/A, 2000 mBm), (0 s)
[   15.61] cfg80211:   (549 KHz - 571 KHz @ 16 KHz), (N/A, 2700 
mBm), (0 s)
[   15.69] Ebtables v2.0 registered
[   15.70] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.73] nf_conntrack version 0.5.0 (1971 buckets, 7884 max)
[   15.87] xt_time: kernel timezone is -
[   15.92] PPP generic driver version 2.4.2
[   15.94] NET: Registered protocol family 24
[   15.99] ieee80211 phy1: Atheros AR9340 Rev:3 mem=0xb810, irq=47
[   29.33] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   29.36] jffs2_build_filesystem(): unlocking the mtd device... done.
[   29.36] jffs2_build_filesystem(): erasing all blocks after the end 
marker... 
[   35.14] device eth0 entered promiscuous mode
[   35.18] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   37.29] eth0: link up (1000Mbps/Full duplex)
[   37.36] br-lan: port 1(eth0) entered forwarding state
[   37.36] br-lan: port 1(eth0) entered forwarding state
[   37.37] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   37.46] cfg80211: Calling CRDA for country: DE
[   37.47] cfg80211: Regulatory domain changed to country: DE
[   37.47] cfg80211:  DFS Master region: ETSI
[   37.48] cfg80211:   (start_freq - end_freq @ bandwidth), 
(max_antenna_gain, max_eirp), (dfs_cac_time)
[   37.49] cfg80211:   (240 KHz - 2483000 KHz @ 4 KHz), (N/A, 2000 
mBm), (N/A)
[   37.49] cfg80211:   (515 KHz - 525 KHz @ 8 KHz, 20 KHz 
AUTO), (N/A, 2000 mBm), (N/A)
[   37.50] cfg80211:   (525

Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Guenther Kelleter
Hi Felix 

> -Original Message-
> From: Felix Fietkau [mailto:n...@openwrt.org]
> Sent: Monday, July 06, 2015 12:27 PM
> To: Guenther Kelleter; openwrt-devel@lists.openwrt.org
> Subject: Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k
> firmwares selectable
> 
> On 2015-07-02 13:47, Günther Kelleter wrote:
> > The ath10k firmware version is now a choice in the config menu.
> > Added options for older firmware versions (10.1 and 10.2). It seems
> > that recent firmware versions don't always run properly and this
> > provides the option to select an older (more stable) version instead.
> >
> > Signed-off-by: Günther Kelleter 
> Instead of adding more options that most people don't know what to do with,
> please test the current v5 firmware in trunk and provide details about any
> issues that you find.
> 
> - Felix

The V2 firmware was the only one that didn't crash. We didn't try V5 so far 
because it was released after we made that patch. I'm going to check V5.

Günther
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-06 12:48, Martin Blumenstingl wrote:
> On Mon, Jul 6, 2015 at 12:39 PM, Felix Fietkau  wrote:
>> What's the newest firmware that still works on your card?
>> Also, please report these issues to the ath10k firmware maintainer.
> I think the latest working version was the newest -2 (10.1 branch). I
> can look it up when I have access to the device again (probably this
> weekend).
> "Reporting to the ath10k firmware maintainer" is done by sending an
> email to the ath10k mailing list, or what is the preferred way?
Yes, and Cc kv...@qca.qualcomm.com (Kalle Valo)

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Martin Blumenstingl
On Mon, Jul 6, 2015 at 12:39 PM, Felix Fietkau  wrote:
> What's the newest firmware that still works on your card?
> Also, please report these issues to the ath10k firmware maintainer.
I think the latest working version was the newest -2 (10.1 branch). I
can look it up when I have access to the device again (probably this
weekend).
"Reporting to the ath10k firmware maintainer" is done by sending an
email to the ath10k mailing list, or what is the preferred way?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-06 12:36, Martin Blumenstingl wrote:
> Hi Felix,
> 
> On Mon, Jul 6, 2015 at 12:26 PM, Felix Fietkau  wrote:
>> Instead of adding more options that most people don't know what to do
>> with, please test the current v5 firmware in trunk and provide details
>> about any issues that you find.
> I am not sure which issue Günther is trying to solve, but there ath10k
> firmware crashes for some users: [0]
> For me the crashes are reproducible even with the latest v5 firmware
> on a QCA9880-BR4A.
> However, older and newer ath10k firmware versions are working fine on
> a QCA9880-2R4E - so it seems that this crash is chip-specific.
What's the newest firmware that still works on your card?
Also, please report these issues to the ath10k firmware maintainer.

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Martin Blumenstingl
Hi Felix,

On Mon, Jul 6, 2015 at 12:26 PM, Felix Fietkau  wrote:
> Instead of adding more options that most people don't know what to do
> with, please test the current v5 firmware in trunk and provide details
> about any issues that you find.
I am not sure which issue Günther is trying to solve, but there ath10k
firmware crashes for some users: [0]
For me the crashes are reproducible even with the latest v5 firmware
on a QCA9880-BR4A.
However, older and newer ath10k firmware versions are working fine on
a QCA9880-2R4E - so it seems that this crash is chip-specific.

Regards,
Martin


[0] https://dev.openwrt.org/ticket/19167
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-02 13:47, Günther Kelleter wrote:
> The ath10k firmware version is now a choice in the config menu.
> Added options for older firmware versions (10.1 and 10.2). It seems that
> recent firmware versions don't always run properly and this provides the
> option to select an older (more stable) version instead.
> 
> Signed-off-by: Günther Kelleter 
Instead of adding more options that most people don't know what to do
with, please test the current v5 firmware in trunk and provide details
about any issues that you find.

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-02 Thread Günther Kelleter
The ath10k firmware version is now a choice in the config menu. Added options 
for older firmware versions (10.1 and 10.2). It seems that recent firmware 
versions don't always run properly and this provides the option to select an 
older (more stable) version instead.

Signed-off-by: Günther Kelleter 
---
 package/kernel/mac80211/Makefile | 35 +--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index be26348..1182f14 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -624,13 +624,36 @@ endef
 define KernelPackage/ath10k/config
   if PACKAGE_kmod-ath10k
 
+   choice
+   prompt "ath10k Firmware version"
+   default ATH10K_API4_FW
+
config ATH10K_STA_FW
bool "Firmware optimized for STA operation"
-   default n
help
  Use the ath10k firmware optimized for wireless client instead
  of access point operation.
 
+   config ATH10K_API2_FW
+   bool "Firmware optimized for AP operation (v10.1 / API v2)"
+   help
+ Use the ath10k firmware from the 10.1 SDK using API v2 
optimized
+ for access point operation
+
+   config ATH10K_API3_FW
+   bool "Firmware optimized for AP operation (v10.2 / API v3)"
+   help
+ Use the ath10k firmware from the 10.2 SDK using API v3 
optimized
+ for access point operation
+
+   config ATH10K_API4_FW
+   bool "Firmware optimized for AP operation (v10.2.4 / API v4)"
+   help
+ Use the ath10k firmware from the 10.2.4 SDK using API v4 
optimized
+ for access point operation
+
+   endchoice
+
   endif
 endef
 
@@ -1862,7 +1885,15 @@ ifeq ($(CONFIG_ATH10K_STA_FW),y)
$(INSTALL_DATA) \

$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/main/firmware-2.bin_999.999.0.636
 \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
-else
+else ifeq ($(CONFIG_ATH10K_API2_FW),y)
+   $(INSTALL_DATA) \
+   
$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/10.1/firmware-2.bin_10.1.467.2-1
 \
+   $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
+else ifeq ($(CONFIG_ATH10K_API3_FW),y)
+   $(INSTALL_DATA) \
+   
$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/10.2/firmware-3.bin_10.2-00082-4-2
 \
+   $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-3.bin
+else ifeq ($(CONFIG_ATH10K_API4_FW),y)
$(INSTALL_DATA) \

$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/10.2.4/firmware-4.bin_10.2.4.45
 \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-4.bin
-- 
2.4.4.88.gac2ab0d
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel