diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3047-drm-amdkfd-Remove-useless-code.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3047-drm-amdkfd-Remove-useless-code.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3047-drm-amdkfd-Remove-useless-code.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3047-drm-amdkfd-Remove-useless-code.patch new file mode 100644 index 00000000..30befcf9 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3047-drm-amdkfd-Remove-useless-code.patch @@ -0,0 +1,28 @@ +From 2729b2aa67ff9a48beeff6f44794ee95b9ea8b0c Mon Sep 17 00:00:00 2001 +From: Yong Zhao <yong.zhao@amd.com> +Date: Tue, 19 Dec 2017 14:49:51 -0500 +Subject: [PATCH 3047/4131] drm/amdkfd: Remove useless code + +Change-Id: I9755cd4fbc4c9a0e62b8021c702a35d43dcb69c0 +Signed-off-by: Yong Zhao <yong.zhao@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +index 7e63b8b..aba0291 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +@@ -1374,9 +1374,6 @@ static int kfd_ioctl_map_memory_to_gpu(struct file *filep, + peer = kfd_device_by_id(devices_arr[i]); + if (WARN_ON_ONCE(!peer)) + continue; +- peer_pdd = kfd_get_process_device_data(dev, p); +- if (WARN_ON_ONCE(!peer_pdd)) +- continue; + kfd_flush_tlb(peer, p->pasid); + } + } else { +-- +2.7.4 + |