From b7d9879a3602576c8d106f1cd2abea7cb6fc1427 Mon Sep 17 00:00:00 2001 From: Oded Gabbay Date: Mon, 18 May 2015 11:01:42 +0300 Subject: [PATCH] increase event limit to provide 4K events Signed-off-by: Oded Gabbay [ROCm/ROCR-Runtime commit: 2e76017278ff364d432b37213c6a200332826897] --- projects/rocr-runtime/include/linux/kfd_ioctl.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/include/linux/kfd_ioctl.h b/projects/rocr-runtime/include/linux/kfd_ioctl.h index 3316967170..de1cc83c9b 100644 --- a/projects/rocr-runtime/include/linux/kfd_ioctl.h +++ b/projects/rocr-runtime/include/linux/kfd_ioctl.h @@ -169,7 +169,14 @@ struct kfd_ioctl_dbg_wave_control_args { #define KFD_IOC_WAIT_RESULT_TIMEOUT 1 #define KFD_IOC_WAIT_RESULT_FAIL 2 -#define KFD_SIGNAL_EVENT_LIMIT 4096 +/* + * The added 512 is because, currently, 8*(4096/256) signal events are + * reserved for debugger events, and we want to provide at least 4K signal + * events for EOP usage. + * We add 512 to make the allocated size (KFD_SIGNAL_EVENT_LIMIT * 8) be + * page aligned. + */ +#define KFD_SIGNAL_EVENT_LIMIT (4096 + 512) struct kfd_ioctl_create_event_args { uint64_t event_page_offset; /* from KFD */