Received: by 10.223.148.5 with SMTP id 5csp7307330wrq; Thu, 18 Jan 2018 03:58:32 -0800 (PST) X-Google-Smtp-Source: ACJfBovkIB1MR/v/BY9YwuyOxXRzVUCXRRurr12Grl57IFLVjF7vsEX/qXEpgQ6z3j5AuV8pKUuM X-Received: by 10.99.97.209 with SMTP id v200mr28171239pgb.126.1516276712733; Thu, 18 Jan 2018 03:58:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516276712; cv=none; d=google.com; s=arc-20160816; b=rSoyRTcWUH2Cg6zfoSL6avCGLY47Ubx6nmLvmY9BqW2ZM49pBUibG3BiQQPUx5cZay 5z48lkoE2Tv1TXD4CyIaAxbgHqZ3MnD/Az4j2oRMRbV30qFSxmPXn88cBOweuJTqptV2 10AhTXMgs0ALnVNLaDPL6fx3oZDutgAmUYfLgEohrDYH0rvakWI1RpzSaVIvwoLEzOuu /uvWorAJmvZvdh3VSAhyRv2bmJ37mYbvcEgI84WmV37QF4jC0/yemliMTySUEg1B6zDD 37TAi2MZiGND4BxnAbqEDFAI3geEkRiAgYGlN402WsrTCM+oNcQW/Ge30IAxd2cFL331 gKtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=RzGx/mU6djmdEUFizgCxt6Po73Bnr8ePr9igMznMTUE=; b=aZtTZdqjnDW3dyNaiy4dzJDMYl00VwJklCffZApVi7LCFCMDwsWRWShzprRrnxZ9J7 LKAZhBqGnW80awpV6slWFVnq7Kvnzp0lTj+E3l1/zRxge0IqFN36lHgi/ECuG8ayO+3U p/cUME9UQWDmZkWNL6gRRF7zjHjgeU+BR5vbukfvU20Ghng0PPgJOohNH4IGNwgDQzrt KitGuvcZV204K0Kz2zFfyQE2aooxYjFW8ZgJ0OyBz+69gVNMl/9UCrOVLd4qcvhBT4FH HXjNNts2/DcRlLpnTu8Ssk1E6l8a+GZp1LLMes1s5IYFNf+tip/HPTGCYsRycmnCldJO 2+Cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si4510732pls.10.2018.01.18.03.58.18; Thu, 18 Jan 2018 03:58:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755943AbeARLxU (ORCPT + 99 others); Thu, 18 Jan 2018 06:53:20 -0500 Received: from regular1.263xmail.com ([211.150.99.135]:54775 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755898AbeARLxN (ORCPT ); Thu, 18 Jan 2018 06:53:13 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.138]) by regular1.263xmail.com (Postfix) with ESMTP id 249FE1E165; Thu, 18 Jan 2018 19:52:59 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 311CD345; Thu, 18 Jan 2018 19:52:53 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from localhost (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 1123Q6ORCO; Thu, 18 Jan 2018 19:53:00 +0800 (CST) From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: jcliang@chromium.org, robin.murphy@arm.com, xxm@rock-chips.com, tfiga@chromium.org, Jeffy Chen , devicetree@vger.kernel.org, Heiko Stuebner , linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org, Rob Herring , Mark Rutland , Joerg Roedel , Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 00/13] iommu/rockchip: Use OF_IOMMU Date: Thu, 18 Jan 2018 19:52:38 +0800 Message-Id: <20180118115251.5542-1-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes some issues in rockchip iommu driver, and add of_iommu support in it. Changes in v4: Rewrite commit message. Changes in v3: Also remove remove() and module_exit() as Tomasz suggested. Loop platform_get_irq() as Robin suggested. Add struct rk_iommudata. Squash iommu/rockchip: Use iommu_group_get_for_dev() for add_device Only call startup() and shutdown() when iommu attached. Remove pm_mutex. Check runtime PM disabled. Check pm_runtime in rk_iommu_irq(). Remove rk_iommudata->domain. Changes in v2: Move irq request to probe(in patch[0]) Move bus_set_iommu() to rk_iommu_probe(). Jeffy Chen (9): iommu/rockchip: Prohibit unbind and remove iommu/rockchip: Fix error handling in probe iommu/rockchip: Request irqs in rk_iommu_probe() ARM: dts: rockchip: add clocks in vop iommu nodes iommu/rockchip: Use IOMMU device for dma mapping operations iommu/rockchip: Use OF_IOMMU to attach devices automatically iommu/rockchip: Fix error handling in init iommu/rockchip: Add runtime PM support iommu/rockchip: Support sharing IOMMU between masters Tomasz Figa (4): iommu/rockchip: Fix error handling in attach iommu/rockchip: Use iopoll helpers to wait for hardware iommu/rockchip: Fix TLB flush of secondary IOMMUs iommu/rockchip: Control clocks needed to access the IOMMU .../devicetree/bindings/iommu/rockchip,iommu.txt | 8 + arch/arm/boot/dts/rk3036.dtsi | 2 + arch/arm/boot/dts/rk3288.dtsi | 4 + drivers/iommu/rockchip-iommu.c | 653 ++++++++++++--------- 4 files changed, 386 insertions(+), 281 deletions(-) -- 2.11.0