Message ID | 20180725140324.8239-1-geert+renesas@glider.be (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Geert Uytterhoeven |
Headers | show |
Series | [PATCH/RFC] iommu/ipmmu-vmsa: Whitelist SATA for IOMMU use and virtualization | expand |
diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index ef566b4989d6e2f8..f6f7b7e8cb982769 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c @@ -751,6 +751,9 @@ static int ipmmu_init_platform_device(struct device *dev, static bool ipmmu_slave_whitelist(struct device *dev) { + if (!strcmp(dev_name(dev), "ee300000.sata")) + return true; + /* By default, do not allow use of IPMMU */ return false; }
SATA on R-Car H3 ES2.0 works fine with the IOMMU. This is also needed for virtualization. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- For testing virtualization, this patch and all prerequisites are available in the topic/rcar3-virt-gpio-passthrough-v3 branch of my git repository at git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git. drivers/iommu/ipmmu-vmsa.c | 3 +++ 1 file changed, 3 insertions(+)