Skip to content

Commit cde9319

Browse files
snitsjoergroedel
authored andcommitted
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: d850c2e ("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>
1 parent d360211 commit cde9319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5728,7 +5728,7 @@ static void intel_iommu_get_resv_regions(struct device *device,
57285728
struct pci_dev *pdev = to_pci_dev(device);
57295729

57305730
if ((pdev->class >> 8) == PCI_CLASS_BRIDGE_ISA) {
5731-
reg = iommu_alloc_resv_region(0, 1UL << 24, 0,
5731+
reg = iommu_alloc_resv_region(0, 1UL << 24, prot,
57325732
IOMMU_RESV_DIRECT_RELAXABLE);
57335733
if (reg)
57345734
list_add_tail(&reg->list, head);

0 commit comments

Comments
 (0)