Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4546329ybe; Mon, 9 Sep 2019 10:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmIcxpzjSw2iCAcVpQFn8NvQ6XT+Nytg7/gi5CHiN/dZ1Kk5IcAT5eh1lgAhbGh9J1xzQ9 X-Received: by 2002:a17:906:814f:: with SMTP id z15mr20618354ejw.13.1568051354087; Mon, 09 Sep 2019 10:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568051354; cv=none; d=google.com; s=arc-20160816; b=PEdyWTjam3QEdLBwC1yBdHZO4eIPL0x+s7WQNwd71hnxXG5rYanZyGRh5LV8/nC1RS 0uIVT2uiALLjObYlBCnUhqbphwqoCO6/z+ZpaXPg1bHwCH0TG18l/+2XJK0cwXe+X81N y2nZ1S66Zfl98ZxwRxXM+v49eB0uAJp1yXP3CWKOupuMpdle5OLNAB3myff/BzA3eyh0 qqeQbdJY+Wra7JnPpZ5djZd8H9chvlPXdsjF8EVkuwtVha2D6yai2G2TH1GwhpCVTB/4 IC26l0oMG20H/w6p6VYHtxXUBEPCCwLevIKsbzFukmJ4bZ3mmb1SfFkkehObzDT1rTdx V0/A== 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=E2f3KSrZxRio8/FeHv28ONTThNhL2TjtH0LaTd/eJz4=; b=XhjObGOBaUF+pvvJksSCpKqM6Sib4Q4o9qgRw5ixING92wssqFxkHQawm3eLIJrq/E 62Jymm0KpExYFX7gRmLnRT+zbcVBIskQiuc0RM3sYc8Q2FBelkCUDxToX9GkEHW3N/bO 49JVx7aGsz4Lj2R+VyJ9/hrDYC0DdxUGTmR1Ijor9Yb2TNNdu2RWJpneKx9W8/8vdJJo FDihvphomhmnq7exoDOdDh3II4IO9eugk/1P+ByYpFY1KfYerJEAqY+gG5cqBwlTcWjU iVaEXBxfgQO7IEdQnsYkGNbb36P13gkSaJaslshcMpWXFXic+sQ8YiP3e5UIROJtzo8o SBGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tcd-ie.20150623.gappssmtp.com header.s=20150623 header.b="YkxKYH/E"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24si4392949ejb.344.2019.09.09.10.48.28; Mon, 09 Sep 2019 10:49:14 -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=@tcd-ie.20150623.gappssmtp.com header.s=20150623 header.b="YkxKYH/E"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730099AbfIHQ46 (ORCPT + 99 others); Sun, 8 Sep 2019 12:56:58 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33588 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730015AbfIHQ45 (ORCPT ); Sun, 8 Sep 2019 12:56:57 -0400 Received: by mail-pg1-f196.google.com with SMTP id n190so6390670pgn.0 for ; Sun, 08 Sep 2019 09:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E2f3KSrZxRio8/FeHv28ONTThNhL2TjtH0LaTd/eJz4=; b=YkxKYH/ERWEtBHeMoD9KlshTjhFsDszVa0tiICeohlWVLEzIcG2mdKPWfiiXIAB9Ep h6QalfbgiFdxT1gwzIyDJP5nWISKWpTHIpT1fN2L7ULPQG419Bbi7XY3FDT2eqv7Pdio H1K5BfueRIQBGq3EqACgol7GvzJZ1eAgnKKZmazjR0LQiP65cCb17u0sJuotvVHS33a6 qj4J0lq3fFjn9VBtqa6a2jkRAsYTa2rETqDhPFBFFdRonhlNDlwxzNcmQUhBH77kLi7U AS1qIGirCQTlRgJu1+io8rSZUnDci9vM9xSPVt3khu+byAO8nhRLsYoEOS2YUMuEme9n 8jPA== 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=E2f3KSrZxRio8/FeHv28ONTThNhL2TjtH0LaTd/eJz4=; b=XVR9SGDZty3Zirakdwm/dSzQjxSYhaL18dSVX+zwwcYWN2pIW75HCa69X4XPG9gWGH Ve2A1QdYcx7+RC5lDlQ1l2WCjBzZuZ/kviQexx5jhFdw0hXIdMjq5AGXPW60eSw+5Jgc iI6V4YiDqP5Q5qupm33gc4PI6qLyPWsubX44U5+fkvgM1CppJXh1Ftwm7YeJPibh8fPW ShVyVyZuI6l3AfsID8x6XpfA+rPt4jRNMiyzEPOnnAWKB9rUjI3CDnxhS6nGjGk12IOv 93l43OGeAaKB53ybquAWoNqd93cnWGoUzHCKog/eM7l9esG4EH7mB7+F5egZW1+k98NJ +6HA== X-Gm-Message-State: APjAAAX7UDwx97MUvCHAioa8vLZ4HI1eae7OslecZq5rQ83Ngb3NvYMd IJQdyOjZcv+GQkmK/7OARyWdeQ== X-Received: by 2002:a63:7d05:: with SMTP id y5mr17861065pgc.425.1567961816386; Sun, 08 Sep 2019 09:56:56 -0700 (PDT) Received: from localhost.localdomain ([24.244.23.109]) by smtp.googlemail.com with ESMTPSA id f188sm13834631pfa.170.2019.09.08.09.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2019 09:56:55 -0700 (PDT) From: Tom Murphy To: iommu@lists.linux-foundation.org Cc: Tom Murphy , Joerg Roedel , Will Deacon , Robin Murphy , Marek Szyprowski , Kukjin Kim , Krzysztof Kozlowski , David Woodhouse , Andy Gross , Matthias Brugger , Rob Clark , Heiko Stuebner , Gerald Schaefer , Thierry Reding , Jonathan Hunter , Jean-Philippe Brucker , 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, virtualization@lists.linux-foundation.org Subject: [PATCH v6 0/5] iommu/amd: Convert the AMD iommu driver to the dma-iommu api Date: Sun, 8 Sep 2019 09:56:36 -0700 Message-Id: <20190908165642.22253-1-murphyt7@tcd.ie> X-Mailer: git-send-email 2.20.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: V6: -add more details to the description of patch 001-iommu-amd-Remove-unnecessary-locking-from-AMD-iommu-.patch -rename handle_deferred_device to iommu_dma_deferred_attach -fix double tabs in 0003-iommu-dma-iommu-Handle-deferred-devices.patch V5: -Rebase on top of linux-next V4: -Rebase on top of linux-next -Split the removing of the unnecessary locking in the amd iommu driver into a seperate patch -refactor the "iommu/dma-iommu: Handle deferred devices" patch and address comments v3: -rename dma_limit to dma_mask -exit handle_deferred_device early if (!is_kdump_kernel()) -remove pointless calls to handle_deferred_device 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 (5): iommu/amd: Remove unnecessary locking from AMD iommu driver 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 AMD iommu driver to the dma-iommu api drivers/iommu/Kconfig | 1 + drivers/iommu/amd_iommu.c | 690 ++++---------------------------- drivers/iommu/amd_iommu_types.h | 1 - drivers/iommu/arm-smmu-v3.c | 2 +- drivers/iommu/arm-smmu.c | 2 +- drivers/iommu/dma-iommu.c | 43 +- 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 +- drivers/iommu/virtio-iommu.c | 2 +- include/linux/iommu.h | 21 +- 21 files changed, 178 insertions(+), 651 deletions(-) -- 2.20.1