aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1260-drm-amdkfd-added-missing-version-guard-for-seq_hex_d.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1260-drm-amdkfd-added-missing-version-guard-for-seq_hex_d.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1260-drm-amdkfd-added-missing-version-guard-for-seq_hex_d.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1260-drm-amdkfd-added-missing-version-guard-for-seq_hex_d.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1260-drm-amdkfd-added-missing-version-guard-for-seq_hex_d.patch
new file mode 100644
index 00000000..f2331a93
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1260-drm-amdkfd-added-missing-version-guard-for-seq_hex_d.patch
@@ -0,0 +1,40 @@
+From d71fec9d3ffb0d68c49a50361806bb20b94c7300 Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Thu, 13 Apr 2017 11:13:07 +0800
+Subject: [PATCH 1260/4131] drm/amdkfd: added missing version guard for
+ seq_hex_dump
+
+Change-Id: I54793aaf89d264b5e5379c93aa9cc079c824a283
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
+index d185637..fb54f97 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
+@@ -434,15 +434,19 @@ static bool is_occupied_sdma(struct mqd_manager *mm, void *mqd,
+
+ static int debugfs_show_mqd(struct seq_file *m, void *data)
+ {
++#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 0, 0)
+ seq_hex_dump(m, " ", DUMP_PREFIX_OFFSET, 32, 4,
+ data, sizeof(struct v9_mqd), false);
++#endif
+ return 0;
+ }
+
+ static int debugfs_show_mqd_sdma(struct seq_file *m, void *data)
+ {
++#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 0, 0)
+ seq_hex_dump(m, " ", DUMP_PREFIX_OFFSET, 32, 4,
+ data, sizeof(struct v9_sdma_mqd), false);
++#endif
+ return 0;
+ }
+
+--
+2.7.4
+