You are not logged in.

#1 2021-01-03 22:27:08

gwenlune
Member
Registered: 2012-03-02
Posts: 1

DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Hello,

I was waiting for Kernel 5.10.4 with ath11k module included with impatience to make wifi working in my DELL XPS 9500 (I9 version)... But it doesn't work...

For 2 months, I was waiting for the kernel version and the inclusion of ath11k module... I saw that on these articles :
https://medium.com/@tomas.heiskanen/del … f1c218e78a
https://askubuntu.com/questions/1280328 … rs-support

And this module is en 5.10.4 : https://lwn.net/Articles/841473/

Can anybody help me ?

Offline

#2 2021-01-06 03:09:14

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Same with me. I have xps 9700 and atheros keller AX500-DBS. It worked for a while with kernel 5.10.1 and then it stopped again.
The kernel module ath11k_pci fails to load:

[ 5240.828931] ath11k_pci 0000:05:00.0: WARNING: ath11k PCI support is experimental!
[ 5240.829003] ath11k_pci 0000:05:00.0: BAR 0: assigned [mem 0xd2100000-0xd21fffff 64bit]
[ 5240.829067] ath11k_pci 0000:05:00.0: failed to get 32 MSI vectors, only -28 available
[ 5240.829068] ath11k_pci 0000:05:00.0: failed to enable msi: -28
[ 5240.829080] ath11k_pci: probe of 0000:05:00.0 failed with error -28

I have also logged a bug a few days ago but but the holiday period would slow things down.
https://bugzilla.kernel.org/show_bug.cgi?id=210923

Also found this. Not sure if it is the same thing.
https://bugs.archlinux.org/task/69223

Offline

#3 2021-01-06 04:26:08

loqs
Member
Registered: 2014-03-06
Posts: 13,208

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

magare please try applying the patch from https://lore.kernel.org/ath11k/16051211 … urora.org/

Last edited by loqs (2021-01-06 06:09:06)

Offline

#4 2021-01-06 05:37:42

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

loqs, is it related to this patch ?

https://github.com/0day-ci/linux/commit … 21a4875e18

I would rather wait to get into the upstream and included in the next kernel rather than re-compiling the kernel every time there is a new kernel release.

Thanks.

Offline

#5 2021-01-06 06:02:39

loqs
Member
Registered: 2014-03-06
Posts: 13,208

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Yes same patch.  Sorry about that I linked to a response to the patch instead of the patch,  fixed the link now.
If you test it and does not work for you,  then you could report that rather than wait for the patch to be merged into 5.11 or 5.12 then back-ported only then to find it does not work for you.
You could also bisect backwards and find which commit caused the breakage.

Last edited by loqs (2021-01-06 06:10:23)

Offline

#6 2021-01-06 10:31:49

archcactus
Member
Registered: 2021-01-06
Posts: 2

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

I also have problems with my XPS 9500 (i9) and the ath11k_pci driver. It sort of works (but with a slow connection) when I plug in a wifi dongle and then reboot; I can then remove the dongle and my QCA6390 works. Then it stops working after a suspend, and dmesg shows:
[51400.378622] ath11k_pci 0000:6c:00.0: wmi command 16387 timeout
[51400.378625] ath11k_pci 0000:6c:00.0: failed to send WMI_PDEV_SET_PARAM cmd
[51400.378627] ath11k_pci 0000:6c:00.0: failed to enable PMF QOS: (-11
[...]
[174682.606130] ath11k_pci 0000:6c:00.0: failed to send WMI_PDEV_SET_PARAM cmd
[174682.606136] ath11k_pci 0000:6c:00.0: failed to enable PMF QOS: (-108

Offline

#7 2021-01-06 10:37:20

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

loqs wrote:

Yes same patch.  Sorry about that I linked to a response to the patch instead of the patch,  fixed the link now.
If you test it and does not work for you,  then you could report that rather than wait for the patch to be merged into 5.11 or 5.12 then back-ported only then to find it does not work for you.
You could also bisect backwards and find which commit caused the breakage.

Yep. Make sense. I will apply the patch and see if it works for me ..

Offline

#8 2021-01-09 10:23:37

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Applying the patch did not fix the issue :-(

Offline

#9 2021-01-10 11:11:48

naraesk
Member
Registered: 2016-10-11
Posts: 25

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Same problem here. Thanks for testing! My workaround is to stay on 5.10.2 for now, which works most of the time.

Offline

#10 2021-01-11 02:30:58

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

That is not a solution though. The developers are too busy and nobody even looked at the bug I logged.
Unfortunately I don't believe this issue will be fixed in the next release 5.11.

Not sure what to do.
I love the laptop but I don't want to run Windows on it, so I will try to return it to DEL and get another one with a different WiFi card.

What a shame. Dell would normally support Linux but not this time .:-(

Offline

#11 2021-01-11 14:10:09

archcactus
Member
Registered: 2021-01-06
Posts: 2

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

It works really fine on my XPS 9500 after a fresh boot. It only breaks after resuming from suspend, which is a shame but I hope it will get sorted soon.

Offline

#12 2021-01-11 18:24:19

naraesk
Member
Registered: 2016-10-11
Posts: 25

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

magare wrote:

That is not a solution though. The developers are too busy and nobody even looked at the bug I logged.
Unfortunately I don't believe this issue will be fixed in the next release 5.11.

Not sure what to do.

ath11k is very new and 5.10 was the first kernel version that supports it. Therefore it is not surprising that the implementation is still buggy. I am very confident that the problems will be fixed in the next versions and it will work reliably in a few weeks or - bad case - months. It's annoying, but until then I can live with the old kernel version. I have a Dell XPS 9500 with i9 as well and I will definitely not return it.

Offline

#13 2021-01-12 00:08:37

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Yes. I agree ath11k is still quite new and it will take some time to mature.I have been trying to make it work since November 2020 but I guess I need to be more patient.
Probably it will mature in kernel 5.12 for sure.

Beautiful laptop and I paid megabucks for it. Will keep it.

I will have to stick to Windowze meanwhile unfortunately.

Offline

#14 2021-01-20 03:40:26

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

After enabling Vt-D in BIOS and upgrading it to the latest version got a different error now

[    2.267396] ath11k_pci 0000:05:00.0: WARNING: ath11k PCI support is experimental!
[    2.267435] ath11k_pci 0000:05:00.0: BAR 0: assigned [mem 0xd2100000-0xd21fffff 64bit]
[    2.267455] ath11k_pci 0000:05:00.0: enabling device (0000 -> 0002)
[    2.727171] ath11k_pci 0000:05:00.0: Respond mem req failed, result: 1, err: 0
[    2.727172] ath11k_pci 0000:05:00.0: qmi failed to respond fw mem req:-22
[    7.880850] ath11k_pci 0000:05:00.0: qmi failed memory request, err = -110
[    7.880859] ath11k_pci 0000:05:00.0: qmi failed to respond fw mem req:-110

Not sure what is causing this, Probably not connected to the MSI vectors

Offline

#15 2021-01-27 03:32:29

magare
Member
Registered: 2021-01-06
Posts: 8

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Adding "memmap=12M\\\$20M" to the kernel fixed the issue as suggested by Kalle Valo

Last edited by magare (2021-01-27 03:33:07)

Offline

#16 2021-01-29 03:48:01

tbg
Member
Registered: 2017-06-22
Posts: 54

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

For those experiencing issues after suspending this can usually be worked around by writing a systemd service to unload your network components prior to suspending, then reload them after resuming. Hopefully that will make do for some users until the kernel catches up to this new adapter.

Offline

#17 2021-02-18 01:14:07

smonty1
Member
Registered: 2021-02-18
Posts: 1

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Yes I spent a few hours with this and got it working satisfactorily - previously I just had another USB Wifi adapter plugged in that did support resuming.

As #tbg says unloading/loading ath11k_pci before/after suspension will get it working most of the time.  Following https://wiki.archlinux.org/index.php/Dell_XPS_13_(9310) and https://forum.endeavouros.com/t/cant-co … up/6294/14 gives you all the info you need. Key bits are making sure your laptop does indeed suspend (using the latest Manjaro 5.11 experimental kernel my 9700 hangs + needed hard reset. Downgraded back to 5.10) and also being aware that unloading ie modprobe -r ath11k_pci can take minutes...

When resuming the Dell sometimes can't reconnect/see the network so having a script that just bounces the ath11k_pci seems to help out with this too.

Last edited by smonty1 (2021-02-18 01:14:57)

Offline

#18 2021-02-18 08:20:19

tbg
Member
Registered: 2017-06-22
Posts: 54

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

I am not familiar with the new ath11k module(s). The ath10k driver uses 2 modules. They must be unloaded and loaded pre and post suspend in a specific order for the service to work properly.

Here is an example of a suspend service I wrote for the ath10k driver:

[Unit]
Description=Ath10k WiFi Restart Service 
Before=sleep.target
StopWhenUnneeded=yes

[Service]
User=root
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli networking off'
ExecStart=/usr/bin/sleep 1
ExecStart=/usr/bin/systemctl stop NetworkManager
ExecStart=/usr/bin/ip link set wlp3s0  down
ExecStart=/usr/bin/rmmod  ath10k_pci
ExecStart=/usr/bin/sleep 1
ExecStartPost=/usr/bin/rmmod  ath10k_core
ExecStop=/usr/bin/sleep 5
ExecStop=/usr/bin/modprobe ath10k_pci
ExecStop=/usr/bin/sleep 2
ExecStop=/usr/bin/modprobe ath10k_core
ExecStop=/usr/bin/sleep 2
ExecStop=/usr/bin/ip link set wlp3s0 up
ExecStop=/usr/bin/sleep 2
ExecStop=/usr/bin/systemctl start NetworkManager
ExecStop=/usr/bin/sleep 1
ExecStop=/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli networking on'
ExecStop=/usr/bin/sleep 1
ExecStop=/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli r wifi off'
ExecStop=/usr/bin/sleep 1
ExecStop=/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli r wifi on'

[Install]
WantedBy=sleep.target

This service was written for Manjaro users, so it is designed to stop/start Network Manager pre/post suspend as well. All the operations are contained within the service file itself (even though this really isn't best practice). It is written this way because many Manjaro users are novice and have no experience writing scripts to be called from the service. Regardless, these type of services usually work well, and will get the job done until a kernel update fixes this issue.

Obviously the service would need to be adapted to the network components you are using. If the ath11k driver also uses 2 modules, you will need to experiment to determine the proper order to unload/reload them. If the service mostly works, but fails occasionally it often helps to increase the seconds of sleep time between operations. This will delay the time it takes for the network to be brought back up after suspension, but will increase the services reliability.

Offline

#19 2021-03-18 00:37:09

naraesk
Member
Registered: 2016-10-11
Posts: 25

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

Wifi seems broken again since 5.11.5 or so. Have you found any workaround?

Offline

#20 2021-03-20 07:21:10

negen
Member
Registered: 2021-02-19
Posts: 6

Re: DELL XPS 9500 (I9 version) Wifi (ath11k) KO

naraesk wrote:

Wifi seems broken again since 5.11.5 or so. Have you found any workaround?


I had to turn on vt-d in bios and add the kernel parameter. Mind you though that I have a qca6391 compex wlt639 wifi card not the kill ax500. But settings should be the same as the driver is the same. The issue I believe is that with vt-d on you can use the 32 msi vectors that the driver uses where as prior to January or the kernels used the single msi vector patch. I could be wrong on the reasoning. I have been doing my best to follow ath11k stuff closely.

intel_iommu=on

I also have this for the memory issue.

memmap=12M$20M

Offline

Board footer

Powered by FluxBB