aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1349-drm-amdkfd-Fixed-a-unit-convert-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1349-drm-amdkfd-Fixed-a-unit-convert-error.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/1349-drm-amdkfd-Fixed-a-unit-convert-error.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1349-drm-amdkfd-Fixed-a-unit-convert-error.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1349-drm-amdkfd-Fixed-a-unit-convert-error.patch
new file mode 100644
index 00000000..9f9aa83c
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1349-drm-amdkfd-Fixed-a-unit-convert-error.patch
@@ -0,0 +1,39 @@
+From 5d935a0e541fde1b0e96fa7613a3af742c3f345b Mon Sep 17 00:00:00 2001
+From: Oak Zeng <Oak.Zeng@amd.com>
+Date: Wed, 27 Sep 2017 18:21:21 -0400
+Subject: [PATCH 1349/4131] drm/amdkfd: Fixed a unit convert error
+
+schedule_delayed_work take jiffies as the second param
+Convert ms to jiffies before call this func
+
+Change-Id: Ied35d1b3703162fbfb5f39e9389ad3de8f89fac8
+Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_device.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+index af2424e..6f5f93c 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+@@ -950,7 +950,7 @@ void kfd_restore_bo_worker(struct work_struct *work)
+ pr_info("Restore failed, try again after %d ms\n",
+ PROCESS_BACK_OFF_TIME_MS);
+ ret = schedule_delayed_work(&p->restore_work,
+- PROCESS_BACK_OFF_TIME_MS);
++ msecs_to_jiffies(PROCESS_BACK_OFF_TIME_MS));
+ WARN(!ret, "reschedule restore work failed\n");
+ return;
+ }
+@@ -1050,7 +1050,7 @@ void kfd_evict_bo_worker(struct work_struct *work)
+ if (!ret) {
+ dma_fence_signal(eviction_work->quiesce_fence);
+ schedule_delayed_work(&p->restore_work,
+- PROCESS_RESTORE_TIME_MS);
++ msecs_to_jiffies(PROCESS_RESTORE_TIME_MS));
+ } else
+ pr_err("Failed to quiesce user queues. Cannot evict BOs\n");
+
+--
+2.7.4
+