Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282490
b: refs/heads/master
c: 2334b75
h: refs/heads/master
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk authored and Dave Airlie committed Dec 6, 2011
1 parent e81c92b commit 04bfdb0
Show file tree
Hide file tree
Showing 7 changed files with 1,180 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1e5f172325547270f35e7d1e42416a606e1dbd2
refs/heads/master: 2334b75ffbef6b8932f09ec4418b65ddb764ae99
4 changes: 4 additions & 0 deletions trunk/drivers/gpu/drm/ttm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ ttm-y := ttm_agp_backend.o ttm_memory.o ttm_tt.o ttm_bo.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

obj-$(CONFIG_DRM_TTM) += ttm.o
2 changes: 2 additions & 0 deletions trunk/drivers/gpu/drm/ttm/ttm_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ int ttm_mem_global_init(struct ttm_mem_global *glob)
zone->name, (unsigned long long) zone->max_mem >> 10);
}
ttm_page_alloc_init(glob, glob->zone_kernel->max_mem/(2*PAGE_SIZE));
ttm_dma_page_alloc_init(glob, glob->zone_kernel->max_mem/(2*PAGE_SIZE));
return 0;
out_no_zone:
ttm_mem_global_release(glob);
Expand All @@ -409,6 +410,7 @@ void ttm_mem_global_release(struct ttm_mem_global *glob)

/* let the page allocator first stop the shrink work. */
ttm_page_alloc_fini();
ttm_dma_page_alloc_fini();

flush_workqueue(glob->swap_queue);
destroy_workqueue(glob->swap_queue);
Expand Down
Loading

0 comments on commit 04bfdb0

Please sign in to comment.