aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel/debugfs.c
diff options
context:
space:
mode:
authorJingqi Liu <[email protected]>2024-04-24 07:16:30 +0000
committerJoerg Roedel <[email protected]>2024-04-26 09:57:38 +0000
commitcc9e49d35b4de47d6b656ac144cb22b11dc65c2e (patch)
treef6bb606f07911f6eaf5297c2322fb146ece37b8e /drivers/iommu/intel/debugfs.c
parentiommu/vt-d: Allocate DMAR fault interrupts locally (diff)
downloadkernel-cc9e49d35b4de47d6b656ac144cb22b11dc65c2e.tar.gz
kernel-cc9e49d35b4de47d6b656ac144cb22b11dc65c2e.zip
iommu/vt-d: Remove debugfs use of private data field
Since the page fault report and response have been tracked by ftrace, the users can easily calculate the time used for a page fault handling. There's no need to expose the similar functionality in debugfs. Hence, remove the corresponding operations in debugfs. Signed-off-by: Jingqi Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/iommu/intel/debugfs.c')
-rw-r--r--drivers/iommu/intel/debugfs.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/iommu/intel/debugfs.c b/drivers/iommu/intel/debugfs.c
index 86b506af7daa..affbf4a1558d 100644
--- a/drivers/iommu/intel/debugfs.c
+++ b/drivers/iommu/intel/debugfs.c
@@ -706,7 +706,6 @@ static ssize_t dmar_perf_latency_write(struct file *filp,
dmar_latency_disable(iommu, DMAR_LATENCY_INV_IOTLB);
dmar_latency_disable(iommu, DMAR_LATENCY_INV_DEVTLB);
dmar_latency_disable(iommu, DMAR_LATENCY_INV_IEC);
- dmar_latency_disable(iommu, DMAR_LATENCY_PRQ);
}
rcu_read_unlock();
break;
@@ -728,12 +727,6 @@ static ssize_t dmar_perf_latency_write(struct file *filp,
dmar_latency_enable(iommu, DMAR_LATENCY_INV_IEC);
rcu_read_unlock();
break;
- case 4:
- rcu_read_lock();
- for_each_active_iommu(iommu, drhd)
- dmar_latency_enable(iommu, DMAR_LATENCY_PRQ);
- rcu_read_unlock();
- break;
default:
return -EINVAL;
}