OSDN Git Service

drm/amdkfd: Add CWSR support
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 14 Nov 2017 21:41:19 +0000 (16:41 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 14 Nov 2017 21:41:19 +0000 (16:41 -0500)
commit373d7080896a3cb3b28ae3a2abdafb7bb87552b1
tree29bb627b5b9357baa95e661ba35f47ba98d978d0
parent449fea612690c3a5ae69d5c09fa7d2ce5773e736
drm/amdkfd: Add CWSR support

This hardware feature allows the GPU to preempt shader execution in
the middle of a compute wave, save the state and restore it later
to resume execution.

Memory for saving the state is allocated per queue in user mode and
the address and size passed to the create_queue ioctl. The size
depends on the number of waves that can be in flight simultaneously
on a given ASIC.

Signed-off-by: Shaoyun.liu <shaoyun.liu@amd.com>
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_module.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c
include/uapi/linux/kfd_ioctl.h