diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2022-08-04 18:19:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-10 15:41:23 -0400 |
commit | bea9a56afbc4b5a41ea579b8b0dc5e189b439504 (patch) | |
tree | 1eaac74557086267015dbeb64f40a32a4c934743 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | c4c10a68e82b8a03df234ee744acabcc648df270 (diff) | |
download | linux-bea9a56afbc4b5a41ea579b8b0dc5e189b439504.tar.gz linux-bea9a56afbc4b5a41ea579b8b0dc5e189b439504.tar.bz2 linux-bea9a56afbc4b5a41ea579b8b0dc5e189b439504.zip |
drm/amdkfd: Handle restart of kfd_ioctl_wait_events
When kfd_ioctl_wait_events needs to restart due to a signal, we need to
update the timeout to account for the time already elapsed. We also need
to undo auto_reset of events that have signaled already, so that the
restarted ioctl will be able to count those signals again.
This fixes infinite hangs when kfd_ioctl_wait_events is interrupted by a
signal.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-and-tested-by: Xiaogang Chen <Xiaogang.Chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions