aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1347-drm-amdkfd-Extend-peer_memory_client-to-support-MLNX.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1347-drm-amdkfd-Extend-peer_memory_client-to-support-MLNX.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1347-drm-amdkfd-Extend-peer_memory_client-to-support-MLNX.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1347-drm-amdkfd-Extend-peer_memory_client-to-support-MLNX.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1347-drm-amdkfd-Extend-peer_memory_client-to-support-MLNX.patch
new file mode 100644
index 00000000..fda50f74
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1347-drm-amdkfd-Extend-peer_memory_client-to-support-MLNX.patch
@@ -0,0 +1,40 @@
+From 793633be4ab92284fbf2d37b5c8f34cb342b91c3 Mon Sep 17 00:00:00 2001
+From: Yong Zhao <Yong.Zhao@amd.com>
+Date: Mon, 11 Sep 2017 17:10:26 -0400
+Subject: [PATCH 1347/4131] drm/amdkfd: Extend peer_memory_client to support
+ MLNX_OFED 4.1
+
+Fix: SWDEV-127077
+
+Change-Id: Ie92903e6164ccb78dec3f9d0ceab2dd5dfa93640
+Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c b/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c
+index d7cb30c..543ed83 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c
+@@ -109,7 +109,8 @@ struct peer_memory_client {
+ void (*put_pages)(struct sg_table *sg_head, void *client_context);
+ unsigned long (*get_page_size)(void *client_context);
+ void (*release)(void *client_context);
+-
++ void* (*get_context_private_data)(u64 peer_id);
++ void (*put_context_private_data)(void *context);
+ };
+
+ typedef int (*invalidate_peer_memory)(void *reg_handle,
+@@ -427,6 +428,8 @@ static struct peer_memory_client amd_mem_client = {
+ .put_pages = amd_put_pages,
+ .get_page_size = amd_get_page_size,
+ .release = amd_release,
++ .get_context_private_data = NULL,
++ .put_context_private_data = NULL,
+ };
+
+ /** Initialize PeerDirect interface with RDMA Network stack.
+--
+2.7.4
+