Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1648732 > unrolled thread

Re: [PATCH] kernel: Export mm_access

Started byAndrew Morton <akpm@linux-foundation.org>
First post2017-05-23 23:20 +0200
Last post2017-05-23 23:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] kernel: Export mm_access Andrew Morton <akpm@linux-foundation.org> - 2017-05-23 23:20 +0200

#1648732 — Re: [PATCH] kernel: Export mm_access

FromAndrew Morton <akpm@linux-foundation.org>
Date2017-05-23 23:20 +0200
SubjectRe: [PATCH] kernel: Export mm_access
Message-ID<tKpnI-w5-23@gated-at.bofh.it>
On Tue, 23 May 2017 16:17:29 -0400 Felix Kuehling <felix.kuehling@amd.com> wrote:

> From: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
> 
> Exporting mm_access, which is required for implementing accelerated
> equivalents of process_vm_readv/process_vm_writev for GPU memory in KFD
> (AMD's GPU compute driver). This allows us to apply all the same remote
> process memory access policies.
> 
> Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
> ---
> Current KFD with AMD discrete GPU support is not yet upstream, but we
> are working on getting it upstream for 4.13 or 4.14 depending on how we
> line up with Dave Airlie's merge windows.
> 
> For reference, recent releases of ROCm (AMD's Radeon Open Compute
> Platform software stack) with fully open-source user mode and kernel
> code can be found on GitHub:
> https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/roc-1.5.0

Well if we're going to export it, I suppose we should actually document
it.  Could you please include some commentary above mm_access() which
describes what it does, why it does it, return value, etc?

Then please include this patch in whatever tree contains the KFD code,
with my Acked-by: Andrew Morton <akpm@linux-foundation.org>.

> --- a/kernel/fork.c
> +++ b/kernel/fork.c
> @@ -1060,6 +1060,7 @@ struct mm_struct *mm_access(struct task_struct
> *task, unsigned int mode)
> 
>  	return mm;
>  }
> +EXPORT_SYMBOL_GPL(mm_access);
> 
>  static void complete_vfork_done(struct task_struct *tsk)
>  {

fyi, your email client is word-wrapping the patches.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web