aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/ttm/ttm_page_alloc.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2019-11-13 19:02:42 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2019-11-14 08:41:23 +0100
commite2e966636aee99971965c0965a4c11b8ce077da3 (patch)
treeb7cdabd76f2145436333076c9b32bfc886a6d5e7 /include/drm/ttm/ttm_page_alloc.h
parentMerge tag 'drm-misc-next-fixes-2019-11-06' of git://anongit.freedesktop.org/drm/drm-misc into drm-next (diff)
downloadlinux-dev-e2e966636aee99971965c0965a4c11b8ce077da3.tar.xz
linux-dev-e2e966636aee99971965c0965a4c11b8ce077da3.zip
drm/ttm, drm/vmwgfx: Use a configuration option for the TTM dma page pool
Drivers like vmwgfx may want to test whether the dma page pool is present or not. Since it's activated by default by TTM if compiled-in, define a hidden configuration option that the driver can test for. Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include/drm/ttm/ttm_page_alloc.h')
-rw-r--r--include/drm/ttm/ttm_page_alloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 4d9b019d253c..a6b6ef5f9bf4 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -74,7 +74,7 @@ void ttm_unmap_and_unpopulate_pages(struct device *dev, struct ttm_dma_tt *tt);
*/
int ttm_page_alloc_debugfs(struct seq_file *m, void *data);
-#if defined(CONFIG_SWIOTLB) || defined(CONFIG_INTEL_IOMMU)
+#if defined(CONFIG_DRM_TTM_DMA_PAGE_POOL)
/**
* Initialize pool allocator.
*/