SWDEV-451166 - Disable kernel args for non-XGMI if HDP flush register is invalid

Change-Id: I227e046e2b9cb25476a50240f5d070adbd558f21


[ROCm/clr commit: 96f5c44851]
This commit is contained in:
Ioannis Assiouras
2024-03-13 22:50:58 +00:00
parent ec391d7249
commit b46d3c0f8d
5 changed files with 41 additions and 20 deletions
+11 -3
View File
@@ -396,9 +396,17 @@ hipError_t GraphExec::CaptureAQLPackets() {
}
if (device_kernarg_pool_ && !device->isXgmi()) {
*device->info().hdpMemFlushCntl = 1u;
if (*device->info().hdpMemFlushCntl != UINT32_MAX) {
LogError("Unexpected HDP Register readback value!");
if (device->info().hdpMemFlushCntl != nullptr) {
*device->info().hdpMemFlushCntl = 1u;
if (*device->info().hdpMemFlushCntl != UINT32_MAX) {
LogError("Unexpected HDP Register readback value!");
}
} else {
amd::Command* command = new amd::Marker(*capture_stream_, true);
if (command != nullptr) {
command->enqueue();
command->release();
}
}
}