[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180726231624.21084-2-digetx@gmail.com>
Date: Fri, 27 Jul 2018 02:16:19 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Mikko Perttunen <cyndis@...si.fi>,
Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
Ben Skeggs <bskeggs@...hat.com>,
Russell King <linux@...linux.org.uk>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Joerg Roedel <joro@...tes.org>,
Nicolas Chauvet <kwizart@...il.com>
Cc: devicetree@...r.kernel.org, nouveau@...ts.freedesktop.org,
iommu@...ts.linux-foundation.org, dri-devel@...ts.freedesktop.org,
linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [RFC PATCH v1 1/6] driver core: Add option for disabling of backing devices DMA with IOMMU
This allows device drivers to convey the drivers core that implicit IOMMU
backing for devices DMA shouldn't happen. It is needed for drivers that
manage IOMMU by themselves, like for example it is needed by the NVIDIA
Tegra GPU driver.
Signed-off-by: Dmitry Osipenko <digetx@...il.com>
---
include/linux/device.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/device.h b/include/linux/device.h
index ad43a97b50c8..f9e3c1d42abd 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -244,6 +244,7 @@ enum probe_type {
* @bus: The bus which the device of this driver belongs to.
* @owner: The module owner.
* @mod_name: Used for built-in modules.
+ * @no_implicit_iommu: Disables backing DMA allocations with IOMMU mapping.
* @suppress_bind_attrs: Disables bind/unbind via sysfs.
* @probe_type: Type of the probe (synchronous or asynchronous) to use.
* @of_match_table: The open firmware table.
@@ -281,6 +282,7 @@ struct device_driver {
struct module *owner;
const char *mod_name; /* used for built-in modules */
+ bool no_implicit_iommu; /* disables implicit IOMMU for DMA */
bool suppress_bind_attrs; /* disables bind/unbind via sysfs */
enum probe_type probe_type;
--
2.18.0
Powered by blists - more mailing lists