Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4293411yba; Mon, 29 Apr 2019 17:33:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5UeI4sP0quXK4yWn8iKm+TV6t8lXm/yk3Fz10bo5hKVNYTqs2bj6YUXFNafZkAngr7DTE X-Received: by 2002:a62:46c7:: with SMTP id o68mr7049438pfi.54.1556584382371; Mon, 29 Apr 2019 17:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556584382; cv=none; d=google.com; s=arc-20160816; b=odPwGDi7/Yhr6UZzu8Q0+g6wNh2AcPiIbM/Ro1N/1uAlthVc7Uh81G3F6MmK2bz6wB WicLCpTt/DFcBV2XpfbuUWjJaA2c38brsuBMOWdyue5gi7hpKjMnvY1gpXIS4ON1Cxlt 90ig36uHKm6WI8cTJLLQ/gnhVr0O4nhIko0z8b4NKr5DL+ZdnYr9UVp+zIph0EYRvdkY ba07maKAQXQqiXqiZiUXoO1sIj2tfFZVvCqYJDpWka3IMn5d2hC0fEVwJpv05goKTxiU 24SYyUB12Xcvf5RYxVLz5J8M9HYJmiCOBYRXvYZaeqcEiBu3Cwn9s2YD3Khj8a0tw1F1 fMtA== 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=tmHyoZA3s8+eH8irHXDQwuHohJUycE2ziw5RpU+dlOU=; b=Cv2wf/J+h5/kXeBkP0Nqcjzf57RE/cTwtFHUvC++3dI1gaKeQF4db3GgojAqxrAe2F TZxpsjk4TyTicW2kicRoKWbUUH8ONFxIe2xJjPDUm+erSCZ1KQhF/8yNraRHDRN+h5Un LUPivi60F4b+jHkjPJ3q0bGoWttBhw471A1OLioZVvu2da+AUMFe1v2PKqjBJk2EjI9x Bk5Q3MXj71sfrOG4w09KYE3rECo/tf6aKQIk0P5mD+3/O2vgCyn0vFzomBtl5Jfeoxx6 h1+vj2Qrca5yQ9zqYcdipMvb1WsqbfU9xIeJIQg0VYA7hu9PgOzPVdfDrlsF2hp/bCD+ teMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=googlenew header.b=MOPfSeYv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si32859317pgv.471.2019.04.29.17.32.46; Mon, 29 Apr 2019 17:33:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@arista.com header.s=googlenew header.b=MOPfSeYv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729678AbfD3Aah (ORCPT + 99 others); Mon, 29 Apr 2019 20:30:37 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39345 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729310AbfD3Aah (ORCPT ); Mon, 29 Apr 2019 20:30:37 -0400 Received: by mail-ed1-f67.google.com with SMTP id k45so10751983edb.6 for ; Mon, 29 Apr 2019 17:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tmHyoZA3s8+eH8irHXDQwuHohJUycE2ziw5RpU+dlOU=; b=MOPfSeYvgFTPgmXOyqu5vdYm5hkSdQbjS+ZqEcO2RU+mAi+5MAMZoFxX3IpBDPLPQS +6cxB/pSPBzbPChynLlIkPp4j946qOnm4Ye/TMQhOEbAMuMfpeVVBcoKcz4+RJW8yx6/ Ved8pdw06sn2gpyLII0BLDY6t7Sg8N2naFdo6CAqbtTC39FR3o1Tc1kBC5kIorVz+Ak4 ako09dGNcEJDViNxWaT8wPfz1pEdUxqyVHmDsDi6DvZ163SxxHJc0/irfHhaluAhRXut fRdoOWoA4QNK2yK1oJ5SHB/z+IS3njGTe+Ft9ivlpb8yi+AAVdDoaUQ0ZqtYNO7vRck8 qUcQ== 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=tmHyoZA3s8+eH8irHXDQwuHohJUycE2ziw5RpU+dlOU=; b=ERW2aWOxZT9qFPFz1YNY8hMuoxQUabKaH7PDZluDtO21Ak2i8QLaUk1csDGvW68S51 EhkNmc4P/Rgaw935scSMRgTog5qo48CVeQA/qWx4ES587gdKkN4PXKULYmYYAExiFp8l fbM7n3T6fgPz9mRmuCiKm2yaADV6I/OJqkV8pnSGzrSrxC2ND0S0fnAJFQdnQYZIM4K7 zLSwolck/hsWkcmWwoCyyjJ7JDl9q9GXZS6zBsi7Gv5UQBkFB4c7jLJfXt6glAiaL6uh odNilOx3BwXd8MhZfBk0cG21MIiEKROSejq6NnhLMadt7jZ/7Fj2L1GifZ6eEx71EQ+I WVZg== X-Gm-Message-State: APjAAAV+9nzAOmQOEAJa85G87ub5coWDlgCOL17HcfDZ2CWdUw1mfynb NRbZbWNnUXbxyE1iYPLE2OOMgA== X-Received: by 2002:aa7:c88a:: with SMTP id p10mr41403077eds.145.1556584235673; Mon, 29 Apr 2019 17:30:35 -0700 (PDT) Received: from localhost.localdomain ([2a02:8084:a0:bc00:7d76:7b66:68:3b5f]) by smtp.gmail.com with ESMTPSA id a9sm9424163edt.93.2019.04.29.17.30.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 17:30:35 -0700 (PDT) From: Tom Murphy To: iommu@lists.linux-foundation.org Cc: murphyt7@tcd.ie, Tom Murphy , Joerg Roedel , Will Deacon , Robin Murphy , Marek Szyprowski , Kukjin Kim , Krzysztof Kozlowski , David Woodhouse , Andy Gross , David Brown , Matthias Brugger , Rob Clark , Heiko Stuebner , Gerald Schaefer , Thierry Reding , Jonathan Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 0/4] iommu/amd: Convert the AMD iommu driver to the dma-iommu api Date: Tue, 30 Apr 2019 01:29:47 +0100 Message-Id: <20190430002952.18909-1-tmurphy@arista.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the AMD iommu driver to the dma-iommu api. Remove the iova handling and reserve region code from the AMD iommu driver. Change-log: v2: -Rebase on top of this series: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-iommu-ops.3 -Add a gfp_t parameter to the iommu_ops::map function. -Made use of the reserve region code inside the dma-iommu api Tom Murphy (4): iommu: Add gfp parameter to iommu_ops::map iommu/dma-iommu: Handle deferred devices iommu/dma-iommu: Use the dev->coherent_dma_mask iommu/amd: Convert the AMD iommu driver to the dma-iommu api drivers/iommu/Kconfig | 1 + drivers/iommu/amd_iommu.c | 694 ++++----------------------------- drivers/iommu/arm-smmu-v3.c | 2 +- drivers/iommu/arm-smmu.c | 2 +- drivers/iommu/dma-iommu.c | 52 ++- drivers/iommu/exynos-iommu.c | 2 +- drivers/iommu/intel-iommu.c | 2 +- drivers/iommu/iommu.c | 43 +- drivers/iommu/ipmmu-vmsa.c | 2 +- drivers/iommu/msm_iommu.c | 2 +- drivers/iommu/mtk_iommu.c | 2 +- drivers/iommu/mtk_iommu_v1.c | 2 +- drivers/iommu/omap-iommu.c | 2 +- drivers/iommu/qcom_iommu.c | 2 +- drivers/iommu/rockchip-iommu.c | 2 +- drivers/iommu/s390-iommu.c | 2 +- drivers/iommu/tegra-gart.c | 2 +- drivers/iommu/tegra-smmu.c | 2 +- include/linux/iommu.h | 21 +- 19 files changed, 187 insertions(+), 652 deletions(-) -- 2.17.1