From patchwork Thu Jun 26 20:49:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 4432281 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9426ABEECB for ; Thu, 26 Jun 2014 20:53:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C64582038D for ; Thu, 26 Jun 2014 20:53:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1F0D20379 for ; Thu, 26 Jun 2014 20:53:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X0GeJ-0002o3-Jg; Thu, 26 Jun 2014 20:52:03 +0000 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X0Gcp-0001qN-EA for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 20:50:32 +0000 Received: by mail-wi0-f176.google.com with SMTP id n3so1783583wiv.15 for ; Thu, 26 Jun 2014 13:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YnTEjVp7cnKgrnrKPQ+OHkl8HoOS+uUbCZHQMjvt/90=; b=AIjk5fgrgfdMXFoVR10jxw+tLgmQUNNA0XzGt9KLdGthLxj3ZyQyhJD/MrmDKEkAJE VGyEIisAxQ6jlk3hG/zmYKSm1J/28iBnCJRCXnvAGou5QnJjQgwwoX0a54pMYUKwLnfM 8FvYHljWbGOfKlS5Riba4ktCtw6PzxCS157K+j2e0H0uy9kOCIGQUB2ny/42uzXLT2WW p5jqy6FC3jskxLwfKKI4yuMh6engORrDXXqQjSNRnPVDHFFeXbrei8SsLeGaA0hXBrt5 1Xk1Gm+4q+5w9sdR7BwDk5+OC19PDvN14iCZB042evpDWa9mIdQSaCDI/xqLg/OxhbYG 2UmA== X-Received: by 10.180.76.68 with SMTP id i4mr6942020wiw.83.1403815809061; Thu, 26 Jun 2014 13:50:09 -0700 (PDT) Received: from localhost (port-12740.pppoe.wtnet.de. [84.46.49.245]) by mx.google.com with ESMTPSA id gi7sm69773401wib.1.2014.06.26.13.50.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jun 2014 13:50:08 -0700 (PDT) From: Thierry Reding To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Stephen Warren , Arnd Bergmann , Will Deacon , Joerg Roedel Subject: [RFC 07/10] ARM: tegra: tegra124: Enable IOMMU for SDMMC controllers Date: Thu, 26 Jun 2014 22:49:47 +0200 Message-Id: <1403815790-8548-8-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1403815790-8548-1-git-send-email-thierry.reding@gmail.com> References: <1403815790-8548-1-git-send-email-thierry.reding@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140626_135031_691894_80B83917 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Olav Haugan , devicetree@vger.kernel.org, Grant Grundler , Rhyland Klein , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Marc Zyngier , Allen Martin , Paul Walmsley , linux-tegra@vger.kernel.org, Cho KyongHo , Dave Martin , linux-arm-kernel@lists.infradead.org, Hiroshi Doyu X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 From: Thierry Reding The SDMMC controllers can use the IOMMU to avoid the need for bounce buffers. Signed-off-by: Thierry Reding --- arch/arm/boot/dts/tegra124.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi index 82751d2878c4..bfffb4c102fb 100644 --- a/arch/arm/boot/dts/tegra124.dtsi +++ b/arch/arm/boot/dts/tegra124.dtsi @@ -607,6 +607,7 @@ resets = <&tegra_car 14>; reset-names = "sdhci"; status = "disabled"; + iommus = <&mc TEGRA_SWGROUP_SDMMC1A>; }; sdhci@0,700b0200 { @@ -618,6 +619,7 @@ resets = <&tegra_car 9>; reset-names = "sdhci"; status = "disabled"; + iommus = <&mc TEGRA_SWGROUP_SDMMC2A>; }; sdhci@0,700b0400 { @@ -629,6 +631,7 @@ resets = <&tegra_car 69>; reset-names = "sdhci"; status = "disabled"; + iommus = <&mc TEGRA_SWGROUP_SDMMC3A>; }; sdhci@0,700b0600 { @@ -640,6 +643,7 @@ resets = <&tegra_car 15>; reset-names = "sdhci"; status = "disabled"; + iommus = <&mc TEGRA_SWGROUP_SDMMC4A>; }; ahub@0,70300000 {