aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1601-drm-amdkfd-Add-memory-eviction-print-message.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1601-drm-amdkfd-Add-memory-eviction-print-message.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/1601-drm-amdkfd-Add-memory-eviction-print-message.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1601-drm-amdkfd-Add-memory-eviction-print-message.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1601-drm-amdkfd-Add-memory-eviction-print-message.patch
new file mode 100644
index 00000000..17d50e1e
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1601-drm-amdkfd-Add-memory-eviction-print-message.patch
@@ -0,0 +1,47 @@
+From 7c0bf35be5ed8e29db814461d85b4bf53cea8787 Mon Sep 17 00:00:00 2001
+From: Yong Zhao <yong.zhao@amd.com>
+Date: Wed, 11 Jan 2017 18:09:45 -0500
+Subject: [PATCH 1601/4131] drm/amdkfd: Add memory eviction print message
+
+Change-Id: I9aeb56d1497547a922664f10fb9f6ae35cc1edaf
+Signed-off-by: Yong Zhao <yong.zhao@amd.com>
+
+ Conflicts:
+ drivers/gpu/drm/amd/amdkfd/kfd_device.c
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_device.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+index 5bf868f..d5fd8947 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+@@ -812,6 +812,8 @@ void kfd_restore_bo_worker(struct work_struct *work)
+ ret = resume_process_mm(p);
+ if (ret)
+ pr_err("Failed to resume user queues\n");
++
++ pr_info("Finished restoring process of pasid %d\n", p->pasid);
+ }
+
+ /** kgd2kfd_schedule_evict_and_restore_process - Schedules work queue that will
+@@ -883,6 +885,7 @@ void kfd_evict_bo_worker(struct work_struct *work)
+ if (delayed_work_pending(&p->restore_work))
+ flush_delayed_work(&p->restore_work);
+
++ pr_info("Started evicting process of pasid %d\n", p->pasid);
+ ret = quiesce_process_mm(p);
+ if (!ret) {
+ fence_signal(eviction_work->eviction_fence);
+@@ -893,6 +896,8 @@ void kfd_evict_bo_worker(struct work_struct *work)
+
+ fence_put(eviction_work->eviction_fence);
+
++ pr_info("Finished evicting process of pasid %d\n", p->pasid);
++
+ }
+
+ static int kfd_gtt_sa_init(struct kfd_dev *kfd, unsigned int buf_size,
+--
+2.7.4
+