Return-Path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:37852 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727166AbeIQOZS (ORCPT ); Mon, 17 Sep 2018 10:25:18 -0400 Received: by mail-pg1-f196.google.com with SMTP id 2-v6so7345899pgo.4 for ; Mon, 17 Sep 2018 01:58:50 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 17 Sep 2018 17:58:49 +0900 Message-Id: <153717472967.718.6053164251081461876.sendpatchset@octo> Subject: [PATCH/RFC] iommu/ipmmu-vmsa: R-Car V3H SYS-DMAC whitelist prototype Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: From: Magnus Damm 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 --- Applies on top of renesas-devel-20180914-v4.19-rc3 drivers/iommu/ipmmu-vmsa.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- 0001/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2018-09-17 17:10:08.412179067 +0900 @@ -756,6 +756,14 @@ static int ipmmu_init_platform_device(st static 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; }