linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: "open list:MEDIATEK MT76 WIRELESS LAN DRIVER"
	<linux-wireless@vger.kernel.org>
Subject: ath11k and vfio-pci support
Date: Mon, 8 Jan 2024 05:17:15 -0800	[thread overview]
Message-ID: <adcb785e-4dc7-4c4a-b341-d53b72e13467@gmail.com> (raw)

Hi,

For a while now I've been using vfio-pci to pass through wireless 
hardware to a Qemu VM. This makes testing kernel changes quick and easy 
compared to swapping the host kernel for reach iterative change. So far 
I've had very few issues doing this, maybe I've just been lucky... I 
tried doing this with an ath11k (WCN6855) card and ran into issues with 
the driver starting up. I'm wondering if its a configuration issue or 
just a lack of support by ath11k? The card works just fine when I use it 
on my host machine. Based on the logs it may not even be related to 
ath11k as wmi-bmof seems to fail first, but I'm not familiar with 
anything at the PCI level so I've got no idea whats going on.

My host machine is running 5.19

Booting into a 6.2 kernel with Qemu

Below is a partial kernel log of relevant messages:

[    0.318120] ath11k_pci 0000:00:06.0: BAR 0: assigned [mem 
0x100000000-0x1001fffff 64bit]
[    0.319006] ath11k_pci 0000:00:06.0: MSI vectors: 1
[    0.319075] ath11k_pci 0000:00:06.0: wcn6855 hw2.1
[    0.475326] mhi mhi0: Requested to power ON
[    0.475333] mhi mhi0: Power on setup success
[    1.440375] Driver 'wmi-bmof' was unable to register with bus_type 
'wmi' because the bus was not initialized.
[    1.459667] ath11k_pci 0000:00:06.0: chip_id 0x12 chip_family 0xb 
board_id 0xff soc_id 0x400c1211
[    1.459674] ath11k_pci 0000:00:06.0: fw_version 0x1109996e 
fw_build_timestamp 2023-12-19 11:11 fw_build_id 
WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.36
[    1.528705] ath11k_pci 0000:00:06.0: leaving PCI ASPM disabled to 
avoid MHI M2 problems
[    2.537835] ath11k_pci 0000:00:06.0: failed to receive control 
response completion, polling..
[    3.562151] ath11k_pci 0000:00:06.0: Service connect timeout
[    3.563511] ath11k_pci 0000:00:06.0: failed to connect to HTT: -110
[    3.565375] ath11k_pci 0000:00:06.0: failed to start core: -110
[    3.776067] ath11k_pci 0000:00:06.0: ignore reset dev flags 0x4000
[   13.802149] ath11k_pci 0000:00:06.0: failed to wait wlan mode request 
(mode 4): -110
[   13.802163] ath11k_pci 0000:00:06.0: qmi failed to send wlan mode 
off: -110

             reply	other threads:[~2024-01-08 13:17 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-08 13:17 James Prestwood [this message]
2024-01-10  9:00 ` ath11k and vfio-pci support Kalle Valo
2024-01-10 13:04   ` James Prestwood
2024-01-10 13:49     ` Kalle Valo
2024-01-10 14:55       ` James Prestwood
2024-01-11  3:51         ` Baochen Qiang
2024-01-11  8:16           ` Kalle Valo
2024-01-11 12:48             ` James Prestwood
2024-01-11 13:11               ` Kalle Valo
2024-01-11 13:38                 ` James Prestwood
2024-01-12  2:04                   ` Baochen Qiang
2024-01-12 12:47                     ` James Prestwood
2024-01-14 12:37                       ` Baochen Qiang
2024-01-14 14:36                         ` Kalle Valo
2024-01-15 17:46                           ` Alex Williamson
2024-01-16 10:08                             ` Baochen Qiang
2024-01-16 10:41                               ` David Woodhouse
2024-01-16 15:29                                 ` Jason Gunthorpe
2024-01-16 18:28                                 ` Alex Williamson
2024-01-16 21:10                                   ` Jeff Johnson
2024-01-17  5:47                                 ` Baochen Qiang
2024-03-21 19:14                                 ` Johannes Berg
2024-01-16 13:05                         ` James Prestwood
2024-01-17  5:26                           ` Baochen Qiang
2024-01-17 13:20                             ` James Prestwood
2024-01-17 13:43                               ` Kalle Valo
2024-01-17 14:25                                 ` James Prestwood
2024-01-18  2:09                               ` Baochen Qiang
2024-01-19 17:52                                 ` James Prestwood
2024-01-19 17:57                                   ` Kalle Valo
2024-01-19 18:07                                     ` James Prestwood
2024-01-26 18:20                                     ` James Prestwood
2024-01-27  4:31                                       ` Baochen Qiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=adcb785e-4dc7-4c4a-b341-d53b72e13467@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).