Commit 99331a51 authored by Oded Gabbay's avatar Oded Gabbay

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: default avatarOded Gabbay <oded.gabbay@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f0ec5b99
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/printk.h> #include <linux/printk.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/sched.h>
#include "kfd_priv.h" #include "kfd_priv.h"
#include "kfd_device_queue_manager.h" #include "kfd_device_queue_manager.h"
#include "kfd_mqd_manager.h" #include "kfd_mqd_manager.h"
...@@ -829,7 +830,7 @@ static int fence_wait_timeout(unsigned int *fence_addr, ...@@ -829,7 +830,7 @@ static int fence_wait_timeout(unsigned int *fence_addr,
pr_err("kfd: qcm fence wait loop timeout expired\n"); pr_err("kfd: qcm fence wait loop timeout expired\n");
return -ETIME; return -ETIME;
} }
cpu_relax(); schedule();
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment