aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1210-drm-amdgpu-Add-mmap_offset-for-KFD-BO-import-dmabuf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1210-drm-amdgpu-Add-mmap_offset-for-KFD-BO-import-dmabuf.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1210-drm-amdgpu-Add-mmap_offset-for-KFD-BO-import-dmabuf.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1210-drm-amdgpu-Add-mmap_offset-for-KFD-BO-import-dmabuf.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1210-drm-amdgpu-Add-mmap_offset-for-KFD-BO-import-dmabuf.patch
new file mode 100644
index 00000000..066c9f77
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1210-drm-amdgpu-Add-mmap_offset-for-KFD-BO-import-dmabuf.patch
@@ -0,0 +1,29 @@
+From 37dc73a36b989c6ef1856dfc7a4aa11d79663a5c Mon Sep 17 00:00:00 2001
+From: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
+Date: Fri, 18 Nov 2016 17:53:08 -0500
+Subject: [PATCH 1210/4131] drm/amdgpu: Add mmap_offset for KFD BO import
+ dmabuf
+
+Change-Id: Ida621e50cbadf376cf7618077079f3ba2eccd373
+Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+index f56d24a..f28b1c3 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+@@ -1798,7 +1798,8 @@ static int kfd_ioctl_import_dmabuf(struct file *filep,
+
+ r = dev->kfd2kgd->import_dmabuf(dev->kgd, args->dmabuf_fd,
+ args->va_addr, pdd->vm,
+- (struct kgd_mem **)&mem, &size);
++ (struct kgd_mem **)&mem, &size,
++ NULL);
+ if (r)
+ return r;
+
+--
+2.7.4
+