From patchwork Mon Jun 6 03:58:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 9157201 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE17260467 for ; Mon, 6 Jun 2016 04:10:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E564F27B13 for ; Mon, 6 Jun 2016 04:10:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA618281D2; Mon, 6 Jun 2016 04:10:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DDBE27B13 for ; Mon, 6 Jun 2016 04:10:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753282AbcFFEJA (ORCPT ); Mon, 6 Jun 2016 00:09:00 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36613 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbcFFEI6 (ORCPT ); Mon, 6 Jun 2016 00:08:58 -0400 Received: by mail-pf0-f194.google.com with SMTP id 62so16978507pfd.3; Sun, 05 Jun 2016 21:08:52 -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=xwY00nn0fsL5WRDciAI+j18Yg9TH9mooLAqT2j+LrKc=; b=g202yVHo2ekEaQz6z30Os00IQY/OckziIgOTqsg3B9+/QbhybpaT1cN4in2wHGA/mG d+W95IGuzuFdASGXcEyKTksD9Q29b7zjdbjkwvZ1DZyWqDV7tm1KR2MaIZO174Y1jI/Y 9lIRp0BZKNffczDfdGhbeLiAHRSBoFlr67tvlzKaggtLkgwuq8yrQiN22j+CgVyRAzMV VjnyPSgEjeea/i0s+/nYlRtOi9+NlxFEMPfKGXRbiApgg/GgNHEmy0ra8UsCnot45mfK 4WaDGSDMMZvXNjS6GNUqIwRX+OlKk0BkQv9StcYTj8q/ISi0bmYjW4bq8oFe71Y9cVUu EZLA== 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=xwY00nn0fsL5WRDciAI+j18Yg9TH9mooLAqT2j+LrKc=; b=EhMtSAQeRS2cM7DiO1RCCAb5LBrz0Ygv/JrrdpdY1kKQNM9BA82w/KV/ueY0/LyoDh srlS1/cyPyGwi5w52I+2aoDGRcsMbaqHvGDRcm+8daWvC2r2tJfFed5LRWGB3AUkz5sm 7IKkyN+iVMGWk001QvCJriqv6icbXdkcjRN0661Apje5KajHu3FXQHNfHGwL7k/PTV26 HErRSWnuGkGocahCD27i4cP0wIrrQc5q3FwpYXdjQ9Pm7vx0QMwoc3v2Mau4akI85Yg6 fvca8mIPv6+i4IXfzLG2ez2oUKRqokyGkCsGMpJp0TKKO+wILxPwMqsbeX5FONXZj9WN TZwQ== X-Gm-Message-State: ALyK8tKg1ArWjcqeJ+QOoZ9D3L4h3uj3KnvoLJ0ootLGE+WOdwtw5qVwk1aRVSWf88dUzw== X-Received: by 10.98.26.210 with SMTP id a201mr22803292pfa.46.1465186132216; Sun, 05 Jun 2016 21:08:52 -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 d184sm23403805pfc.56.2016.06.05.21.08.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Jun 2016 21:08:51 -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: Mon, 06 Jun 2016 12:58:31 +0900 Message-Id: <20160606035831.31763.45061.sendpatchset@little-apple> In-Reply-To: <20160606035723.31763.66500.sendpatchset@little-apple> References: <20160606035723.31763.66500.sendpatchset@little-apple> Subject: [PATCH v2 07/11] 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-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm The r8a7795 IPMMU supports 64-bit bus mastering. Both the coherent DMA mask and the streaming DMA mask are set to unlock the 64-bit address space for coherent allocations and streaming operations. Signed-off-by: Magnus Damm --- Changes since V1: - Updated the commit message drivers/iommu/ipmmu-vmsa.c | 1 + 1 file changed, 1 insertion(+) --- 0019/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2016-06-06 11:01:28.730607110 +0900 @@ -1082,6 +1082,7 @@ static int ipmmu_probe(struct platform_d spin_lock_init(&mmu->lock); bitmap_zero(mmu->ctx, IPMMU_CTX_MAX); mmu->features = match->data; + 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);