iommu dmar pci passthrough regression
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
I'd like to reduce clutter and get the most use out of my existing infrastructure so I wanted to stop using an external VOIP gateway for my PSTN lines and use a dedicated card with Asterisk instead via VT-d and the iommu under Virtualbox 4.1.34. The hardware I have is capable and the relevant BIOS and kernel options are enabled. I have set intel_iommu=on and I have also tried using the additional kernel option iommu=pt.
After testing I can confirm that this works correctly using linux 3.2.0-70-generic but not with 3.5.0-54-generic, 3.13.0-37-generic or 3.16.6-
Release: Ubuntu 12.04.5 LTS
Linux 3.13.0-37-generic #64~precise1-Ubuntu SMP Wed Sep 24 21:37:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Motherboard: Gigabyte Technology Co., Ltd. Z87X-D3H/
The card I'd like to pass to the guest...
03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)
I have setup pci-stub with the above and set vboxpci to softdep on it. Not sure if that's necessary or not as there are no host drivers available.
The error I'm seeing when loading the kernel module in the guest (except when using kernel 3.2 which works properly). Modprobe hangs in the guest and eventually causes the guest to freeze.
Oct 24 09:05:08 kernel: [ 81.496003] dmar: DRHD: handling fault status reg 3
Oct 24 09:05:08 kernel: [ 81.496032] dmar: DMAR:[DMA Read] Request device [03:00.0] fault addr 7349c000
Oct 24 09:05:08 kernel: [ 81.496032] DMAR:[fault reason 06] PTE Read access is not set
Another error which may be related...
WARNING: CPU: 4 PID: 1 at /build/
If there is any possibility of trying the patch mentioned in bugzilla with the current kernel that would be great. I'm going to look and see if there is a later kernel available to try as I'm not sure if 3.16.6 has it or not.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.13.0-37-generic x86_64
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
MachineType: Gigabyte Technology Co., Ltd. Z87X-D3H
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.79.18
RfKill: Error: [Errno 2] No such file or directory
SourcePackage: linux-lts-trusty
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/25/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F9
dmi.board.
dmi.board.name: Z87X-D3H-CF
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: Z87X-D3H
dmi.product.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
Tried Linux version 3.17.1- 031701- generic intel_iommu=on also with and without iommu=pt
Does appear to resolve the pci_find_ upstream_ pcie_bridge error message but PCI passthrough is still not working....
Oct 26 06:35:39 kernel: [ 227.795652] dmar: DRHD: handling fault status reg 3
Oct 26 06:35:39 kernel: [ 227.795678] dmar: DMAR:[DMA Read] Request device [03:00.0] fault addr 73ac6000
Oct 26 06:35:39 kernel: [ 227.795678] DMAR:[fault reason 06] PTE Read access is not set
Also tried Linux version 3.18.0- 031800rc1- generic
pci_find_ upstream_ pcie_bridge error message resolved but there were more error messages...
Oct 26 08:09:11 kernel: [ 5.591085] vboxdrv: Successfully loaded version 4.1.34 (interface 0x00190000).
Oct 26 08:09:11 kernel: [ 5.809189] dmar: DRHD: handling fault status reg 2
Oct 26 08:09:11 kernel: [ 5.809615] dmar: DMAR:[DMA Write] Request device [00:02.0] fault addr 7300000000
Oct 26 08:09:11 kernel: [ 5.809615] DMAR:[fault reason 05] PTE Write access is not set
Oct 26 08:09:13 kernel: [ 7.688709] vboxpci: iommu_attach_ device( ) success
Oct 26 08:09:13 kernel: [ 7.804686] dmar: DRHD: handling fault status reg 2
Oct 26 08:09:13 kernel: [ 7.805118] dmar: DMAR:[DMA Write] Request device [00:02.0] fault addr 7300000000
Oct 26 08:09:13 kernel: [ 7.805118] DMAR:[fault reason 05] PTE Write access is not set
Oct 26 08:10:56 kernel: [ 111.141785] dmar: DRHD: handling fault status reg 3
Oct 26 08:10:56 kernel: [ 111.141811] dmar: DMAR:[DMA Read] Request device [03:00.0] fault addr 728be000
Oct 26 08:10:56 kernel: [ 111.141811] DMAR:[fault reason 06] PTE Read access is not set
Oct 26 08:10:56 kernel: [ 111.141847] dmar: DRHD: handling fault status reg 3
Oct 26 08:10:56 kernel: [ 111.141863] dmar: DMAR:[DMA Read] Request device [03:00.0] fault addr 0
Oct 26 08:10:56 kernel: [ 111.141863] DMAR:[fault reason 06] PTE Read access is not set