Lines Matching defs:process
103 mutex_unlock(&pdd->process->mutex);
147 struct kfd_process *process;
170 process = kfd_create_process(current);
171 if (IS_ERR(process))
172 return PTR_ERR(process);
175 filep->private_data = process;
177 dev_dbg(kfd_device, "process pid %d opened kfd node, compat mode (32 bit) - %d\n",
178 process->lead_thread->pid, process->is_32bit_user_mode);
185 struct kfd_process *process = filep->private_data;
187 if (!process)
190 if (process->context_id != KFD_CONTEXT_ID_PRIMARY)
191 kfd_process_notifier_release_internal(process);
193 kfd_unref_process(process);
390 pr_debug("failed to allocate process doorbells\n");
401 pr_debug("Creating queue for process pid %d on gpu 0x%x\n",
418 * process doorbell frame, which is 2 pages.
455 pr_debug("Destroying queue id %d for process pid %d\n",
513 pr_debug("Updating queue id %d for process pid %d\n",
735 dev_dbg(kfd_device, "get apertures for process pid %d", p->lead_thread->pid);
740 /* Run over all pdd of the process */
787 dev_dbg(kfd_device, "get apertures for process pid %d",
802 /* Fill in process-aperture information for all available
819 /* Run over all pdd of the process */
1242 * It will be freed at process termination.
1268 * clean-up during process tear-down.
1769 pr_debug("SVM ioctl not supported on non-primary kfd process\n");
1921 pr_err("Failed to copy process information to user\n");
1990 /* Run over all PDDs of the process */
2230 pr_err("No pdd for given process\n");
2235 /* Confirm all process queues are evicted */
2237 pr_err("Cannot dump process when queues are not in evicted state\n");
2320 pr_err("Failed to copy process private information from user\n");
2738 * Set the process to evicted state to avoid running any new queues before all the memory
2824 pr_debug("Cannot find process info for %i\n", args->pid);
2855 pr_err("No pdd for given process\n");
2942 * SET_SHADER_DEBUGGER clears any stale process context data
3085 pr_debug("Set debug trap ioctl can not be invoked on non-primary kfd process\n");
3128 pr_debug("Cannot find process PID %i to debug\n", args->pid);
3135 pr_debug("Set debug trap ioctl not supported on non-primary kfd process\n");
3308 struct kfd_process *process;
3324 process = create_process(current, false);
3325 if (IS_ERR(process)) {
3327 return PTR_ERR(process);
3330 filep->private_data = process;
3333 ret = kfd_create_process_sysfs(process);
3338 * so we need to reduce it here when we create a new secondary process replacing it
3581 struct kfd_process *process;
3614 /* Get the process struct from the filep. Only the process
3618 process = filep->private_data;
3622 ptrace_parent(process->lead_thread) == current)
3626 if (process->lead_thread != current->group_leader
3628 dev_dbg(kfd_device, "Using KFD FD in wrong process\n");
3684 retcode = func(filep, process, kdata);
3705 static int kfd_mmio_mmap(struct kfd_node *dev, struct kfd_process *process,
3723 pr_debug("process pid %d mapping mmio page\n"
3728 process->lead_thread->pid, (unsigned long long) vma->vm_start,
3741 struct kfd_process *process;
3746 process = filep->private_data;
3747 if (!process)
3750 if (process->lead_thread != current->group_leader)
3762 return kfd_doorbell_mmap(dev, process, vma);
3765 return kfd_event_mmap(process, vma);
3773 return kfd_mmio_mmap(dev, process, vma);