Use system scope for packet following sdma copies

SWDEV-234947
SWDEV-236298
Instead of forcing a barrier packet, just inject system scope on the next packet.

Change-Id: If9bcee23e08dfe5db731235e2fcb30582cbd4c1c


[ROCm/clr commit: 6a5af4056e]
这个提交包含在:
Christophe Paquot
2020-05-14 13:03:36 -07:00
提交者 Christophe Paquot
父节点 24cc417ec1
当前提交 23e520003c
修改 3 个文件,包含 11 行新增3 行删除
@@ -436,6 +436,12 @@ bool VirtualGPU::dispatchGenericAqlPacket(
uint64_t read = hsa_queue_load_read_index_relaxed(gpu_queue_);
hsa_signal_t signal;
if (addSystemScope_) {
header &= ~(HSA_FENCE_SCOPE_AGENT << HSA_PACKET_HEADER_ACQUIRE_FENCE_SCOPE);
header |= (HSA_FENCE_SCOPE_SYSTEM << HSA_PACKET_HEADER_ACQUIRE_FENCE_SCOPE);
addSystemScope_ = false;
}
// TODO: placeholder to setup the kernel to populate start and end timestamp.
if (timestamp_ != nullptr) {
// Find signal slot