ath11k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Fwd: XPS 9310 MSI vectors patch for ath11k
       [not found]   ` <CAJxb_EoTvUV3Bwq4O7DMS1AgvWD3VLq9e5Z_Y8FeGbSFxmvzbg@mail.gmail.com>
@ 2020-11-15 15:16     ` Mitchell Nordine
  2020-11-15 19:35       ` Kalle Valo
  0 siblings, 1 reply; 3+ messages in thread
From: Mitchell Nordine @ 2020-11-15 15:16 UTC (permalink / raw)
  To: ath11k

Hi folks,

With Kalle's help I have managed to get wi-fi working on my XPS 13
9310 (with the QCA6390) working on NixOS.

To do this, I switched to 5.10-rc2 and applied Kalle's patch for the
XPS 9310 here[1] and installed the latest version of the firmware
following the instructions outlined here[2].

However, despite wi-fi working, with these changes my system has
become incredibly unstable, often crashing resulting in a frozen
desktop with nothing responding and no ability to switch to the other
ttys.

Occasionally however, the system will not crash, and instead the
internet will simply drop out (though with GNOME still showing the
wi-fi as "connected") with the following errors reported in
journalctl:

Nov 14 21:29:29 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
receive scan abort comple: timed out
Nov 14 21:29:29 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
abort scan: -110
Nov 14 21:30:02 mindtree wpa_supplicant[1242]: wlp86s0:
CTRL-EVENT-SCAN-FAILED ret=-11 retry=1
Nov 14 21:30:02 mindtree kernel: ath11k_pci 0000:56:00.0: wmi command
12289 timeout
Nov 14 21:30:02 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send WMI_START_SCAN_CMDID
Nov 14 21:30:02 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
start hw scan: -11
Nov 14 21:30:06 mindtree wpa_supplicant[1242]: wlp86s0:
CTRL-EVENT-SCAN-FAILED ret=-11 retry=1
Nov 14 21:30:06 mindtree kernel: ath11k_pci 0000:56:00.0: wmi command
12289 timeout
Nov 14 21:30:06 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send WMI_START_SCAN_CMDID
Nov 14 21:30:06 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
start hw scan: -11
Nov 14 21:30:10 mindtree wpa_supplicant[1242]: wlp86s0:
CTRL-EVENT-SCAN-FAILED ret=-11 retry=1
Nov 14 21:30:10 mindtree kernel: ath11k_pci 0000:56:00.0: wmi command
12289 timeout
Nov 14 21:30:10 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send WMI_START_SCAN_CMDID
Nov 14 21:30:10 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
start hw scan: -11
Nov 14 21:30:14 mindtree wpa_supplicant[1242]: wlp86s0:
CTRL-EVENT-SCAN-FAILED ret=-11 retry=1
Nov 14 21:30:14 mindtree kernel: ath11k_pci 0000:56:00.0: wmi command
12289 timeout
Nov 14 21:30:14 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send WMI_START_SCAN_CMDID
Nov 14 21:30:14 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
start hw scan: -11
Nov 14 21:30:18 mindtree wpa_supplicant[1242]: wlp86s0:
CTRL-EVENT-SCAN-FAILED ret=-11 retry=1
Nov 14 21:30:18 mindtree kernel: ath11k_pci 0000:56:00.0: wmi command
12289 timeout
Nov 14 21:30:18 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send WMI_START_SCAN_CMDID
Nov 14 21:30:18 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
start hw scan: -11

(repeats...)

If I now attempt to disable wi-fi via the GNOME menu, journalctl shows
the following:

Nov 14 21:45:38 mindtree kernel: wlp86s0: deauthenticating from
1c:b0:44:ec:96:c0 by local choice (Reason: 3=DEAUTH_LEAVING)
Nov 14 21:45:41 mindtree kernel: ath11k_pci 0000:56:00.0: wmi command
28680 timeout
Nov 14 21:45:41 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
submit WMI_MGMT_TX_SEND_CMDID cmd
Nov 14 21:45:41 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send mgmt frame: -11
Nov 14 21:45:41 mindtree kernel: ath11k_pci 0000:56:00.0: failed to tx
mgmt frame, vdev_id 0 :-11
Nov 14 21:45:43 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
flush transmit queue 0
Nov 14 21:45:46 mindtree kernel: ath11k_pci 0000:56:00.0: wmi command
24595 timeout
Nov 14 21:45:46 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send WMI_PEER_REORDER_QUEUE_SETUP
Nov 14 21:45:46 mindtree kernel: ath11k_pci 0000:56:00.0: failed to
send wmi to delete rx tid -11
Nov 14 21:45:46 mindtree kernel: wlp86s0: HW problem - can not stop rx
aggregation for 1c:b0:44:ec:96:c0 tid 0


I've also noticed that on each boot, there appear to be some errors
during ath11k_pci initialisation related to a memory request and qmi.
From dmesg:

[    4.738943] ath11k_pci 0000:56:00.0: Respond mem req failed,
result: 1, err: 0
[    4.738945] ath11k_pci 0000:56:00.0: qmi failed to respond fw mem
req:-22
[    4.739070] ath11k_pci 0000:56:00.0: req mem_seg[0] 0x5a100000
524288 1
[    4.739071] ath11k_pci 0000:56:00.0: req mem_seg[1] 0x5a180000
524288 1
[    4.739072] ath11k_pci 0000:56:00.0: req mem_seg[2] 0x5a200000
524288 1
[    4.739072] ath11k_pci 0000:56:00.0: req mem_seg[3] 0x5a280000
294912 1
                      [    4.739073] ath11k_pci 0000:56:00.0: req
mem_seg[4] 0x5a300000 524288 1
[    4.739073] ath11k_pci 0000:56:00.0: req mem_seg[5] 0x5a380000
524288 1
[    4.739074] ath11k_pci 0000:56:00.0: req mem_seg[6] 0x59c00000
458752 1
[    4.739074] ath11k_pci 0000:56:00.0: req mem_seg[7] 0x5a5c0000
131072 1
                      [    4.739075] ath11k_pci 0000:56:00.0: req
mem_seg[8] 0x59c80000 524288 4
[    4.739075] ath11k_pci 0000:56:00.0: req mem_seg[9] 0x59d00000
360448 4
                      [    4.739076] ath11k_pci 0000:56:00.0: req
mem_seg[10] 0x5a5a4000 16384 1
[    4.749134] ath11k_pci 0000:56:00.0: chip_id 0x0 chip_family 0xb
board_id 0xff soc_id 0xffffffff
[    4.749136] ath11k_pci 0000:56:00.0: fw_version 0x101c06cc
fw_build_timestamp 2020-06-24 19:50 fw_build_id


I tried the same patches and firmware on 5.10-rc3 but didn't notice
any difference in behaviour.

For the record, bluetooth still does not appear to be working, though
I'm not sure if this is expected or not at this point.

I'm on NixOS, and unfortunately I haven't yet worked out how to enable
the ath11k debugging options via `make menuconfig` in a declarative
manner for my nix configuration. That said, if there are any other
patches you would like me to test just let me know.

Btw, I tried subscribing to the ath11k mailing list today and
yesterday, but haven't received any ack or response, but maybe this is
normal over the weekend.

In case anyone is interested in following along, I have a draft PR
open at the nixos/nixos-hardware repo[3] for the Dell XPS 9310 which
includes these WIP patches. This includes a nix module for installing
the QCA6390 firmware and Kalle's patch mentioned above.

[1]: https://patchwork.kernel.org/project/linux-wireless/patch/1605121102-14352-1-git-send-email-kvalo@codeaurora.org/
[2]: http://lists.infradead.org/pipermail/ath11k/2020-November/000537.html
[3]: https://github.com/NixOS/nixos-hardware/pull/207

Cheers,
Mitch

-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

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

* Re: Fwd: XPS 9310 MSI vectors patch for ath11k
  2020-11-15 15:16     ` Fwd: XPS 9310 MSI vectors patch for ath11k Mitchell Nordine
@ 2020-11-15 19:35       ` Kalle Valo
       [not found]         ` <CAJxb_ErL6NhWNxp_yxFmTqB9v1q3VL399+V+yL4n3L1aBWuocQ@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Kalle Valo @ 2020-11-15 19:35 UTC (permalink / raw)
  To: Mitchell Nordine; +Cc: ath11k

Mitchell Nordine <mitchell.nordine@gmail.com> writes:

> With Kalle's help I have managed to get wi-fi working on my XPS 13
> 9310 (with the QCA6390) working on NixOS.
>
> To do this, I switched to 5.10-rc2 and applied Kalle's patch for the
> XPS 9310 here[1] and installed the latest version of the firmware
> following the instructions outlined here[2].
>
> However, despite wi-fi working, with these changes my system has
> become incredibly unstable, often crashing resulting in a frozen
> desktop with nothing responding and no ability to switch to the other
> ttys.
>
> Occasionally however, the system will not crash, and instead the
> internet will simply drop out (though with GNOME still showing the
> wi-fi as "connected") with the following errors reported in
> journalctl:

To pinpoint the problem can you try Carl's suggestion adding
"memmap=12M\$20M" to kernel parameters:

http://lists.infradead.org/pipermail/ath11k/2020-November/000686.html

Let me know how it goes.

> I've also noticed that on each boot, there appear to be some errors
> during ath11k_pci initialisation related to a memory request and qmi.
>>From dmesg:
>
> [    4.738943] ath11k_pci 0000:56:00.0: Respond mem req failed,
> result: 1, err: 0
> [    4.738945] ath11k_pci 0000:56:00.0: qmi failed to respond fw mem
> req:-22

There's a fix coming for this error.

> [    4.739070] ath11k_pci 0000:56:00.0: req mem_seg[0] 0x5a100000
> 524288 1
> [    4.739071] ath11k_pci 0000:56:00.0: req mem_seg[1] 0x5a180000
> 524288 1
> [    4.739072] ath11k_pci 0000:56:00.0: req mem_seg[2] 0x5a200000
> 524288 1
> [    4.739072] ath11k_pci 0000:56:00.0: req mem_seg[3] 0x5a280000
> 294912 1
>                       [    4.739073] ath11k_pci 0000:56:00.0: req
> mem_seg[4] 0x5a300000 524288 1
> [    4.739073] ath11k_pci 0000:56:00.0: req mem_seg[5] 0x5a380000
> 524288 1
> [    4.739074] ath11k_pci 0000:56:00.0: req mem_seg[6] 0x59c00000
> 458752 1
> [    4.739074] ath11k_pci 0000:56:00.0: req mem_seg[7] 0x5a5c0000
> 131072 1
>                       [    4.739075] ath11k_pci 0000:56:00.0: req
> mem_seg[8] 0x59c80000 524288 4
> [    4.739075] ath11k_pci 0000:56:00.0: req mem_seg[9] 0x59d00000
> 360448 4
>                       [    4.739076] ath11k_pci 0000:56:00.0: req
> mem_seg[10] 0x5a5a4000 16384 1

These are just debug messages to help diagnose the instability issues,
they will be removed in the final patch.

> For the record, bluetooth still does not appear to be working, though
> I'm not sure if this is expected or not at this point.

I don't know the status with bluetooth.

> I'm on NixOS, and unfortunately I haven't yet worked out how to enable
> the ath11k debugging options via `make menuconfig` in a declarative
> manner for my nix configuration. That said, if there are any other
> patches you would like me to test just let me know.
>
> Btw, I tried subscribing to the ath11k mailing list today and
> yesterday, but haven't received any ack or response, but maybe this is
> normal over the weekend.

Yes, weekends are normally pretty quiet here.

> In case anyone is interested in following along, I have a draft PR
> open at the nixos/nixos-hardware repo[3] for the Dell XPS 9310 which
> includes these WIP patches. This includes a nix module for installing
> the QCA6390 firmware and Kalle's patch mentioned above.
>
> [1]:
> https://patchwork.kernel.org/project/linux-wireless/patch/1605121102-14352-1-git-send-email-kvalo@codeaurora.org/
> [2]: http://lists.infradead.org/pipermail/ath11k/2020-November/000537.html
> [3]: https://github.com/NixOS/nixos-hardware/pull/207

Nice, but do note that these patches are not finalised yet. So there
will be new versions coming.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

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

* Re: Fwd: XPS 9310 MSI vectors patch for ath11k
       [not found]         ` <CAJxb_ErL6NhWNxp_yxFmTqB9v1q3VL399+V+yL4n3L1aBWuocQ@mail.gmail.com>
@ 2020-11-16  9:30           ` Kalle Valo
  0 siblings, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2020-11-16  9:30 UTC (permalink / raw)
  To: Mitchell Nordine; +Cc: ath11k

(adding back ath11k list, please don't drop it so that others can also
see and participate the discussion)

Mitchell Nordine <mitchell.nordine@gmail.com> writes:

>> To pinpoint the problem can you try Carl's suggestion adding
>> "memmap=12M\$20M" to kernel parameters:
>>
>> http://lists.infradead.org/pipermail/ath11k/2020-November/000686.html
>>
>> Let me know how it goes.
>
> Thanks for the suggestion. I have given this a go but haven't noticed
> any change in behaviour.

Ok, thanks for testing.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

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

end of thread, other threads:[~2020-11-16  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAJxb_EpOy-CqJhodHMcBDuOgeQoZrtims9stB4uGxz7kCz_Y7Q@mail.gmail.com>
     [not found] ` <877dqn3m3t.fsf@codeaurora.org>
     [not found]   ` <CAJxb_EoTvUV3Bwq4O7DMS1AgvWD3VLq9e5Z_Y8FeGbSFxmvzbg@mail.gmail.com>
2020-11-15 15:16     ` Fwd: XPS 9310 MSI vectors patch for ath11k Mitchell Nordine
2020-11-15 19:35       ` Kalle Valo
     [not found]         ` <CAJxb_ErL6NhWNxp_yxFmTqB9v1q3VL399+V+yL4n3L1aBWuocQ@mail.gmail.com>
2020-11-16  9:30           ` Kalle Valo

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).