Bug 2367 - SIOV - DSA PF pasid bind failed with iommu=pt in the guest VM
Summary: SIOV - DSA PF pasid bind failed with iommu=pt in the guest VM
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: virt (show other bugs) virt
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: AubreyLi
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-12 10:13 UTC by AubreyLi
Modified: 2023-01-17 15:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AubreyLi intel_group 2022-10-12 10:13:29 UTC
When pass through DSA PF to the guest VM with iommu=pt,

Qemu reports:

qemu-system-x86_64: vfio_host_iommu_ctx_bind_stage1_pgtbl: pasid (0) bind failed: Invalid argument
qemu-system-x86_64: vfio_host_iommu_ctx_bind_stage1_pgtbl: pasid (2) bind failed: Invalid argument

Guest vm dmesg:

[    8.544941] DMAR: VT-d detected Invalidation Queue Error: Reason 0
[    8.544958] DMAR: QI HEAD: PASID-cache Invalidation qw0 = 0x200010017, qw1 = 0x0
[    8.559109] DMAR: QI PRIOR: Invalidation Wait qw0 = 0x200000025, qw1 = 0x1012370fc
[    8.559200] DMAR: Invalidation Queue Error (IQE) cleared

DMAtest reports:

[ 2309.621925] dmatest: dma0chan0-copy0: result #2: 'submit error' with src_off=0x7a8 dst_off=0x1140 len=0x29d8 (0)
[ 2309.733940] dmatest: dma0chan0-copy0: result #3: 'submit error' with src_off=0x2cb2 dst_off=0x31b len=0xa0f (0)
[ 2309.845878] dmatest: dma0chan0-copy0: result #4: 'submit error' with src_off=0xcd3 dst_off=0xf48 len=0x1274 (0)
[ 2309.957866] dmatest: dma0chan0-copy0: result #5: 'submit error' with src_off=0x275b dst_off=0x8f2 len=0x13e8 (0)
[ 2310.069880] dmatest: dma0chan0-copy0: result #6: 'submit error' with src_off=0x20 dst_off=0xe1 len=0x3e9e (0)
[ 2310.181865] dmatest: dma0chan0-copy0: result #7: 'submit error' with src_off=0x9 dst_off=0xf6 len=0x3ed1 (0)
[ 2310.293865] dmatest: dma0chan0-copy0: result #8: 'submit error' with src_off=0x202f dst_off=0x1e7c len=0x1611 (0)
[ 2310.405881] dmatest: dma0chan0-copy0: result #9: 'submit error' with src_off=0x31e dst_off=0x24f len=0x2456 (0)
[ 2310.517881] dmatest: dma0chan0-copy0: result #10: 'submit error' with src_off=0x3b5 dst_off=0x129f len=0x189b (0)
[ 2310.629260] dmatest: dma0chan0-copy0: summary 10 tests, 10 failures 8.90 iops 76 KB/s (0)
Comment 1 maqiao alibaba_cloud_group 2023-01-17 15:11:19 UTC
merged: https://gitee.com/anolis/cloud-kernel/pulls/763