aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1252-drm-amdkfd-Reduce-KFD-restore-wait-time.patch
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 14:52:21 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 15:24:40 +0500
commitcc5953c3a2f348543ed44492244627ee0de76239 (patch)
tree23430cd57f73086e7176e8be4375e5ad3b4079c0 /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1252-drm-amdkfd-Reduce-KFD-restore-wait-time.patch
parent4149413febf799293758015e230e0ce865ed9cb5 (diff)
downloadmeta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.gz
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.bz2
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.zip
common: rename to meta-amd-bsp
This renames common layers to meta-amd-bsp as it is going to hold all the bsps in it in the following commits. This also changes the layer title in layer.conf from "amd" to "amd-bsp" Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1252-drm-amdkfd-Reduce-KFD-restore-wait-time.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1252-drm-amdkfd-Reduce-KFD-restore-wait-time.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1252-drm-amdkfd-Reduce-KFD-restore-wait-time.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1252-drm-amdkfd-Reduce-KFD-restore-wait-time.patch
new file mode 100644
index 00000000..8ee8956d
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1252-drm-amdkfd-Reduce-KFD-restore-wait-time.patch
@@ -0,0 +1,47 @@
+From e6c58adbc94028b40f8ccb9695e34f2235d334a4 Mon Sep 17 00:00:00 2001
+From: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
+Date: Tue, 28 Mar 2017 15:25:15 -0400
+Subject: [PATCH 1252/4131] drm/amdkfd: Reduce KFD restore wait time
+
+Change-Id: I455296dd665a768ca8aefe7863f25e3dac952d4f
+Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_device.c | 3 ++-
+ drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 6 +++---
+ 2 files changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+index 0e95fb2..53720bd 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+@@ -867,7 +867,8 @@ void kfd_restore_bo_worker(struct work_struct *work)
+
+ ret = pdd->dev->kfd2kgd->restore_process_bos(p->process_info);
+ if (ret) {
+- pr_info("restore_process_bos() failed, try again after 1 sec\n");
++ 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);
+ WARN(!ret, "reschedule restore work failed\n");
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+index 853d430..992e5f1 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+@@ -579,10 +579,10 @@ struct kfd_eviction_work {
+ struct fence *eviction_fence;
+ };
+
+-/* Appox. wait time before attempting to restore evicted BOs */
+-#define PROCESS_RESTORE_TIME_MS 2000
++/* Approx. wait time before attempting to restore evicted BOs */
++#define PROCESS_RESTORE_TIME_MS 100
+ /* Approx. back off time if restore fails due to lack of memory */
+-#define PROCESS_BACK_OFF_TIME_MS 1000
++#define PROCESS_BACK_OFF_TIME_MS 100
+
+ void kfd_evict_bo_worker(struct work_struct *work);
+ void kfd_restore_bo_worker(struct work_struct *work);
+--
+2.7.4
+