All of lore.kernel.org
 help / color / mirror / Atom feed
* WCN6855 service timeout issues
@ 2022-06-21 11:30 Kristian Evensen
  2022-06-23 12:34 ` Kristian Evensen
  0 siblings, 1 reply; 2+ messages in thread
From: Kristian Evensen @ 2022-06-21 11:30 UTC (permalink / raw)
  To: ath11k

Hello,

I am trying to make a WCN6855-based card work with on an x86-device
running kernel 5.15. My base system is OpenWRT (compiled from master
today) + backports-5.15-33. As WCN6855 is not support by kernel 5.15,
I have backported all ath11k commits up to 3926e0c122 ("ath11k: Fix
warnings reported by checkpatch"), and brought mhi in sync with
mhi-next (13b9b814da) and qrtr in sync with net-next (f4b41f062c).

When I boot my device, the card is detect and board file found, but
communication times out almost immediately. In my kernel log, I see
the following:

[   11.336010] ath11k_pci 0000:06:00.0: BAR 0: assigned [mem
0x91000000-0x911fffff 64bit]
[   11.344336] ath11k_pci 0000:06:00.0: MSI vectors: 1
[   11.350532] ath11k_pci 0000:06:00.0: wcn6855 hw2.1
[   11.513448] mhi mhi0: Requested to power ON
[   11.517895] mhi mhi0: Power on setup success
[   11.904189] mhi mhi0: Wait for device to enter SBL or Mission mode
[   12.551007] ath11k_pci 0000:06:00.0: chip_id 0x12 chip_family 0xb
board_id 0xff soc_id 0x400c1211
[   12.560045] ath11k_pci 0000:06:00.0: fw_version 0x11090c35
fw_build_timestamp 2022-04-18 20:23 fw_build_id
WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.9
[   12.768324] ath11k_pci 0000:06:00.0: leaving PCI ASPM disabled to
avoid MHI M2 problems
[   13.814188] ath11k_pci 0000:06:00.0: failed to receive control
response completion, polling..
[   14.844167] ath11k_pci 0000:06:00.0: Service connect timeout
[   14.849919] ath11k_pci 0000:06:00.0: failed to connect to HTT: -110
[   14.858741] ath11k_pci 0000:06:00.0: failed to start core: -110
[   15.074355] ath11k_pci 0000:06:00.0: ignore reset dev flags 0x4000
[   25.332283] ath11k_pci 0000:06:00.0: failed to wait wlan mode
request (mode 4): -110
[   25.340294] ath11k_pci 0000:06:00.0: qmi failed to send wlan mode off: -110

The device and PCI-slot should be good. I inserted another wifi-card
that uses the ath10k-driver and it works fine (and without the " ..
polling.." message). Also, the WCN6855-card works well when I install
Ubuntu on the same device + kernel 5.17 + board file. The board file
is supplied by the vendor, but as it works fine with ath11k from the
5.17 kernel I guess it is ok.

In order to try to make progress, I searched for the different error
messages and got quite a lot of ath10k-related hits on the first ones
(".. polling .." and "Service connect timeout"). However, for example
disabling MSI or enabling PCI quirks had no effect on my device.

Does anyone know what could be wrong or have an idea of where I should look?

Thanks in advance for any help,
Kristian

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

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

* Re: WCN6855 service timeout issues
  2022-06-21 11:30 WCN6855 service timeout issues Kristian Evensen
@ 2022-06-23 12:34 ` Kristian Evensen
  0 siblings, 0 replies; 2+ messages in thread
From: Kristian Evensen @ 2022-06-23 12:34 UTC (permalink / raw)
  To: ath11k

Hi,

On Tue, Jun 21, 2022 at 1:30 PM Kristian Evensen
<kristian.evensen@gmail.com> wrote:
> [   11.336010] ath11k_pci 0000:06:00.0: BAR 0: assigned [mem
> 0x91000000-0x911fffff 64bit]
> [   11.344336] ath11k_pci 0000:06:00.0: MSI vectors: 1

I was finally able to figure out what was wrong and thought I should
share my solution in case anyone else hits the same issue. The issue
turned out to not be related to ath11k, but rather my system/kernel
configuration. When allocating the IRQ vectors, my board would only
ever allocate a single vector with OpenWrt (but 32 when I booted
Ubuntu). After comparing the kernel configurations and doing a bit of
trial and error, I found two things missing in my OpenWRT Kconfig and
which turned out to be required:

* IOMMU had to be enable.
* CONFIG_IRQ_REMAP had to be set.

Now the correct number of vectors is allocated and my ath11k card
works fine on my system.

Kristian

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

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

end of thread, other threads:[~2022-06-23 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21 11:30 WCN6855 service timeout issues Kristian Evensen
2022-06-23 12:34 ` Kristian Evensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.