linux_dsm_epyc7002/drivers/gpu/drm/etnaviv
Lorenzo Stoakes 5b56d49fc3 mm: add locked parameter to get_user_pages_remote()
Patch series "mm: unexport __get_user_pages_unlocked()".

This patch series continues the cleanup of get_user_pages*() functions
taking advantage of the fact we can now pass gup_flags as we please.

It firstly adds an additional 'locked' parameter to
get_user_pages_remote() to allow for its callers to utilise
VM_FAULT_RETRY functionality.  This is necessary as the invocation of
__get_user_pages_unlocked() in process_vm_rw_single_vec() makes use of
this and no other existing higher level function would allow it to do
so.

Secondly existing callers of __get_user_pages_unlocked() are replaced
with the appropriate higher-level replacement -
get_user_pages_unlocked() if the current task and memory descriptor are
referenced, or get_user_pages_remote() if other task/memory descriptors
are referenced (having acquiring mmap_sem.)

This patch (of 2):

Add a int *locked parameter to get_user_pages_remote() to allow
VM_FAULT_RETRY faulting behaviour similar to get_user_pages_[un]locked().

Taking into account the previous adjustments to get_user_pages*()
functions allowing for the passing of gup_flags, we are now in a
position where __get_user_pages_unlocked() need only be exported for his
ability to allow VM_FAULT_RETRY behaviour, this adjustment allows us to
subsequently unexport __get_user_pages_unlocked() as well as allowing
for future flexibility in the use of get_user_pages_remote().

[sfr@canb.auug.org.au: merge fix for get_user_pages_remote API change]
  Link: http://lkml.kernel.org/r/20161122210511.024ec341@canb.auug.org.au
Link: http://lkml.kernel.org/r/20161027095141.2569-2-lstoakes@gmail.com
Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krcmar <rkrcmar@redhat.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-14 16:04:08 -08:00
..
cmdstream.xml.h drm/etnaviv: Allow DRAW_INSTANCED commands 2016-12-02 19:30:22 +01:00
common.xml.h drm/etnaviv: update common and state_hi xml.h files 2016-01-26 18:53:55 +01:00
etnaviv_buffer.c drm/etnaviv: ensure write caches are flushed at end of user cmdstream 2016-10-10 15:26:38 +02:00
etnaviv_cmd_parser.c drm/etnaviv: Allow DRAW_INSTANCED commands 2016-12-02 19:30:22 +01:00
etnaviv_drv.c Merge branch 'drm-etnaviv-next' of git://git.pengutronix.de/lst/linux into drm-next 2016-12-06 11:00:16 +10:00
etnaviv_drv.h drm/etnaviv: implement dma-buf mmap 2016-12-02 19:30:21 +01:00
etnaviv_dump.c drm/etnaviv: don't invoke OOM killer from dump code 2016-12-02 19:30:23 +01:00
etnaviv_dump.h drm/etnaviv: add initial etnaviv DRM driver 2015-12-15 14:48:02 +01:00
etnaviv_gem_prime.c drm/etnaviv: fix gem_prime_get_sg_table to return new SG table 2016-12-02 19:30:23 +01:00
etnaviv_gem_submit.c kernel.h: add u64_to_user_ptr() 2016-04-29 17:03:49 -07:00
etnaviv_gem.c mm: add locked parameter to get_user_pages_remote() 2016-12-14 16:04:08 -08:00
etnaviv_gem.h drm/etnaviv: fix mmap operations for userptr and dma-buf objects 2016-05-06 10:42:33 +02:00
etnaviv_gpu.c Merge branch 'drm-etnaviv-next' of git://git.pengutronix.de/lst/linux into drm-next 2016-12-06 11:00:16 +10:00
etnaviv_gpu.h dma-buf: Rename struct fence to dma_fence 2016-10-25 14:40:39 +02:00
etnaviv_iommu_v2.c drm/etnaviv: implement IOMMUv2 translation 2016-09-15 15:29:43 +02:00
etnaviv_iommu.c drm/etnaviv: move IOMMU domain allocation into etnaviv MMU 2016-09-15 15:29:36 +02:00
etnaviv_iommu.h drm/etnaviv: implement IOMMUv2 translation 2016-09-15 15:29:43 +02:00
etnaviv_mmu.c drm/etnaviv: block 64K of address space behind each cmdstream 2016-10-10 15:26:39 +02:00
etnaviv_mmu.h drm/etnaviv: map cmdbuf through MMU on version 2 2016-09-15 15:29:40 +02:00
Kconfig drm/etnaviv: add initial etnaviv DRM driver 2015-12-15 14:48:02 +01:00
Makefile drm/etnaviv: add initial etnaviv DRM driver 2015-12-15 14:48:02 +01:00
state_3d.xml.h drm: etnaviv: flush all GPU caches when stopping GPU 2016-03-07 15:36:56 +01:00
state_hi.xml.h drm/etnaviv: handle MMU exception in IRQ handler 2016-09-15 15:29:42 +02:00
state.xml.h drm/etnaviv: add initial etnaviv DRM driver 2015-12-15 14:48:02 +01:00