Commit 739eb25
iommu/amd: Introduce iommu_dev_data.ppr
For AMD IOMMU, the PPR feature is needed to support IO page fault (IOPF).
PPR is enabled per PCI end-point device, and is configured by the PPR bit
in the IOMMU device table entry (i.e DTE[PPR]).
Introducing struct iommu_dev_data.ppr track PPR setting for each device.
Also iommu_dev_data.ppr will be set only when IOMMU supports PPR. Hence
remove redundant feature support check in set_dte_entry().
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Co-developed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20230921092147.5930-12-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent b0cc5da commit 739eb25
2 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| 819 | + | |
819 | 820 | | |
820 | 821 | | |
821 | 822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1638 | 1638 | | |
1639 | 1639 | | |
1640 | 1640 | | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
| 1641 | + | |
| 1642 | + | |
1645 | 1643 | | |
1646 | 1644 | | |
1647 | 1645 | | |
| |||
1734 | 1732 | | |
1735 | 1733 | | |
1736 | 1734 | | |
1737 | | - | |
| 1735 | + | |
1738 | 1736 | | |
1739 | 1737 | | |
1740 | 1738 | | |
| |||
2013 | 2011 | | |
2014 | 2012 | | |
2015 | 2013 | | |
2016 | | - | |
| 2014 | + | |
2017 | 2015 | | |
2018 | 2016 | | |
2019 | 2017 | | |
| |||
0 commit comments