diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1704-drm-amdkcl-KFD-4.11-dkms-fix-for-4.11-new-added-head.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1704-drm-amdkcl-KFD-4.11-dkms-fix-for-4.11-new-added-head.patch | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1704-drm-amdkcl-KFD-4.11-dkms-fix-for-4.11-new-added-head.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1704-drm-amdkcl-KFD-4.11-dkms-fix-for-4.11-new-added-head.patch new file mode 100644 index 00000000..c0a7c95a --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1704-drm-amdkcl-KFD-4.11-dkms-fix-for-4.11-new-added-head.patch @@ -0,0 +1,79 @@ +From be5bf54ef712bc7f0e28bd4f2923838e0d902969 Mon Sep 17 00:00:00 2001 +From: Evan Quan <evan.quan@amd.com> +Date: Thu, 18 May 2017 15:51:36 +0800 +Subject: [PATCH 1704/4131] drm/amdkcl: [KFD] [4.11] dkms fix for 4.11 new + added headers + +Change-Id: Id4df974c928f9d6930234eacd8363c2638902a1d +Signed-off-by: Evan Quan <evan.quan@amd.com> +Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 ++ + drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 ++ + drivers/gpu/drm/amd/amdkfd/kfd_events.c | 4 +++- + drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 ++ + 4 files changed, 9 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +index 21cf3b0..2e03bef 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +@@ -28,7 +28,9 @@ + #include <linux/uaccess.h> + #include <linux/firmware.h> + #include <linux/list.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) + #include <linux/sched/mm.h> ++#endif + #include <drm/drmP.h> + #include <linux/dma-buf.h> + #include <linux/pagemap.h> +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +index 97a8070..72c3109 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +@@ -25,7 +25,9 @@ + #include <linux/err.h> + #include <linux/fs.h> + #include <linux/sched.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) + #include <linux/sched/mm.h> ++#endif + #include <linux/slab.h> + #include <linux/uaccess.h> + #include <linux/compat.h> +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_events.c +index 39ecb07..3877d68 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_events.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_events.c +@@ -23,9 +23,11 @@ + #include <linux/mm_types.h> + #include <linux/slab.h> + #include <linux/types.h> +-#include <linux/sched/signal.h> + #include <linux/uaccess.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) + #include <linux/sched/mm.h> ++#include <linux/sched/signal.h> ++#endif + #include <linux/mman.h> + #include <linux/memory.h> + #include "kfd_priv.h" +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c +index 2d80800..205aed4 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c +@@ -23,8 +23,10 @@ + #include <linux/mutex.h> + #include <linux/log2.h> + #include <linux/sched.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) + #include <linux/sched/mm.h> + #include <linux/sched/task.h> ++#endif + #include <linux/slab.h> + #if defined(CONFIG_AMD_IOMMU_V2_MODULE) || defined(CONFIG_AMD_IOMMU_V2) + #include <linux/amd-iommu.h> +-- +2.7.4 + |