From patchwork Mon Sep 17 08:58:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10602249 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC7FE1508 for ; Mon, 17 Sep 2018 08:58:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC82E295D6 for ; Mon, 17 Sep 2018 08:58:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B108729600; Mon, 17 Sep 2018 08:58:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8854E295D6 for ; Mon, 17 Sep 2018 08:58:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727168AbeIQOZS (ORCPT ); Mon, 17 Sep 2018 10:25:18 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:subject; bh=urwxu63cjnpqyWz47u8G6txtJ5f9ZoN01/+oKJ9DlT8=; b=M3zu+gGvxK4zG+Q67F/ZwmFigr2FQ3VC9tRXQ3LjbA6cJCERBYWbi6D9eacph9smBo o1/GUK+j+Z8p8MObAJ6lF3CFBOELhs5MuvE6v+f5BPd5xcGo9EoMQJ8ymdeC/7NI3ju0 7nykYYZo23hUQ90s35Cser1qnvm0YlD+5TEeaEEjvCNJIoudh0zGc0Sz2nhFniwcqiCR yu+9QZCZKiUd66RBEE1pY+noqkBQ2le+8adptvahizeg7PI2Ec7b0/ug+h4hCjhGtEoU IzqJ4KIkq7aUMR38X61gVY6A6KRGumZySRgGVrEP95SNGKRZcZ9cyKwOZWs1LAZnESG5 vLwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:subject; bh=urwxu63cjnpqyWz47u8G6txtJ5f9ZoN01/+oKJ9DlT8=; b=sHgLP7w7SZgekCoeUO2PvurXdFi/M1+5282c5ay9rmq3qpAfFU7/IAN8MHek2ZwP8K jbv9+SEItfVzNhUkHJNTDrbatHxQgecJF8WkFLAG8dayUipzWBhiSW//64kxfNxLhlJK TAvEXvk1yTO29Kh6lxyeOQtCW6QIVSsutQFw4ldnEDzMUvAkyzAvbXXBfV83GTgXu1cZ nYnrQASitVeMJGbhC2ppiawdudfpq4zmGs5kK2sWRdEd8r4HUd8OJzeRofB81J78z87G kRziwuCoXgk/4oBAdpR2AwFymw6Q+S4F7KOqlg0iHXLtKXRuUUf+ETqLyCWMOO4UUhcz c1Kw== X-Gm-Message-State: APzg51CBtpXVW6xL8uS4qKsYd0VcCZLdalvTXD98hYJoUnomdVPDUS/A 3LudMBR09IAq0zbgMwipbg9f2yqZ X-Google-Smtp-Source: ANB0VdZ1oRjDa/vT541P8b25oZjz01Ttvo9C02mMJnwtU1YiQjrGntv0zV4kRVdyPbvWsVuLjeAaNg== X-Received: by 2002:a63:5025:: with SMTP id e37-v6mr22410560pgb.341.1537174730043; Mon, 17 Sep 2018 01:58:50 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id n22-v6sm26112583pfj.68.2018.09.17.01.58.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Sep 2018 01:58:48 -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 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }