From patchwork Fri Jan 8 08:23:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 7983251 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 886D5BEEE5 for ; Fri, 8 Jan 2016 08:23:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFCAA2017E for ; Fri, 8 Jan 2016 08:23:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B96C9201C0 for ; Fri, 8 Jan 2016 08:23:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbcAHIXr (ORCPT ); Fri, 8 Jan 2016 03:23:47 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:34158 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751690AbcAHIXq (ORCPT ); Fri, 8 Jan 2016 03:23:46 -0500 Received: by mail-lb0-f172.google.com with SMTP id cl12so3394442lbc.1 for ; Fri, 08 Jan 2016 00:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Svj0nTMSOebPZ0k/07P15+NPtbygfkox57Tx+fgGgxo=; b=A3Kw4RNpsqbileK8HQ7hbnp2Yp07MVtxzOlvzyJemHwvhjygyqrgtNa4j5ubnCVue3 5xBYQuN41wVlAxrxl60PL59+k/D9s+db1IK9ZkhJUInIZumyRRU7hkc++GC4ouSfWpA4 I/zg8qznxgRRbYruHmxopHttiT68L81rhOdpiIi0i8TZnXa8YIfd74e6PddyzVWTpn2U oJMyil3Hh+VZponXM5gj46pfQRv3IbEsLS33lO0FdRpfNeG0BV8bT3QJ/n3Aui/rx/FX S+svGGl2yk3tLgRZyD1UTLSi/HiElsmEWHRkOFlqsD6HeKApjsmpjMKxHsUHibxYtIPI c4xg== 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:subject:date:message-id:in-reply-to :references; bh=Svj0nTMSOebPZ0k/07P15+NPtbygfkox57Tx+fgGgxo=; b=F+ok+sNKtxoOmPKeJ5QJvcOABx4NcYU8iloGNvwIC3tRYqRhgB8iFw68pRGEGgu5N9 Nxadn5YeCMjDJFouXThTT7sOyMtmyrYSar26xBZ/XU6FVkcQ4s/V4/lkXVUeAIT5kWSC GPAabjiB/thA4PSGsJIC/Z+OAiXot4ihfYlBUELGaUXKgFUm5vyo6mGWuxRMV3izuJ4t dR5tfOsq54vhB5PChtcM4/VfnSsC2awgx7Or9Gpn2b1z9TjKvHUZRXAU90XCMA7gJwkf rnStEk+EzASq+tyshz+lxVb7l42NxvQajyxpr470pO0NReQ7RMACIvyE33ukCkJVRUUT WwiA== X-Gm-Message-State: ALoCoQnucM2x/vKCqVzqW4PBK1olY/3gibbqGlSryOzNF3sjTKBwhFgNyaEztsO6s2V2lSHqQ1nl9ckizrsDf/qAMojLbPGPbQ== X-Received: by 10.112.129.134 with SMTP id nw6mr40116745lbb.10.1452241425351; Fri, 08 Jan 2016 00:23:45 -0800 (PST) Received: from bismarck.berto.se (dynamic.0.6.79d1f80.14cc20ac3a53.cust.bredband2.com. [89.233.230.99]) by smtp.gmail.com with ESMTPSA id qb3sm18374691lbb.39.2016.01.08.00.23.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jan 2016 00:23:44 -0800 (PST) From: "=?UTF-8?q?Niklas=20S=C3=B6derlund?=" X-Google-Original-From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= To: linux-sh@vger.kernel.org Cc: vinod.koul@intel.com, geert+renesas@glider.be, laurent.pinchart+renesas@ideasonboard.com, =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [RFC 4/4] enable ipmmu for devcies connected to ipmmu_ds Date: Fri, 8 Jan 2016 09:23:06 +0100 Message-Id: <1452241386-22830-5-git-send-email-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1452241386-22830-1-git-send-email-niklas.soderlund+renesas@ragnatech.se> References: <1452241386-22830-1-git-send-email-niklas.soderlund+renesas@ragnatech.se> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This commits shows how I test DMAC+IPMMU. --- arch/arm/boot/dts/r8a7790.dtsi | 2 +- arch/arm/configs/shmobile_defconfig | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 23af349..c2402f2 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1818,7 +1818,7 @@ interrupts = <0 198 IRQ_TYPE_LEVEL_HIGH>, <0 199 IRQ_TYPE_LEVEL_HIGH>; #iommu-cells = <1>; - status = "disabled"; + status = "okay"; }; ipmmu_mp: mmu@ec680000 { diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 3aef019..e9a1194 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -21,6 +21,7 @@ CONFIG_ARCH_R8A7791=y CONFIG_ARCH_R8A7793=y CONFIG_ARCH_R8A7794=y CONFIG_ARCH_SH73A0=y +CONFIG_ARM_LPAE=y CONFIG_CPU_BPREDICT_DISABLE=y CONFIG_PL310_ERRATA_588369=y CONFIG_ARM_ERRATA_754322=y @@ -180,7 +181,7 @@ CONFIG_RTC_DRV_RX8581=y CONFIG_DMADEVICES=y CONFIG_SH_DMAE=y CONFIG_RCAR_DMAC=y -# CONFIG_IOMMU_SUPPORT is not set +CONFIG_IPMMU_VMSA=y CONFIG_IIO=y CONFIG_AK8975=y CONFIG_PWM=y