Commit 3d4c7cc
iommu/vt-d: Move iopf code from SVA to IOPF enabling path
Generally enabling IOMMU_DEV_FEAT_SVA requires IOMMU_DEV_FEAT_IOPF, but
some devices manage I/O Page Faults themselves instead of relying on the
IOMMU. Move IOPF related code from SVA to IOPF enabling path.
For the device drivers that relies on the IOMMU for IOPF through PCI/PRI,
IOMMU_DEV_FEAT_IOPF must be enabled before and disabled after
IOMMU_DEV_FEAT_SVA.
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230324120234.313643-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent a86fb77 commit 3d4c7cc
1 file changed
Lines changed: 18 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4638 | 4638 | | |
4639 | 4639 | | |
4640 | 4640 | | |
4641 | | - | |
4642 | 4641 | | |
4643 | 4642 | | |
4644 | 4643 | | |
| |||
4667 | 4666 | | |
4668 | 4667 | | |
4669 | 4668 | | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
4670 | 4684 | | |
4671 | 4685 | | |
4672 | 4686 | | |
| |||
4678 | 4692 | | |
4679 | 4693 | | |
4680 | 4694 | | |
4681 | | - | |
| 4695 | + | |
4682 | 4696 | | |
4683 | 4697 | | |
4684 | 4698 | | |
| |||
4695 | 4709 | | |
4696 | 4710 | | |
4697 | 4711 | | |
4698 | | - | |
4699 | | - | |
4700 | | - | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
4704 | | - | |
4705 | | - | |
4706 | | - | |
4707 | | - | |
4708 | 4712 | | |
4709 | 4713 | | |
4710 | 4714 | | |
| |||
4725 | 4729 | | |
4726 | 4730 | | |
4727 | 4731 | | |
4728 | | - | |
| 4732 | + | |
4729 | 4733 | | |
4730 | 4734 | | |
4731 | | - | |
| 4735 | + | |
4732 | 4736 | | |
4733 | 4737 | | |
4734 | 4738 | | |
| |||
0 commit comments