Re: [PATCH v6 03/17] misc/habana: Stop using frame_vector helpers

2020-11-21 Thread Oded Gabbay
On Thu, Nov 19, 2020 at 4:41 PM Daniel Vetter wrote: > > All we need are a pages array, pin_user_pages_fast can give us that > directly. Plus this avoids the entire raw pfn side of get_vaddr_frames. > > Note that pin_user_pages_fast is a safe replacement despite the > seeming lack of checking for

[PATCH v6 03/17] misc/habana: Stop using frame_vector helpers

2020-11-19 Thread Daniel Vetter
All we need are a pages array, pin_user_pages_fast can give us that directly. Plus this avoids the entire raw pfn side of get_vaddr_frames. Note that pin_user_pages_fast is a safe replacement despite the seeming lack of checking for vma->vm_flasg & (VM_IO | VM_PFNMAP). Such ptes are marked with pt