drm/ttm: Pool allocator simplification and sysfs interface

2010-03-24 Thread Pauli Nieminen
This patch series simplifies pool management code and adds sysfd interface to control pool functionality from sysfs. Pool size reduction only happens when mm shrinker request for free pages. To prevent pool from wasting too much free memory there is user configureable maximum size. If pool tries t

Re: [PATCH 0/7] drm/ttm: Pool allocator

2010-03-19 Thread Thomas Hellström
Pauli Nieminen wrote: > 2010/3/19 Thomas Hellström : > >> Pauli, Dave and Jerome, >> >> Before reviewing this, Could you describe a bit how this interfaces with the >> TTM memory accounting. It's important for some systems to be able to set a >> limit beyond which TTM may not pin any pages. >> >

Re: [PATCH 0/7] drm/ttm: Pool allocator

2010-03-19 Thread Pauli Nieminen
2010/3/19 Thomas Hellström : > Pauli, Dave and Jerome, > > Before reviewing this, Could you describe a bit how this interfaces with the > TTM memory accounting. It's important for some systems to be able to set a > limit beyond which TTM may not pin any pages. > > Am I right in assuming that TTM me

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

2010-03-17 Thread Pauli Nieminen
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 deallo

Re: TTM pool allocator

2009-08-26 Thread Dave Airlie
> Hi, > > Attached new version of pool allocator not much changed. > - Use kmap_atomic_prot on highmem page to clear them if > necessary (please check that i do use proper pgprot) > - Force populate on cache change (discussed previously > the reason for this). > - Allocate structure to hold t

Re: TTM pool allocator

2009-08-10 Thread Michel Dänzer
On Thu, 2009-08-06 at 22:53 +0200, Jerome Glisse wrote: > Hi, > > Attached new version of pool allocator not much changed. > - Use kmap_atomic_prot on highmem page to clear them if > necessary (please check that i do use proper pgprot) > - Force populate on cache change (discussed previously >

TTM pool allocator

2009-08-06 Thread Jerome Glisse
Hi, Attached new version of pool allocator not much changed. - Use kmap_atomic_prot on highmem page to clear them if necessary (please check that i do use proper pgprot) - Force populate on cache change (discussed previously the reason for this). - Allocate structure to hold the pool informati