Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c274d1c authored by Ohad Ben-Cohen's avatar Ohad Ben-Cohen Committed by Joerg Roedel
Browse files

iommu/core: remove the temporary pgsize settings



Now that all IOMMU drivers are exporting their supported pgsizes,
we can remove the default pgsize settings in register_iommu().

Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 6d1c56a9
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -49,16 +49,6 @@ int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops)
	if (bus->iommu_ops != NULL)
		return -EBUSY;

	/*
	 * Set the default pgsize values, which retain the existing
	 * IOMMU API behavior: drivers will be called to map
	 * regions that are sized/aligned to order of 4KiB pages.
	 *
	 * This will be removed once all drivers are migrated.
	 */
	if (!ops->pgsize_bitmap)
		ops->pgsize_bitmap = ~0xFFFUL;

	bus->iommu_ops = ops;

	/* Do IOMMU specific setup for this bus-type */