iommu/vt-d: Allocate reserved region for ISA with correct permission
authorJerry Snitselaar <jsnitsel@redhat.com>
Fri, 13 Dec 2019 05:36:42 +0000 (22:36 -0700)
committerJoerg Roedel <jroedel@suse.de>
Tue, 17 Dec 2019 10:48:18 +0000 (11:48 +0100)
commitcde9319e884eb6267a0df446f3c131fe1108defb
tree21b9617bff42b829b02a047ecadb476066c1d212
parentd360211524bece6db9920f32c91808235290b51c
iommu/vt-d: Allocate reserved region for ISA with correct permission

Currently the reserved region for ISA is allocated with no
permissions. If a dma domain is being used, mapping this region will
fail. Set the permissions to DMA_PTE_READ|DMA_PTE_WRITE.

Cc: Joerg Roedel <jroedel@suse.de>
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Cc: iommu@lists.linux-foundation.org
Cc: stable@vger.kernel.org # v5.3+
Fixes: d850c2ee5fe2 ("iommu/vt-d: Expose ISA direct mapping region via iommu_get_resv_regions")
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c