On Tue, Feb 28, 2017 at 08:28:08PM +, Lorenzo Stoakes wrote:
> On 28 February 2017 at 19:35, Al Viro wrote:
> > On Tue, Feb 28, 2017 at 10:01:10AM +0100, Daniel Vetter wrote:
> >
> >> > + ret = get_user_pages_unlocked((unsigned long)xfer->mem_addr,
> >> > + vsg->num_pages,
On 28 February 2017 at 19:35, Al Viro wrote:
> On Tue, Feb 28, 2017 at 10:01:10AM +0100, Daniel Vetter wrote:
>
>> > + ret = get_user_pages_unlocked((unsigned long)xfer->mem_addr,
>> > + vsg->num_pages, vsg->pages,
>> > + (vsg->direction == DMA_FROM_DEVICE) ?
On Tue, Feb 28, 2017 at 10:01:10AM +0100, Daniel Vetter wrote:
> > + ret = get_user_pages_unlocked((unsigned long)xfer->mem_addr,
> > + vsg->num_pages, vsg->pages,
> > + (vsg->direction == DMA_FROM_DEVICE) ? FOLL_WRITE : 0);
Umm... Why not
ret = get_
On Mon, Feb 27, 2017 at 09:50:08PM +, Lorenzo Stoakes wrote:
> Moving from get_user_pages() to get_user_pages_unlocked() simplifies the code
> and takes advantage of VM_FAULT_RETRY functionality when faulting in pages.
>
> Signed-off-by: Lorenzo Stoakes
Queued for 4.12, thanks for the patch.
Moving from get_user_pages() to get_user_pages_unlocked() simplifies the code
and takes advantage of VM_FAULT_RETRY functionality when faulting in pages.
Signed-off-by: Lorenzo Stoakes
---
drivers/gpu/drm/via/via_dmablit.c | 10 +++---
1 file changed, 3 insertions(+), 7 deletions(-)
diff --
5 matches
Mail list logo