From patchwork Sun Oct 21 17:51:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10651375 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 968AE109C for ; Sun, 21 Oct 2018 17:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7094A287C2 for ; Sun, 21 Oct 2018 17:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6106A287C7; Sun, 21 Oct 2018 17:51:31 +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 EEB5E287C2 for ; Sun, 21 Oct 2018 17:51:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727835AbeJVCGf (ORCPT ); Sun, 21 Oct 2018 22:06:35 -0400 Received: from mail-pf1-f182.google.com ([209.85.210.182]:33193 "EHLO mail-pf1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbeJVCGf (ORCPT ); Sun, 21 Oct 2018 22:06:35 -0400 Received: by mail-pf1-f182.google.com with SMTP id 78-v6so16373395pfq.0 for ; Sun, 21 Oct 2018 10:51:29 -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=gkoe0qDWLJ9gc2K6t4cIon5Gc0OaYb86wvKKLEdW78E=; b=GNQGytgHSAqHMpwPMMQWN4WI7pv0vIagoSF1E/cnBgxzIshx2ipLhjKGggiAIDvjmS G6MeQJiH/cklXqGrpTWoPW9iF4/AwPxiHQlm3CszqeGAcfvHNVFY4v8vMaZV7dwk+r/n 5nOVDgb6et3vSE10gHbgwOp31puJhFNHO+OlBNK3CgW7RRly50KMw0fG7+ruWwp6E1tT uF2LSUiNe+oIXIrYaWkVaEEW1XGtft6Sv/2lDAgAG7bj9MUcGD7N89hWKNz1clqDkxnc fzMGF9Svk5OcE3hoXmI3xXnKjkfoKiXJUe6MwgRICG+9nvDBEJ3vS2FU1JxKDzV+kRFx cyZQ== 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=gkoe0qDWLJ9gc2K6t4cIon5Gc0OaYb86wvKKLEdW78E=; b=U23xxTxxW3Ygz4/zCsc4d1rsW2vyq83qG6L6A6bBDisvUaQDbVK3lW63YbfyG8vfJp ZKJ5qKcHYB5O1iYbhV+fCQh5Z5Jm7MDpwRFdy5tgeoZMNbsk6pDoyH77By3CJE+O7Zuo yuLnEFEdhiWLxBQH2TfptGClMd/RRoklo5MZB/6V9UrfTl2me6dsQoQUQGG1PnokQ3Ns uuxEfcjHkT9HEJTmsjd0Fe+GMxrpbxE2OWWHOhOZuNdmVTBrlSXBVqyb6D4eeE0SP9kn h3KB0nffc4/meguPbOjU92UBuidEwqcsAsTqkJPXp1P68n4idYlSVub7S7XshZ8Z6hw9 aQFw== X-Gm-Message-State: AGRZ1gISU9EooeRstkBMrrastb4BQ/htwESvr8TMc0rNB+3hZ1fSBd3I 1fteO4pwbPLxjS1x1JxmE7m3ugr4 X-Google-Smtp-Source: AJdET5d+76gbK9SXb5S4cVCe124yKT3+yD5YKcK9iS53HJ8VN00ZcL8OV+sCAFqMwFWG8dm1cud2QQ== X-Received: by 2002:a63:a552:: with SMTP id r18mr1564483pgu.176.1540144289129; Sun, 21 Oct 2018 10:51:29 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id 76-v6sm51789121pfk.134.2018.10.21.10.51.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 10:51:27 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 22 Oct 2018 02:51:37 +0900 Message-Id: <154014429795.2869.7870954544925695802.sendpatchset@octo> Subject: [PATCH/RFC] iommu/ipmmu-vmsa: R-Car M3-N/V3H/E3 AVB 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 Ethernet-AVB on R-Car M3-N/V3H/E3. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- Applies on top of renesas-devel-20181019-v4.19-rc8 drivers/iommu/ipmmu-vmsa.c | 4 ++++ 1 file changed, 4 insertions(+) --- 0001/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2018-10-22 02:46:30.139880557 +0900 @@ -756,6 +756,10 @@ static int ipmmu_init_platform_device(st static bool ipmmu_slave_whitelist(struct device *dev) { + /* R-Car M3-N/V3H/E3 Ethernet-AVB */ + if (!strcmp(dev_name(dev), "e6800000.ethernet")) + return true; + /* By default, do not allow use of IPMMU */ return false; }