mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:17:05 +08:00
Tbx requires write memory after changing a mapped allocation from the driver side. Host function use bytes mapped from tagAllocation. Host function data update has 2 steps: * update the mapped data in the driver * write memory so Tbx can see the data Tag allocation can be pulled (downloadAllocation) e.g. while waiting, and at the same time the host function worker thread can update the data. In such scenario the updated mapped data could be reverted by a concurrent downloadAllocation call. I've added a lock to prevent concurrent downloadAllocation calls overlapping the 2step tbx host function data update. Related-To: NEO-14577 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>