aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_process.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2020-02-05 17:59:15 -0500
committerAlex Deucher <alexander.deucher@amd.com>2021-04-20 21:46:14 -0400
commit40ce74d1b28d38e5debc14b5a6ddd9071ae2d310 (patch)
tree072c2bfb6bc286ea4967954e2c6f6183a7a5ee14 /drivers/gpu/drm/amd/amdkfd/kfd_process.c
parentdrm/amdkfd: helper to convert gpu id and idx (diff)
downloadlinux-dev-40ce74d1b28d38e5debc14b5a6ddd9071ae2d310.tar.xz
linux-dev-40ce74d1b28d38e5debc14b5a6ddd9071ae2d310.zip
drm/amdkfd: add svm ioctl API
Add svm (shared virtual memory) ioctl data structure and API definition. The svm ioctl API is designed to be extensible in the future. All operations are provided by a single IOCTL to preserve ioctl number space. The arguments structure ends with a variable size array of attributes that can be used to set or get one or multiple attributes. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Signed-off-by: Alex Sierra <alex.sierra@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_process.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index d40cd6c10096..aaff85c13398 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
@@ -1208,6 +1208,7 @@ static struct kfd_process *create_process(const struct task_struct *thread)
process->mm = thread->mm;
process->lead_thread = thread->group_leader;
process->n_pdds = 0;
+ process->svm_disabled = false;
INIT_DELAYED_WORK(&process->eviction_work, evict_process_worker);
INIT_DELAYED_WORK(&process->restore_work, restore_process_worker);
process->last_restore_timestamp = get_jiffies_64();