aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorAndres Rodriguez <andres.rodriguez@amd.com>2017-10-27 19:35:34 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2017-10-27 19:35:34 -0400
commit48e876a20e79566f1736413d4f42dc66f3ab2f16 (patch)
tree94bdcbd76b1f8e206a22f373575ed81ac08c7be4 /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentdrm/amdkfd: wait only for IH work on IH exit (diff)
downloadlinux-dev-48e876a20e79566f1736413d4f42dc66f3ab2f16.tar.xz
linux-dev-48e876a20e79566f1736413d4f42dc66f3ab2f16.zip
drm/amdkfd: use a high priority workqueue for IH work
In systems under heavy load the IH work may experience significant scheduling delays. Under load + system workqueue: Max Latency: 7.023695 ms Avg Latency: 0.263994 ms Under load + high priority workqueue: Max Latency: 1.162568 ms Avg Latency: 0.163213 ms Further work is required to measure the impact of per-cpu settings on IH performance. Signed-off-by: Andres Rodriguez <andres.rodriguez@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index 0aec5ca8a964..6a91a60c64cf 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -184,6 +184,7 @@ struct kfd_dev {
/* Interrupts */
struct kfifo ih_fifo;
+ struct workqueue_struct *ih_wq;
struct work_struct interrupt_work;
spinlock_t interrupt_lock;