[PATCH 10/14] drm/ttm: provide dma aware ttm page pool code V8

2011-11-16 Thread Jerome Glisse
On Wed, Nov 16, 2011 at 10:50:01AM -0500, Konrad Rzeszutek Wilk wrote: > > +int ttm_dma_populate(struct ttm_tt *ttm, struct device *dev) > > +{ > .. snip.. > > > + for (i = 0; i < ttm->num_pages; ++i) { > > + ret = ttm_dma_pool_get_pages(pool, ttm, i); > > + if (ret != 0) { >

[PATCH 10/14] drm/ttm: provide dma aware ttm page pool code V8

2011-11-16 Thread Konrad Rzeszutek Wilk
> +int ttm_dma_populate(struct ttm_tt *ttm, struct device *dev) > +{ .. snip.. > + for (i = 0; i < ttm->num_pages; ++i) { > + ret = ttm_dma_pool_get_pages(pool, ttm, i); > + if (ret != 0) { > + ttm_dma_unpopulate(ttm, dev); > + re

Re: [PATCH 10/14] drm/ttm: provide dma aware ttm page pool code V8

2011-11-16 Thread Jerome Glisse
On Wed, Nov 16, 2011 at 10:50:01AM -0500, Konrad Rzeszutek Wilk wrote: > > +int ttm_dma_populate(struct ttm_tt *ttm, struct device *dev) > > +{ > .. snip.. > > > + for (i = 0; i < ttm->num_pages; ++i) { > > + ret = ttm_dma_pool_get_pages(pool, ttm, i); > > + if (ret != 0) { >

Re: [PATCH 10/14] drm/ttm: provide dma aware ttm page pool code V8

2011-11-16 Thread Konrad Rzeszutek Wilk
> +int ttm_dma_populate(struct ttm_tt *ttm, struct device *dev) > +{ .. snip.. > + for (i = 0; i < ttm->num_pages; ++i) { > + ret = ttm_dma_pool_get_pages(pool, ttm, i); > + if (ret != 0) { > + ttm_dma_unpopulate(ttm, dev); > + re

[PATCH 10/14] drm/ttm: provide dma aware ttm page pool code V8

2011-11-11 Thread j.gli...@gmail.com
From: Konrad Rzeszutek Wilk In TTM world the pages for the graphic drivers are kept in three different pools: write combined, uncached, and cached (write-back). When the pages are used by the graphic driver the graphic adapter via its built in MMU (or AGP) programs these pages in. The programming

[PATCH 10/14] drm/ttm: provide dma aware ttm page pool code V8

2011-11-11 Thread j . glisse
From: Konrad Rzeszutek Wilk In TTM world the pages for the graphic drivers are kept in three different pools: write combined, uncached, and cached (write-back). When the pages are used by the graphic driver the graphic adapter via its built in MMU (or AGP) programs these pages in. The programming