SATA on R-Car H3 ES2.0 works fine with the IOMMU.
This is also needed for virtualization.

Signed-off-by: Geert Uytterhoeven <geert+rene...@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(+)

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;
 }
-- 
2.17.1

Reply via email to