summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorFelix Kuehling2018-03-23 20:30:36 +0100
committerOded Gabbay2018-03-23 20:30:36 +0100
commit1679ae8f8f4148766423066aeb3dbb0a985a373a (patch)
tree8d766de21c5a0a25618ec8d5fc64fdd284b01292 /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentdrm/amdgpu: Fix acquiring VM on large-BAR systems (diff)
downloadkernel-qcow2-linux-1679ae8f8f4148766423066aeb3dbb0a985a373a.tar.gz
kernel-qcow2-linux-1679ae8f8f4148766423066aeb3dbb0a985a373a.tar.xz
kernel-qcow2-linux-1679ae8f8f4148766423066aeb3dbb0a985a373a.zip
drm/amdkfd: Use ordered workqueue to restore processes
Restoring multiple processes concurrently can lead to live-locks where each process prevents the other from validating all its BOs. v2: fix duplicate check of same variable Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index db27f9f13696..96a9cc0f02c9 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -674,7 +674,7 @@ struct amdkfd_ioctl_desc {
const char *name;
};
-void kfd_process_create_wq(void);
+int kfd_process_create_wq(void);
void kfd_process_destroy_wq(void);
struct kfd_process *kfd_create_process(struct file *filep);
struct kfd_process *kfd_get_process(const struct task_struct *);