Raspberry pi CM4 + qualcomm Atheros QCN9074

Hello,

I'm trying to set up a Raspberry Pi CM4 with a compex WLE3000HX PCIe WiFi card using the QCN9074 chipset. ath11k_pci kernel module.

I'm getting the following output from dmesg:

[    5.874838] ath11k_pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x6001fffff 64bit]
[    5.884549] ath11k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[    5.892774] ath11k_pci 0000:01:00.0: MSI vectors: 1
[    5.899464] ath11k_pci 0000:01:00.0: qcn9074 hw1.0
[    5.906036] ath11k_pci 0000:01:00.0: FW memory mode: 2
[    5.913592] ath11k_pci: probe of 0000:01:00.0 failed with error -12

I've tried setting the PCI bus to 32-bit-dma mode in the config.txt:

dtoverlay=pcie-32bit-dma

With this, I managed to get the driver loaded correctly and the device detected:

[    5.754495] ath11k_pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x6001fffff 64bit]
[    5.764206] ath11k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[    5.772107] ath11k_pci 0000:01:00.0: MSI vectors: 1
[    5.778683] ath11k_pci 0000:01:00.0: qcn9074 hw1.0
[    5.785142] ath11k_pci 0000:01:00.0: FW memory mode: 2
[    6.249386] ath11k_pci 0000:01:00.0: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
[    6.260090] ath11k_pci 0000:01:00.0: fw_version 0x290c8569 fw_build_timestamp 2023-03-25 06:50 fw_build_id
[    7.633381] ath11k_pci 0000:01:00.0: leaving PCI ASPM disabled to avoid MHI M2 problems
[    7.999262] ath11k_pci 0000:01:00.0: htt event 48 not handled
wlan0     Link encap:Ethernet  HWaddr 04:F0:21:B4:A4:A4
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

However, when I try to scan for networks to connect to, I get the following errors:

[  144.795251] ath11k_pci 0000:01:00.0: ce desc not available for wmi command 36866
[  144.805706] ath11k_pci 0000:01:00.0: failed to send WMI_STA_POWERSAVE_PARAM_CMDID
[  144.816120] ath11k_pci 0000:01:00.0: could not set uapsd params -105
[  144.825415] ath11k_pci 0000:01:00.0: failed to set sta uapsd: -105
[  155.995214] ath11k_pci 0000:01:00.0: ce desc not available for wmi command 12289
[  156.005630] ath11k_pci 0000:01:00.0: failed to send WMI_START_SCAN_CMDID
[  156.015318] ath11k_pci 0000:01:00.0: failed to start hw scan: -105

any suggestions

I've just checked the specs of this wle3000hx and the 9W power requirement seems like a show stopper. Is your cm4 carrier board able to provide that kind of power?

I'm using the Raspberry Pi Compute Module 4 and IO Board along with a PCIe to Mini PCIe adapter. I have also verified that the adapter has a voltage regulator with a 3.3V 1A output, meaning it doesn't provide enough power. I will search for one to properly power the WiFi card.

Thank you.

1 Like

Hi, I have managed to provide enough 9W power to my WLE3000HX Wi-Fi card, but I'm still experiencing the same errors:

Mon Jul 3 14:45:02 2023 kern.warn kernel: [ 51.767831] ath11k_pci 0000:01:00.0: ce desc not available for wmi command 90113
Mon Jul 3 14:45:02 2023 kern.warn kernel: [ 51.775271] ath11k_pci 0000:01:00.0: failed to send WMI_REQUEST_STATS cmd
Mon Jul 3 14:45:02 2023 kern.warn kernel: [ 51.782095] ath11k_pci 0000:01:00.0: could not request fw stats (-105)
Mon Jul 3 14:45:02 2023 kern.warn kernel: [ 51.788646] ath11k_pci 0000:01:00.0: failed to request fw pdev stats: -105

I have tested the same card on an Intel X86_64 system, and it works correctly. Does anyone know if there is a limitation on the PCI bus of the Raspberry Pi?

1 Like

try asking on rpi github as well