From patchwork Wed Mar 20 17:36:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 10862305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B05201515 for ; Wed, 20 Mar 2019 17:38:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A1EF29E1E for ; Wed, 20 Mar 2019 17:38:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E39329E49; Wed, 20 Mar 2019 17:38:09 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2A4E329E35 for ; Wed, 20 Mar 2019 17:38:09 +0000 (UTC) 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:Date:Subject:To :From: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=VXV/sOegBSY2+lPBMR3ajlt8WkYIYUXW4TaNwesUM58=; b=S5NgfhQ2KjeMld 0OTEoF7gIlUja7H7LvWLUsR5lZoI/3bbbIgKPpvnRgoro6qyAO6ir1UzkouEVL3qiaItdW7JuMv8R 3rkHM+5UEwaw3L7x66x2cFCiezsW3/BU+kVbwQl/HZmTq2Fx6SMLHd2pqWIn8VTmDx7snCIVL6DDt EO6ow9fpRLVLjg6U6/yEbGR0kIbqdIo8kDI+zMmBcDbkzPqzHamOrjepaDpKnm4gpPRK0+Olysor8 o6EUnRuSPvfAJ6roFcdkhpJm17k8Jkh4F6cjmBIenoaiQv6AbpvdDEU7az62f9dl05f5HLcw1Am77 +3O0eG8FunpKRz7MRt2w==; 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 1h6fAE-0001lx-7h; Wed, 20 Mar 2019 17:38:06 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6fAB-0001lH-2a for linux-arm-kernel@lists.infradead.org; Wed, 20 Mar 2019 17:38:04 +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 51B02A78; Wed, 20 Mar 2019 10:38:01 -0700 (PDT) Received: from ostrya.cambridge.arm.com (ostrya.cambridge.arm.com [10.1.196.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 110613F614; Wed, 20 Mar 2019 10:37:58 -0700 (PDT) From: Jean-Philippe Brucker To: will.deacon@arm.com Subject: [PATCH 0/4] Add PCI ATS support to Arm SMMUv3 Date: Wed, 20 Mar 2019 17:36:30 +0000 Message-Id: <20190320173634.21895-1-jean-philippe.brucker@arm.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190320_103803_119049_9F62F6E2 X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lorenzo.pieralisi@arm.com, zhongmiao@hisilicon.com, okaya@kernel.org, joro@8bytes.org, rjw@rjwysocki.net, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org, hanjun.guo@linaro.org, sudeep.holla@arm.com, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, lenb@kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add ATS support to the SMMUv3 driver. The previous posting was about a year ago, as part of SVA v2 [1]. I feel slightly more confident upstreaming this now that we can disable the feature for untrusted devices. It's a low-hanging fruit in the SVA patch stack, and a good candidate for v5.2. As for testing, there is a public (free as in beer) software model that has both SMMUv3 and a SATA controller with ATS [2]. It's not much since, except for a dev_dbg message, you won't notice a difference when enabling ATS, but it can still be used for checking that the patches don't break anything. [1] https://www.spinics.net/lists/kvm/msg168742.html [2] https://patchwork.kernel.org/patch/10781793/ Jean-Philippe Brucker (4): ACPI/IORT: Check ATS capability in root complex nodes iommu/arm-smmu-v3: Link domains and devices iommu/arm-smmu-v3: Add support for PCI ATS iommu/arm-smmu-v3: Disable tagged pointers drivers/acpi/arm64/iort.c | 11 ++ drivers/iommu/arm-smmu-v3.c | 250 +++++++++++++++++++++++++++++++++++- include/linux/iommu.h | 4 + 3 files changed, 259 insertions(+), 6 deletions(-)