• D
    misc/habana: Stop using frame_vector helpers · d4cb1925
    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 pte_mkspecial (which pup_fast rejects in the
    fastpath), and only architectures supporting that support the
    pin_user_pages_fast fastpath.
    Reviewed-by: NJohn Hubbard <jhubbard@nvidia.com>
    Reviewed-by: NOded Gabbay <ogabbay@kernel.org>
    Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: Jason Gunthorpe <jgg@ziepe.ca>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: John Hubbard <jhubbard@nvidia.com>
    Cc: Jérôme Glisse <jglisse@redhat.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: linux-mm@kvack.org
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-samsung-soc@vger.kernel.org
    Cc: linux-media@vger.kernel.org
    Cc: Oded Gabbay <oded.gabbay@gmail.com>
    Cc: Omer Shpigelman <oshpigelman@habana.ai>
    Cc: Ofir Bitton <obitton@habana.ai>
    Cc: Tomer Tayar <ttayar@habana.ai>
    Cc: Moti Haimovski <mhaimovski@habana.ai>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Pawel Piskorski <ppiskorski@habana.ai>
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    Link: https://patchwork.freedesktop.org/patch/msgid/20201127164131.2244124-4-daniel.vetter@ffwll.ch
    d4cb1925
Kconfig 682 字节