aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-09-09 10:47:35 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-19 06:59:17 -0400
commit126c52be4b1d2eb667a1d140f0ceaff9d353f700 (patch)
tree8b6bf75d6b6b11be14101cf25a9a94dedf2caa92 /arch/x86
parent90008ee4b811c944455752dcb72b291a5ba81b53 (diff)
AMD IOMMU: enable event logging
The code to log IOMMU events is in place now. So enable event logging with this patch. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/amd_iommu_init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index eed488892c01..1974b73fece6 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -253,6 +253,13 @@ void __init iommu_enable(struct amd_iommu *iommu)
253 iommu_feature_enable(iommu, CONTROL_IOMMU_EN); 253 iommu_feature_enable(iommu, CONTROL_IOMMU_EN);
254} 254}
255 255
256/* Function to enable IOMMU event logging and event interrupts */
257void __init iommu_enable_event_logging(struct amd_iommu *iommu)
258{
259 iommu_feature_enable(iommu, CONTROL_EVT_LOG_EN);
260 iommu_feature_enable(iommu, CONTROL_EVT_INT_EN);
261}
262
256/* 263/*
257 * mapping and unmapping functions for the IOMMU MMIO space. Each AMD IOMMU in 264 * mapping and unmapping functions for the IOMMU MMIO space. Each AMD IOMMU in
258 * the system has one. 265 * the system has one.
@@ -958,6 +965,7 @@ static void __init enable_iommus(void)
958 list_for_each_entry(iommu, &amd_iommu_list, list) { 965 list_for_each_entry(iommu, &amd_iommu_list, list) {
959 iommu_set_exclusion_range(iommu); 966 iommu_set_exclusion_range(iommu);
960 iommu_init_msi(iommu); 967 iommu_init_msi(iommu);
968 iommu_enable_event_logging(iommu);
961 iommu_enable(iommu); 969 iommu_enable(iommu);
962 } 970 }
963} 971}