Re: [Intel-gfx] [PATCH] dma-buf: make dma_fence structure a bit smaller v2

2019-08-09 Thread Christian König
Daniel any more comments on this one? If not I'm going to push it. Christian. Am 08.08.19 um 15:22 schrieb Christian König: We clear the callback list on kref_put so that by the time we release the fence it is unused. No one should be adding to the cb_list that they don't themselves hold a

[Intel-gfx] [PATCH 1/8] dma-buf: fix busy wait for new shared fences

2019-08-09 Thread Christian König
When reservation_object_add_shared_fence is replacing an old fence with a new one we should not drop the old one before the new one is in place. Otherwise other cores can busy wait for the new one to appear. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c | 14 +++---

[Intel-gfx] [PATCH v2 27/34] mm/memory.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-09 Thread John Hubbard
On 8/1/19 7:16 PM, john.hubb...@gmail.com wrote: > From: John Hubbard > > Hi, > > These are best characterized as miscellaneous conversions: many (not all) > call sites that don't involve biovec or iov_iter, nor mm/. It also leaves > out a few call sites that require some more work. These are

[Intel-gfx] [PATCH v3 15/41] rapidio: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [PATCH v3 hmm 10/11] drm/amdkfd: use mmu_notifier_put

2019-08-09 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 11:47:44PM +, Kuehling, Felix wrote: > On 2019-08-06 19:15, Jason Gunthorpe wrote: > > From: Jason Gunthorpe > > > > The sequence of mmu_notifier_unregister_no_release(), > > mmu_notifier_call_srcu() is identical to mmu_notifier_put() with the > > free_notifier

[Intel-gfx] [PATCH] dma-buf: make dma_fence structure a bit smaller

2019-08-09 Thread Christian König
The ruc and cb_list are never used at the same time. This smal change is actually making the structure 16% smaller. Signed-off-by: Christian König --- include/linux/dma-fence.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/dma-fence.h

[Intel-gfx] [PATCH v2 26/34] mm/gup_benchmark.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 27/34] mm/memory.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 19/34] fsl_hypervisor: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [PATCH v2 01/34] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-08-09 Thread John Hubbard
On 8/6/19 10:39 AM, Ira Weiny wrote: > On Sun, Aug 04, 2019 at 03:48:42PM -0700, john.hubb...@gmail.com wrote: >> From: John Hubbard ... >> - >> /** >> - * put_user_pages_dirty() - release and dirty an array of gup-pinned pages >> - * @pages: array of pages to be marked dirty and released. >> +

[Intel-gfx] [PATCH] dma-buf: make dma_fence structure a bit smaller v2

2019-08-09 Thread Christian König
We clear the callback list on kref_put so that by the time we release the fence it is unused. No one should be adding to the cb_list that they don't themselves hold a reference for. This small change is actually making the structure 16% smaller. v2: add the comment to the code as well.

[Intel-gfx] [PATCH 22/34] orangefs: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 20/34] xen: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] XDC 2019: Schedule published & Workshops CfP reopened!

2019-08-09 Thread Mark Filion
Hello, The preliminary schedule for XDC 2019 has been published! https://xdc2019.x.org/event/5/timetable/#20191002.detailed XDC 2019 will take place at the Concordia University Conference Centre in Montréal, Canada on October 2-4, 2019. If you haven't already done so, now is the time to book

[Intel-gfx] [PATCH v2 13/34] rapidio: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 10/41] media/ivtv: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-09 Thread John Hubbard
On 8/2/19 1:05 AM, Peter Zijlstra wrote: On Thu, Aug 01, 2019 at 07:16:19PM -0700, john.hubb...@gmail.com wrote: This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder versions"). That commit has an extensive description of the

Re: [Intel-gfx] [PATCH v2 31/34] fs/nfs: convert put_page() to put_user_page*()

2019-08-09 Thread Calum Mackay
On 04/08/2019 11:49 pm, john.hubb...@gmail.com wrote: From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit

[Intel-gfx] [PATCH 32/34] goldfish_pipe: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 02/34] net/rds: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 39/41] mm/mlock.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-09 Thread John Hubbard
On 8/7/19 7:36 PM, Ira Weiny wrote: On Wed, Aug 07, 2019 at 10:46:49AM +0200, Michal Hocko wrote: On Wed 07-08-19 10:37:26, Jan Kara wrote: On Fri 02-08-19 12:14:09, John Hubbard wrote: On 8/2/19 7:52 AM, Jan Kara wrote: On Fri 02-08-19 07:24:43, Matthew Wilcox wrote: On Fri, Aug 02, 2019

[Intel-gfx] [PATCH v3 16/41] oradax: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 06/41] x86/kvm: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder versions"). Cc:

[Intel-gfx] [PATCH v3 13/41] scif: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 35/41] kernel/events/core.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 08/34] media/ivtv: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 06/34] drm/i915: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 03/34] net/ceph: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 23/41] fs/exec.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 23/34] uprobes: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [PATCH 20/34] xen: convert put_page() to put_user_page*()

2019-08-09 Thread John Hubbard
On 8/1/19 9:36 PM, Juergen Gross wrote: On 02.08.19 04:19, john.hubb...@gmail.com wrote: From: John Hubbard ... diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 2f5ce7230a43..29e461dbee2d 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c @@ -611,15 +611,10 @@

Re: [Intel-gfx] [PATCH 8/8] dma-buf: nuke reservation_object seq number

2019-08-09 Thread Christian König
Am 06.08.19 um 21:57 schrieb Chris Wilson: Quoting Christian König (2019-08-06 16:01:34) The only remaining use for this is to protect against setting a new exclusive fence while we grab both exclusive and shared. That can also be archived by looking if the exclusive fence has changed or not

[Intel-gfx] [PATCH v3 34/41] goldfish_pipe: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 16/34] drivers/tee: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 18/34] fbdev/pvr2fb: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 21/34] fs/exec.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 24/34] futex: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 04/41] net/rds: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH] gpu/drm/i915: disable interrupt when holding spinlock

2019-08-09 Thread Wang Xiayang
The irq_lock is acquired in multiple functions: 1) i915_request_cancel_breadcrumb <- ... <- panfrost_gpu_irq_handler 2) intel_engine_breadcrumbs_irq <- ... <- cherryview_irq_handler 3) i915_request_enable_breadcrumb 4) virtual_xfer_breadcrumbs The former two functions are reachable from IRQ

[Intel-gfx] [PATCH v3 37/41] security/tomoyo: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 07/34] drm/radeon: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 20/34] xen: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 22/34] orangefs: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 31/34] nfs: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-09 Thread john . hubbard
From: John Hubbard Hi, These are best characterized as miscellaneous conversions: many (not all) call sites that don't involve biovec or iov_iter, nor mm/. It also leaves out a few call sites that require some more work. These are mostly pretty simple ones. It's probably best to send all of

[Intel-gfx] [PATCH 10/34] genwqe: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 11/41] media/v4l2-core/mm: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 13/34] rapidio: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 38/41] powerpc: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [linux-next] mm/i915: i915_gemfs_init() NULL dereference

2019-08-09 Thread Sergey Senozhatsky
On (08/01/19 18:30), Chris Wilson wrote: > Quoting Sergey Senozhatsky (2019-07-31 17:48:29) > > @@ -36,19 +38,35 @@ int i915_gemfs_init(struct drm_i915_private *i915) [..] > > + if (!fc->ops->parse_monolithic) > > + goto err; > > + > > + err =

[Intel-gfx] [PATCH v2 11/34] scif: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 14/34] oradax: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 28/34] mm/madvise.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 30/41] mm/madvise.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 02/34] net/rds: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 25/34] mm/frame_vector.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 16/34] drivers/tee: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 8/8] dma-buf: nuke reservation_object seq number

2019-08-09 Thread Christian König
The only remaining use for this is to protect against setting a new exclusive fence while we grab both exclusive and shared. That can also be archived by looking if the exclusive fence has changed or not after completing the operation. Signed-off-by: Christian König ---

Re: [Intel-gfx] [PATCH 20/34] xen: convert put_page() to put_user_page*()

2019-08-09 Thread John Hubbard
On 8/2/19 9:09 AM, Weiny, Ira wrote: On 02.08.19 07:48, John Hubbard wrote: On 8/1/19 9:36 PM, Juergen Gross wrote: On 02.08.19 04:19, john.hubb...@gmail.com wrote: From: John Hubbard ... If that's not the case (both here, and in 3 or 4 other patches in this series, then as you said, I

Re: [Intel-gfx] [PATCH 16/34] drivers/tee: convert put_page() to put_user_page*()

2019-08-09 Thread John Hubbard
On 8/1/19 11:29 PM, Jens Wiklander wrote: On Fri, Aug 2, 2019 at 4:20 AM wrote: From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide

[Intel-gfx] [PATCH v2 19/34] fsl_hypervisor: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 28/41] mm/gup_benchmark.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [Intel-gfx] [PATCH 1/6] dma-buf: add dynamic DMA-buf handling v13

2019-08-09 Thread Christian König
Am 31.07.19 um 12:39 schrieb Daniel Vetter: On Wed, Jul 31, 2019 at 11:44 AM Christian König wrote: Am 31.07.19 um 11:12 schrieb Daniel Vetter: [SNIP] I think I brought this up before, but new top-post for a clean start. Use-case I have in mind is something like amdkfd's model, where you

[Intel-gfx] [PATCH 4/5] dma-buf: simplify reservation_object_get_fences_rcu a bit

2019-08-09 Thread Christian König
We can add the exclusive fence to the list after making sure we got a consistent state. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/dma-buf/reservation.c

[Intel-gfx] [PATCH 15/34] staging/vc04_services: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 34/34] fs/binfmt_elf: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: Ira Weiny For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 3/4] dma-buf: further relax reservation_object_add_shared_fence

2019-08-09 Thread Christian König
Other cores don't busy wait any more and we removed the last user of checking the seqno for changes. Drop updating the number for shared fences altogether. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c| 6 --

[Intel-gfx] [PATCH 6/8] dma-buf: simplify reservation_object_get_fences_rcu a bit

2019-08-09 Thread Christian König
We can add the exclusive fence to the list after making sure we got a consistent state. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/dma-buf/reservation.c

[Intel-gfx] [PATCH v3 40/41] mm/mempolicy.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 22/41] xen: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 25/34] mm/frame_vector.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 3/8] drm/i915: stop using seqcount for fenc pruning

2019-08-09 Thread Christian König
After waiting for a reservation object use reservation_object_test_signaled_rcu to opportunistically prune the fences on the object. This allows removal of the seqcount handling in the reservation object. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 14

[Intel-gfx] [PATCH v3 14/41] vmci: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-09 Thread john . hubbard
From: John Hubbard Hi, These are best characterized as miscellaneous conversions: many (not all) call sites that don't involve biovec or iov_iter, nor mm/. It also leaves out a few call sites that require some more work. These are mostly pretty simple ones. It's probably best to send all of

[Intel-gfx] [PATCH 21/34] fs/exec.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 4/8] drm/i915: use new reservation_object_fences helper

2019-08-09 Thread Christian König
Instead of open coding the sequence loop use the new helper. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_busy.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_busy.c

[Intel-gfx] [PATCH v2 15/34] staging/vc04_services: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v3 24/41] orangefs: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH] dma-buf: make dma_fence structure a bit smaller

2019-08-09 Thread Christian König
We clear the callback list on kref_put so that by the time we release the fence it is unused. No one should be adding to the cb_list that they don't themselves hold a reference for. This small change is actually making the structure 16% smaller. Signed-off-by: Christian König Reviewed-by: Chris

Re: [Intel-gfx] [PATCH 2/8] dma-buf: fix shared fence list handling in reservation_object_copy_fences

2019-08-09 Thread Christian König
Am 06.08.19 um 21:06 schrieb Chris Wilson: Quoting Christian König (2019-08-06 16:01:28) Add some helpers to correctly allocate/free reservation_object_lists. Otherwise we might forget to drop dma_fence references on list destruction. Signed-off-by: Christian König ---

[Intel-gfx] [PATCH 01/34] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-08-09 Thread john . hubbard
From: John Hubbard Provide more capable variation of put_user_pages_dirty_lock(), and delete put_user_pages_dirty(). This is based on the following: 1. Lots of call sites become simpler if a bool is passed into put_user_page*(), instead of making the call site choose which put_user_page*()

[Intel-gfx] [PATCH v3 02/41] drivers/gpu/drm/via: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 1/4] dma-buf: add reservation_object_fences helper

2019-08-09 Thread Christian König
Add a new helper to get a consistent set of pointers from the reservation object. While at it group all access helpers together in the header file. v2: correctly return shared_count as well Signed-off-by: Christian König --- drivers/dma-buf/dma-buf.c | 31 ++---

[Intel-gfx] [PATCH v3 00/39] put_user_pages(): miscellaneous call sites

2019-08-09 Thread john . hubbard
From: John Hubbard Hi, This consolidates everything into a "here's what's remaining for Andrew to add to his tree (for now)" series: * The first patch is an updated version of one that is already in the akpm tree. * The next two patches are already in the akpm tree, included here for

[Intel-gfx] [PATCH 28/34] mm/madvise.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 24/34] futex: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 00/34] put_user_pages(): miscellaneous call sites

2019-08-09 Thread john . hubbard
From: John Hubbard Changes since v1: * 9 out of 34 patches have been reviewed or ack'd or changed: * Picked up Keith's Reviewed-by for patch 26 (gup_benchmark). * Picked up ACKs for patches 3, 10, 15, 16 (ceph, genwqe, staging/vc04_services, drivers/tee). * Patch 6 (i915):

[Intel-gfx] [PATCH 01/34] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-08-09 Thread john . hubbard
From: John Hubbard Provide more capable variation of put_user_pages_dirty_lock(), and delete put_user_pages_dirty(). This is based on the following: 1. Lots of call sites become simpler if a bool is passed into put_user_page*(), instead of making the call site choose which put_user_page*()

[Intel-gfx] [PATCH v3 01/41] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-08-09 Thread john . hubbard
From: John Hubbard Provide a more capable variation of put_user_pages_dirty_lock(), and delete put_user_pages_dirty(). This is based on the following: 1. Lots of call sites become simpler if a bool is passed into put_user_page*(), instead of making the call site choose which put_user_page*()

[Intel-gfx] [PATCH v3 25/41] uprobes: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 05/34] drm/etnaviv: convert release_pages() to put_user_pages()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 30/34] crypt: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 02/34] net/rds: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 5/8] dma-buf: further relax reservation_object_add_shared_fence

2019-08-09 Thread Christian König
Other cores don't busy wait any more and we removed the last user of checking the seqno for changes. Drop updating the number for shared fences altogether. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c| 6 --

[Intel-gfx] [PATCH v2 29/34] mm/process_vm_access.c: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH 04/34] x86/kvm: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder versions"). Cc:

[Intel-gfx] [PATCH 14/34] oradax: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[Intel-gfx] [PATCH v2 09/34] media/v4l2-core/mm: convert put_page() to put_user_page*()

2019-08-09 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

<    1   2   3   4   >