Files
rocm-systems/projects/rocr-runtime/src
Oak Zeng 84d88b8e1a Properly control lifecycle of ptr info objects
Buffer mapping to devices and buffer registration to
devices can be changed b/t two pointer info queries.
Thus update buffer mapping info and registration info
only when mapping and registration changed. This is
done by free mapped_node_id_array on mapping to new
device and free registered_node_id_array on registration
and re-allocate them on next ptr info query.

Also uses fmm_mutex to avoid race conditions in case
of calling hsaKmtQueryPointerInfo concurrently with
calling of buffer mapping or registration

Change-Id: Ibc2e20be1fc0147066f873dfa44b21f5015104b7
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>


[ROCm/ROCR-Runtime commit: f06e887725]
2017-11-21 15:16:29 -05:00
..
2017-05-31 14:38:59 -04:00
2017-05-31 14:38:59 -04:00
2017-08-22 09:55:20 -04:00
2017-10-13 11:37:38 -04:00
2017-08-23 14:00:49 -04:00
2017-05-31 14:38:59 -04:00
2017-05-31 14:38:59 -04:00
2017-05-31 14:38:59 -04:00