iommu/ipmmu-vmsa: R-Car V3H SYS-DMAC whitelist prototype
From: Magnus Damm <[email protected]>
For testing purpose enable IPMMU for SYS-DMAC1 and SYS-DMAC2 on R-Car V3H.
Not for upstream merge.
Not-Yet-Signed-off-by Magnus Damm <[email protected]>
---
Applies on top of renesas-devel-20180914-v4.19-rc3
drivers/iommu/ipmmu-vmsa.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/iommu/ipmmu-vmsa.c +8 -0
@@ -756,6 +756,14 @@ static int ipmmu_init_platform_device(ststatic bool ipmmu_slave_whitelist (struct device *dev) { +/* R-Car V3H SYS-DMAC1 (Channel 16-31) */ +if (!strcmp (dev_name (dev),"e7300000.dma-controller" )) +return true; + +/* R-Car V3H SYS-DMAC2 (Channel 32-47) */ +if (!strcmp (dev_name (dev),"e7310000.dma-controller" )) +return true; +/* By default, do not allow use of IPMMU */ return false; }