]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
iommu/vt-d: Preset Access/Dirty bits for IOVA over FL
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 15 Jan 2021 00:42:02 +0000 (08:42 +0800)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:35 +0000 (17:46 -0600)
commite9597d93d820a05e268bd872575971843ea46fed
tree44548216a4a4fa190880747efe0d5b722046729a
parent836b6cefbd7a77ee0854416e13fb5e9c2509364a
iommu/vt-d: Preset Access/Dirty bits for IOVA over FL

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit a8ce9ebbecdfda3322bbcece6b3b25888217f8e3 ]

The Access/Dirty bits in the first level page table entry will be set
whenever a page table entry was used for address translation or write
permission was successfully translated. This is always true when using
the first-level page table for kernel IOVA. Instead of wasting hardware
cycles to update the certain bits, it's better to set them up at the
beginning.

Suggested-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210115004202.953965-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/iommu/intel/iommu.c
include/linux/intel-iommu.h