Bug 212187 - ath11k: driver not working on xps 9500
Summary: ath11k: driver not working on xps 9500
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_network-wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-09 15:17 UTC by Luca Versari
Modified: 2022-02-21 14:36 UTC (History)
6 users (show)

See Also:
Kernel Version: 5.11.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Luca Versari 2021-03-09 15:17:45 UTC
I'm having trouble getting the ath11k_pci wireless driver to work with
my laptop.

Relevant part of lspci -v output:

6d:00.0 Network controller: Qualcomm Device 1101 (rev 01)
Subsystem: Bigfoot Networks, Inc. Device a501
Flags: fast devsel
Memory at b4200000 (64-bit, non-prefetchable) [disabled] [size=1M]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/32 Maskable+ 64bit-
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [148] Secondary PCI Express
Capabilities: [158] Transaction Processing Hints
Capabilities: [1e4] Latency Tolerance Reporting
Capabilities: [1ec] L1 PM Substates
Kernel modules: ath11k_pci

xps luca $ sha256sum /lib/firmware/ath11k/QCA6390/hw2.0/*
a7ccba4e5543af288b228527e75048fb3045fbb74d1a1f3c72284abc4fd57347
/lib/firmware/ath11k/QCA6390/hw2.0/amss.bin
b67f3fe18c6fd3798c45740061bfadc19fb8d5dde11db6e80ed0a7d92525948f
/lib/firmware/ath11k/QCA6390/hw2.0/board-2.bin
596482f780d21645f72a48acd9aed6c6fc8cf2d039ac31552a19800674d253cc
/lib/firmware/ath11k/QCA6390/hw2.0/m3.bin


Kernel version: 5.10.13-arch1-1 (I also tried with 5.11.2 with
similar (lack of) success).

dmesg output after running modprobe ath11k_pci:

[  466.214800] ath11k_pci 0000:6d:00.0: WARNING: ath11k PCI support is
experimental!
[  466.214912] ath11k_pci 0000:6d:00.0: BAR 0: assigned [mem
0xb4200000-0xb42fffff 64bit]
[  466.214925] ath11k_pci 0000:6d:00.0: enabling device (0000 -> 0002)
[  466.220370] NET: Registered protocol family 42
[  466.290732] mhi 0000:6d:00.0: Requested to power ON
[  466.290863] mhi 0000:6d:00.0: Power on setup success

However, despite the (apparently successful) module loading, no
wireless interface appears.

The module works correctly in Windows.
Comment 1 Xavier Bestel 2021-05-18 08:08:03 UTC
Same same. I'm using 5.11.0-21.2-liquorix-amd64 from https://liquorix.net/ which used to work until the last versions (1 or 2 weeks ago). Wifi & BT are gone now.

Anything I could provide to help ?

[mar. mai 18 09:03:00 2021] ath11k_pci 0000:6d:00.0: WARNING: ath11k PCI support is experimental!
[mar. mai 18 09:03:00 2021] ath11k_pci 0000:6d:00.0: BAR 0: assigned [mem 0xb4200000-0xb42fffff 64bit]
[mar. mai 18 09:03:00 2021] ath11k_pci 0000:6d:00.0: enabling device (0000 -> 0002)

root@dev5:~# sha256sum /lib/firmware/ath11k/QCA6390/hw2.0/*
a7ccba4e5543af288b228527e75048fb3045fbb74d1a1f3c72284abc4fd57347  /lib/firmware/ath11k/QCA6390/hw2.0/amss.bin
b67f3fe18c6fd3798c45740061bfadc19fb8d5dde11db6e80ed0a7d92525948f  /lib/firmware/ath11k/QCA6390/hw2.0/board-2.bin
596482f780d21645f72a48acd9aed6c6fc8cf2d039ac31552a19800674d253cc  /lib/firmware/ath11k/QCA6390/hw2.0/m3.bin

6d:00.0 Network controller: Qualcomm QCA6390 Wireless Network Adapter [AX500-DBS (2x2)] (rev 01)
	Subsystem: Rivet Networks Device a501
	Flags: bus master, fast devsel, latency 0, IRQ 181
	Memory at b4200000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=32/32 Maskable+ 64bit-
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Secondary PCI Express
	Capabilities: [158] Transaction Processing Hints
	Capabilities: [1e4] Latency Tolerance Reporting
	Capabilities: [1ec] L1 PM Substates
	Kernel driver in use: ath11k_pci
	Kernel modules: ath11k_pci
Comment 2 Xavier Bestel 2021-05-20 07:17:59 UTC
Apparently reverting 29b9829718c5e9bd68fc1c652f5e0ba9b9a64fed (cf https://bugs.archlinux.org/task/70849?project=1&string=linux) fixes the problem.
Comment 3 Xavier Bestel 2021-05-20 07:18:37 UTC
(It does for me)
Comment 4 Luca Versari 2021-05-20 07:44:37 UTC
Using 5.12.5 does not seem to fix the issue for me.

Some events from my dmesg:

[    1.869716] ath11k_pci 0000:6d:00.0: BAR 0: assigned [mem 0xb4200000-0xb42fffff 64bit]
[    1.869737] ath11k_pci 0000:6d:00.0: enabling device (0000 -> 0002)
[    1.891300] Bluetooth: hci0: setting up ROME/QCA6390
[    1.940431] mhi mhi0: Requested to power ON
[    1.940562] mhi mhi0: Power on setup success
[    2.217589] Bluetooth: hci0: unexpected event for opcode 0x0105
[   12.403838] Bluetooth: hci0: Reading QCA version information failed (-110)
[   12.403842] Bluetooth: hci0: Retry BT power ON:0
[   12.724109] Bluetooth: hci0: unexpected event for opcode 0x0119
[   22.857476] Bluetooth: hci0: Reading QCA version information failed (-110)
[   22.857491] Bluetooth: hci0: Retry BT power ON:1
[   23.177899] Bluetooth: hci0: unexpected event for opcode 0x0119
[   33.310781] Bluetooth: hci0: Reading QCA version information failed (-110)
[   33.310793] Bluetooth: hci0: Retry BT power ON:2
[   33.631232] Bluetooth: hci0: unexpected event for opcode 0x0119
[   43.764099] Bluetooth: hci0: Reading QCA version information failed (-110)
Comment 5 Luca Versari 2021-05-20 07:49:42 UTC
Possibly relevant lspci -vnn output:

6d:00.0 Network controller [0280]: Qualcomm Device [17cb:1101] (rev 01)
	Subsystem: Rivet Networks Device [1a56:a501]
	Flags: fast devsel
	Memory at b4200000 (64-bit, non-prefetchable) [disabled] [size=1M]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/32 Maskable+ 64bit-
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Secondary PCI Express
	Capabilities: [158] Transaction Processing Hints
	Capabilities: [1e4] Latency Tolerance Reporting
	Capabilities: [1ec] L1 PM Substates
	Kernel modules: ath11k_pci
Comment 6 Xavier Bestel 2021-05-20 07:51:31 UTC
Oh my bad !
Wifi works well but Bluetooth still doesn't work.
Comment 7 Kalle Valo 2021-05-20 09:55:58 UTC
(In reply to Xavier Bestel from comment #2)
> Apparently reverting 29b9829718c5e9bd68fc1c652f5e0ba9b9a64fed (cf
> https://bugs.archlinux.org/task/70849?project=1&string=linux) fixes the
> problem.

Are you sure this is the same problem as the original reporter? This bug report is about ath11k not working on XPS 9500 since v5.11.2.

I suspect your comment applies to bug #213055 instead, which is about a regression in v5.12.3 stable release.
Comment 8 bbhatt 2021-05-20 17:39:21 UTC
Hi, I am the author of: bus: mhi: core: Process execution environment changes serially [ Upstream commit ef2126c4e2ea2b92f543fae00a2a0332e4573c48

We do not see progress as https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/bus/mhi/core?h=v5.13-rc2&id=4884362f6977fc05cbec736625665241c0e0732f is missing in the older kernels.

It's meant to be a dependency but was not picked.
Comment 9 Jesper Falk 2021-05-24 12:12:37 UTC
I can confirm that the current build of 5.13.0-rc2 have the driver working on the Dell XPS 9500 (using self compiled kernel in Arch).

I tested the answers in https://bugzilla.kernel.org/show_bug.cgi?id=213055 but none of the kernels mentioned seems to work for me.

St least it´s fixed for the next release then.
Comment 10 Xavier Bestel 2021-10-13 16:14:51 UTC
I have a strange behavior, with my XPS 9500 with a QCA6390:
- after installing 5.14 from Debian, the wifi card "died", i.e. it's as if it's not plugged anymore, can't see it from Linux, from Windows nor from the BIOS
- I called Dell and made them change the motherboard + wifi card; we checked it all worked with Windows, the Dell repairman went away
- as soon as I rebooted under Linux the wifi card was gone again, and no amount of reset/poweroff/whatever made it reappear (also absent from Windows and BIOS)
Comment 11 zimza 2021-10-19 08:17:56 UTC
(In reply to Xavier Bestel from comment #10)
> - as soon as I rebooted under Linux the wifi card was gone again, and no
> amount of reset/poweroff/whatever made it reappear (also absent from Windows
> and BIOS)

I had the same problem, minus the back and forth with Dell. What fixed it is :
- deactivate wifi + bluetooth in bios
- boot normally
- reboot
- reactivate wifi + bluetooth in bios
Comment 12 Xavier Bestel 2021-10-19 09:35:35 UTC
I was not sure so I tried exactly that, but I still don't have my WiFi back :/
Just to be sure, there's no WiFI/WLAN in "integrated devices", I found it under some kind of "connections" topic, and there I disabled WLAN and Bluetooth. Was it the right options ?
Comment 13 Xavier Bestel 2021-10-19 13:03:23 UTC
My bad, it works if I do an actual poweroff between BIOS settings. Thanks a lot !
Anyway that's a problem with the driver/hardware, because the OS is unable to get back to the WiFi card once it's in this soft-bricked state ...
Comment 14 Kalle Valo 2022-01-18 13:15:40 UTC
For the problem in Dell XPS 15 9500 laptops I'm hopeful this firmware fixes it:

https://github.com/kvalo/ath11k-firmware/tree/master/QCA6390/hw2.0/1.0.1/WLAN.HST.1.0.1-05266-QCAHSTSWPLZ_V2_TO_X86-1
Comment 15 Xavier Bestel 2022-01-18 13:45:12 UTC
How so ? Is there a changelog somewhere ?
Comment 16 Kalle Valo 2022-02-21 14:36:30 UTC
(In reply to Xavier Bestel from comment #15)
> How so ? Is there a changelog somewhere ?

Unfortunately no changelog is available. But one person was intermittenly having problems with ath11k on Dell XPS 15 9500 and reported that WLAN.HST.1.0.1-05266-QCAHSTSWPLZ_V2_TO_X86-1 fixed the issues.

No response from Luca so I assume the issue is fixed and closing the issue.

Note You need to log in before you can comment on or make changes to this bug.