From patchwork Wed Dec 20 12:24:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10125641 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.web.codeaurora.org (Postfix) with ESMTP id 3B9406019C for ; Wed, 20 Dec 2017 12:25:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3351428AF9 for ; Wed, 20 Dec 2017 12:25:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 287B42916A; Wed, 20 Dec 2017 12:25:18 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 C9D7C28AF9 for ; Wed, 20 Dec 2017 12:25:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754310AbdLTMZR (ORCPT ); Wed, 20 Dec 2017 07:25:17 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:46945 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752886AbdLTMZQ (ORCPT ); Wed, 20 Dec 2017 07:25:16 -0500 Received: by mail-pl0-f65.google.com with SMTP id i6so8900072plt.13 for ; Wed, 20 Dec 2017 04:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=tiLmdvzTYwNqjVy8zowJ5FtClX6Uz3CFqRwCPSXWQoI=; b=aUmHHXJLRNXMfQP1BRDlSTLV66iKXYD3j276Yx4aKBglF4fQAbYXgHm4UmCiNKhV6J 3KRBouJcWRiB5zmtg2cvDJBmge5gfit3yVpxFYPUTNwHTs9ns1LerW6fy/djKavc+nJ7 pOYrmKOJ2AdzL7PM/31BcvYcFFdrySv70aVb/x1uxC9OYTmUUD/oS96rPuEMDrT7FWmM suYRqLF+bPPvH2TmiUxmgCPYa7YYf+5WRdr9P7thBXFHYjjtg2mqTEte5yVCGRdInM3w rfE/vRntUe6ChsyU6qZLDL1fsnfz916YBSccM2kGgq2YzOsrI87DPDse1fZfSFdwC9bU /eYg== 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:in-reply-to :references:subject; bh=tiLmdvzTYwNqjVy8zowJ5FtClX6Uz3CFqRwCPSXWQoI=; b=E9+yAhy0S9a+bM86NiNcrbEjMe7luFZiV9WvZ4HmrR6ztvjdfB16fOlMh3m1mjCl01 FYSy3240WLQ0emFoPHKMCKEHSgUM3WTas+lLx8A9FQy7e4884Xr9FxsI/81UK3Wom4hW dq7Ql5jJfhrpmdv30qJ5zg6DIPUIgRr1UKXI33WnbEJNECvHpoCRehk97+8AIy8IYeOU 7SozBhJLks6UtHUFcR4hlC32fQSIyPPuePB7LdeAg/3SMu8/TAFSzrWRS0T2Vq4KR3HZ E/jeGi4zoCMW13fVp/wu1opUiS5II4UJnPc+BwHzeOmVIRdQSR2oZ5zqR2yygtJxViQU RmwQ== X-Gm-Message-State: AKGB3mJN/mLf5Y0/TMq2gbHQhOjc8scrf28GmTp4+222GVpAzVG2NvzF U/FMdI90w1jK0f3aXat484wRzJXC X-Google-Smtp-Source: ACJfBotQMwfKcueGUdSK5o6jpoSf1dL5JVJRScBvusP97l4WrpdJCUOu9YLe+PKRkN5FuAMWk7Lw4g== X-Received: by 10.84.210.66 with SMTP id z60mr6828363plh.359.1513772716219; Wed, 20 Dec 2017 04:25:16 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id y131sm36949526pfg.125.2017.12.20.04.25.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 04:25:14 -0800 (PST) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Wed, 20 Dec 2017 21:24:13 +0900 Message-Id: <151377265378.17613.6585544315769524309.sendpatchset@little-apple> In-Reply-To: <151377262568.17613.8610167192375932687.sendpatchset@little-apple> References: <151377262568.17613.8610167192375932687.sendpatchset@little-apple> Subject: [PATCH/RFC 03/03] iommu/ipmmu-vmsa: Add SYS-DMAC devices as whitelist 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 add a list of allowed SYS-DMAC devices to the IPMMU driver. These may be used together with SCIF serial ports to validate some basic operation. Not-Yet-Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 7 +++++++ 1 file changed, 7 insertions(+) --- 0024/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2017-11-22 13:26:36.270607110 +0900 @@ -756,6 +756,13 @@ static int ipmmu_init_platform_device(st static bool ipmmu_slave_whitelist(struct device *dev) { + if (!strcmp(dev_name(dev), "e6700000.dma-controller")) + return true; + if (!strcmp(dev_name(dev), "e7300000.dma-controller")) + return true; + if (!strcmp(dev_name(dev), "e7310000.dma-controller")) + return true; + /* By default, do not allow use of IPMMU */ return false; }