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

2014-07-21 Thread Alexandre Courbot
On Tue, Jul 22, 2014 at 2:07 PM, Dave Airlie wrote: > On 22 July 2014 14:21, Alexandre Courbot wrote: >> DRM maintainers, could I have a comment about this patch? A bunch of >> Nouveau changes depend on it. > > I'm not sure we really have anyone who is in a great position to comment, > > my major

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

2014-07-21 Thread Dave Airlie
On 22 July 2014 14:21, Alexandre Courbot wrote: > DRM maintainers, could I have a comment about this patch? A bunch of > Nouveau changes depend on it. I'm not sure we really have anyone who is in a great position to comment, my major issue would be its allocate a large chunk of RAM that might no

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

2014-07-21 Thread Alexandre Courbot
DRM maintainers, could I have a comment about this patch? A bunch of Nouveau changes depend on it. Thanks, Alex. On Tue, Jul 15, 2014 at 11:10 AM, Alexandre Courbot wrote: > Pages allocated using the DMA API have a coherent memory mapping. Make > this mapping visible to drivers so they can decid

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

2014-07-14 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. This is not a mere optimization: for instance, on ARM it is illegal to have several memory mappings to the same memory wi