Path: csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Magnus Damm Newsgroups: linux.kernel Subject: [PATCH 00/10] iommu/ipmmu-vmsa: Initial r8a7795 support Date: Thu, 17 Mar 2016 17:30:02 +0100 Message-ID: Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=aCtJTRDHu2UJxT8Vkg7hqB3JIH4QQRQdyruOJvPM67o=; b=MtlYGuQ1RxQN69oDu5OmOHs3Lywa21P4VFBqJR/m2Lv0NoGjO/qU2HlmvB7luf8ER8 bhVoD48XaY5Q+k4N8r4lVjno6w6MRj4e2wdnYaTyvlJid1rz4Huqkr/BM10XCUMXMQ4t zOGzyO6/3zXLZ1b53xG7LnaljdFZz0lfzNkRRPgCoXhOGg/YYXTBuhWC9Q9It3VIPfBi SC3xZuV1IsdgrJkU26s4ET04T9dhxDBvqsff6Ta+FJKbq0rDiFTqWcC9C7vmUDNp3BRH NQo1kv6d6rVnwpv1LmsTOC2LEVzdiWD9fb5TJebb2sJDKFfkaqHiVtBTwxOskhvpbN/g rEOA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:date:message-id:subject; bh=aCtJTRDHu2UJxT8Vkg7hqB3JIH4QQRQdyruOJvPM67o=; b=Mgco+mD6XpwWuTENtwOACj34uXeOsx44lrTac/GECWS3l1yeNdj3Xo9+rEjTmLTw7w BZTxZvp/kO4yi56HPrrOPRF1TXkQ0sEZ+DvbO033Xd0Lq/RmtwipHNAoE0hU8qDjuXH9 ld81s+GTDm55Jfb2FmyCCmCI/g/qj6BQMunDTrcZGD8mnMkX60koGekj4De6pbr5EBSf PlUEUKXwkX4u/CmcmhPJL27IqgQSYBL/dPuW+JFeq/H/2rpmTNp7Tq52L51jPVnqj0Pv yW66giKFsojkx2Wxc+vovZapugPn7PLXaHUPtQekNfdEXE0MGBmG/V7JTNgd9T1jDEwj bEaQ== X-Gm-Message-State: AD7BkJIY1NCLL30bjEvDk8DQhtVxPqj/qAEAx3iA1qQn7GiLu3kmAsZEulMqgFrrrd/JOg== X-Received: by 10.98.31.79 with SMTP id f76mr16312242pff.92.1458231946455; Thu, 17 Mar 2016 09:25:46 -0700 (PDT) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 54 Organization: linux.* mail to news gateway X-Original-Cc: laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be, joro@8bytes.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, horms+renesas@verge.net.au, Magnus Damm X-Original-Date: Fri, 18 Mar 2016 01:29:09 +0900 X-Original-Message-ID: <20160317162909.24104.31682.sendpatchset@little-apple> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1359999 iommu/ipmmu-vmsa: Initial r8a7795 support [PATCH 01/10] iommu/ipmmu-vmsa: Make use of IOMMU_OF_DECLARE() [PATCH 02/10] iommu/ipmmu-vmsa: Enable multi context support [PATCH 03/10] iommu/ipmmu-vmsa: Teach xlate() to skip disabled iommus [PATCH 04/10] iommu/ipmmu-vmsa: IPMMU device is 64-bit bus master [PATCH 05/10] iommu/ipmmu-vmsa: Introduce features, break out alias [PATCH 06/10] iommu/ipmmu-vmsa: Add optional root device feature [PATCH 07/10] iommu/ipmmu-vmsa: Write IMCTR twice [PATCH 08/10] iommu/ipmmu-vmsa: Make IMBUSCTR setup optional [PATCH 09/10] iommu/ipmmu-vmsa: Allow two bit SL0 [PATCH 10/10] iommu/ipmmu-vmsa: Hook up r8a7795 DT matching code This series contains slightly more mature r8a7795 support for the IPMMU driver compared to the earlier series posted as: [PATCH/RFC 00/10] iommu/ipmmu-vmsa: Experimental r8a7795 support The DT binding for r8a7795 has been accepted for upstream merge and this series implements support following such format: d4e42e7 iommu/ipmmu-vmsa: Add r8a7795 DT binding The r8a7795 IPMMU is almost register compatible with earlier devices like r8a7790-r8a7794, however some bitfields have been shifted slightly. On a grander scale topology has been added and interrupts have been reworked. So now there are several "cache" IPMMU units without interrupt that somehow communicate with IPMMU-MM that is the only instance that supports interrupts. The code refers to IPMMU-MM as a "root" device and the other ones as leaf nodes. To make this more interesting the IPMMU driver needs to be shared between 32-bit ARM for r8a7790-r8a7794 and 64-bit ARM for r8a7795. In practice this means that two separate implementations are needed inside the driver to attach to the rather different architecture specific code. CONFIG_IOMMU_DMA=y is needed on 64-bit ARM while on 32-bit ARM the arch specific dma-mapping code is hooked up rather directly. During init 64-bit ARM IPMMU support is relying on IOMMU_OF_DECLARE(). The code is known to build on 32-bit and 64-bit ARM and x86_64. Tested on 32-bit ARM and 64-bit ARM with addtional DT integration changes. Signed-off-by: Magnus Damm --- Developed on top of next-20160315 and: [PATCH v2 00/04] iommu/ipmmu-vmsa: IPMMU multi-arch update V2 [PATCH 00/04] iommu/ipmmu-vmsa: IPMMU CONFIG_IOMMU_DMA update drivers/iommu/ipmmu-vmsa.c | 231 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 191 insertions(+), 40 deletions(-)