Files
rocm-systems/projects/rocr-runtime/src
Felix Kuehling 2e3ae4b983 libhsakmt: Improve error handling in child process
Check for errno == EBADF in kmtIoctl to detect misuse of the kfd_fd
in a forked child process.

Detect being in a forked child process pro-actively by implementing
a pthread_atfork callback.

Make sure all mutexes get reinitialized in the child process to avoid
deadlocks.

Check for being in a forked child process in CHECK_KFD_OPENED so that
all hsaKmt functions will return the appropriate status
HSAKMT_STATUS_KERNEL_IO_CHANNEL_NOT_OPENED.

Update InvalidKFDHandleTest to expect that error code.

Change-Id: I0238e5fba344dcaa454e97a35db2e2dcc8d1f607
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>


[ROCm/ROCR-Runtime commit: 87e10cd0b4]
2020-01-20 18:01:21 -05:00
..
2019-12-02 11:56:04 -05:00
2018-12-13 10:17:12 -05:00
2019-04-30 15:40:50 -05:00
2017-05-31 14:38:59 -04:00
2019-12-02 11:56:04 -05:00
2019-03-28 17:17:40 -04:00
2017-05-31 14:38:59 -04:00
2018-07-08 22:38:22 -04:00
2018-07-08 22:38:22 -04:00
2018-01-25 16:48:17 -05:00
2018-01-25 16:48:17 -05:00