Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp718963pxk; Fri, 11 Sep 2020 20:29:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUGrpHRIvKo0tCWShg4f9n1bTfckkN1tGICPc6JyJRZ3u6C/QZP2nfWV8s/hSdFMSroLOF X-Received: by 2002:a17:906:e08f:: with SMTP id gh15mr4623048ejb.443.1599881385184; Fri, 11 Sep 2020 20:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599881385; cv=none; d=google.com; s=arc-20160816; b=kL64UmLC+VBP7l88l9xPrgc/7UCpXNCk5guYa+VfT+JZNWf1m94xsfJO+vLXpVx4AB OQHf5tUwDJW7eSBqUljWWVczwGfLyPQvvFUQUFLEWnNB9tmznr/LJ9nIddhx+Z2NMG/c aVnyYWHs7MdYZrcPJf2Z4OcP3QJjV/QN5prMLpWP8gd1kiGPIzuQVfg3dvCkSyROtWzF LheUymZwxR3I/BNVg+8WQDnazAUNZxsoQA5SmQgcdRE8ecef0G4hEDox/sQzGr7Yd0wE fEJUmF8HnZFYFvkMWpRInzwOwEKUcIzBGydSYwaQfYe0xuj1WRDj8WdFShtXFh0f0+CL V99g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=leyI6TzGeZwLLruLcO9NJCQgFGkXaGlzh0Dl9bguHYc=; b=aIOaYTCEepn+PlURUrtE9LUl7/tzRVZO/WHCtFO+xyhxobVE1Q/VQEGRAtNhrQDbNW fhDrJA5Tx3aAaSJdKVS6c+j+1ShkpU6GIRQCDEWzqD+iT/lGGaT2fsV2Q0YjnhlfJBgn N72WzdCap5w5fg2/EFAkUAtIihFjuQ5A83rLHCf3wPpv3YESvuVzrWJinb/jeNxIwghE uZjXsQIMmyQGgLNj56Y65paDp7nak+H5TyvZs7TutDGBvNoD/DjWSMsRZonTOCBge98R +0a3WzVqbZXTsvPSVoBUYsy2YXCY6bJFrUljbWNJMf1fkIq/0QTR1Oc8digGJPSz0Uk6 q4MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si2740108ejz.631.2020.09.11.20.29.22; Fri, 11 Sep 2020 20:29:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725845AbgILD2Y (ORCPT + 99 others); Fri, 11 Sep 2020 23:28:24 -0400 Received: from mga07.intel.com ([134.134.136.100]:27600 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbgILD2P (ORCPT ); Fri, 11 Sep 2020 23:28:15 -0400 IronPort-SDR: TN2EQYeWQLgwyU8dpKwrw1DUjVIW5EQn0aX/VCDpmHyuF4oWNrbDCmv8MyMCXLINMmtWO1AOHu sshP4FRI5DZg== X-IronPort-AV: E=McAfee;i="6000,8403,9741"; a="223074010" X-IronPort-AV: E=Sophos;i="5.76,418,1592895600"; d="scan'208";a="223074010" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2020 20:28:05 -0700 IronPort-SDR: vAnIu1Sv+EC2IcfvY8nEZeyNa/WSeMrZVFkDgx7RL++t/LyKAc6WdQoss2M0CYiDmJF740nZKt oOow2M0qgWOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,418,1592895600"; d="scan'208";a="408321391" Received: from allen-box.sh.intel.com ([10.239.159.139]) by fmsmga001.fm.intel.com with ESMTP; 11 Sep 2020 20:28:01 -0700 From: Lu Baolu To: Joerg Roedel , Tom Murphy , David Woodhouse , Christoph Hellwig Cc: Ashok Raj , Tvrtko Ursulin , Intel-gfx@lists.freedesktop.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH v3 0/6] Convert the intel iommu driver to the dma-iommu api Date: Sat, 12 Sep 2020 11:21:54 +0800 Message-Id: <20200912032200.11489-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tom Murphy has almost done all the work. His latest patch series was posted here. https://lore.kernel.org/linux-iommu/20200903201839.7327-1-murphyt7@tcd.ie/ Thanks a lot! This series is a follow-up with below changes: 1. Add a quirk for the i915 driver issue described in Tom's cover letter. 2. Fix several bugs in patch "iommu: Allow the dma-iommu api to use bounce buffers" to make the bounce buffer work for untrusted devices. 3. Several cleanups in iommu/vt-d driver after the conversion. Please review and test. Best regards, baolu Lu Baolu (2): iommu: Add quirk for Intel graphic devices in map_sg iommu/vt-d: Cleanup after converting to dma-iommu ops Tom Murphy (4): iommu: Handle freelists when using deferred flushing in iommu drivers iommu: Add iommu_dma_free_cpu_cached_iovas() iommu: Allow the dma-iommu api to use bounce buffers iommu/vt-d: Convert intel iommu driver to the iommu ops .../admin-guide/kernel-parameters.txt | 5 - drivers/iommu/dma-iommu.c | 229 ++++- drivers/iommu/intel/Kconfig | 1 + drivers/iommu/intel/iommu.c | 885 +++--------------- include/linux/dma-iommu.h | 8 + include/linux/iommu.h | 1 + 6 files changed, 323 insertions(+), 806 deletions(-) -- 2.17.1