aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1227-drm-amdkfd-Add-memory-eviction-print-message.patch
blob: ca767f5ec2ee10a92604003b0ad23b4c9fc9b727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From 50fc47ecf4e57b329312aa3fb501ee714ae54b39 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 1227/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