iommu/vt-d: Check whether device requires bounce buffer
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 6 Sep 2019 06:14:49 +0000 (14:14 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 11 Sep 2019 10:34:29 +0000 (12:34 +0200)
commite5e04d051979dbd636a99099b7a595093c50a4bc
tree02c641871e285fea720da12bd1420bc865ccae83
parent3fc1ca00653db6371585e3c21c4b873b2f20e60a
iommu/vt-d: Check whether device requires bounce buffer

This adds a helper to check whether a device needs to
use bounce buffer. It also provides a boot time option
to disable the bounce buffer. Users can use this to
prevent the iommu driver from using the bounce buffer
for performance gain.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Xu Pengfei <pengfei.xu@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Documentation/admin-guide/kernel-parameters.txt
drivers/iommu/intel-iommu.c