From patchwork Mon Oct 1 14:27:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 977268 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SE/5knTp"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42P4Ps0H18z9s3x for ; Tue, 2 Oct 2018 00:28:01 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=YqmWBCrfSVj8Tz5dB48w2YtZXRQDD+7XjtBBnM2RBtE=; b=SE/5knTpK0Zx+k fY5DHO8AW26dJHBNWP9VLmEZ1M3Ww9SnHgBLFA2lpq5FIZpB+qifNpwmIx6EF3ZQOLRrDH65gfj/m 1VsR4zNWt5YMpCVB6Bgnrtj1PUB0lRgdXuawdReA9lKaWa0YT8yVSEAyaaxYuv9eSOBjDp5NVRxzG 9supcYnUfS38xh0CRD/MTnzKE72tN7pkQrhkUCLCtMcDauItcOjJpvHSsuFbfoKlklJRtQ2Aqzf2T 11MMN2CL+nYHL1jegQWnbiUPSI033Nsc8ZMgeKmIDyfi2a4EosxQzvRBv4zxRx3bAdVer8VjiZXIn AJelei5kYPbvQ8r6YNIw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g6zAr-0003xx-Dg; Mon, 01 Oct 2018 14:27:49 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g6z9x-0003vS-PF for linux-arm-kernel@lists.infradead.org; Mon, 01 Oct 2018 14:27:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 62E4D7A9; Mon, 1 Oct 2018 07:26:43 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 33EFE3F5B3; Mon, 1 Oct 2018 07:26:43 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id D590D1AE3C57; Mon, 1 Oct 2018 15:27:06 +0100 (BST) Date: Mon, 1 Oct 2018 15:27:06 +0100 From: Will Deacon To: joro@8bytes.org Subject: [GIT PULL] iommu/arm-smmu: Updates for 4.20 Message-ID: <20181001142706.GB9716@arm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181001_072653_874547_2073B71A X-CRM114-Status: GOOD ( 18.00 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-5.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.101.70 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: iommu@lists.linux-foundation.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi Joerg Please pull these Arm SMMU updates for 4.20. The big thing here is the long-awaited "lazy" invalidation mode, using the generic timer-based infrastructure for moving TLB invalidation out of the fast-path. Thanks to Zhen Lei for the initial work here, and to Robin for getting it into shape for upstream. We've also got some minor fixes dotted around, some of which address issues that were found by code inspection during the lazy invalidation code review. I didn't manage to queue Vivek's runtime PM patches this time around. This was partly because we ran out of review bandwidth earlier in the cycle but also because the interaction with the lazy invalidation is unclear at the moment. Cheers, Will --->8 The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-joerg/arm-smmu/updates for you to fetch changes up to 44f6876a00e83df5fd28681502b19b0f51e4a3c6: iommu/arm-smmu: Support non-strict mode (2018-10-01 13:01:34 +0100) ---------------------------------------------------------------- John Garry (1): iommu/arm-smmu-v3: Fix a couple of minor comment typos Robin Murphy (3): iommu/io-pgtable-arm: Fix race handling in split_blk_unmap() iommu/io-pgtable-arm-v7s: Add support for non-strict mode iommu/arm-smmu: Support non-strict mode Will Deacon (1): iommu/arm-smmu: Ensure that page-table updates are visible before TLBI Zhen Lei (7): iommu/arm-smmu-v3: Fix unexpected CMD_SYNC timeout iommu/arm-smmu-v3: Avoid back-to-back CMD_SYNC operations iommu/arm-smmu-v3: Implement flush_iotlb_all hook iommu/dma: Add support for non-strict mode iommu: Add "iommu.strict" command line option iommu/io-pgtable-arm: Add support for non-strict mode iommu/arm-smmu-v3: Add support for non-strict mode Documentation/admin-guide/kernel-parameters.txt | 12 +++ drivers/iommu/arm-smmu-v3.c | 115 +++++++++++++++++------- drivers/iommu/arm-smmu.c | 99 ++++++++++++++------ drivers/iommu/dma-iommu.c | 32 ++++++- drivers/iommu/io-pgtable-arm-v7s.c | 11 ++- drivers/iommu/io-pgtable-arm.c | 23 +++-- drivers/iommu/io-pgtable.h | 5 ++ drivers/iommu/iommu.c | 14 +++ include/linux/iommu.h | 1 + 9 files changed, 243 insertions(+), 69 deletions(-)