Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <oded.gabbay@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>

+2 -1
+2 -1
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
··· 26 26 #include <linux/types.h> 27 27 #include <linux/printk.h> 28 28 #include <linux/bitops.h> 29 + #include <linux/sched.h> 29 30 #include "kfd_priv.h" 30 31 #include "kfd_device_queue_manager.h" 31 32 #include "kfd_mqd_manager.h" ··· 830 829 pr_err("kfd: qcm fence wait loop timeout expired\n"); 831 830 return -ETIME; 832 831 } 833 - cpu_relax(); 832 + schedule(); 834 833 } 835 834 836 835 return 0;