aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2013-10-24 04:24:54 -0400
committerThomas Hellstrom <thellstrom@vmware.com>2013-11-06 06:55:52 -0500
commit7aeb7448d8d02868ef30a6d08e856b2220319273 (patch)
tree2b12ced2a7607b6305ff6a41d933d5b0b55c23a0 /drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
parent4695b03970df378dcb93fe3e7158381f1e980fa2 (diff)
drm/ttm: Enable the dma page pool also for intel IOMMUs
Used by the vmwgfx driver Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_page_alloc_dma.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_page_alloc_dma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
index 7957beeeaf73..fb8259f69839 100644
--- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
+++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
@@ -33,6 +33,7 @@
33 * when freed). 33 * when freed).
34 */ 34 */
35 35
36#if defined(CONFIG_SWIOTLB) || defined(CONFIG_INTEL_IOMMU)
36#define pr_fmt(fmt) "[TTM] " fmt 37#define pr_fmt(fmt) "[TTM] " fmt
37 38
38#include <linux/dma-mapping.h> 39#include <linux/dma-mapping.h>
@@ -1142,3 +1143,5 @@ int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data)
1142 return 0; 1143 return 0;
1143} 1144}
1144EXPORT_SYMBOL_GPL(ttm_dma_page_alloc_debugfs); 1145EXPORT_SYMBOL_GPL(ttm_dma_page_alloc_debugfs);
1146
1147#endif