From patchwork Fri Nov 8 15:25:00 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: 178912 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2860659ilf; Fri, 8 Nov 2019 07:26:50 -0800 (PST) X-Google-Smtp-Source: APXvYqx8OIPnM5HVpWzLh6J3Z2RyCWydiDx9xLmFq7cy0N1saOHw0Lm7raAfjA8EXh4axNrqH2Ru X-Received: by 2002:a50:9850:: with SMTP id h16mr11097094edb.193.1573226810316; Fri, 08 Nov 2019 07:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573226810; cv=none; d=google.com; s=arc-20160816; b=tAcs8j/hy9e69315oF+4QjJB3ZBEXRFt96VdBBA7AKR0oRqfPosneHh1dUUCzxSREU gyZzBsVfBmhcL3jszkDsN2OmcbrgFA63VgxbJE1G/mqc+U35kZ0Tj0RMEy4S7mG0vr2I I/NslfZ6EkdhD9fi8gNFDBUo+/OJgiMDfgJ3dIh8A2zh2Ono0dOvMFcNasck6SyEdNVv +UuOgIaRthggCzcpe76DPxXUBqPAtohe1JBmuKrH+mV5HbGL7DequVMP9fqf6yHYSkQa sy2FFcflUWQLoMYKwdhoydmDcI1W47O1D8hniak5YVlxPYGt9a54sI/o4L2r4pQBjRb3 hBuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hqa9TgNuEsO9HgZ/3pPJzfYS+V6XOeuR6AE+FRXhkjM=; b=y/15P36+xGSxNEe1TkVqWBPESp30SsftJsRWqeDmhPl+3/Hjt40gQY3GPKI8UKASKD mUujFMeMv3occUPLJjOPmwD0NELkbmzzhGA4K/l12T/FKwUIxaXib3EwyN2pppVCmNL+ 82VScMWoQc1Fh/7bL+jmIFmTS3TmamWSOJN6Rk1c2HsGSDjfB5Q0Aza6N0I+oVqLIJDW ZZaMhcYvv1gGq8YBiTGsb8eIcfVbo9x7SRXGc8jWXXRqv+p6m+Nl/aQsEe2veF8loAyy gvu2d8m9km06O7DmNO8Y1j5cNdO89ZY+66P8sAeYHukBqnmz5cfe90iwVwC3+1Ym1p3q AlfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Te5zDPiA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si3864165ejf.99.2019.11.08.07.26.50; Fri, 08 Nov 2019 07:26:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Te5zDPiA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726741AbfKHP0t (ORCPT + 8 others); Fri, 8 Nov 2019 10:26:49 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33454 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbfKHP0t (ORCPT ); Fri, 8 Nov 2019 10:26:49 -0500 Received: by mail-wm1-f67.google.com with SMTP id a17so6858651wmb.0 for ; Fri, 08 Nov 2019 07:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hqa9TgNuEsO9HgZ/3pPJzfYS+V6XOeuR6AE+FRXhkjM=; b=Te5zDPiAYaK+KHbGAhgJd/VtE3mWigtsRKL7u1BcvwjwPNdPzg/7LxGWEzUdiw6dXG 0n6LHlJwVqICWYVTAhKneYz1reVCfd5RDnICCLQUjQaVLq0fopoe2B9zFX9Ya9Is5JWr wlO/JqSUM9fgS4LmumnqeJQZ9HXrZv/qqI7rdOe48CKMysLzgB0XmL/tomAoqxsdKvO7 294fV4mnYHPT5mXX3H5UjD0MqW0T35qmi5Mk5O6tScBxr6gHUOVU56nROPVnWXMYGGMZ v/8DuymoH2MBxeRSLytNh+PgngaRyrV8rzCbIHcUl2oXrSKCBEQZQqQUJnj8c0Ye8CMF ydDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hqa9TgNuEsO9HgZ/3pPJzfYS+V6XOeuR6AE+FRXhkjM=; b=Bm/9fI4BgZkSk9WTq/9BU2riqapQ0G3Zyvm+otBFrM/6HhasGaKCERKUFLeAcEnitY xdMCNU54l+CKk2sQLewAnzg4IIUF9amPoA+BDXDePS5qVbswowlMTXeMp+0yV47BZt7R g+uSL3JsryZXIPcpV3HVDlkz//0/j5gXElZunB1I4RFsH1Qnzvxzz7Vp+yrM0YAqhRy3 NRM5ksIuI1KHMynSHEQqM615SLyuQYcWCkSsg7TwAZP4Oaw6bh2MrlDQwBxI+To84YC2 JRqzybZmO/Gu/B6sEubP5lRVOgQT5hTEjoK3Rr9ujpXFmLX+HP4fHOv+PmWtHV3L+XKb vEJw== X-Gm-Message-State: APjAAAXDUp85jNYQJSkN49N7pr5ylRa7531ibuAeqtQl3DPgvcINdK8b NZ7qQR8NVB2+8vf8+IdWUs24Pw== X-Received: by 2002:a1c:4456:: with SMTP id r83mr8427282wma.2.1573226807102; Fri, 08 Nov 2019 07:26:47 -0800 (PST) Received: from localhost.localdomain ([85.195.192.192]) by smtp.gmail.com with ESMTPSA id w18sm6579232wrp.31.2019.11.08.07.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 07:26:46 -0800 (PST) From: Jean-Philippe Brucker To: iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: joro@8bytes.org, robh+dt@kernel.org, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, guohanjun@huawei.com, sudeep.holla@arm.com, rjw@rjwysocki.net, lenb@kernel.org, will@kernel.org, robin.murphy@arm.com, zhangfei.gao@linaro.org, eric.auger@redhat.com, jonathan.cameron@huawei.com Subject: [PATCH v2 0/8] iommu: Add PASID support to Arm SMMUv3 Date: Fri, 8 Nov 2019 16:25:00 +0100 Message-Id: <20191108152508.4039168-1-jean-philippe@linaro.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This is version 2 of the series I sent a while ago [1], adding PASID support to the Arm SMMUv3 driver. Changes since v1: * Dropped the patch adding auxiliary domain support. It's an easy way to test PASID, by populating PASID contexts using iommu_map/unmap(), but I don't know if it will ever have real users. Since v1 I changed my testing gear, and am using the zip accelerator [2] instead of a software model. It only uses SVA and testing auxiliary domains would require additional changes that would never go upstream. SVA requires another 20 patches (including I/O page faults) that I will send later, but at least I know that this will get used. * ioasid patch has been carried by Jacob and should be merged for v5.5 [3] * Split patch "Add support for Substream IDs" into patches 4 and 5. * Added IORT support (patch 3) and addressed other comments. [1] https://lore.kernel.org/linux-iommu/20190610184714.6786-1-jean-philippe.brucker@arm.com/ [2] https://lore.kernel.org/linux-iommu/1572331216-9503-1-git-send-email-zhangfei.gao@linaro.org/ [3] https://lore.kernel.org/linux-iommu/1570045363-24856-1-git-send-email-jacob.jun.pan@linux.intel.com/ Jean-Philippe Brucker (8): dt-bindings: document PASID property for IOMMU masters iommu/arm-smmu-v3: Support platform SSID ACPI/IORT: Support PASID for platform devices iommu/arm-smmu-v3: Prepare for SSID support iommu/arm-smmu-v3: Add support for Substream IDs iommu/arm-smmu-v3: Add second level of context descriptor table iommu/arm-smmu-v3: Improve add_device() error handling iommu/arm-smmu-v3: Add support for PCI PASID .../devicetree/bindings/iommu/iommu.txt | 6 + drivers/acpi/arm64/iort.c | 18 + drivers/iommu/arm-smmu-v3.c | 442 +++++++++++++++--- drivers/iommu/of_iommu.c | 6 +- include/linux/iommu.h | 2 + 5 files changed, 419 insertions(+), 55 deletions(-) -- 2.23.0 Reviewed-by: Jonathan Cameron Tested-by: Zhangfei Gao