[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190801060156.8564-1-baolu.lu@linux.intel.com>
Date: Thu, 1 Aug 2019 14:01:53 +0800
From: Lu Baolu <baolu.lu@...ux.intel.com>
To: David Woodhouse <dwmw2@...radead.org>,
Joerg Roedel <joro@...tes.org>
Cc: ashok.raj@...el.com, jacob.jun.pan@...el.com, kevin.tian@...el.com,
Christoph Hellwig <hch@....de>,
Robin Murphy <robin.murphy@....com>,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
Lu Baolu <baolu.lu@...ux.intel.com>
Subject: [PATCH 0/3] iommu/vtd: Per device dma ops
Current Intel IOMMU driver sets the system level dma_ops. This
means every dma API call will be routed to the iommu driver,
even the privileged user might select to bypass iommu for some
specific devices.
Furthermore, if the priviledged user requests to bypass iommu
translation for a device, the iommu driver might fall back to
use dma domain blindly if the device is not able to address all
system memory.
This sets the per-device dma_ops only if a device is using DMA
domain. Otherwise, use the default dma_ops for direct dma.
Lu Baolu (3):
iommu/vt-d: Refactor find_domain() helper
iommu/vt-d: Apply per-device dma_ops
iommu/vt-d: Cleanup after using per-device dma ops
drivers/iommu/intel-iommu.c | 131 ++++++++++--------------------------
1 file changed, 34 insertions(+), 97 deletions(-)
--
2.17.1
Powered by blists - more mailing lists