[PATCH RFT] ath11k: pci: support platforms with one MSI vector

Rama McIntosh face00 at gmail.com
Fri Oct 22 16:16:38 PDT 2021


Hi Kalle and Carl,

Nice, I missed this patch.    While my hardware supports multi-vector
msi and the driver works great on fedora (dell 9700), I run Qubes-os
and qemu hw/xen currently only supports a single msi vector.   I've
been looking into fixing qemu to support multi-vector msi...but don't
have a lot of free time and am still learning how pci and qemu all
work (should be doable, qemu supports multi vector for msix, just not
msi).

I applied this patch to the latest Qubes-os 4.1 alpha (kernel
5.10.71).      Now instead of the msi initialization error (-28),  I
get a page fault and kernel panic in my sys-net vm.   I tried
permissive mode and no-strict-rest mode too, same effect (i.e 'qvm-pci
attach sys-net-clone-1  dom0:05_00.0 --persistent -o permissive=true
-o no-strict-reset=true').    However, I'm excited and I will see if I
can fix this patch to work with xen as soon as I have some time off
work.    Here is the details:

[2021-10-22 12:46:11] [    2.920848] ath11k_pci 0000:00:06.0: link
down error during global reset
[2021-10-22 12:46:11] [    2.941848] ath11k_pci 0000:00:06.0: link
down error during global reset
[2021-10-22 12:46:11] [    2.972047] mhi 0000:00:06.0: Requested to power ON
[2021-10-22 12:46:11] [    2.975416] BUG: unable to handle page fault
for address: ffff9a46c070001f
[2021-10-22 12:46:11] [    2.975417] #PF: supervisor write access in kernel mode
[2021-10-22 12:46:11] [    2.975418] #PF: error_code(0x0002) - not-present page
[2021-10-22 12:46:11] [    2.975419] PGD 1000067 P4D 1000067 PUD 0
[2021-10-22 12:46:11] [    2.975421] Oops: 0002 [#1] SMP PTI
[2021-10-22 12:46:11] [    2.975422] CPU: 0 PID: 314 Comm:
systemd-udevd Not tainted 5.10.71-2.fc32.qubes.x86_64 #1
[2021-10-22 12:46:11] [    2.975423] Hardware name: Xen HVM domU, BIOS
4.14.3 10/09/2021
[2021-10-22 12:46:11] [    2.975426] RIP:
0010:ath11k_mhi_op_write_reg+0x5/0x10 [ath11k_pci]
[2021-10-22 12:46:11] [    2.975427] Code: 00 00 00 00 00 0f 1f 44 00
00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 06 89 02 31 c0
c3 0f 1f 40 00 0f 1f 44 00 00 <89> 16 c3 0f 1f 84 00 00 00 00 00 48 83
ef 01 b8 ff ff ff ff 48 c1
[2021-10-22 12:46:11] [    2.975428] RSP: 0018:ffff9a45c0283b10 EFLAGS: 00010082
[2021-10-22 12:46:11] [    2.975429] RAX: ffffffffc0a09040 RBX:
0000000000000000 RCX: 0000000000000000
[2021-10-22 12:46:11] [    2.975429] RDX: 0000000000000000 RSI:
ffff9a46c070001f RDI: ffff8d6682d92800
[2021-10-22 12:46:11] [    2.975430] RBP: ffff8d668fe40000 R08:
0000000000000020 R09: ffffffff8c944708
[2021-10-22 12:46:11] [    2.975430] R10: 0000000000000000 R11:
0000000000000000 R12: 0000000000000000
[2021-10-22 12:46:11] [    2.975431] R13: ffff8d6682d91c28 R14:
ffff8d6682d92920 R15: ffff8d6682d92800
[2021-10-22 12:46:11] [    2.975432] FS:  0000792a78e7db40(0000)
GS:ffff8d66bd400000(0000) knlGS:0000000000000000
[2021-10-22 12:46:11] [    2.975433] CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
[2021-10-22 12:46:11] [    2.975433] CR2: ffff9a46c070001f CR3:
000000000b520002 CR4: 00000000007706f0
[2021-10-22 12:46:11] [    2.975435] PKRU: 55555554
[2021-10-22 12:46:11] [    2.975436] Call Trace:
[2021-10-22 12:46:11] [    2.975440]  mhi_async_power_up+0x1b7/0x401 [mhi]
[2021-10-22 12:46:11] [    2.975442]  ? mhi_init_dev_ctxt+0x262/0x430 [mhi]
[2021-10-22 12:46:11] [    2.975447]  ath11k_mhi_start+0x6d/0x120 [ath11k_pci]
[2021-10-22 12:46:11] [    2.975449]  ath11k_pci_power_up+0x3c/0x70 [ath11k_pci]
[2021-10-22 12:46:11] [    2.975455]  ath11k_core_soc_create+0x36/0xa0 [ath11k]
[2021-10-22 12:46:11] [    2.975458]  ath11k_core_init+0x12/0x40 [ath11k]
[2021-10-22 12:46:11] [    2.975461]  ? irq_get_irq_data+0xa/0x20
[2021-10-22 12:46:11] [    2.975463]  ath11k_pci_probe+0x2ad/0x318 [ath11k_pci]
[2021-10-22 12:46:11] [    2.975466]  local_pci_probe+0x42/0x80
[2021-10-22 12:46:11] [    2.975820]  ? _cond_resched+0x16/0x40
[2021-10-22 12:46:11] [    2.975822]  pci_call_probe+0x51/0xf0
[2021-10-22 12:46:11] [    2.975823]  pci_device_probe+0xa5/0xe0
[2021-10-22 12:46:11] [    2.975826]  really_probe+0x222/0x480
[2021-10-22 12:46:11] [    2.975828]  driver_probe_device+0xe1/0x150
[2021-10-22 12:46:11] [    2.975829]  device_driver_attach+0xa1/0xb0
[2021-10-22 12:46:11] [    2.975831]  __driver_attach+0x8a/0x150
[2021-10-22 12:46:11] [    2.975832]  ? device_driver_attach+0xb0/0xb0
[2021-10-22 12:46:11] [    2.975833]  ? device_driver_attach+0xb0/0xb0
[2021-10-22 12:46:11] [    2.975835]  bus_for_each_dev+0x89/0xd0
[2021-10-22 12:46:11] [    2.975836]  bus_add_driver+0x12b/0x1e0
[2021-10-22 12:46:11] [    2.975838]  driver_register+0x8f/0xe0
[2021-10-22 12:46:11] [    2.975840]  ?
ath11k_get_user_msi_assignment+0x20/0x20 [ath11k_pci]
[2021-10-22 12:46:11] [    2.975841]  ath11k_pci_init+0x21/0x40 [ath11k_pci]
[2021-10-22 12:46:11] [    2.975843]  do_one_initcall+0x57/0x200
[2021-10-22 12:46:11] [    2.975846]  do_init_module+0x5c/0x260
[2021-10-22 12:46:11] [    2.975847]  __do_sys_finit_module+0xb1/0x110
[2021-10-22 12:46:11] [    2.975849]  do_syscall_64+0x33/0x40
[2021-10-22 12:46:11] [    2.975851]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[2021-10-22 12:46:11] [    2.975853] RIP: 0033:0x792a79ac2e0d
[2021-10-22 12:46:11] [    2.975855] Code: c8 0c 00 0f 05 eb a9 66 0f
1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2
4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 3b
80 0c 00 f7 d8 64 89 01 48
[2021-10-22 12:46:11] [    2.975855] RSP: 002b:00007ffc4ae4dc18
EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[2021-10-22 12:46:11] [    2.975856] RAX: ffffffffffffffda RBX:
00005e699a802970 RCX: 0000792a79ac2e0d
[2021-10-22 12:46:11] [    2.975857] RDX: 0000000000000000 RSI:
0000792a79c1c32c RDI: 0000000000000013
[2021-10-22 12:46:11] [    2.975857] R[2021-10-22 12:46:11] BP:
0000000000020000 R08: 0000000000000000 R09: 0000000000000000
[2021-10-22 12:46:11] [    2.975858] R10: 0000000000000013 R11:
0000000000000246 R12: 0000792a79c1c32c
[2021-10-22 12:46:11] [    2.975858] R13: 00005e699a7d2380 R14:
0000000000000007 R15: 00005e699a8dbf70
[2021-10-22 12:46:11] [    2.975859] Modules linked in: iptable_nat
nf_nat nf_conntrack qrtr nf_defrag_ipv6 ns nf_defrag_ipv4
ath11k_pci(+) mhi intel_cstate(-) ath11k qmi_helpers mac80211
drm_vram_helper drm_ttm_helper ttm drm_kms_helper pcspkr cfg80211
ehci_pci rfkill serio_raw libarc4 ehci_hcd ata_generic cec i2c_piix4
pata_acpi floppy xen_scsiback target_core_mod xen_netback xen_privcmd
xen_gntdev xen_gntalloc xen_blkback xen_evtchn drm fuse bpf_preload
ip_tables overlay xen_blkfront
[2021-10-22 12:46:11] [    2.975879] CR2: ffff9a46c070001f
[2021-10-22 12:46:11] [    2.975882] ---[ end trace 7cec67ab6b3c652d ]---
[2021-10-22 12:46:11] [    2.975884] RIP:
0010:ath11k_mhi_op_write_reg+0x5/0x10 [ath11k_pci]
[2021-10-22 12:46:11] [    2.975884] Code: 00 00 00 00 00 0f 1f 44 00
00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 06 89 02 31 c0
c3 0f 1f 40 00 0f 1f 44 00 00 <89> 16 c3 0f 1f 84 00 00 00 00 00 48 83
ef 01 b8 ff ff ff ff 48 c1
[2021-10-22 12:46:11] [    2.975885] RSP: 0018:ffff9a45c0283b10 EFLAGS: 00010082
[2021-10-22 12:46:11] [    2.975886] RAX: ffffffffc0a09040 RBX:
0000000000000000 RCX: 0000000000000000
[2021-10-22 12:46:11] [    2.975886] RDX: 0000000000000000 RSI:
ffff9a46c070001f RDI: ffff8d6682d92800
[2021-10-22 12:46:11] [    2.975887] RBP: ffff8d668fe40000 R08:
0000000000000020 R09: ffffffff8c944708
[2021-10-22 12:46:11] [    2.975887] R10: 0000000000000000 R11:
0000000000000000 R12: 0000000000000000
[2021-10-22 12:46:11] [    2.975888] R13: ffff8d6682d91c28 R14:
ffff8d6682d92920 R15: ffff8d6682d92800
[2021-10-22 12:46:11] [    2.975889] FS:  0000792a78e7db40(0000)
GS:ffff8d66bd400000(0000) knlGS:0000000000000000
[2021-10-22 12:46:11] [    2.975889] CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
[2021-10-22 12:46:11] [    2.975890] CR2: ffff9a46c070001f CR3:
000000000b520002 CR4: 00000000007706f0
[2021-10-22 12:46:11] [    2.975890] PKRU: 55555554
[2021-10-22 12:46:11] [    2.975891] Kernel panic - not syncing: Fatal exception
[2021-10-22 12:46:11] [    2.975948] Kernel Offset: 0xa000000 from
0xffffffff81000000 (relocation range:
0xffffffff80000000-0xffffffffbfffffff)




-- 
http://myutil.com



More information about the ath11k mailing list