summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_proto.h
Commit message (Collapse)AuthorAgeFilesLines
* perf/x86/amd: Add IOMMU Performance Counter resource managementSteven L Kinney2013-06-191-0/+7
| | | | | | | | | | | | | | | Add functionality to check the availability of the AMD IOMMU Performance Counters and export this functionality to other core drivers, such as in this case, a perf AMD IOMMU PMU. This feature is not bound to any specific AMD family/model other than the presence of the IOMMU with P-C enabled. The AMD IOMMU P-C support static counting only at this time. Signed-off-by: Steven Kinney <steven.kinney@amd.com> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1370466709-3212-2-git-send-email-suravee.suthikulpanit@amd.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
* iommu/amd: Add initialization routines for AMD interrupt remappingJoerg Roedel2012-09-281-0/+8
| | | | | | | | Add the six routines required to setup interrupt remapping with the AMD IOMMU. Also put it all together into the AMD specific irq_remap_ops. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Add function to get IOMMUv2 domain for pdevJoerg Roedel2011-12-121-0/+1
| | | | | | | | The AMD IOMMUv2 driver needs to get the IOMMUv2 domain associated with a particular device. This patch adds a function to get this information. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Implement function to send PPR completionsJoerg Roedel2011-12-121-0/+6
| | | | | | | To send completions for PPR requests this patch adds a function which can be used by the IOMMUv2 driver. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Implement functions to manage GCR3 tableJoerg Roedel2011-12-121-0/+4
| | | | | | | | This patch adds functions necessary to set and clear the GCR3 values associated with a particular PASID in an IOMMUv2 domain. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Implement IOMMUv2 TLB flushing routinesJoerg Roedel2011-12-121-0/+3
| | | | | | | | The functions added with this patch allow to manage the IOMMU and the device TLBs for all devices in an IOMMUv2 domain. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Add support for IOMMUv2 domain modeJoerg Roedel2011-12-121-0/+1
| | | | | | | This patch adds support for protection domains that implement two-level paging for devices. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Add amd_iommu_domain_direct_map functionJoerg Roedel2011-12-121-0/+3
| | | | | | | | This function can be used to switch a domain into paging-mode 0. In this mode all devices can access physical system memory directly without any remapping. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Implement notifier for PPR faultsJoerg Roedel2011-12-121-0/+3
| | | | | | | Add a notifer at which a module can attach to get informed about incoming PPR faults. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Add iommuv2 flag to struct amd_iommuJoerg Roedel2011-12-121-0/+3
| | | | | | | | | | In mixed IOMMU setups this flag inidicates whether an IOMMU supports the v2 features or not. This patch also adds a global flag together with a function to query that flag from other code. The flag shows if at least one IOMMUv2 is in the system. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Move missing parts to drivers/iommuJoerg Roedel2011-06-211-0/+54
A few parts of the driver were missing in drivers/iommu. Move them there to have the complete driver in that directory. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
OpenPOWER on IntegriCloud