From 50fc47ecf4e57b329312aa3fb501ee714ae54b39 Mon Sep 17 00:00:00 2001 From: Yong Zhao 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 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