SWDEV-451594 - Fix HDP reg readback

Change-Id: I478a968330f85c3b60ff39fb40bf3cd91acd610e


[ROCm/clr commit: 1ba74c3ce3]
This commit is contained in:
Saleel Kudchadker
2024-05-14 17:52:14 +00:00
committed by Maneesh Gupta
parent 98fd53c2ef
commit efc2de44f0
2 changed files with 5 additions and 5 deletions
@@ -3239,13 +3239,13 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes,
if (kernArgImpl == KernelArgImpl::DeviceKernelArgsHDP) {
*dev().info().hdpMemFlushCntl = 1u;
volatile auto kSentinel = *dev().info().hdpMemFlushCntl;
auto kSentinel = *reinterpret_cast<volatile int*>(dev().info().hdpMemFlushCntl);
} else if (kernArgImpl == KernelArgImpl::DeviceKernelArgsReadback &&
argSize != 0) {
_mm_sfence();
*(argBuffer + argSize - 1) = *(parameters + argSize - 1);
_mm_mfence();
volatile auto kSentinel = *(argBuffer + argSize - 1);
auto kSentinel = *reinterpret_cast<volatile address*>(argBuffer + argSize - 1);
}
}
}