Skip to content

Commit

Permalink
Merge branch 'vmwgfx-next-3.13' of git://people.freedesktop.org/~thom…
Browse files Browse the repository at this point in the history
…ash/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
  • Loading branch information
Dave Airlie committed Nov 7, 2013
2 parents 4695b03 + d92d985 commit 1e95ab5
Show file tree
Hide file tree
Showing 7 changed files with 634 additions and 100 deletions.
6 changes: 1 addition & 5 deletions drivers/gpu/drm/ttm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ ccflags-y := -Iinclude/drm
ttm-y := ttm_agp_backend.o ttm_memory.o ttm_tt.o ttm_bo.o \
ttm_bo_util.o ttm_bo_vm.o ttm_module.o \
ttm_object.o ttm_lock.o ttm_execbuf_util.o ttm_page_alloc.o \
ttm_bo_manager.o

ifeq ($(CONFIG_SWIOTLB),y)
ttm-y += ttm_page_alloc_dma.o
endif
ttm_bo_manager.o ttm_page_alloc_dma.o

obj-$(CONFIG_DRM_TTM) += ttm.o
3 changes: 3 additions & 0 deletions drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* when freed).
*/

#if defined(CONFIG_SWIOTLB) || defined(CONFIG_INTEL_IOMMU)
#define pr_fmt(fmt) "[TTM] " fmt

#include <linux/dma-mapping.h>
Expand Down Expand Up @@ -1142,3 +1143,5 @@ int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data)
return 0;
}
EXPORT_SYMBOL_GPL(ttm_dma_page_alloc_debugfs);

#endif
Loading

0 comments on commit 1e95ab5

Please sign in to comment.