Commit a2d3c692 authored by David Yat Sin's avatar David Yat Sin Committed by Alex Deucher

drm/amdkfd: Copy HW exception data to user event

Fixes issue where user events of type KFD_EVENT_TYPE_HW_EXCEPTION do not
have valid data
Signed-off-by: default avatarDavid Yat Sin <David.YatSin@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3f3b08be
...@@ -880,6 +880,10 @@ static int copy_signaled_event_data(uint32_t num_events, ...@@ -880,6 +880,10 @@ static int copy_signaled_event_data(uint32_t num_events,
dst = &data[i].memory_exception_data; dst = &data[i].memory_exception_data;
src = &event->memory_exception_data; src = &event->memory_exception_data;
size = sizeof(struct kfd_hsa_memory_exception_data); size = sizeof(struct kfd_hsa_memory_exception_data);
} else if (event->type == KFD_EVENT_TYPE_HW_EXCEPTION) {
dst = &data[i].memory_exception_data;
src = &event->hw_exception_data;
size = sizeof(struct kfd_hsa_hw_exception_data);
} else if (event->type == KFD_EVENT_TYPE_SIGNAL && } else if (event->type == KFD_EVENT_TYPE_SIGNAL &&
waiter->event_age_enabled) { waiter->event_age_enabled) {
dst = &data[i].signal_event_data.last_event_age; dst = &data[i].signal_event_data.last_event_age;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment