Skip to content

drm/ttm: Pool allocator

Pauli Nieminen dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/ttm: add pool wc/uc page allocatordrivers/gpu/drm/ttm/Makefile drivers/gpu/drm/ttm/ttm_memory.c drivers/gpu/drm/ttm/ttm_page_alloc.c +2 more+867 -250 replies
2/7drm/ttm: Add debugfs output entry to pool allocator.drivers/gpu/drm/ttm/ttm_page_alloc.c include/drm/ttm/ttm_page_alloc.h+44 -60 replies
3/7drm/radeon/kms: Add ttm page pool debugfs file.drivers/gpu/drm/radeon/radeon_ttm.c+10 -30 replies
4/7drm/nouveau: Add ttm page pool debugfs file.drivers/gpu/drm/nouveau/nouveau_debugfs.c+3 -00 replies
5/7drm/ttm: Dynamically scale the allocation sizes of pools.drivers/gpu/drm/ttm/ttm_page_alloc.c+81 -240 replies
6/7arch/x86: Add array variants for setting memory to wc caching.arch/x86/include/asm/cacheflush.h arch/x86/mm/pageattr.c+47 -84 replies
7/7drm/ttm: Use set_pages_array_wc instead of set_memory_wc.drivers/gpu/drm/ttm/ttm_page_alloc.c+1 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] drm/ttm: Pool allocator

When allocating wc/uc pages cache state transition requires cache flush which is expensive operation. To avoid cache flushes allocation of wc/uc pages should be done in large groups when only single cache flush is required for whole group of pages.

In some cases drivers need t oallocate and deallocate many pages in a short time frame. In this case we can avoid cache flushes if we keep pages in the pool before actually freeing them later.

arch/x86 was missing set_pages_array_wc and set_memory_array_wc. Patch 6 and 7 add missing functions and hooks set_pages_array_wc to the pool allocator.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--