From: Oded Gabbay Date: Thu, 15 Jan 2015 10:01:10 +0000 (+0200) Subject: drm/amdkfd: Replace cpu_relax() with schedule() in DQM X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=99331a51cc788cb60780278cf2d6b1105cf23828;p=linux-beck.git drm/amdkfd: Replace cpu_relax() with schedule() in DQM In order not to occupy the current core and thus prevent the core from servicing IOMMU PPR requests, this patch replaces the call in DQM to cpu_relax() with a call to schedule(). Signed-off-by: Oded Gabbay Acked-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c index fad6877d33ad..e804e871ff82 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "kfd_priv.h" #include "kfd_device_queue_manager.h" #include "kfd_mqd_manager.h" @@ -829,7 +830,7 @@ static int fence_wait_timeout(unsigned int *fence_addr, pr_err("kfd: qcm fence wait loop timeout expired\n"); return -ETIME; } - cpu_relax(); + schedule(); } return 0;