aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/ttm/ttm_page_alloc.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-11-06 21:21:42 -0500
committerDave Airlie <airlied@redhat.com>2013-11-06 21:21:42 -0500
commit1e95ab5846504b2c0e9a01405bbb3278e2e20480 (patch)
treeb8af3af9373dd0bbcb7df30b5e5a7b66dbf98801 /include/drm/ttm/ttm_page_alloc.h
parent4695b03970df378dcb93fe3e7158381f1e980fa2 (diff)
parentd92d985177c495aab53c7167f310a7efb1853918 (diff)
Merge branch 'vmwgfx-next-3.13' of git://people.freedesktop.org/~thomash/linux into drm-next
Pull request for vmwgfx. Currently just the DMA address stuff. * 'vmwgfx-next-3.13' of git://people.freedesktop.org/~thomash/linux: drm/vmwgfx: Use the linux DMA api to get valid device addresses of pages drm/ttm: Enable the dma page pool also for intel IOMMUs
Diffstat (limited to 'include/drm/ttm/ttm_page_alloc.h')
-rw-r--r--include/drm/ttm/ttm_page_alloc.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 706b962c6467..d1f61bfe0ebe 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -62,7 +62,7 @@ extern void ttm_pool_unpopulate(struct ttm_tt *ttm);
62extern int ttm_page_alloc_debugfs(struct seq_file *m, void *data); 62extern int ttm_page_alloc_debugfs(struct seq_file *m, void *data);
63 63
64 64
65#ifdef CONFIG_SWIOTLB 65#if defined(CONFIG_SWIOTLB) || defined(CONFIG_INTEL_IOMMU)
66/** 66/**
67 * Initialize pool allocator. 67 * Initialize pool allocator.
68 */ 68 */
@@ -94,6 +94,15 @@ static inline int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data)
94{ 94{
95 return 0; 95 return 0;
96} 96}
97static inline int ttm_dma_populate(struct ttm_dma_tt *ttm_dma,
98 struct device *dev)
99{
100 return -ENOMEM;
101}
102static inline void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma,
103 struct device *dev)
104{
105}
97#endif 106#endif
98 107
99#endif 108#endif