summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel/svm.c
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2021-08-18 16:48:48 +0300
committerJoerg Roedel <jroedel@suse.de>2021-08-19 11:41:08 +0300
commit289b3b005cb9d9dd6b30297b52c2b4596bc878b2 (patch)
treefbbfa6ceb84862eeeb8be20af160039658b14b24 /drivers/iommu/intel/svm.c
parent792fb43ce2c98878f1539c1d3fdecc1d7a7d78fd (diff)
downloadlinux-289b3b005cb9d9dd6b30297b52c2b4596bc878b2.tar.xz
iommu/vt-d: Preset A/D bits for user space DMA usage
We preset the access and dirty bits for IOVA over first level usage only for the kernel DMA (i.e., when domain type is IOMMU_DOMAIN_DMA). We should also preset the FL A/D for user space DMA usage. The idea is that even the user space A/D bit memory write is unnecessary. We should avoid it to minimize the overhead. Suggested-by: Sanjay Kumar <sanjay.k.kumar@intel.com> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20210720013856.4143880-1-baolu.lu@linux.intel.com Link: https://lore.kernel.org/r/20210818134852.1847070-6-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/svm.c')
0 files changed, 0 insertions, 0 deletions