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
This commit is contained in:
committed by
Christophe Paquot
parent
3624b8df16
commit
6a5af4056e
@@ -661,7 +661,7 @@ bool DmaBlitManager::hsaCopy(const Memory& srcMemory, const Memory& dstMemory,
|
||||
LogError("Async copy failed");
|
||||
status = HSA_STATUS_ERROR;
|
||||
} else {
|
||||
gpu().hasPendingDispatch();
|
||||
gpu().addSystemScope();
|
||||
}
|
||||
} else {
|
||||
LogPrintfError("Hsa copy from host to device failed with code %d", status);
|
||||
@@ -749,7 +749,7 @@ bool DmaBlitManager::hsaCopyStaged(const_address hostSrc, address hostDst, size_
|
||||
offset += size;
|
||||
}
|
||||
|
||||
gpu().hasPendingDispatch();
|
||||
gpu().addSystemScope();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user