History

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.

Felix Kuehling committed 9 years ago

Commit 373d7081 parent 449fea68 files · +179 −6Browse files

Showing the changes to include/uapi/linux (1 of 8 files). Show all

Unified · Split

include/uapi/linux/kfd_ioctl.h+2−1
@@ -58,7 +58,8 @@ struct kfd_ioctl_create_queue_args { · 57 unmodified lines
5858 __u64 eop_buffer_address; /* to KFD */
5959 __u64 eop_buffer_size; /* to KFD */
6060 __u64 ctx_save_restore_address; /* to KFD */
61− __u64 ctx_save_restore_size; /* to KFD */
61+ __u32 ctx_save_restore_size; /* to KFD */
62+ __u32 ctl_stack_size; /* to KFD */
6263 };
6364
6465 struct kfd_ioctl_destroy_queue_args {