提交 6c274d1c 编写于 作者: O Ohad Ben-Cohen 提交者: Joerg Roedel

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: NOhad Ben-Cohen <ohad@wizery.com>
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 6d1c56a9
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册