Re: QCA6174 hw2.1?

2015-05-21 Thread Gabriele Martino
I'm using the kvalo's kernel (4.1-rc3) without the patch, sometimes the
adapter loses connection but it's bearable.
I'll try that patch later. Killer N1525 on Alienware 15.

OT: Anton, does the headphone jack work correctly on your Alienware 15?
I sent a patch to the ALSA team about that.

On 21/05/2015 07:29, Anton Romanov wrote:
 Works fine for me with this patch
 https://patchwork.kernel.org/patch/6387631/  at least
 I am currently using self-extracted firmware but the one in the pr for
 ath10k-firmware worked fine as well iirc.
 I'm using that on Alienware 15 laptop with Killer N1525

 On Wed, May 20, 2015 at 8:17 AM, Jason H jh...@gmx.com wrote:
 I just wanted to check in and see what the status of support was for this 
 hardware. I saw a few messages since I last posted.
 I also need Linux 4 kernel for other issues with the hardware.

 Thanks!


___
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k


ath10k: freeze after disconnection on killer1525

2015-05-11 Thread Gabriele Martino
Hi,
I'm using a Killer 1525 with hw2.1 firmware, and sometimes it stop working.
I can get it working again disconnecting and reconnecting, but sometimes
on disconnection it freezes for a long time:

[ 2740.035190] dmar: DRHD: handling fault status reg 2
[ 2740.035195] dmar: DMAR:[DMA Read] Request device [03:00.0] fault addr
ffbeb000
   DMAR:[fault reason 06] PTE Read access is not
set   
[ 2797.979143] wlp3s0: deauthenticating from 64:31:50:e9:1c:71 by local
choice (Reason: 3=DEAUTH_LEAVING)
[ 2800.979030] ath10k_pci :03:00.0: failed to set PS Mode 0 for vdev
0: -11
[ 2800.979034] ath10k_pci :03:00.0: failed to setup powersave: -11
[ 2800.979035] ath10k_pci :03:00.0: failed to setup ps on vdev 0: -11
[ 2805.979025] ath10k_pci :03:00.0: failed to flush transmit queue
(skip 0 ar-state 1): 0
[ 2808.979072] ath10k_pci :03:00.0: failed to install key for vdev 0
peer 64:31:50:e9:1c:71: -11
[ 2808.979078] wlp3s0: failed to remove key (0, 64:31:50:e9:1c:71) from
hardware (-11)
[ 2811.979110] ath10k_pci :03:00.0: failed to delete peer
64:31:50:e9:1c:71 for vdev 0: -11
[ 2811.979116] [ cut here ]
[ 2811.979121] WARNING: CPU: 4 PID: 1084 at net/mac80211/sta_info.c:911
__sta_info_destroy_part2+0x1b3/0x210()
[ 2811.979122] Modules linked in: bbswitch(O) joydev uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_core rtsx_pci_sdmmc
mmc_core rtsx_pci_ms memstick x86_pkg_temp_thermal intel_powerclamp
iTCO_wdt iTCO_vendor_support dell_wmi sparse_keymap kvm_intel kvm
snd_hda_codec_hdmi snd_hda_codec_ca0132 ath3k btusb crct10dif_pclmul
crc32_pclmul btbcm crc32c_intel btintel bluetooth ghash_clmulni_intel
snd_soc_rt5640 aesni_intel ath10k_pci snd_hda_intel regmap_i2c
snd_soc_rl6231 snd_soc_core ath10k_core aes_x86_64 glue_helper lrw
ablk_helper snd_hda_controller alx snd_hda_codec rtsx_pci mdio cryptd
hid_generic ath psmouse snd_hwdep microcode ehci_pci snd_hda_core
snd_compress lpc_ich serio_raw efivars ehci_hcd shpchp mfd_core snd_pcm
int3403_thermal wmi int3402_thermal i2c_designware_platform
int340x_thermal_zone
[ 2811.979154]  i2c_designware_core spi_pxa2xx_platform int3400_thermal
evdev acpi_thermal_rel acpi_pad vboxnetflt(O) vboxnetadp(O) vboxdrv(O)
snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_timer snd
uinput ftdi_sio usbserial coretemp tun efivarfs
[ 2811.979165] CPU: 4 PID: 1084 Comm: wpa_supplicant Tainted: G   
W  O4.1.0-rc1-wl-ath+ #5
[ 2811.979167] Hardware name: Alienware Alienware 15/Alienware 15, BIOS
A03 03/26/2015
[ 2811.979168]   819b8725 8167e953

[ 2811.979170]  81046437 8804150c9000 8804181906a0
880418df27c0
[ 2811.979172]  0001  8163c543

[ 2811.979174] Call Trace:
[ 2811.979178]  [8167e953] ? dump_stack+0x47/0x67
[ 2811.979181]  [81046437] ? warn_slowpath_common+0x77/0xb0
[ 2811.979183]  [8163c543] ? __sta_info_destroy_part2+0x1b3/0x210
[ 2811.979186]  [8163c7f5] ? __sta_info_flush+0xe5/0x180
[ 2811.979189]  [8166b785] ? ieee80211_set_disassoc+0xb5/0x3a0
[ 2811.979191]  [8167012f] ? ieee80211_mgd_deauth+0xef/0x210
[ 2811.979194]  [8162d089] ? cfg80211_mlme_deauth+0x69/0x80
[ 2811.979198]  [816176a1] ? nl80211_deauthenticate+0xd1/0x110
[ 2811.979200]  [815557b3] ? genl_family_rcv_msg+0x193/0x360
[ 2811.979202]  [81555980] ? genl_family_rcv_msg+0x360/0x360
[ 2811.979203]  [815559f9] ? genl_rcv_msg+0x79/0xc0
[ 2811.979205]  [81554fe8] ? netlink_rcv_skb+0xa8/0xd0
[ 2811.979206]  [8155560f] ? genl_rcv+0x1f/0x30
[ 2811.979210]  [815547a2] ? netlink_unicast+0x102/0x180
[ 2811.979212]  [81554d16] ? netlink_sendmsg+0x4f6/0x610
[ 2811.979216]  [8151a42d] ? ___sys_sendmsg+0x2ad/0x2d0
[ 2811.979218]  [81050c02] ? recalc_sigpending+0x12/0x50
[ 2811.979220]  [810515c8] ? __set_task_blocked+0x28/0x70
[ 2811.979222]  [810539fe] ? get_signal+0x56e/0x670
[ 2811.979224]  [81053c80] ? __set_current_blocked+0x30/0x50
[ 2811.979226]  [8100e478] ? __restore_xstate_sig+0x88/0x620
[ 2811.979228]  [810024d8] ? do_signal+0x168/0xb40
[ 2811.979230]  [8151ac69] ? __sys_sendmsg+0x39/0x70
[ 2811.979233]  [81685e1b] ? system_call_fastpath+0x16/0x6e
[ 2811.979234] ---[ end trace ed7bc926bf7504f8 ]---
[ 2814.979033] ath10k_pci :03:00.0: failed to recalculate rts/cts
prot for vdev 0: -11
[ 2817.979043] ath10k_pci :03:00.0: failed to set protection mode 0
on vdev 0: -11
[ 2820.979041] ath10k_pci :03:00.0: failed to set erp slot for vdev
0: -11
[ 2823.979104] ath10k_pci :03:00.0: failed to set preamble for vdev
0: -11
[ 2826.979041] ath10k_pci :03:00.0: faield to down vdev 0: -11
[ 2829.979079] ath10k_pci :03:00.0: failed to submit vdev param txbf
0x0: -11
[ 2829.979083] ath10k_pci 

Re: QCA6174 hw2.1?

2015-04-27 Thread Gabriele Martino
On 27/04/2015 16:00, Moritz Morawietz wrote:
 Hi!

 I have the same problems with my card (also a Killer N1525). It seems
 you've done it, but i can't figure out how.

 Do i need to build and use kvalo's kernel, or is it enough to build
 the modules ath10k_core  ath10k_pci?
 I'm a bit afraid of compiling the whole kernel ^^
 output of uname -a:
 Linux companion 4.0.0-2-ARCH #1 SMP PREEMPT Tue Apr 14 07:14:46 CEST
 2015 x86_64 GNU/Linux
The modules should be enough. Tell us if it works.
Compiling a whole kernel isn't too hard if you already have a working
configuration.

 I have the disassembly.py, but cannot find the dissect.py, can you
 provide the link? Or, even better, the assembled files?
I won't upload the assembled files now, I don't know if I can get
licensing issues.
You can find the dissect.py script here:
http://lists.infradead.org/pipermail/ath10k/2015-April/005074.html

Good luck!

Regards,
Gabriele


___
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k


Re: QCA6174 hw2.1?

2015-04-26 Thread Gabriele Martino
Hi Corin,
the dissect.py script seems to work better than the disassemble.py:

[ 6483.455435] ath10k_pci :03:00.0: pci irq msi-x interrupts 8
irq_mode 0 reset_mode 0
[ 6483.600747] ath10k_pci :03:00.0: Direct firmware load for
ath10k/cal-pci-:03:00.0.bin failed with error -2
[ 6484.772417] ath10k_pci :03:00.0: firmware crashed! (uuid n/a)
[ 6484.772433] ath10k_pci :03:00.0: qca6174 hw2.1 (0x0501,
0x003405ff) fw killer-n1525-fw api 4 htt 0.0 wmi 4 cal otp max_sta 32
[ 6484.772435] ath10k_pci :03:00.0: debug 1 debugfs 0 tracing 0 dfs
0 testmode 0
[ 6484.77] ath10k_pci :03:00.0: firmware register dump:
[ 6484.77] ath10k_pci :03:00.0: [00]: 0x0501 0x15B3
0x0095186B 0x00955B31
[ 6484.77] ath10k_pci :03:00.0: [04]: 0x0095186B 0x00060130
0x0010 0x0040AF04
[ 6484.77] ath10k_pci :03:00.0: [08]: 0x0018 0x0001
0x0001 0x00412250
[ 6484.77] ath10k_pci :03:00.0: [12]: 0x0009 0x
0x0096C09C 0x0096C0A7
[ 6484.77] ath10k_pci :03:00.0: [16]: 0x0096BDBC 0x009286B6
0x 0x
[ 6484.77] ath10k_pci :03:00.0: [20]: 0x4095186B 0x0040E160
0x0041F82C 0x0001
[ 6484.77] ath10k_pci :03:00.0: [24]: 0x80936238 0x0040E1C0
0x 0xC095186B
[ 6484.77] ath10k_pci :03:00.0: [28]: 0x80936361 0x0040E1E0
0x 0x0041C8DC
[ 6484.77] ath10k_pci :03:00.0: [32]: 0x80934A67 0x0040E200
0x00436DF0 0x0040E250
[ 6484.77] ath10k_pci :03:00.0: [36]: 0x809A5C92 0x0040E250
0x004275B0 0x0001
[ 6484.77] ath10k_pci :03:00.0: [40]: 0x809A5CEA 0x0040E290
0x00426F40 0x0004
[ 6484.77] ath10k_pci :03:00.0: [44]: 0x809A5DCA 0x0040E2B0
0x00426F40 0x0041C8DC
[ 6484.77] ath10k_pci :03:00.0: [48]: 0x800A0909 0x0040E2D0
0x00426F40 0x004275A0
[ 6484.77] ath10k_pci :03:00.0: [52]: 0x800A024A 0x0040E2F0
0x0041ABB0 0x00420440
[ 6484.77] ath10k_pci :03:00.0: [56]: 0x809287D9 0x0040E310
0x 0x0040
[ 6485.765040] ath10k_pci :03:00.0: failed to receive control
response completion, polling..
[ 6486.765027] ath10k_pci :03:00.0: ctl_resp never came in (-110)
[ 6486.765032] ath10k_pci :03:00.0: failed to connect to HTC: -110
[ 6486.828658] ath10k_pci :03:00.0: could not init core (-110)
[ 6486.828689] ath10k_pci :03:00.0: could not probe fw (-110)
[ 6486.831175] ath10k_pci :03:00.0: cannot restart a device that
hasn't been started

Well, at least it loads correctly. This should be the firmware crash
fixed in the patches, it's time to test kvalo's kernel sources.


On 26/04/2015 05:51, Corin Lawson wrote:
 Hi Gabriele,

 I think we have the same card (the vendor and device ids are the
 determining factor):

 $ lspci -n -s 05:00.0
 05:00.0 0280: 168c:003e (rev 20)

 Without the skip_otp option I get this in dmesg:

 [18396.622576] ath10k_pci :05:00.0: pci irq msi interrupts 1
 irq_mode 0 reset_mode 0
 [18396.768593] ath10k_pci :05:00.0: Direct firmware load for
 ath10k/cal-pci-:05:00.0.bin failed with error -2
 [18396.847975] ath10k_pci :05:00.0: otp calibration failed: 3
 [18396.847977] ath10k_pci :05:00.0: failed to run otp: -22
 [18396.847978] ath10k_pci :05:00.0: could not init core (-22)
 [18396.847995] ath10k_pci :05:00.0: could not probe fw (-22)

 Which is different to your messages. I'm taking a guess here, but
 those DMAR messages seem to indicate that the firmware is attempting
 to write to the wrong part of memory (i.e. wrong firmware).

 Using kvalo's kernel fork is probably a good step (it contains those
 necessary patches). If you still don't get it working, then my only
 other idea is to try that dissect.py gist I mentioned previously. Here
 are the commands that worked for me:

 # python dissect.py 
 drivers/Production/Windows8.1-x64/k1525w81/qca61x420.bin
 # python assemble.py killer-n1525-fw 0 fw-2.bin fw-1.bin 4 
 /lib/firmware/ath10k/QCA6174/hw2.1/firmware-4.bin

 The dissect.py script produced fw-1.bin which is the otp file and
 fw-2.bin which is the correct firmware (don't quote me on that, but it
 worked for me). As for your board.bin file, you need to check the .inf
 file that comes with your drivers. I'm not sure what the structure of
 that file is... for all I know I could be using the wrong board
 file...

 I hope this helps, otherwise you've reached the limits of my
 experience :) Maybe someone else on the list has a better idea?

 Cheers,
 Corin


 On Sat, Apr 25, 2015 at 10:58 PM, Gabriele Martino g.mart...@gmx.com wrote:
 On 25/04/2015 05:47, Corin Lawson wrote:
 I also had problems with calibration, I had to pass skip_otp=y to the 
 module:

 $ cat /etc/modprobe.d/ath10k.conf
 options ath10k_core skip_otp=y
 Hi Corin,
 I removed ath10k_pci, ath10k_core and ath before loading ath10k_core
 with skip_otp=1, but nothing happened:

 [ 1808.473874] ath10k_pci :03:00.0: pci irq msi-x interrupts 8
 irq_mode 0 reset_mode 0

Re: QCA6174 hw2.1?

2015-04-26 Thread Gabriele Martino
Just tried the kvalo's kernel.
NetworkManager connected flawlessly at boot to my WPA2 home network on
2.4GHz. Will try 5GHz later.
iwconfig reports a fixed 1Mb/s bitrate, but I can copy files to my nas
(smb share) at about 3.3MB/s.
That's a reasonable speed for b/g wireless.

iwconfig:
wlp3s0IEEE 802.11abgn  ESSID:W-I-SEE-YOU-N 
  Mode:Managed  Frequency:2.412 GHz  Access Point:
40:16:7E:2C:79:90  
  Bit Rate=1 Mb/s   Tx-Power=20 dBm  
  Retry short limit:7   RTS thr:off   Fragment thr:off
  Encryption key:off
  Power Management:on
  Link Quality=59/70  Signal level=-51 dBm 
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:42   Missed beacon:0

iwlist scan (part of):
wlp3s0Scan completed :
  Cell 01 - Address: 40:16:7E:2C:79:90
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=60/70  Signal level=-50 dBm 
Encryption key:on
ESSID:W-I-SEE-YOU-N
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
  24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0005244f5a5d
Extra: Last beacon: 33ms ago
IE: Unknown: 000D572D492D5345452D594F552D4E
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK

dmesg output:
[2.212106] ath10k_pci :03:00.0: enabling device ( - 0002)
[2.212558] ath10k_pci :03:00.0: pci irq msi-x interrupts 8
irq_mode 0 reset_mode 0
[2.368318] ath10k_pci :03:00.0: Direct firmware load for
ath10k/cal-pci-:03:00.0.bin failed with error -2
[2.368971] ath10k_pci :03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:003e:1a56:1525.bin failed with error -2
[2.368974] ath10k_pci :03:00.0: failed to load spec board file,
falling back to generic: -2
[2.369252] ath10k_pci :03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/firmware-5.bin failed with error -2
[2.369270] ath10k_pci :03:00.0: could not fetch firmware file
'ath10k/QCA6174/hw2.1/firmware-5.bin': -2
[3.559021] ath10k_pci :03:00.0: qca6174 hw2.1 (0x0501,
0x003405ff, 168c:003e:1a56:1525 fallback) fw killer-n1525-fw api 4 htt
3.0 wmi 4 cal otp max_sta 32
[3.559024] ath10k_pci :03:00.0: debug 1 debugfs 0 tracing 0 dfs
0 testmode 0
[3.623733] ath: EEPROM regdomain: 0x6c
[3.623735] ath: EEPROM indicates we should expect a direct regpair map
[3.623736] ath: Country alpha2 being used: 00
[3.623737] ath: Regpair used: 0x6c
[3.638102] ath10k_pci :03:00.0 wlp3s0: renamed from wlan0
[7.523617] ath10k_pci :03:00.0: no channel configured; ignoring
frame(s)!
[7.627173] ath10k_pci :03:00.0: no channel configured; ignoring
frame(s)!
[   12.149947] wlp3s0: authenticate with 40:16:7e:2c:79:90
[   12.183915] wlp3s0: send auth to 40:16:7e:2c:79:90 (try 1/3)
[   12.185559] wlp3s0: authenticated
[   12.186043] wlp3s0: associate with 40:16:7e:2c:79:90 (try 1/3)
[   12.189402] wlp3s0: RX AssocResp from 40:16:7e:2c:79:90 (capab=0x411
status=0 aid=3)
[   12.192174] wlp3s0: associated
[  313.912952] wlp3s0: AP 40:16:7e:2c:79:90 changed bandwidth, new
config is 2412 MHz, width 1 (2412/0 MHz)
[  313.912955] wlp3s0: AP 40:16:7e:2c:79:90 changed bandwidth in a way
we can't support - disconnect
[  318.709453] wlp3s0: authenticate with 40:16:7e:2c:79:90
[  318.750807] wlp3s0: send auth to 40:16:7e:2c:79:90 (try 1/3)
[  318.752541] wlp3s0: authenticated
[  318.753030] wlp3s0: associate with 40:16:7e:2c:79:90 (try 1/3)
[  318.756524] wlp3s0: RX AssocResp from 40:16:7e:2c:79:90 (capab=0x411
status=0 aid=1)
[  318.759082] wlp3s0: associated

I'm using the board file eeprom_qca9377_1p0_NFA435_olpc.bin.

Regards,
Gabriele


On 26/04/2015 16:10, Gabriele Martino wrote:
 Hi Corin,
 the dissect.py script seems to work better than the disassemble.py:

 [ 6483.455435] ath10k_pci :03:00.0: pci irq msi-x interrupts 8
 irq_mode 0 reset_mode 0
 [ 6483.600747] ath10k_pci :03:00.0: Direct firmware load for
 ath10k/cal-pci-:03:00.0.bin failed with error -2
 [ 6484.772417] ath10k_pci :03:00.0: firmware crashed! (uuid n/a)
 [ 6484.772433] ath10k_pci :03:00.0: qca6174 hw2.1 (0x0501,
 0x003405ff) fw killer-n1525-fw api 4 htt 0.0 wmi 4 cal otp max_sta 32
 [ 6484.772435] ath10k_pci :03:00.0: debug 1 debugfs 0 tracing 0 dfs
 0 testmode 0
 [ 6484.77] ath10k_pci :03:00.0: firmware register dump

Re: QCA6174 hw2.1?

2015-04-24 Thread Gabriele Martino
Michal Kazior michal.kazior at tieto.com writes:

 
 https://gist.github.com/kazikcz/c970cbf3a863ebbc4495
 https://gist.github.com/kazikcz/64313b9e2470660faae1
 
 Here are two simple and crude tools I have to deal with ath10k FW API
 blobs. Use with care.
 
 You can use the disassemble.py to extract the otp.bin from hw3 ath10k
 FW API blob:
 
   python disassemble.py  /lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin
 
 Then you can use the assemble.py to generate hw2.1 ath10k FW ABI blob:
 
   mkdir -p /lib/firmware/ath10k/QCA6174/hw2.1/
   python assemble.py killer1252-testfw 0 path/to/qca61x420.bin
 path/to/otp.bin 4  /lib/firmware/ath10k/QCA6174/hw2.1/firmware-4.bin
   cp path/to/eeprom_ar6320_2p1_NFA354xp.bin
 /lib/firmware/ath10k/QCA6174/hw2.1/board.bin
 
 (mind the email line wrapping)
 

I'm trying to generate the blob, but I found two big issues.
The first: I have too many board files, which one should I use?
eeprom_ar6320_2p1_NFA324i_5.bin
eeprom_ar6320_2p1_NFA344i.bin
eeprom_ar6320_2p1_NFA344i_highTX.bin
eeprom_ar6320_2p1_NFA345i.bin
eeprom_ar6320_2p1_NFA345i_highTX.bin
eeprom_ar6320_2p1_NFA354xp.bin
eeprom_ar6320_2p1_NFA355i.bin
eeprom_qca9377_1p0_NFA435_olpc.bin

The controller is a
Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 20)
declared as Killer N1525 on Alienware 15.

Whatever, I can try them one by one later.
I picked up the first and built the firmware blob.
But here's the second issue: it wants the calibration data.

[2.067447] ath10k_pci :03:00.0: enabling device ( - 0002)
[2.068679] ath10k_pci :03:00.0: pci irq msi-x interrupts 8 irq_mode
0 reset_mode 0
[2.215280] ath10k_pci :03:00.0: Direct firmware load for ath10k/cal-pci-
:03:00.0.bin failed with error -2
[2.924276] ath3k: probe of 1-9:1.0 failed with error -22
[2.924299] usbcore: registered new interface driver ath3k
[3.289023] ath10k_pci :03:00.0: unable to write to the device
[3.289026] ath10k_pci :03:00.0: failed to download normal firmware: -110
[3.289052] ath10k_pci :03:00.0: could not init core (-110)
[3.289099] ath10k_pci :03:00.0: could not probe fw (-110)

How can I generate the cal-pci-:03:00.0.bin file?
I'm using the 4.0.0-gentoo kernel on x86_64.

Regards,
Gabriele


___
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k