From patchwork Thu Mar 17 16:29:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 8613011 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@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 64AB8C0553 for ; Thu, 17 Mar 2016 16:26:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3C282026F for ; Thu, 17 Mar 2016 16:26:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2966B202AE for ; Thu, 17 Mar 2016 16:26:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936235AbcCQQ01 (ORCPT ); Thu, 17 Mar 2016 12:26:27 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:35883 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936236AbcCQQ0X (ORCPT ); Thu, 17 Mar 2016 12:26:23 -0400 Received: by mail-pf0-f173.google.com with SMTP id u190so127220020pfb.3; Thu, 17 Mar 2016 09:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=ETNUWTMPaTXPMB+kSuUTiA/EBwYjGDoRyptTWvj5Xbo=; b=CzPfOnMj9QlZB2WFcdXxJN6BPY8AKQ5R21m/i+ZHXBnpXUqHJs+5YQNTUvM2eE4sSV nT9LUDL6mkhe50jPRIAoBqUI87tMZIHYJL/SeVOsxyEpUDANScr5Rli6m5WYRtzDuk4f r6R3Q1wQJ1cDhtMRsHGJUPN4Txfzx0sNZ/ITLtmSp8WPMB2r+EakaZIMwM9av3EUrA0F hMdjjMZ8Va9g0nr7bkKI2GFU6yAuekmvtttKZvHBLNvb7/QmzXTNdqTqWG+Hlwflr99q Ts1RSRNXvGhTaSouN4HGUm9sdEK7v84hzgbXVXBlpv+ywCH67QfqQMVUVZj9WAVV/QZx owqQ== 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:in-reply-to :references:subject; bh=ETNUWTMPaTXPMB+kSuUTiA/EBwYjGDoRyptTWvj5Xbo=; b=h0MkpVKVQuutu1DgIudnhyKFR6aJOjWtzKekGloqyFuL3rnD3nIfJcOHOwQJTowoVO 3z4dSkWf5UGuDjLRYwzwQCGXFMy3pwSpHY/U6o4iNAA4MTW6QYj6tVWrBxib/dSOMz9e WSKrJOfeoT1Hg42xmPpZroQlerq9r4hLDdDcD3CIvuK3Bx1PMUbJHEetMstZowORxLQ9 TDDdfwv+sD9iMr1iXbfI+iesbIjSVE6NuMYWvrxZ6fhBPBG7Xz8ytSqkHEKg+Cf+peUE Pdrn1yIjk6PoNjk4dInIbvR27OpE/A41pUQt42j3yOxYJoEuamCtEVEL6Jkhd5U5gkq6 GZ2w== X-Gm-Message-State: AD7BkJLi8kpx80Y9U/BP/ErVy6ZD6X/fOW4rlYxK1EETfJB0zsoKw1G4qHwaTxD8xSCxVg== X-Received: by 10.66.90.199 with SMTP id by7mr16135915pab.113.1458231983239; Thu, 17 Mar 2016 09:26:23 -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 85sm14524641pfl.18.2016.03.17.09.26.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Mar 2016 09:26:22 -0700 (PDT) From: Magnus Damm To: iommu@lists.linux-foundation.org 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 Date: Fri, 18 Mar 2016 01:29:46 +0900 Message-Id: <20160317162946.24104.73567.sendpatchset@little-apple> In-Reply-To: <20160317162909.24104.31682.sendpatchset@little-apple> References: <20160317162909.24104.31682.sendpatchset@little-apple> Subject: [PATCH 04/10] iommu/ipmmu-vmsa: IPMMU device is 64-bit bus master Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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: Magnus Damm The r8a7795 IPMMU supports 64-bit bus mastering and coherency for page tables. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 1 + 1 file changed, 1 insertion(+) --- 0020/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2016-03-18 00:22:09.830513000 +0900 @@ -948,6 +948,7 @@ static int ipmmu_probe(struct platform_d mmu->dev = &pdev->dev; mmu->num_utlbs = 32; bitmap_zero(mmu->ctx, IPMMU_CTX_MAX); + dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); /* Map I/O memory and request IRQ. */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0);