From patchwork Tue Jul 21 08:03:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 1332843 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=qp6aVTqa; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=default header.b=a6oaoypm; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B9rj01pgNz9sRR for ; Tue, 21 Jul 2020 18:04:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=iosAAm/sPV06AKdiif0vrHyTYXNGNIOpeoQP2BgR0dY=; b=qp6aVTqawfOMhIxVdHzNrPGBj/ JZ+LA3DgNCdrQ8e11pzXXa0LGrSo8QFzgUQw8nUHS+PMze7hzVYBXuWdGMPOPZSgUu6KKb2cr66F5 nsy9U5v7ViBrrMclFCDK1iw8x3TH/5WrgpqXvyWkiYknC2okL/2C8x+0GBQed04+tNsNKV9lh/gDx MgQerMp/HW+670lUHTGaKxg5fWhktOv2sJvIVlNUR55FCod04pMCieJ4UpWcyJWhsHRfIAXjh7kfq fOPhxAECtunuh8kiA+i7l33mvbLBSBlQ/X83lIMWsJBOyDzTKfLeF8erZOzBXTRoFWIdg0ehSkehM at/WA4zg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxnFq-0007wY-2U; Tue, 21 Jul 2020 08:04:02 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxnFm-0007qn-Ni for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2020 08:03:59 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E8E4820709; Tue, 21 Jul 2020 08:03:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595318638; bh=+MyaGmTaU19aPpvAgrnfqAXQzHmb6mhfDcgxCLDkT9E=; h=Date:From:To:Cc:Subject:From; b=a6oaoypm/8b8eKHs4w9CyA8FwIifMPoXrvDj5jj0k0QhmP89uNbdaXVhTvSeLCvOj 9ptI6ZQw/oWLsYe3436+stZiDSd/Gzxo0/KCc2AIHGFxUmz1TeVShAhd8Wnn4VxjUz SSAUielerz1JpuKgUy5MgxVHUz7hFc7JqBzPFW/s= Date: Tue, 21 Jul 2020 09:03:53 +0100 From: Will Deacon To: joro@8bytes.org Subject: [GIT PULL] iommu/arm-smmu: Updates for 5.9 Message-ID: <20200721080352.GA13023@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200721_040359_277804_B1428FA4 X-CRM114-Status: GOOD ( 10.98 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-team@android.com, iommu@lists.linux-foundation.org, robin.murphy@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Joerg, Please pull these Arm SMMU driver updates for 5.9. Summary is in the tag, but the main thing is support for two new SoC integrations, one of which is considerably more brain-dead than the other (determining which one is left as an exercise to the reader although the diffstat is fairly revealing). Cheers, Will --->8 The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68: Linux 5.8-rc3 (2020-06-28 15:00:24 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git tags/arm-smmu-updates for you to fetch changes up to aa7ec73297df57a86308fee78d2bf86e22ea0bae: iommu/arm-smmu: Add global/context fault implementation hooks (2020-07-20 09:30:51 +0100) ---------------------------------------------------------------- Arm SMMU updates for 5.9 - Support for SMMU-500 implementation in Marvell Armada-AP806 SoC - Support for SMMU-500 implementation in NVIDIA Tegra194 SoC - DT compatible string updates - Remove unused IOMMU_SYS_CACHE_ONLY flag ---------------------------------------------------------------- Hanna Hawa (1): iommu/arm-smmu: Workaround for Marvell Armada-AP806 SoC erratum #582743 John Garry (1): iommu/arm-smmu-v3: Fix trivial typo Jonathan Marek (2): dt-bindings: arm-smmu: Add sm8150 and sm8250 compatible strings iommu: arm-smmu-impl: Use qcom impl for sm8150 and sm8250 compatibles Krishna Reddy (5): iommu/arm-smmu: move TLB timeout and spin count macros iommu/arm-smmu: ioremap smmu mmio region before implementation init iommu/arm-smmu: add NVIDIA implementation for ARM MMU-500 usage dt-bindings: arm-smmu: add binding for Tegra194 SMMU iommu/arm-smmu: Add global/context fault implementation hooks Robin Murphy (1): iommu/arm-smmu: Update impl quirks comment Tomasz Nowicki (2): iommu/arm-smmu: Call configuration impl hook before consuming features dt-bindings: arm-smmu: add compatible string for Marvell Armada-AP806 SMMU-500 Will Deacon (1): iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag Documentation/arm64/silicon-errata.rst | 3 + .../devicetree/bindings/iommu/arm,smmu.yaml | 31 ++- MAINTAINERS | 2 + drivers/iommu/Makefile | 2 +- drivers/iommu/arm-smmu-impl.c | 60 ++++- drivers/iommu/arm-smmu-nvidia.c | 278 +++++++++++++++++++++ drivers/iommu/arm-smmu-v3.c | 2 +- drivers/iommu/arm-smmu.c | 40 ++- drivers/iommu/arm-smmu.h | 6 + drivers/iommu/io-pgtable-arm.c | 3 - include/linux/iommu.h | 6 - 11 files changed, 403 insertions(+), 30 deletions(-) create mode 100644 drivers/iommu/arm-smmu-nvidia.c