Re: [PATCH v2] drm/ttm: expose CPU address of DMA-allocated pages

2014-08-04 Thread Ben Skeggs
On Mon, Aug 4, 2014 at 7:28 PM, Alexandre Courbot wrote: > Pages allocated using the DMA API have a coherent memory mapping. Make > this mapping visible to drivers so they can decide to use it instead of > creating their own redundant one. I've picked this up in nouveau's linux-3.17 staging

[PATCH v2] drm/ttm: expose CPU address of DMA-allocated pages

2014-08-04 Thread Alexandre Courbot
Pages allocated using the DMA API have a coherent memory mapping. Make this mapping visible to drivers so they can decide to use it instead of creating their own redundant one. Signed-off-by: Alexandre Courbot Acked-by: David Airlie --- Changes since v1: - Perform only one allocation for pages,

[PATCH v2] drm/ttm: expose CPU address of DMA-allocated pages

2014-08-04 Thread Alexandre Courbot
Pages allocated using the DMA API have a coherent memory mapping. Make this mapping visible to drivers so they can decide to use it instead of creating their own redundant one. Signed-off-by: Alexandre Courbot acour...@nvidia.com Acked-by: David Airlie airl...@linux.ie --- Changes since v1: -

Re: [PATCH v2] drm/ttm: expose CPU address of DMA-allocated pages

2014-08-04 Thread Ben Skeggs
On Mon, Aug 4, 2014 at 7:28 PM, Alexandre Courbot acour...@nvidia.com wrote: Pages allocated using the DMA API have a coherent memory mapping. Make this mapping visible to drivers so they can decide to use it instead of creating their own redundant one. I've picked this up in nouveau's