Files
rocm-systems/src
Philip Yang 7fc6a9f7c2 Revert "hsaKmtCloseKFD destroy objects in all apertures"
This reverts commit 632ad3a749.

This change causes KFDTest failed on gfx803. The first hsaKmtCreateEvent
call allocate system memory for events_page because global variable
events_page is NULL. And this events page vm address should not be freed
until the process exit.

The change to destrory objects in hsaKmtCloseKFD removes events page. As
a result, KFDTest call hsaKmtOpenKFD again and then allocate memory will
get same events_page vm address on gfx803, and map this vm failed because
the vm conflict with events_page mapping.

KFDTest passed on VG10, gfx906 because allocate memory get different vm
address. hsaKmtCreateEvent still works fine as the driver keeps the
events page mapping of the process.

We should only destroy objects in fork cloned child process regardless
if gpu_vm is NULL or not.

Change-Id: I174ef65321cbd6074c855c2021318fe961c8c72c
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2019-08-20 10:52:14 -04: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
2017-05-31 14:38:59 -04:00
2019-08-01 23:10:28 -04:00
2019-03-28 17:17:40 -04:00
2019-08-01 23:10:28 -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